/*
 * R4IT Boutique Theme — r4it-hummingbird (Mobile-First Hummingbird Child Theme)
 * White-label CSS token engine (--r4cc-*) with 4 WCAG-checked presets & self-hosted Playfair Display
 * Supports both canonical .r4cc-* classes and legacy .cc-* CMS classes seamlessly.
 */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
[data-bs-theme="light"] {
  /* Canonical white-label tokens (overridable via r4itcappycattheme module) */
  --r4cc-primary: #1E5A6A;
  --r4cc-primary-dark: #15424E;
  --r4cc-primary-soft: #EBF3F5;
  --r4cc-primary-rgb: 30, 90, 106;
  --r4cc-accent: #B12D68;
  --r4cc-accent-hover: #912153;
  --r4cc-accent-soft: #FBEBF2;
  --r4cc-accent-rgb: 177, 45, 104;
  --r4cc-highlight: #C8A24D;
  --r4cc-highlight-light: #E8CA7E;
  --r4cc-highlight-soft: #FBF5E6;
  --r4cc-highlight-rgb: 200, 162, 77;
  --r4cc-bg: #FAF8F5;
  --r4cc-bg-rgb: 250, 248, 245;
  --r4cc-surface: #FFFFFF;
  --r4cc-border: #E8E1D5;
  --r4cc-ink: #23242A;
  --r4cc-ink-rgb: 35, 36, 42;
  --r4cc-muted: #5C5E68;
  --r4cc-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Bootstrap / Hummingbird mappings */
  --bs-body-bg: var(--r4cc-bg);
  --bs-body-bg-rgb: var(--r4cc-bg-rgb);
  --bs-body-color: var(--r4cc-ink);
  --bs-body-color-rgb: var(--r4cc-ink-rgb);
  --bs-emphasis-color: var(--r4cc-ink);
  --bs-secondary-color: var(--r4cc-muted);
  --bs-tertiary-bg: #F3EFE8;
  --bs-border-color: var(--r4cc-border);
  --bs-primary: var(--r4cc-accent);
  --bs-primary-rgb: var(--r4cc-accent-rgb);
  --bs-link-color: var(--r4cc-primary);
  --bs-link-color-rgb: var(--r4cc-primary-rgb);
  --bs-link-hover-color: var(--r4cc-accent);
  --bs-focus-ring-color: rgba(var(--r4cc-accent-rgb), 0.28);

  --header-top-color: #FFFFFF;
  --header-top-color-hover: var(--r4cc-highlight-light);
}

html,
body,
main,
#wrapper {
  background-color: var(--r4cc-bg);
  color: var(--r4cc-ink);
}

/* Boutique Display Typography */
h1,
h2,
.h1,
.h2,
.products-section-title,
.featured-products .h2,
.page-header h1,
.product-title,
.r4cc-hero__title,
.cc-hero__title,
.r4cc-atelier__title,
.cc-atelier__title {
  font-family: var(--r4cc-font-display);
  letter-spacing: -0.01em;
}

/* Buttons — Vibrant Accent CTA & Primary Secondary */
.btn-primary {
  --bs-btn-color: #FFFFFF;
  --bs-btn-bg: var(--r4cc-accent);
  --bs-btn-border-color: var(--r4cc-accent);
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: var(--r4cc-accent-hover);
  --bs-btn-hover-border-color: var(--r4cc-accent-hover);
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: var(--r4cc-accent-hover);
  --bs-btn-active-border-color: var(--r4cc-accent-hover);
  --bs-btn-focus-shadow-rgb: var(--r4cc-accent-rgb);
  --bs-btn-disabled-color: #FFFFFF;
  --bs-btn-disabled-bg: var(--r4cc-accent);
  --bs-btn-disabled-border-color: var(--r4cc-accent);
  font-weight: 600;
  border-radius: 0.55rem;
}

.btn-outline-primary {
  --bs-btn-color: var(--r4cc-accent);
  --bs-btn-border-color: var(--r4cc-accent);
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: var(--r4cc-accent);
  --bs-btn-hover-border-color: var(--r4cc-accent);
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: var(--r4cc-accent-hover);
  --bs-btn-active-border-color: var(--r4cc-accent-hover);
  --bs-btn-focus-shadow-rgb: var(--r4cc-accent-rgb);
  font-weight: 600;
  border-radius: 0.55rem;
}

/* Header Top Bar — Primary band with crisp white ink & highlight hairline */
.header-top {
  background-color: var(--r4cc-primary);
  border-bottom: 2px solid var(--r4cc-highlight);
  color: #FFFFFF;
  font-size: 0.85rem;
  padding-block: 0.35rem;
}

.header-top a,
.header-top button,
.header-top .header-block__action-btn,
.header-top .header-block__icon,
.header-top .dropdown-toggle {
  color: #FFFFFF;
}

.header-top a:hover,
.header-top button:hover,
.header-top .header-block__action-btn:hover {
  color: var(--r4cc-highlight-light);
}

.header-top .form-select {
  background-color: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-radius: 0.4rem;
  padding-block: 0.2rem;
  font-size: 0.85rem;
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.header-top .form-select option {
  color: var(--r4cc-ink);
  background-color: #FFFFFF;
}

.header-top .header-block__badge {
  background-color: var(--r4cc-accent);
  color: #FFFFFF;
}

/* Main Header Bar & Brand Wordmark */
#header,
.header-bottom {
  background-color: var(--r4cc-surface);
  color: var(--r4cc-ink);
}

.header-bottom {
  border-bottom: 1px solid var(--r4cc-border);
  padding-block: 0.5rem;
  box-shadow: 0 2px 10px rgba(var(--r4cc-primary-rgb), 0.06);
}

.r4cc-brand,
.cc-brand {
  gap: 0.6rem;
  text-decoration: none;
  padding-block: 0.1rem;
}

.r4cc-brand__name,
.cc-brand__name {
  font-family: var(--r4cc-font-display);
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--r4cc-primary);
  line-height: 1;
  transition: color 0.16s ease;
}

.r4cc-brand:hover .r4cc-brand__name,
.r4cc-brand:focus-visible .r4cc-brand__name,
.cc-brand:hover .cc-brand__name,
.cc-brand:focus-visible .cc-brand__name {
  color: var(--r4cc-accent);
}

.header-bottom .nav-link,
.main-menu .nav-link,
.header-bottom .header-block__action-btn {
  color: var(--r4cc-ink);
  font-weight: 600;
}

.header-bottom .nav-link:hover,
.header-bottom .nav-link:focus-visible,
.main-menu .nav-link:hover,
.header-bottom .header-block__action-btn:hover {
  color: var(--r4cc-accent);
}

.header-bottom .navbar-brand .logo {
  max-height: 3.15rem;
  width: auto;
}

.header-block__badge {
  background-color: var(--r4cc-accent);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.3rem;
}

/* Search input */
.header-bottom .form-control,
.search-widgets .form-control {
  background-color: var(--r4cc-bg);
  border-color: var(--r4cc-border);
  color: var(--r4cc-ink);
  border-radius: 999px;
}

.header-bottom .form-control:focus,
.search-widgets .form-control:focus {
  background-color: var(--r4cc-surface);
  border-color: var(--r4cc-highlight);
  box-shadow: 0 0 0 0.2rem rgba(var(--r4cc-highlight-rgb), 0.22);
}

/* Mobile Header (<= 767px) — compact, 44px touch targets */
@media (max-width: 767.98px) {
  .header-bottom {
    border-top: 3px solid var(--r4cc-primary);
    padding-block: 0.35rem;
  }

  .header-block__action-btn,
  .header-bottom .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0.45rem;
  }

  .header-bottom .navbar-brand .logo {
    max-height: 2.35rem;
  }

  .r4cc-brand,
  .cc-brand {
    gap: 0.45rem;
  }

  .r4cc-brand__name,
  .cc-brand__name {
    font-size: 1.2rem;
  }
}

/* ============================================================
 * Boutique Hero Band (r4itcappycattheme hook & ps_customtext compat)
 * ============================================================ */
.r4cc-home-band,
.ps-customtext {
  padding-block: 1.25rem 0.5rem;
}

.r4cc-hero__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.r4cc-hero,
.cc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(var(--r4cc-accent-rgb), 0.34) 0%, rgba(var(--r4cc-accent-rgb), 0) 48%),
    radial-gradient(circle at 12% 90%, rgba(var(--r4cc-highlight-rgb), 0.22) 0%, rgba(var(--r4cc-highlight-rgb), 0) 44%),
    linear-gradient(135deg, var(--r4cc-primary) 0%, var(--r4cc-primary-dark) 58%, var(--r4cc-ink) 100%);
  border: 1px solid rgba(var(--r4cc-highlight-rgb), 0.48);
  box-shadow: 0 14px 32px rgba(var(--r4cc-primary-rgb), 0.18);
  color: #FFFFFF;
  padding: 2rem 2.25rem;
}

.r4cc-hero::before,
.cc-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--r4cc-highlight) 0%, var(--r4cc-accent) 55%, var(--r4cc-highlight-light) 100%);
}

.r4cc-hero__grid,
.cc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.85fr);
  gap: 1.5rem 2.25rem;
  align-items: center;
}

.r4cc-hero__copy,
.cc-hero__copy {
  min-width: 0;
  max-width: 100%;
}

.r4cc-hero__kicker,
.cc-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r4cc-highlight-light);
  margin-bottom: 0.55rem;
}

.r4cc-hero__kicker::before,
.cc-hero__kicker::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5px;
  background-color: var(--r4cc-highlight);
}

.r4cc-hero__title,
.cc-hero__title {
  color: #FFFFFF;
  font-size: clamp(1.7rem, 3.1vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.r4cc-hero__lead,
.cc-hero__lead {
  color: rgba(250, 248, 245, 0.92);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 38rem;
  margin: 0 0 1.35rem;
}

.r4cc-hero__actions,
.cc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.r4cc-hero__cta,
.cc-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--r4cc-accent);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(var(--r4cc-accent-rgb), 0.36);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.r4cc-hero__cta:hover,
.r4cc-hero__cta:focus-visible,
.cc-hero__cta:hover,
.cc-hero__cta:focus-visible {
  background-color: var(--r4cc-accent-hover);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--r4cc-accent-rgb), 0.44);
}

.r4cc-hero__cta--secondary,
.cc-hero__cta--secondary {
  background-color: rgba(250, 248, 245, 0.1);
  border: 1px solid rgba(var(--r4cc-highlight-rgb), 0.72);
  color: #FAF8F5 !important;
  box-shadow: none;
}

.r4cc-hero__cta--secondary:hover,
.r4cc-hero__cta--secondary:focus-visible,
.cc-hero__cta--secondary:hover,
.cc-hero__cta--secondary:focus-visible {
  background-color: rgba(var(--r4cc-highlight-rgb), 0.24);
  border-color: var(--r4cc-highlight-light);
  color: #FFFFFF !important;
  box-shadow: none;
}

/* Editorial 3-Photo Boutique Collage inside Hero */
.r4cc-hero__collage,
.cc-hero__collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, 118px);
  gap: 0.65rem;
}

.r4cc-hero__photo,
.cc-hero__photo {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1.5px solid rgba(var(--r4cc-highlight-rgb), 0.56);
  background-color: rgba(250, 248, 245, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  margin: 0;
}

.r4cc-hero__photo--tall,
.cc-hero__photo--tall {
  grid-row: span 2;
}

.r4cc-hero__photo img,
.cc-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.r4cc-hero__photo:hover img,
.cc-hero__photo:hover img {
  transform: scale(1.04);
}

/* ============================================================
 * Visual Category Showcase Cards (directly below Hero)
 * ============================================================ */
.r4cc-cat-showcase,
.cc-cat-showcase {
  margin-top: 1.35rem;
}

.r4cc-cat-grid,
.cc-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.r4cc-cat-card,
.cc-cat-card {
  display: flex;
  flex-direction: column;
  background-color: var(--r4cc-surface);
  border: 1px solid var(--r4cc-border);
  border-radius: 0.95rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--r4cc-ink);
  box-shadow: 0 3px 12px rgba(var(--r4cc-primary-rgb), 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.r4cc-cat-card:hover,
.r4cc-cat-card:focus-visible,
.cc-cat-card:hover,
.cc-cat-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--r4cc-highlight);
  box-shadow: 0 12px 26px rgba(var(--r4cc-primary-rgb), 0.13);
  color: var(--r4cc-ink);
}

.r4cc-cat-card__media,
.cc-cat-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--r4cc-bg);
}

.r4cc-cat-card__media img,
.cc-cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.r4cc-cat-card:hover .r4cc-cat-card__media img,
.cc-cat-card:hover .cc-cat-card__media img {
  transform: scale(1.05);
}

.r4cc-cat-card__body,
.cc-cat-card__body {
  padding: 0.95rem 1.05rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.r4cc-cat-card__title,
.cc-cat-card__title {
  font-family: var(--r4cc-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--r4cc-primary);
  margin: 0 0 0.18rem;
  line-height: 1.2;
}

.r4cc-cat-card__sub,
.cc-cat-card__sub {
  font-size: 0.84rem;
  color: var(--r4cc-muted);
  margin: 0;
  line-height: 1.35;
}

.r4cc-cat-card__arrow,
.cc-cat-card__arrow {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background-color: var(--r4cc-primary-soft);
  color: var(--r4cc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.r4cc-cat-card:hover .r4cc-cat-card__arrow,
.cc-cat-card:hover .cc-cat-card__arrow {
  background-color: var(--r4cc-accent);
  color: #FFFFFF;
  transform: translateX(2px);
}

@media (max-width: 991.98px) {
  .r4cc-hero__grid,
  .cc-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .r4cc-hero__collage,
  .cc-hero__collage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 112px;
  }

  .r4cc-hero__photo--tall,
  .cc-hero__photo--tall {
    grid-row: auto;
  }
}

@media (max-width: 767.98px) {
  .r4cc-home-band,
  .ps-customtext {
    padding-block: 0.7rem 0.25rem;
  }

  .r4cc-hero,
  .cc-hero {
    padding: 1.3rem 1.15rem 1.2rem;
    border-radius: 0.95rem;
  }

  .r4cc-hero__title,
  .cc-hero__title {
    font-size: 1.55rem;
    overflow-wrap: break-word;
  }

  .r4cc-hero__lead,
  .cc-hero__lead {
    font-size: 0.92rem;
    margin-bottom: 1rem;
  }

  .r4cc-hero__actions,
  .cc-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .r4cc-hero__cta,
  .cc-hero__cta {
    min-height: 44px;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
  }

  .r4cc-hero__collage,
  .cc-hero__collage {
    grid-template-rows: 86px;
    gap: 0.45rem;
  }

  .r4cc-cat-showcase,
  .cc-cat-showcase {
    margin-top: 0.95rem;
  }

  .r4cc-cat-grid,
  .cc-cat-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .r4cc-cat-card,
  .cc-cat-card {
    flex-direction: row;
    align-items: stretch;
  }

  .r4cc-cat-card__media,
  .cc-cat-card__media {
    flex: 0 0 96px;
    aspect-ratio: auto;
    min-height: 82px;
  }

  .r4cc-cat-card__body,
  .cc-cat-card__body {
    flex: 1;
    padding: 0.65rem 0.85rem;
  }

  .r4cc-cat-card__title,
  .cc-cat-card__title {
    font-size: 1rem;
  }

  .r4cc-cat-card__sub,
  .cc-cat-card__sub {
    font-size: 0.78rem;
  }
}

/* ============================================================
 * Section Headings & Product Cards (Clean Single-CTA Boutique Cards)
 * ============================================================ */
.section-title,
.featured-products .h2,
.products-section-title {
  color: var(--r4cc-primary);
  font-family: var(--r4cc-font-display);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 0.45rem;
  margin-bottom: 1.25rem;
}

.section-title::after,
.featured-products .h2::after,
.products-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--r4cc-highlight) 0%, var(--r4cc-accent) 100%);
}

.product-miniature {
  height: 100%;
}

.product-miniature__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--r4cc-surface);
  border: 1px solid var(--r4cc-border);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(var(--r4cc-ink-rgb), 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-miniature__inner:hover {
  transform: translateY(-2px);
  border-color: var(--r4cc-highlight);
  box-shadow: 0 12px 26px rgba(var(--r4cc-primary-rgb), 0.11);
}

.product-miniature__top {
  background-color: var(--r4cc-bg);
  border-radius: 0;
  overflow: hidden;
}

.product-miniature__image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.product-miniature__inner:hover .product-miniature__image {
  transform: scale(1.03);
}

.product-miniature__bottom {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.85rem 0.9rem 0.95rem;
}

.product-miniature__infos {
  flex: 1 1 auto;
}

.product-miniature__title {
  color: var(--r4cc-ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-miniature__title:hover {
  color: var(--r4cc-accent);
}

.product-miniature__price {
  color: var(--r4cc-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.product-miniature__actions {
  margin-top: auto;
  padding-top: 0.7rem;
}

.r4cc-miniature-form,
.cc-miniature-form {
  display: block;
  width: 100%;
}

.product-miniature .r4cc-card-cta,
.product-miniature .cc-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.48rem 0.75rem;
  font-size: 0.86rem;
  line-height: 1.2;
  width: 100%;
}

.product-miniature .r4cc-card-cta .material-icons,
.product-miniature .cc-card-cta .material-icons {
  font-size: 1.05rem;
  line-height: 1;
}

.product-miniature .product-miniature__add-text {
  display: inline !important;
}

@media (max-width: 767.98px) {
  .product-miniature__bottom {
    padding: 0.65rem 0.65rem 0.75rem;
  }

  .product-miniature__title {
    font-size: 0.86rem;
  }

  .product-miniature__price {
    font-size: 0.95rem;
  }

  .product-miniature .r4cc-card-cta,
  .product-miniature .cc-card-cta {
    min-height: 2.35rem;
    padding: 0.42rem 0.5rem;
    font-size: 0.78rem;
  }

  .product-miniature .r4cc-card-cta .material-icons,
  .product-miniature .cc-card-cta .material-icons {
    font-size: 0.95rem;
  }
}

/* Boutique Badges & Origin Badges */
.product-flags .badge,
.product-flags .product-flag {
  background-color: var(--r4cc-primary);
  color: #FFFFFF;
  border: 1px solid rgba(var(--r4cc-highlight-rgb), 0.6);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  box-shadow: 0 2px 8px rgba(var(--r4cc-primary-rgb), 0.24);
}

.product-flags .badge.r4cc-origin-primary,
.product-flags .badge.cc-origin-atelier,
.product-flags .badge.cc-origin-lux {
  background-color: rgba(var(--r4cc-primary-rgb), 0.93);
  border-color: rgba(var(--r4cc-highlight-rgb), 0.82);
  color: #FAF8F5;
  backdrop-filter: blur(4px);
}

.product-flags .badge.r4cc-origin-secondary,
.product-flags .badge.r4cc-badge-craft,
.product-flags .badge.cc-origin-europe,
.product-flags .badge.cc-badge-craft {
  background-color: rgba(var(--r4cc-bg-rgb), 0.95);
  border-color: rgba(var(--r4cc-highlight-rgb), 0.82);
  color: var(--r4cc-primary);
  backdrop-filter: blur(4px);
}

.product-flags .badge.discount,
.product-flags .badge.on-sale,
.product-flags .product-flag.on-sale {
  background-color: var(--r4cc-accent);
  border-color: var(--r4cc-highlight-light);
  color: #FFFFFF;
}

@media (max-width: 767.98px) {
  .product-flags .badge,
  .product-flags .product-flag {
    font-size: 0.62rem;
    padding: 0.2rem 0.48rem;
  }
}

/* ============================================================
 * Trust Bar & Editorial Studio Story Section
 * ============================================================ */
.r4cc-trust-section,
.cc-trust-section {
  padding-block: 1.75rem 0.75rem;
}

.r4cc-trust-grid,
.cc-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.r4cc-trust-card,
.cc-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background-color: var(--r4cc-surface);
  border: 1px solid var(--r4cc-border);
  border-radius: 0.85rem;
  padding: 1rem 1rem;
  box-shadow: 0 2px 8px rgba(var(--r4cc-primary-rgb), 0.04);
}

.r4cc-trust-card__icon,
.cc-trust-card__icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background-color: var(--r4cc-primary-soft);
  border: 1px solid rgba(var(--r4cc-highlight-rgb), 0.44);
  color: var(--r4cc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.r4cc-trust-card__title,
.cc-trust-card__title {
  font-family: var(--r4cc-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--r4cc-primary);
  margin: 0 0 0.22rem;
  line-height: 1.25;
}

.r4cc-trust-card__text,
.cc-trust-card__text {
  font-size: 0.82rem;
  color: var(--r4cc-muted);
  margin: 0;
  line-height: 1.42;
}

.r4cc-atelier-section,
.cc-atelier-section {
  padding-block: 1rem 2.25rem;
}

.r4cc-atelier,
.cc-atelier {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 1.75rem 2.25rem;
  align-items: center;
  background-color: var(--r4cc-surface);
  border: 1px solid var(--r4cc-border);
  border-radius: 1.05rem;
  padding: 1.5rem;
  box-shadow: 0 6px 22px rgba(var(--r4cc-primary-rgb), 0.06);
}

.r4cc-atelier--no-media {
  grid-template-columns: 1fr;
}

.r4cc-atelier__media,
.cc-atelier__media {
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid rgba(var(--r4cc-highlight-rgb), 0.48);
  aspect-ratio: 16 / 10;
  background-color: var(--r4cc-bg);
}

.r4cc-atelier__media img,
.cc-atelier__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.r4cc-atelier__kicker,
.cc-atelier__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r4cc-highlight);
  margin-bottom: 0.45rem;
}

.r4cc-atelier__kicker::before,
.cc-atelier__kicker::before {
  content: "";
  display: inline-block;
  width: 1.35rem;
  height: 1.5px;
  background-color: var(--r4cc-highlight);
}

.r4cc-atelier__title,
.cc-atelier__title {
  color: var(--r4cc-primary);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.r4cc-atelier__text,
.cc-atelier__text {
  color: var(--r4cc-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.r4cc-atelier__cta,
.cc-atelier__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: var(--r4cc-accent);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(var(--r4cc-accent-rgb), 0.38);
  padding-bottom: 0.12rem;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.r4cc-atelier__cta:hover,
.r4cc-atelier__cta:focus-visible,
.cc-atelier__cta:hover,
.cc-atelier__cta:focus-visible {
  color: var(--r4cc-primary);
  border-color: var(--r4cc-primary);
}

@media (max-width: 991.98px) {
  .r4cc-trust-grid,
  .cc-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r4cc-atelier,
  .cc-atelier {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.15rem;
  }
}

@media (max-width: 575.98px) {
  .r4cc-trust-grid,
  .cc-trust-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .r4cc-trust-card,
  .cc-trust-card {
    padding: 0.85rem 0.9rem;
  }
}

/* Cards & Editorial CMS panels */
.cms-block,
.card {
  background-color: var(--r4cc-surface);
  border: 1px solid var(--r4cc-border);
  border-radius: 0.85rem;
  color: var(--r4cc-ink);
}

.r4cc-about,
.cc-about {
  max-width: 48rem;
  margin-inline: auto;
  background-color: var(--r4cc-surface);
  border: 1px solid var(--r4cc-border);
  border-radius: 1.05rem;
  padding: 2rem 2.25rem;
  box-shadow: 0 6px 22px rgba(var(--r4cc-primary-rgb), 0.05);
}

.r4cc-about__kicker,
.cc-about__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r4cc-highlight);
  margin-bottom: 0.45rem;
}

.r4cc-about__kicker::before,
.cc-about__kicker::before {
  content: "";
  display: inline-block;
  width: 1.35rem;
  height: 1.5px;
  background-color: var(--r4cc-highlight);
}

.r4cc-about h2,
.cc-about h2 {
  font-family: var(--r4cc-font-display);
  color: var(--r4cc-primary);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.r4cc-about h3,
.cc-about h3 {
  font-family: var(--r4cc-font-display);
  color: var(--r4cc-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.65rem 0 0.55rem;
}

.r4cc-about p,
.cc-about p {
  color: var(--r4cc-muted);
  font-size: 0.98rem;
  line-height: 1.68;
  margin: 0 0 0.9rem;
}

.r4cc-about__callout,
.cc-about__callout {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 0.8rem;
  background-color: var(--r4cc-bg);
  border-left: 3px solid var(--r4cc-highlight);
  color: var(--r4cc-ink);
}

@media (max-width: 767.98px) {
  .r4cc-about,
  .cc-about {
    padding: 1.25rem 1.1rem;
  }
}

/* ============================================================
 * Footer — Primary Newsletter Band + Deep Ink Boutique Footer
 * ============================================================ */
.footer__before {
  --bs-body-color: #FAF8F5;
  --bs-secondary-color: rgba(250, 248, 245, 0.84);
  --bs-secondary-color-rgb: 250, 248, 245;
  --bs-tertiary-color: rgba(250, 248, 245, 0.84);
  background: linear-gradient(135deg, var(--r4cc-primary) 0%, var(--r4cc-primary-dark) 100%);
  border-top: 3px solid var(--r4cc-highlight);
  color: #FFFFFF;
}

.footer__before section.ps-emailsubscription.bg-body-tertiary,
.footer__before .ps-emailsubscription,
.footer__before .bg-body-tertiary {
  --bs-bg-opacity: 0;
  --bs-tertiary-bg: transparent;
  --bs-tertiary-bg-rgb: var(--r4cc-primary-rgb);
  --bs-secondary-color: rgba(250, 248, 245, 0.84);
  background: transparent !important;
  background-color: transparent !important;
  color: #FFFFFF;
}

.footer__before h2,
.footer__before h3,
.footer__before .h3,
.footer__before p,
.footer__before small,
.footer__before label,
.footer__before .form-text,
.footer__before .email-subscription__label,
.footer__before .email-subscription__conditions,
.footer__before .ps-emailsubscription p,
.footer__before .ps-emailsubscription div {
  color: #FAF8F5 !important;
}

footer .footer__before .ps-emailsubscription p.text-body-secondary,
footer .footer__before .text-body-secondary,
footer .footer__before .text-muted {
  color: rgba(250, 248, 245, 0.84) !important;
}

.footer__before .h3 {
  font-family: var(--r4cc-font-display);
  font-weight: 600;
}

.footer__before .form-control {
  background-color: #FFFFFF;
  border-color: rgba(var(--r4cc-highlight-rgb), 0.55);
  color: var(--r4cc-ink);
}

.footer__before .form-control::placeholder {
  color: var(--r4cc-muted) !important;
  opacity: 0.85;
}

.footer__main {
  background-color: var(--r4cc-ink);
  border-top: 1px solid rgba(var(--r4cc-highlight-rgb), 0.35);
  color: #FAF8F5;
  padding-block: 2.4rem 1.75rem;
}

.footer__main h2,
.footer__main h3,
.footer__main h4,
.footer__main .h3,
.footer__main .h4,
.footer__main .footer__title,
.footer__main .footer-block__title,
.footer__main .accordion-button {
  color: var(--r4cc-highlight-light);
  font-family: var(--r4cc-font-display);
  font-weight: 600;
}

.footer__main a {
  color: rgba(250, 248, 245, 0.84);
  text-decoration: none;
}

.footer__main a:hover,
.footer__main a:focus-visible {
  color: var(--r4cc-highlight-light);
  text-decoration: underline;
}

.footer__main .copyright {
  border-top: 1px solid rgba(var(--r4cc-highlight-rgb), 0.22);
  color: rgba(250, 248, 245, 0.72);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.85rem;
}

/* ============================================================
 * Floating Cookie Settings Button (Theme-Harmonized Primary + Highlight)
 * ============================================================ */
body #r4it-cookie-icon {
  position: fixed !important;
  bottom: 1.15rem !important;
  right: 1.15rem !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  border-radius: 999px !important;
  background-color: var(--r4cc-primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23FAF8F5' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'/%3E%3Cpath d='M8.5 8.5v.01'/%3E%3Cpath d='M16 15.5v.01'/%3E%3Cpath d='M12 12v.01'/%3E%3Cpath d='M11 17v.01'/%3E%3Cpath d='M7 14v.01'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 1.25rem 1.25rem !important;
  border: 1.5px solid rgba(var(--r4cc-highlight-rgb), 0.84) !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: 0 6px 18px rgba(var(--r4cc-primary-rgb), 0.28) !important;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease !important;
}

body #r4it-cookie-icon:hover,
body #r4it-cookie-icon:focus-visible {
  background-color: var(--r4cc-primary-dark) !important;
  border-color: var(--r4cc-highlight-light) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 767.98px) {
  .ps-featuredproducts,
  .products-list {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .footer__main {
    padding-bottom: 3.75rem;
  }

  body #r4it-cookie-icon {
    bottom: 0.55rem !important;
    right: 0.55rem !important;
    width: 2.15rem !important;
    height: 2.15rem !important;
    background-size: 1rem 1rem !important;
    opacity: 0.88 !important;
    box-shadow: 0 4px 12px rgba(var(--r4cc-primary-rgb), 0.24) !important;
  }
}

/* ============================================================
 * Product Detail Page & Customization Box (Mobile-First Polish)
 * ============================================================ */
.product-prices .current-price-value,
.product-price {
  color: var(--r4cc-primary);
}

.product-customization,
.r4cc-customization {
  background-color: var(--r4cc-surface);
  border: 1px solid var(--r4cc-border);
  border-left: 3px solid var(--r4cc-highlight);
  border-radius: 0.85rem;
  padding: 1.1rem 1.2rem;
  margin-block: 1.15rem;
  box-shadow: 0 2px 10px rgba(var(--r4cc-primary-rgb), 0.05);
}

.product-customization__title {
  font-family: var(--r4cc-font-display);
  color: var(--r4cc-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-customization__field .form-control {
  background-color: var(--r4cc-bg);
  border-color: var(--r4cc-border);
  color: var(--r4cc-ink);
  border-radius: 0.55rem;
}

.product-customization__field .form-control:focus {
  background-color: var(--r4cc-surface);
  border-color: var(--r4cc-highlight);
  box-shadow: 0 0 0 0.2rem rgba(var(--r4cc-highlight-rgb), 0.22);
}

.product-customization__action {
  margin-top: 0.85rem;
}

@media (max-width: 767.98px) {
  .product__col,
  .product-container {
    row-gap: 1rem;
  }

  .product-title,
  h1.h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .product-customization,
  .r4cc-customization {
    padding: 0.95rem 0.95rem;
  }

  .product-customization__action .btn,
  .product-add-to-cart .add-to-cart {
    min-height: 46px;
    width: 100%;
  }

  .product-variants .form-select,
  .product-variants .input-color {
    min-height: 44px;
  }

  .product-tabs .nav-link,
  .accordion-button {
    min-height: 44px;
  }
}

/* Checkout container spacing carry-over */
body#checkout .container {
  min-height: auto;
}

/* ============================================================
 * Brand Signature / Claim (Footer & Editorial About Page)
 * ============================================================ */
.r4cc-footer-claim {
  font-family: var(--r4cc-font-display);
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--r4cc-highlight-light, #E8CA7E);
  margin: 0 0 0.45rem;
}

.cc-about-claim,
.r4cc-about-claim {
  font-family: var(--r4cc-font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--r4cc-primary);
  border-top: 1px solid var(--r4cc-border);
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  text-align: center;
}

.ps-contactinfo__note {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--r4cc-highlight-light, #E8CA7E);
  opacity: 0.92;
}

/* ============================================================
 * Narrow Mobile (<= 479px / 360px) Edge-Case Hardening
 * ============================================================ */
@media (max-width: 479.98px) {
  .page-cms table,
  .cms-content table,
  #cms table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-top .dropdown-toggle,
  .header-top .btn,
  .header-nav .dropdown-toggle {
    min-height: 40px;
  }

  .modal-dialog {
    margin: 0.5rem;
  }

  .r4cc-footer-claim {
    font-size: 0.92rem;
    line-height: 1.4;
  }
}

