:root {
  --fs-bg: #fffbfb;
  --fs-ink: #2b2423;
  --fs-muted: #8a7376;
  --fs-accent: #e5989b;
  --fs-accent-hover: #d4848c;
  --fs-accent-deep: #c97b82;
  --fs-accent-2: #f3c4c6;
  --fs-accent-soft: #fdeff2;
  --fs-card: #ffffff;
  --fs-border: #f0dfe1;
  --fs-soft: #fff5f6;
  --fs-cream: #fffdfc;
  --fs-announce: #e8a0a8;
  --fs-overlay: rgba(229, 152, 155, 0.82);
  --fs-shadow: 0 10px 28px rgba(201, 123, 130, 0.08);
  --fs-shadow-hover: 0 16px 36px rgba(201, 123, 130, 0.14);
  --fs-radius: 0.35rem;
  --fs-radius-sm: 0.25rem;
  --fs-header-h: 5.1rem;
  --fs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fs-font: "Montserrat", "Segoe UI", sans-serif;
  --fs-serif: "Playfair Display", Georgia, serif;
  --fs-script: "Great Vibes", "Segoe Script", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.store-body {
  margin: 0;
  min-height: 100vh;
  color: var(--fs-ink);
  background: var(--fs-bg);
  font-family: var(--fs-font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.store-container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.store-main {
  min-height: 50vh;
}

.store-alerts {
  padding-top: 1.15rem;
}

.store-alerts:not(:has(.alert)) {
  display: none;
}

/* ---------- Announcement ---------- */

.announce-bar {
  background: var(--fs-announce);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announce-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
  min-height: 2.35rem;
  padding: 0.45rem 0;
}

.announce-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.announce-bar svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Header ---------- */

.store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 252, 0.96);
  border-bottom: 1px solid var(--fs-border);
  backdrop-filter: blur(14px) saturate(1.15);
  overflow: visible;
}

.muted a {
  color: var(--fs-accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.muted a:hover {
  text-decoration: underline;
}

.store-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.85rem;
  padding: 0.7rem 0;
  gap: 1.5rem;
}

.store-header-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 1.75rem;
  min-width: 0;
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--fs-ink);
  border-radius: 99px;
  position: relative;
  transition: transform 0.25s var(--fs-ease), opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.store-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--fs-ink);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-script {
  font-family: var(--fs-script);
  font-size: 2.05rem;
  font-weight: 400;
  color: var(--fs-accent);
  line-height: 0.9;
}

.logo-serif {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.12rem;
  font-family: var(--fs-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--fs-ink);
}

.logo-heart {
  width: 0.7rem;
  height: 0.7rem;
  fill: var(--fs-accent);
}

.store-header-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.store-nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.store-nav-primary {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.1rem;
}

.store-nav-primary a {
  color: var(--fs-ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: var(--fs-radius);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.store-nav-primary a:hover,
.store-nav-primary a:focus-visible {
  color: var(--fs-accent-deep);
  background: var(--fs-accent-soft);
}

.store-nav-utility {
  margin-left: auto;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 0.15rem;
}

.icon-link {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  color: var(--fs-ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.icon-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-link:hover,
.icon-link:focus-visible,
.icon-link[aria-expanded="true"] {
  color: var(--fs-accent-deep);
  background: var(--fs-accent-soft);
}

.icon-link .badge {
  position: absolute;
  top: 0.15rem;
  right: 0.05rem;
  margin-left: 0;
}

.store-search-panel {
  border-top: 1px solid var(--fs-border);
  background: var(--fs-cream);
  padding: 0.85rem 0 1rem;
}

.store-search-panel[hidden] {
  display: none !important;
}

.store-search {
  display: flex;
  gap: 0.5rem;
  max-width: 640px;
  margin-inline: auto;
}

.store-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  padding: 0.7rem 1.05rem;
  background: #fff;
  color: var(--fs-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-search input::placeholder {
  color: #b39aa0;
}

.store-search input:focus {
  border-color: var(--fs-accent);
  box-shadow: 0 0 0 4px rgba(229, 152, 155, 0.16);
}

/* ---------- Buttons ---------- */

.btn-store {
  border: 0;
  border-radius: var(--fs-radius);
  padding: 0.82rem 0.8rem;
  background: var(--fs-accent);
  color: #fff;
  font-weight: 600;
  font-size: calc(0.72rem + 2px);
    line-height: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.22s var(--fs-ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-store:hover,
.btn-store:focus-visible {
  background: var(--fs-accent-hover);
  transform: translateY(-1px);
}

.btn-store:active {
  transform: translateY(0);
}

.btn-store:disabled,
.btn-store[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-store.secondary {
  background: #fff;
  color: var(--fs-ink);
  border: 1px solid var(--fs-border);
}

.btn-store.secondary:hover,
.btn-store.secondary:focus-visible {
  background: var(--fs-accent-soft);
  border-color: var(--fs-accent-2);
  color: var(--fs-ink);
}

.btn-store.sm {
  padding: 0.52rem 0.4rem;
  font-size: calc(0.64rem + 2px);
  letter-spacing: 0.12em;
}

.btn-store.block {
  width: 100%;
}

.section-text-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fs-ink);
  border-bottom: 1px solid var(--fs-accent);
  padding-bottom: 0.12rem;
  white-space: nowrap;
}

.section-text-link:hover {
  color: var(--fs-accent-deep);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(253, 239, 242, 0.96) 0%, rgba(253, 239, 242, 0.7) 42%, rgba(253, 239, 242, 0.2) 100%),
    linear-gradient(135deg, #fdeff2, #f4c4c4 55%, #e8a0a8);
  color: var(--fs-ink);
}

.hero-has-image {
  background-color: var(--fs-accent-soft);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 4.5rem auto;
  justify-self: center;
  animation: rise 0.9s var(--fs-ease) both;
}

.hero-content > * {
  max-width: 34rem;
}

.hero-kicker {
  font-family: var(--fs-script);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--fs-accent);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  margin: 0 0 0.35rem;
  line-height: 1;
}

.hero h1 {
  font-family: var(--fs-serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  max-width: 14ch;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 38ch;
  color: var(--fs-muted);
  margin: 0 0 1.7rem;
  font-size: 1.05rem;
  line-height: 1.7;
  font-family: var(--fs-serif);
  font-style: italic;
}

.hero .btn-store {
  background: var(--fs-accent);
  color: #fff;
}

.hero .btn-store:hover,
.hero .btn-store:focus-visible {
  background: var(--fs-accent-hover);
  color: #fff;
}

/* ---------- Value bar ---------- */

.value-bar {
  background: var(--fs-accent-soft);
  padding: 1.85rem 0;
  border-top: 1px solid var(--fs-border);
  border-bottom: 1px solid var(--fs-border);
}

.value-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.value-item svg {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  fill: none;
  stroke: var(--fs-accent-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 0.15rem;
}

.value-item strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.value-item span {
  color: var(--fs-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.band-soft {
  background: var(--fs-accent-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.85rem;
}

.section-head-script {
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
}

.section-head-script .section-text-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.section-title-block {
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fs-accent-deep);
}

.section-head h2,
.page-hero h1,
.panel h3 {
  font-family: var(--fs-serif);
  font-weight: 600;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-head-script h2 {
  font-family: var(--fs-script);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fs-ink);
  line-height: 1;
}

.section-ornament {
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
  color: var(--fs-accent);
}

.section-ornament svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

.page-hero {
  padding: 2.2rem 0 1.3rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.page-lead,
.page-hero p {
  color: var(--fs-muted);
  margin: 0;
  max-width: 52ch;
}

/* ---------- Product grid & cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem 1.25rem;
}

.product-grid-home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  container-name: product-card;
}

.product-card:hover {
  transform: none;
}

.product-card .media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--fs-soft);
  display: grid;
  place-items: center;
  color: var(--fs-muted);
  overflow: hidden;
}

.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--fs-soft);
  transition: transform 0.55s var(--fs-ease);
}

.pdp-gallery .main img,
.thumb img,
.line-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--fs-soft);
}

.product-card:hover .media img {
  transform: scale(1.04);
}

.product-card .body {
  padding: 0.9rem 0.1rem 0.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.product-card h3 {
  font-family: var(--fs-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 0.3rem;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover {
  color: var(--fs-accent-deep);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  background: var(--fs-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 0.55rem;
  border-radius: var(--fs-radius-sm);
}

.product-badge-sale {
  top: 2.45rem;
  background: var(--fs-ink);
}

.product-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.8rem;
  flex-wrap: wrap;
}

.product-card .product-actions:has([data-add-to-cart]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  align-items: stretch;
  gap: 0.4rem;
}

.product-card .product-actions:has([data-add-to-cart]) .btn-store {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 2.4rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.product-card .product-actions [data-add-to-cart],
.product-card .product-actions [data-add-to-wishlist] {
  justify-self: stretch;
}

@container product-card (max-width: 20.49rem) {
  .product-card .body {
    flex: 0 0 auto;
  }

  .product-card .product-actions:has([data-add-to-cart]) {
    margin-top: 0.8rem;
  }
}

@container product-card (min-width: 20.5rem) {
  .product-card .product-actions:has([data-add-to-cart]) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.4rem;
  }

  .product-card .product-actions:has([data-add-to-cart]) .btn-store {
    flex: 1 1 0;
    width: auto;
    min-height: 2.5rem;
    padding: 0.42rem 0.35rem;
  }
}

.shop-layout .product-card .product-actions:has([data-add-to-cart]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: stretch;
  align-items: stretch;
  gap: 0.4rem;
}

.shop-layout .product-card .product-actions:has([data-add-to-cart]):not(:has([data-add-to-wishlist])) {
  grid-template-columns: minmax(0, 1fr);
}

.shop-layout .product-card .product-actions:has([data-add-to-cart]) .btn-store {
  flex: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 2.4rem;
  padding: 0.45rem 0.4rem;
}

.shop-layout .product-card .product-actions [data-add-to-cart],
.shop-layout .product-card .product-actions [data-add-to-wishlist] {
  justify-self: stretch;
  align-self: stretch;
}

.shop-layout .product-card .product-actions [data-vto-open] {
  grid-column: 1 / -1;
}

.product-card .product-actions [data-vto-open],
.pdp-actions .btn-store[data-vto-open] {
  background: var(--fs-accent);
  color: #fff;
  border: 1px solid var(--fs-accent-deep);
  box-shadow: 0 4px 12px rgba(201, 123, 130, 0.28), 0 0 0 2px rgba(229, 152, 155, 0.22);
  animation: vto-attention 2.4s ease-in-out infinite;
}

.product-card .product-actions [data-vto-open]:hover,
.product-card .product-actions [data-vto-open]:focus-visible,
.pdp-actions .btn-store[data-vto-open]:hover,
.pdp-actions .btn-store[data-vto-open]:focus-visible {
  background: var(--fs-accent-hover);
  color: #fff;
  border-color: var(--fs-accent-deep);
}

@keyframes vto-attention {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(201, 123, 130, 0.28), 0 0 0 2px rgba(229, 152, 155, 0.22);
  }
  50% {
    box-shadow: 0 6px 16px rgba(201, 123, 130, 0.45), 0 0 0 3px rgba(229, 152, 155, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card .product-actions [data-vto-open],
  .pdp-actions .btn-store[data-vto-open] {
    animation: none;
  }
}

/* ---------- Price ---------- */

.price {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.price .sale {
  color: var(--fs-ink);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--fs-serif);
}

.price .compare {
  color: var(--fs-muted);
  text-decoration: line-through;
  font-size: 0.82rem;
}

/* ---------- Categories / brands / quotes ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.category-tile {
  position: relative;
  border-radius: 0;
  padding: 0;
  min-height: 0;
  aspect-ratio: 1;
  background: var(--fs-soft);
  border: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: block;
  box-shadow: none;
  transition: transform 0.3s var(--fs-ease);
}

.category-tile.has-image {
  padding: 0;
  color: #fff;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--fs-ease);
}

.category-tile:hover img {
  transform: scale(1.05);
}

.category-tile-copy {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--fs-overlay);
  padding: 0.7rem 0.6rem;
  text-align: center;
}

.category-tile.has-image .category-tile-copy {
  padding: 0.7rem 0.6rem;
}

.category-tile strong {
  font-family: var(--fs-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  color: #fff;
}

.category-tile p,
.category-desc {
  color: var(--fs-muted);
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.category-tile.has-image .category-desc {
  display: none;
}

.category-tile:hover {
  transform: translateY(-3px);
}

.category-grid-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.category-grid-scroll .category-tile img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.category-grid-scroll::-webkit-scrollbar {
  display: none;
}

.category-grid-scroll .category-tile {
  flex: 0 0 calc((100% - 4rem) / 5);
  pointer-events: auto;
}

@media (max-width: 1200px) {
  .category-grid-scroll .category-tile {
    flex-basis: calc((100% - 3rem) / 4);
  }
}

@media (max-width: 1100px) {
  .category-grid-scroll .category-tile {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

@media (max-width: 1000px) {
  .category-grid-scroll .category-tile {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.brand-tile,
.testimonial {
  background: #fff;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  padding: 1.15rem;
  box-shadow: none;
}

.brand-tile {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.25s var(--fs-ease), border-color 0.2s ease;
}

.brand-tile:hover {
  transform: translateY(-3px);
  border-color: var(--fs-accent-2);
}

.brand-tile img {
  max-height: 42px;
  max-width: 120px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  background: transparent;
}

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

.testimonial {
  margin: 0;
  padding: 1.5rem 1.4rem;
}

.testimonial p {
  margin: 0 0 1.1rem;
  color: var(--fs-muted);
  font-family: var(--fs-serif);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.5;
}

.testimonial footer {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Shop / filters ---------- */

.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: start;
}

.filters {
  background: #fff;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  padding: 1.25rem 1.15rem 1.35rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--fs-header-h) + 0.85rem);
  box-shadow: none;
}

.filters-title {
  display: block;
  font-family: var(--fs-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.filters label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fs-muted);
  margin: 0.85rem 0 0.35rem;
}

.filters select,
.filters input[type="number"],
.filters input[type="text"] {
  width: 100%;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  padding: 0.58rem 0.75rem;
  background: #fff;
  color: var(--fs-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filters select:focus,
.filters input:focus,
.store-form input:focus,
.store-form select:focus,
.store-form textarea:focus,
.field-control:focus {
  border-color: var(--fs-accent);
  box-shadow: 0 0 0 4px rgba(229, 152, 155, 0.16);
}

.filter-check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--fs-ink) !important;
  cursor: pointer;
}

.filter-check input {
  width: auto;
  accent-color: var(--fs-accent);
}

/* ---------- Product detail ---------- */

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: start;
}

.pdp-info {
  position: sticky;
  top: calc(var(--fs-header-h) + 1rem);
}

.pdp-meta {
  color: var(--fs-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pdp-title {
  font-family: var(--fs-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0.45rem 0 0.85rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.pdp-short {
  color: var(--fs-muted);
  margin: 1rem 0 1.35rem;
  font-size: 1.02rem;
}

.pdp-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--fs-border);
  border-bottom: 1px solid var(--fs-border);
}

.pdp-specs div {
  display: grid;
  gap: 0.15rem;
}

.pdp-specs dt {
  color: var(--fs-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdp-specs dd {
  margin: 0;
  font-size: 0.95rem;
}

.pdp-description {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fs-border);
  color: var(--fs-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.pdp-gallery .main {
  aspect-ratio: 3 / 4;
  border-radius: var(--fs-radius);
  overflow: hidden;
  background: var(--fs-soft);
  border: 1px solid var(--fs-border);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.thumb {
  aspect-ratio: 1;
  border-radius: var(--fs-radius-sm);
  overflow: hidden;
  border: 1px solid var(--fs-border);
  cursor: pointer;
  padding: 0;
  background: var(--fs-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumb:hover {
  border-color: var(--fs-accent-2);
}

.thumb.active {
  outline: none;
  border-color: var(--fs-accent);
  box-shadow: 0 0 0 3px rgba(229, 152, 155, 0.22);
}

.swatches,
.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}

.chip {
  border: 1px solid var(--fs-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.chip.active {
  border-color: var(--fs-accent);
  background: var(--fs-accent-soft);
  color: var(--fs-accent-deep);
}

.pdp-form label,
.review-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fs-muted);
  margin-bottom: 0.35rem;
}

.field-control,
.qty-input {
  width: 100%;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  padding: 0.72rem 0.9rem;
  background: #fff;
  color: var(--fs-ink);
  outline: none;
  margin: 0 0 1rem;
}

.qty-input {
  width: 120px;
  display: block;
}

.pdp-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.size-picker-wrap {
  margin: 0 0 1rem;
}

.size-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.15rem 0 0.35rem;
}

.size-picker.is-invalid {
  outline: 2px solid rgba(196, 92, 92, 0.45);
  outline-offset: 4px;
  border-radius: 8px;
}

.size-option {
  min-width: 4.4rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  background: #fff;
  color: var(--fs-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font: inherit;
}

.size-option-label {
  font-size: 0.86rem;
  font-weight: 600;
}

.size-option-stock {
  font-size: 0.68rem;
  color: var(--fs-muted);
}

.size-option:hover:not(:disabled),
.size-option:focus-visible {
  border-color: var(--fs-accent);
}

.size-option.is-selected {
  border-color: var(--fs-ink);
  box-shadow: 0 0 0 1px var(--fs-ink);
}

.size-option.is-oos,
.size-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: line-through;
}

.size-picker-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #b42318;
}

.review-list {
  display: grid;
  gap: 0.85rem;
}

.review-card .review-stars {
  color: var(--fs-accent);
  margin-left: 0.5rem;
  letter-spacing: 0.05em;
}

.muted {
  color: var(--fs-muted);
}

/* ---------- Empty / loading ---------- */

.empty-state {
  text-align: center;
  padding: 3.4rem 1.4rem;
  color: var(--fs-muted);
  background: #fff;
  border: 1px dashed var(--fs-border);
  border-radius: var(--fs-radius);
  grid-column: 1 / -1;
}

.empty-state h3 {
  font-family: var(--fs-serif);
  font-size: 1.9rem;
  color: var(--fs-ink);
  margin: 0 0 0.5rem;
}

.empty-state p {
  margin: 0 0 1.25rem;
}

/* ---------- Newsletter / footer ---------- */

.newsletter-band {
  background: var(--fs-accent-soft);
  padding: 3.2rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-band::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2.2rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50% 40% 50% 40%;
  background:
    radial-gradient(circle at 30% 30%, #f8d4d6 0 28%, transparent 30%),
    radial-gradient(circle at 70% 45%, #e8a0a8 0 18%, transparent 20%),
    radial-gradient(circle at 48% 70%, #f3c4c6 0 22%, transparent 24%);
  opacity: 0.7;
  pointer-events: none;
}

.newsletter-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

.newsletter-copy {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.newsletter-icon {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: var(--fs-accent-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.newsletter-copy h2 {
  font-family: var(--fs-script);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 400;
  margin: 0 0 0.25rem;
  line-height: 1;
}

.newsletter-copy p {
  margin: 0;
  color: var(--fs-muted);
  max-width: 42ch;
}

.store-footer {
  margin-top: 0;
  padding: 3.2rem 0 2.2rem;
  border-top: 0;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
}

.footer-brand .store-logo {
  align-items: flex-start;
}

.footer-brand .logo-script {
  font-size: 1.85rem;
}

.footer-brand p {
  color: var(--fs-muted);
  max-width: 36ch;
  margin: 0.85rem 0 0;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--fs-radius);
  padding: 0.78rem 1rem;
  background: #fff;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--fs-accent);
  box-shadow: 0 0 0 4px rgba(229, 152, 155, 0.16);
}

.footer-col h4 {
  font-family: var(--fs-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.footer-col p {
  margin: 0 0 0.55rem;
}

.footer-col a {
  color: var(--fs-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--fs-accent-deep);
}

.footer-copy {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fs-border);
  color: var(--fs-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- Forms, panels, checkout ---------- */

.alert {
  border-radius: var(--fs-radius);
  padding: 0.9rem 1.05rem;
  margin: 0 0 1rem;
  border: 1px solid var(--fs-border);
  background: #fff;
  font-size: 0.95rem;
}

.alert-success {
  border-color: #c9e6d2;
  background: #f3fbf5;
  color: #245c38;
}

.alert-error {
  border-color: #f0c9c9;
  background: #fff5f5;
  color: #8b2e2e;
}

.store-form {
  display: grid;
  gap: 0.95rem;
}

.store-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fs-muted);
  margin-bottom: 0.32rem;
}

.store-form input,
.store-form select,
.store-form textarea {
  width: 100%;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  padding: 0.72rem 0.9rem;
  background: #fff;
  color: var(--fs-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-form textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0.15rem 0 0;
  color: var(--fs-ink);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.check-row input {
  width: auto;
  accent-color: var(--fs-accent);
}

[data-shipping-fields],
[data-new-shipping-fields],
[data-new-billing-fields] {
  display: grid;
  gap: 0.95rem;
}

[data-shipping-fields][hidden],
[data-new-shipping-fields][hidden],
[data-new-billing-fields][hidden],
[data-billing-section][hidden] {
  display: none !important;
}

[data-shipping-fields].is-synced input {
  background: #f7f4f4;
  cursor: default;
}

.checkout-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel .checkout-section-heading h3 {
  margin: 0;
}

.checkout-section-heading a {
  font-size: 0.82rem;
}

[data-billing-section] {
  display: grid;
  gap: 0.95rem;
}

.address-picker:has(.address-card-new input:checked) + [data-new-shipping-fields],
.address-picker:has(.address-card-new input:checked) + [data-new-billing-fields] {
  display: grid !important;
}

.check-row:has(#same_as_shipping:not(:checked)) + [data-billing-section] {
  display: grid !important;
}

.address-picker {
  display: grid;
  gap: 0.7rem;
}

.store-form .address-card {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  background: var(--fs-cream);
  color: var(--fs-ink);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store-form .address-card:hover,
.store-form .address-card:has(input:focus-visible) {
  border-color: var(--fs-accent-2);
}

.store-form .address-card:has(input:checked) {
  border-color: var(--fs-accent);
  background: var(--fs-accent-soft);
  box-shadow: var(--fs-shadow);
}

.store-form .address-card input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--fs-accent);
}

.address-card-body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.store-form .address-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  color: var(--fs-ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.address-card-badge {
  color: var(--fs-accent-deep);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.store-form .address-card-meta {
  margin: 0;
  color: var(--fs-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.store-form .address-card-new {
  border-style: dashed;
  background: #fff;
}

.checkout-layout,
.account-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  padding: 1.4rem;
  box-shadow: none;
}

.panel h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.prose-panel {
  max-width: 760px;
}

.prose-panel p {
  color: var(--fs-muted);
  margin: 0 0 1rem;
}

.prose-panel p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 1.15rem;
}

.line-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 0.95rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--fs-border);
  align-items: start;
}

.line-item:first-child {
  padding-top: 0;
}

.line-item:last-of-type {
  border-bottom: 0;
}

.line-item img {
  width: 76px;
  height: 96px;
  border-radius: var(--fs-radius-sm);
  background: var(--fs-soft);
  border: 1px solid var(--fs-border);
}

.line-item-meta {
  color: var(--fs-muted);
  font-size: 0.9rem;
}

.line-item a {
  text-decoration: none;
}

.qty-inline {
  margin-top: 0.55rem;
}

.qty-inline label {
  font-size: 0.78rem;
  color: var(--fs-muted);
}

.qty-inline input {
  width: 72px;
  margin-left: 0.35rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-sm);
  padding: 0.35rem 0.5rem;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  margin: 0.48rem 0;
  color: var(--fs-muted);
}

.totals-row.grand {
  color: var(--fs-ink);
  font-weight: 700;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--fs-border);
  font-size: 1.05rem;
}

.totals-coupon-code {
  color: var(--fs-accent-deep);
  font-weight: 600;
}

.checkout-coupons {
  display: grid;
  gap: 1rem;
}

.checkout-coupons > h3 {
  margin-bottom: 0;
}

.checkout-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid #c9e6d2;
  background: #f3fbf5;
  border-radius: var(--fs-radius);
}

.checkout-coupon-applied-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #245c38;
}

.checkout-coupon-applied-code {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fs-ink);
}

.checkout-coupon-applied-save {
  margin: 0.15rem 0 0;
  color: #245c38;
  font-size: 0.88rem;
}

.checkout-coupon-applied form {
  margin: 0;
  flex-shrink: 0;
}

.checkout-coupons-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fs-muted);
}

.checkout-coupons-hint {
  margin: -0.35rem 0 0;
  color: var(--fs-muted);
  font-size: 0.85rem;
}

.checkout-coupon-list {
  display: grid;
  gap: 0.7rem;
}

.checkout-coupon-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px dashed var(--fs-border);
  border-radius: var(--fs-radius);
  background: var(--fs-cream);
}

.checkout-coupon-card.is-applied {
  border-style: solid;
  border-color: var(--fs-accent);
  background: var(--fs-accent-soft);
}

.checkout-coupon-code {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-coupon-offer {
  margin: 0.12rem 0 0;
  color: var(--fs-accent-deep);
  font-weight: 600;
  font-size: 0.92rem;
}

.checkout-coupon-save {
  margin: 0.12rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--fs-ink);
}

.checkout-coupon-meta {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.1rem;
  color: var(--fs-muted);
  font-size: 0.82rem;
}

.checkout-coupon-card form {
  margin: 0;
}

.checkout-coupon-manual {
  padding-top: 0.85rem;
  border-top: 1px solid var(--fs-border);
}

.checkout-coupon-manual-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: end;
}

.checkout-coupon-manual-row .btn-store {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .checkout-coupon-applied,
  .checkout-coupon-card,
  .checkout-coupon-manual-row {
    grid-template-columns: 1fr;
  }

  .checkout-coupon-applied {
    display: grid;
  }

  .checkout-coupon-applied .btn-store,
  .checkout-coupon-card .btn-store,
  .checkout-coupon-manual-row .btn-store {
    width: 100%;
  }
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.account-nav a {
  text-decoration: none;
  color: var(--fs-muted);
  border: 1px solid var(--fs-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.account-nav a.active,
.account-nav a:hover {
  color: var(--fs-accent-deep);
  border-color: var(--fs-accent-2);
  background: var(--fs-accent-soft);
}

.quick-links p {
  margin: 0 0 0.65rem;
}

.quick-links a {
  color: var(--fs-muted);
  text-decoration: none;
}

.quick-links a:hover {
  color: var(--fs-accent-deep);
}

.page-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Pagination ---------- */

.store-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 1.75rem;
}

.page-btn {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--fs-radius);
  border: 1px solid var(--fs-border);
  background: #fff;
  color: var(--fs-ink);
  text-decoration: none;
  font-size: calc(0.88rem + 2px);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-btn:hover {
  border-color: var(--fs-accent-2);
  background: var(--fs-accent-soft);
}

.page-btn.is-current {
  background: var(--fs-accent);
  border-color: var(--fs-accent);
  color: #fff;
}

.page-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.page-ellipsis {
  padding: 0 0.35rem;
  color: var(--fs-muted);
}

.pagination-wrap nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.5rem;
}

.pagination-wrap nav > div {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}

.pagination-wrap a,
.pagination-wrap span[aria-current],
.pagination-wrap span.relative {
  min-height: 2.3rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  background: #fff;
  text-decoration: none;
  color: var(--fs-ink);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.pagination-wrap span[aria-current] span,
.pagination-wrap [aria-current="page"] {
  background: var(--fs-accent);
  color: #fff;
  border-color: var(--fs-accent);
  border-radius: var(--fs-radius);
}

/* ---------- Badge / toast ---------- */

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--fs-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  margin-left: 0.15rem;
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 5.6rem;
  z-index: 80;
  display: grid;
  gap: 0.6rem;
  width: min(360px, calc(100% - 2rem));
}

.toast {
  background: var(--fs-ink);
  color: #fff;
  padding: 0.9rem 1.05rem;
  border-radius: var(--fs-radius);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 14px 34px rgba(43, 36, 35, 0.18);
  font-size: 0.92rem;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-error { background: #8b2e2e; }
.toast-success { background: var(--fs-ink); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Virtual try-on ---------- */

body.vto-open,
body.nav-open {
  overflow: hidden;
}

.vto-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.vto-modal[hidden] {
  display: none !important;
}

.vto-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 36, 35, 0.45);
}

.vto-dialog {
  position: relative;
  width: min(520px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: min(92dvh, 760px);
  overflow: auto;
  background: var(--fs-cream);
  border: 1px solid var(--fs-border);
  border-radius: 0.7rem;
  box-shadow: 0 24px 60px rgba(43, 36, 35, 0.16);
}

.vto-dialog.is-moved {
  position: fixed;
  z-index: 1;
}

.vto-dialog.is-dragging {
  user-select: none;
  cursor: grabbing;
}

.vto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.85rem;
  background: linear-gradient(180deg, #fff, var(--fs-accent-soft));
  border-bottom: 1px solid var(--fs-border);
}

.vto-header[data-vto-drag] {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.vto-dialog.is-dragging .vto-header[data-vto-drag] {
  cursor: grabbing;
}

.vto-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fs-muted);
}

.vto-header h2 {
  margin: 0.15rem 0 0;
  font-family: var(--fs-serif);
  font-size: 1.7rem;
}

.vto-icon-btn {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fs-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  touch-action: manipulation;
  flex-shrink: 0;
}

.vto-icon-btn:hover {
  background: var(--fs-soft);
}

.vto-icon-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.vto-body {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 1rem;
}

.vto-dress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  background: var(--fs-soft);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
}

.vto-dress img {
  width: 52px;
  height: 68px;
  object-fit: contain;
  border-radius: var(--fs-radius-sm);
  background: #fff;
}

.vto-dress span {
  font-weight: 600;
}

.vto-form {
  display: grid;
  gap: 0.85rem;
}

.vto-upload {
  display: grid;
  gap: 0.45rem;
  border: 1px dashed var(--fs-border);
  border-radius: var(--fs-radius);
  padding: 1rem;
  background: #fff;
  cursor: pointer;
}

.vto-upload input {
  width: 100%;
}

.vto-upload-copy {
  display: grid;
  gap: 0.2rem;
  color: var(--fs-muted);
  font-size: 0.9rem;
}

.vto-upload-copy strong {
  color: var(--fs-ink);
  font-size: 0.98rem;
}

.vto-customer-preview img,
.vto-result img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: var(--fs-radius);
  background: var(--fs-soft);
  border: 1px solid var(--fs-border);
}

.vto-hint,
.vto-loading p,
.vto-error p {
  margin: 0;
  color: var(--fs-muted);
  font-size: 0.92rem;
}

.vto-loading {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.vto-loading .form-spinner {
  width: 1.6rem;
  height: 1.6rem;
  border-width: 3px;
  color: var(--fs-accent);
}

.vto-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.vto-error p {
  color: #8b2e2e;
}

/* Desktop-only "open on mobile" notice (mobile-notice.js) */
.rs-mobile-notice { display: none; }
@media (pointer: fine) and (min-width: 641px) and (min-height: 501px) {
  .rs-mobile-notice {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 85;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  }
  .rs-mobile-notice[hidden] { display: none; }
}
.rs-mobile-notice-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.rs-mobile-notice-close:hover { background: rgba(255, 255, 255, .16); }
.rs-mobile-notice-close svg { width: 16px; height: 16px; }

/* Full-screen zoom for try-on results (vto-image-zoom.js) */
.vto-zoom {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: #111;
}
.vto-zoom[hidden] { display: none !important; }
.vto-zoom-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.vto-zoom-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.vto-zoom-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #1a1a1a;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.vto-zoom-btn svg { width: 22px; height: 22px; }
.vto-zoom-btn:disabled { opacity: .45; cursor: default; }
.vto-zoom-close { position: absolute; top: 12px; right: 12px; }
.vto-zoom-controls {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}
/* Keep in step with zoomEnabled in vto-image-zoom.js */
@media (pointer: coarse), (max-width: 640px), (max-height: 500px) {
  [data-vto-result-image],
  .chatbot-msg-vto .chatbot-msg-image { cursor: zoom-in; }
  .vto-result .vto-actions::before,
  .chatbot-msg-vto:has(.chatbot-msg-image) .chatbot-msg-text::after {
    content: "Tap image to zoom";
    display: block;
    flex-basis: 100%;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--fs-muted);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .shop-layout .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .product-grid,
  .product-grid-home,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .value-bar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }
}

@media (max-width: 1000px) {
  .product-grid,
  .product-grid-home,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-layout,
  .pdp,
  .footer-grid,
  .checkout-layout,
  .account-layout,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .filters,
  .pdp-info {
    position: static;
  }

  .hero {
    min-height: min(62vh, 520px);
  }

  .hero-content {
    margin: 3rem auto 2.6rem;
  }

  .newsletter-band-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .section-head-script .section-text-link {
    position: static;
    transform: none;
    margin-top: 0.35rem;
  }

  .section-head-script {
    flex-direction: column;
    min-height: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --fs-header-h: 4.7rem;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
  }

  .store-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: 4.2rem;
    padding: 0.7rem 0;
    gap: 1rem;
  }

  .store-header-start {
    grid-column: 2;
    justify-content: center;
    gap: 0;
  }

  .store-logo {
    align-items: center;
  }

  .store-nav-utility {
    grid-column: 3;
    margin-left: 0;
  }

  .store-header-main {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.85rem 1rem 1.15rem;
    background: rgba(255, 253, 252, 0.98);
    border-bottom: 1px solid var(--fs-border);
    box-shadow: var(--fs-shadow-hover);
  }

  .store-header-main.is-open {
    display: flex;
  }

  .store-nav-primary {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  .store-nav-primary a {
    padding: 0.75rem 0.85rem;
  }

  .logo-script {
    font-size: 1.7rem;
  }

  .logo-serif {
    font-size: 0.68rem;
    letter-spacing: 0.32em;
  }

  .announce-bar-inner {
    gap: 1.2rem;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .announce-bar-inner::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .store-container,
  .hero-content,
  .footer-copy {
    width: min(1180px, calc(100% - 1.4rem));
  }

  .section {
    padding: 3.1rem 0;
  }

  .product-grid,
  .product-grid-home {
    gap: 1.1rem 0.75rem;
    align-items: start;
  }

  .product-card h3 {
    font-size: 0.98rem;
  }

  .product-actions .btn-store {
    flex: 1 1 auto;
    padding: 0.5rem 0.55rem;
    font-size: 0.6rem;
  }

  .vto-modal {
    padding: 0.5rem;
  }

  .vto-dialog {
    width: min(520px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    max-height: min(90dvh, 100%);
  }

  .brand-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pdp-specs {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: 2.3rem;
  }

  .hero {
    min-height: 78vw;
    align-items: end;
  }

  .value-bar-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .line-item {
    grid-template-columns: 64px 1fr;
  }

  .line-item > div:last-child {
    grid-column: 2;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .icon-link {
    width: 2.1rem;
    height: 2.1rem;
  }

  .announce-bar span:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 420px) {
  .logo-serif {
    letter-spacing: 0.22em;
  }
}

/* Shared form styles (moved from form-shared.css) */
/* Shared form UX: required indicators + submit loading state */

.required-mark {
  color: #dc2626;
  font-weight: 700;
  margin-left: 0.2em;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[x-cloak] {
  display: none !important;
}

button.is-submitting,
input[type="submit"].is-submitting,
input[type="button"].is-submitting {
  cursor: wait;
  opacity: 0.85;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-spinner {
  width: 0.95em;
  height: 0.95em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  display: inline-block;
  vertical-align: -0.1em;
  animation: form-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.form-loading-text {
  line-height: 1;
}

@keyframes form-spin {
  to {
    transform: rotate(360deg);
  }
}

.password-req {
  margin-top: 0.7rem;
}

.password-req-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.password-req-list {
  margin: 0;
  padding: 0.75rem 0.85rem;
  list-style: none;
  border: 1px solid var(--color-border, #f0dfe1);
  border-radius: 0.6rem;
  background: var(--color-sand, #fdf6f6);
}

.password-req-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #1a1a1a;
}

.password-req-item + .password-req-item {
  margin-top: 0.32rem;
}

.password-req-item.is-met,
.password-req-item.is-unmet {
  color: #1a1a1a;
}

.password-req-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.12rem;
  color: #a51c30;
}

.password-req-message {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #be123c;
}

.password-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.password-control {
  position: relative;
}

.password-control .auth-input,
.password-control .form-control {
  padding-right: 2.75rem;
}

.password-control.has-icon .auth-input,
.password-control.has-icon .form-control {
  padding-left: 2.75rem;
}

.password-leading {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-left: 0.9rem;
  color: #9a8a8a;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 0;
  background: transparent;
  color: #9a8a8a;
  cursor: pointer;
}

.password-toggle:hover {
  color: #7a1f38;
}

.password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.password-field-head .auth-label {
  margin-bottom: 0;
}

.password-suggest-trigger {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: calc(0.75rem + 2px);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-accent, #e5989b);
  cursor: pointer;
}

.password-suggest-trigger:hover {
  text-decoration: underline;
}

.password-suggest {
  margin-top: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px dashed var(--color-border, #f0dfe1);
  border-radius: 0.6rem;
  background: var(--color-sand, #fdf6f6);
}

.password-suggest-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted, #8a7376);
}

.password-suggest-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-suggest-value {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  background: #fff;
  border: 1px solid var(--color-border, #f0dfe1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-ink, #2b2423);
  word-break: break-all;
  user-select: all;
}

.password-suggest-copy {
  flex-shrink: 0;
  border: 1px solid var(--color-accent, #e5989b);
  background: #fff;
  color: var(--color-ink, #2b2423);
  border-radius: 0.4rem;
  padding: 0.4rem 0.52rem;
  font-size: calc(0.72rem + 2px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.password-suggest-copy:hover {
  background: var(--color-accent-soft, #fdeff2);
}

.password-suggest-copy.is-copied {
  border-color: #047857;
  color: #047857;
}

/* Chatbot widget (moved from chatbot.css) */
.chatbot {
  position: relative;
  z-index: 90;
}

.chatbot-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--fs-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(229, 152, 155, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  z-index: 91;
}

.chatbot-launcher:hover,
.chatbot-launcher:focus-visible {
  transform: translateY(-2px);
  background: var(--fs-accent-hover, #d4848c);
  box-shadow: 0 18px 40px rgba(229, 152, 155, 0.4);
}

.chatbot-launcher-icon {
  width: 1.55rem;
  height: 1.55rem;
}

.chatbot-launcher-close,
.chatbot.is-open .chatbot-launcher-open {
  display: none;
}

.chatbot.is-open .chatbot-launcher-close {
  display: block;
}

.chatbot-window {
  position: fixed;
  right: 1.25rem;
  bottom: 5.4rem;
  width: 400px;
  height: 600px;
  max-height: calc(100dvh - 7rem);
  display: flex;
  flex-direction: column;
  background: var(--fs-cream, #fffdfc);
  border: 1px solid var(--fs-border);
  border-radius: 0.7rem;
  box-shadow: 0 24px 60px rgba(43, 36, 35, 0.14);
  overflow: hidden;
  z-index: 91;
}

.chatbot-window[hidden] {
  display: none !important;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.85rem;
  background: linear-gradient(180deg, #fff, var(--fs-accent-soft, #fdeff2));
  border-bottom: 1px solid var(--fs-border);
}

.chatbot-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fs-muted);
}

.chatbot-header h2 {
  margin: 0.1rem 0 0;
  font-family: var(--fs-serif, "Playfair Display", Georgia, serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chatbot-text-btn,
.chatbot-icon-btn {
  border: 1px solid var(--fs-border);
  background: #fff;
  color: var(--fs-muted);
  cursor: pointer;
}

.chatbot-text-btn {
  border-radius: 999px;
  padding: 0.35rem 0.45rem;
  font-size: calc(0.78rem + 2px);
    line-height: 16px;
  font-weight: 600;
}

.chatbot-icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.chatbot-icon-btn svg {
  width: 1rem;
  height: 1rem;
}

.chatbot-text-btn:hover,
.chatbot-icon-btn:hover {
  color: var(--fs-accent);
  border-color: #efc4c8;
  background: var(--fs-accent-soft, #fdeff2);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background:
    radial-gradient(circle at top right, rgba(229, 152, 155, 0.12), transparent 36%),
    var(--fs-cream, #fffdfc);
}

.chatbot-msg {
  max-width: 86%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chatbot-msg-user {
  align-self: flex-end;
  background: var(--fs-accent);
  color: #fff;
  border-bottom-right-radius: 0.35rem;
}

.chatbot-msg-assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--fs-border);
  color: var(--fs-ink);
  border-bottom-left-radius: 0.35rem;
}

.chatbot-msg-error {
  background: #fff5f5;
  border-color: #f0c9c9;
  color: #8b2e2e;
}

.chatbot-msg-thinking {
  color: var(--fs-muted);
  font-style: italic;
}

.chatbot-msg-text {
  display: block;
}

.chatbot-msg-has-products {
  max-width: 100%;
}

.chatbot-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.chatbot-product {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--fs-border);
  border-radius: 0.45rem;
}

.chatbot-product.is-selected {
  border-color: var(--fs-accent);
}

.chatbot-product:hover {
  border-color: #efc4c8;
}

.chatbot-product-media {
  display: block;
  color: inherit;
  text-decoration: none;
}

.chatbot-product img {
  width: 100%;
  height: 7.5rem;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f7f0ed;
}

.chatbot-product-body {
  padding: 0.45rem 0.5rem 0.55rem;
}

.chatbot-product-name {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
  text-decoration: none;
}

a.chatbot-product-name:hover {
  color: var(--fs-accent);
}

.chatbot-product-price {
  margin: 0;
  font-size: 0.75rem;
  color: var(--fs-accent);
}

.chatbot-product-meta,
.chatbot-product-sizes,
.chatbot-product-stock,
.chatbot-product-desc {
  margin: 0.18rem 0 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--fs-muted);
}

.chatbot-product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chatbot-listing-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fs-accent);
  text-decoration: none;
}

.chatbot-listing-link:hover {
  text-decoration: underline;
}

.chatbot-product:has(.chatbot-last-tryon) {
  position: relative;
}

.chatbot-last-tryon {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--fs-border);
  border-radius: 50%;
  background: #fff;
  color: var(--fs-accent);
  cursor: pointer;
}

.chatbot-last-tryon:hover {
  border-color: #efc4c8;
  background: var(--fs-accent-soft, #fdeff2);
}

.chatbot-last-tryon svg {
  width: 1.05rem;
  height: 1.05rem;
}

@media (max-width: 640px) {
  .chatbot-last-tryon {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.chatbot-product-actions {
  margin-top: 0.45rem;
}

.chatbot-try-on,
.chatbot-show-more {
  border: 1px solid var(--fs-border);
  background: #fff;
  color: var(--fs-accent);
  font-weight: 600;
  cursor: pointer;
}

.chatbot-try-on {
  width: 100%;
  border-radius: 0.35rem;
  padding: 0.32rem 0.45rem;
  font-size: 0.72rem;
}

.chatbot-show-more {
  display: inline-block;
  margin-top: 0.55rem;
  margin-right: 0.5rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

.chatbot-try-on:hover,
.chatbot-show-more:hover {
  border-color: #efc4c8;
  background: var(--fs-accent-soft, #fdeff2);
}

.chatbot-msg-vto .chatbot-msg-image {
  max-width: 100%;
  max-height: 16rem;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.9rem 0.75rem;
}

.chatbot-suggestions button {
  border: 1px solid var(--fs-border);
  background: #fff;
  color: var(--fs-ink);
  border-radius: 999px;
  padding: 0.38rem 0.4rem;
  font-size: calc(0.78rem + 2px);
  cursor: pointer;
}

.chatbot-suggestions button:hover:not(:disabled),
.chatbot-suggestions button:focus-visible {
  border-color: #efc4c8;
  background: var(--fs-accent-soft, #fdeff2);
  color: var(--fs-accent);
}

.chatbot-suggestions button:disabled,
.chatbot-form textarea:disabled,
.chatbot-send:disabled,
.chatbot-attach:disabled,
.chatbot-image-preview-actions button:disabled,
.chatbot-try-on:disabled,
.chatbot-show-more:disabled {
  cursor: wait;
  opacity: 0.7;
}

.chatbot-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem 0.9rem;
  border-top: 1px solid var(--fs-border);
  background: #fff;
}

.chatbot-form-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
}

.chatbot-form textarea {
  flex: 1;
  resize: none;
  min-height: 2.6rem;
  max-height: 7rem;
  border: 1px solid var(--fs-border);
  border-radius: 0.35rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: #fff;
}

.chatbot-form textarea:focus {
  outline: 2px solid #efc4c8;
  outline-offset: 1px;
}

.chatbot-attach {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
}

.chatbot-send {
  padding: 0.65rem 0.85rem;
  flex-shrink: 0;
}

/* Message field: attach, text and send share one rounded bar. No visible scrollbar; the field grows as you type. */
.chatbot-form-row {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--fs-border);
  border-radius: 25px;
  background: #fbf8f6;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.chatbot-form-row:has(textarea:focus) {
  border-color: #d99aa4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(165, 28, 48, .1);
}
.chatbot-form-row textarea {
  min-width: 0;
  min-height: 38px;
  max-height: 120px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: 8px 4px;
  font-size: 15px;
  line-height: 22px;
  background: transparent;
  color: var(--fs-ink);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chatbot-form-row textarea::-webkit-scrollbar { display: none; }
.chatbot-form-row textarea:focus,
.chatbot-form-row textarea:focus-visible { outline: none; }
.chatbot-form-row textarea::placeholder {
  font-size: 14px;
  color: #8a8380;
  opacity: 1;
  white-space: nowrap;
}
.chatbot-form-row .chatbot-attach {
  width: 38px;
  height: 38px;
}
.chatbot-form-row .chatbot-attach:not(:hover) {
  border-color: transparent;
  background: transparent;
}
.chatbot-form-row .chatbot-send.btn-store {
  min-height: 38px;
  padding: 8px 16px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  /* 16px stops iOS Safari zooming the page when the field is focused. */
  .chatbot-form-row textarea { font-size: 16px; }
}

.chatbot-image-preview {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--fs-border);
  border-radius: 0.45rem;
  background: var(--fs-accent-soft, #fdeff2);
}

.chatbot-image-preview[hidden] {
  display: none !important;
}

.chatbot-image-preview img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--fs-border);
  background: #fff;
  flex-shrink: 0;
}

.chatbot-image-preview-meta {
  min-width: 0;
  flex: 1;
}

.chatbot-image-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fs-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatbot-image-preview-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.chatbot-form-error {
  margin: 0;
  font-size: 0.78rem;
  color: #8b2e2e;
}

.chatbot-form-error[hidden] {
  display: none !important;
}

.chatbot-msg-image {
  display: block;
  max-width: 10rem;
  max-height: 10rem;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 0.35rem;
  margin-bottom: 0.45rem;
}

.chatbot-msg-user .chatbot-msg-image {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.toast-stack {
  bottom: 5.5rem;
}

@media (max-width: 640px) {
  .chatbot-launcher {
    right: 1rem;
    bottom: 1rem;
  }

  .chatbot-window {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    right: 0;
    bottom: 0;
  }
}

/* Desktop and tablet: keep the window below the sticky header. */
@media (min-width: 641px) {
  .chatbot-window {
    width: clamp(340px, 32vw, 400px);
    max-height: calc(100dvh - 5.4rem - 144px);
  }
}

/* Phones: full-screen chat fitted to the visible area (chatbot.js sets the variables) */
@media (max-width: 640px), (max-height: 500px) {
  body:has(.chatbot.is-open) { overflow: hidden; }
  .chatbot-window {
    top: var(--chatbot-viewport-top, 0);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--chatbot-viewport-height, 100dvh);
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .chatbot-header { padding: 0.5rem 0.75rem; }
  .chatbot-header h2 { font-size: 1.15rem; white-space: nowrap; }
  .chatbot-header-actions { flex-shrink: 0; }
  .chatbot-header-actions .chatbot-text-btn { min-height: 40px; padding: 0.35rem 0.75rem; white-space: nowrap; }
  .chatbot-header-actions .chatbot-icon-btn { width: 40px; height: 40px; }
  .chatbot-messages { padding: 0.75rem 0.6rem; overscroll-behavior: contain; }
  .chatbot-msg-has-products { width: 100%; padding: 0.6rem 0.5rem; }
  .chatbot-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chatbot-product img { height: auto; aspect-ratio: 3 / 4; }
  .chatbot-product-name, .chatbot-product-price { font-size: 0.85rem; }
  .chatbot-product-meta, .chatbot-product-sizes, .chatbot-product-stock, .chatbot-product-desc { font-size: 0.75rem; }
  .chatbot-try-on, .chatbot-show-more { min-height: 40px; font-size: 0.85rem; }
  .chatbot-form { padding: 0.5rem 0.6rem 0.6rem; }
}
@media (max-height: 500px) and (min-width: 641px) {
  .chatbot-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Style Assistant label: appears above the launcher on a 5s loop */
.chatbot-launcher-label {
  position: absolute;
  right: 0;
  bottom: calc(100% + 11px);
  padding: 7px 14px;
  border: 1px solid var(--fs-border);
  border-radius: 999px;
  background: linear-gradient(105deg, #fff 40%, #fbe3e7 50%, #fff 60%) 120% 0 / 300% 100% #fff;
  box-shadow: 0 8px 22px rgba(43, 36, 35, 0.18);
  color: #2b2423;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform-origin: calc(100% - 22px) 100%;
  display: grid;
  animation:
    chatbot-label-show 65s ease-in-out infinite,
    chatbot-label-shimmer 5s ease-in-out infinite;
}

/* Phrases share one grid cell and take turns, 5s each. */
.chatbot-launcher-phrase {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0;
  animation: chatbot-phrase-swap 15s ease-in-out infinite;
}

.chatbot-launcher-phrase:nth-child(2) {
  animation-delay: 5s;
}

.chatbot-launcher-phrase:nth-child(3) {
  animation-delay: 10s;
}

.chatbot-launcher-label::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -5px;
  width: 9px;
  height: 9px;
  background: #fff;
  border-right: 1px solid var(--fs-border);
  border-bottom: 1px solid var(--fs-border);
  transform: rotate(45deg);
}

.chatbot-launcher::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: chatbot-launcher-ring 5s ease-out infinite;
}

.chatbot-launcher-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: chatbot-spark-twinkle 5s ease-in-out infinite;
}

.chatbot.is-open .chatbot-launcher-label,
.chatbot.is-open .chatbot-launcher::before {
  display: none;
}

.chatbot-launcher:hover .chatbot-launcher-label,
.chatbot-launcher:focus-visible .chatbot-launcher-label {
  opacity: 1;
  transform: none;
  animation: none;
}

/* On screen for 60s, then hidden for 5s before the next round. */
@keyframes chatbot-label-show {
  0% { opacity: 0; transform: translateY(8px) scale(0.86); }
  0.8% { opacity: 1; transform: translateY(-2px) scale(1.03); }
  1.2%, 92.3% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(-5px); }
}

@keyframes chatbot-label-shimmer {
  0%, 10% { background-position: 120% 0; }
  45%, 100% { background-position: -20% 0; }
}

@keyframes chatbot-phrase-swap {
  0% { opacity: 0; transform: translateY(6px); }
  3%, 30% { opacity: 1; transform: none; }
  33.33%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes chatbot-launcher-ring {
  0% { box-shadow: 0 0 0 0 rgba(229, 152, 155, 0.6); }
  22%, 100% { box-shadow: 0 0 0 14px rgba(229, 152, 155, 0); }
}

@keyframes chatbot-spark-twinkle {
  0%, 22%, 100% { transform: none; opacity: 1; }
  8% { transform: scale(1.45) rotate(45deg); opacity: 0.75; }
}

@keyframes chatbot-label-fade {
  0%, 93%, 100% { opacity: 0; }
  0.8%, 92.3% { opacity: 1; }
}

@keyframes chatbot-phrase-fade {
  0%, 33.33%, 100% { opacity: 0; }
  3%, 30% { opacity: 1; }
}

/* Reduced motion: same timing and wording, using plain fades. */
@media (prefers-reduced-motion: reduce) {
  .chatbot-launcher-label {
    animation: chatbot-label-fade 65s linear infinite;
  }

  .chatbot-launcher-phrase {
    animation-name: chatbot-phrase-fade;
  }

  .chatbot-launcher::before,
  .chatbot-launcher-spark {
    animation: none;
  }
}
