/* Suran — Components: Kiokids-style header / footer / UI */

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition:
    background var(--dur-med) var(--ease-out),
    color var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn--primary {
  background: var(--color-pill);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-nav-soft);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
}

.btn--outline:hover {
  background: var(--color-tag);
  border-color: transparent;
}

.btn--light {
  background: #fff;
  color: var(--color-pill);
}

/* ─── Announcement bar (Kiokids-style) ─── */
.announce {
  height: var(--announce-h);
  background: var(--color-announce);
  color: var(--color-announce-text);
  overflow: hidden;
  position: relative;
  z-index: calc(var(--z-header) + 1);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.announce__track {
  position: absolute;
  white-space: nowrap;
  line-height: var(--announce-h);
  animation: announce-marquee 35s linear infinite;
}

.announce__track span {
  margin-inline-end: 3rem;
}

@keyframes announce-marquee {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100vw);
  }
}

[dir="rtl"] .announce__track {
  animation-name: announce-marquee-rtl;
}

@keyframes announce-marquee-rtl {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100vw);
  }
}

/* ─── Header — solid by default; floating only on home ─── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--color-bg);
  padding: 0 0 0.65rem;
  transition: background var(--dur-med) var(--ease-out);
}

body.is-home .site-header {
  position: absolute;
  top: var(--announce-h);
  background: transparent;
  padding: 0 0 0.65rem;
}

@media (max-width: 991px) {
  .site-header {
    padding: 0.55rem 0;
    position: sticky;
    top: 0;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(91, 27, 42, 0.06);
  }

  body.is-home .site-header {
    top: 0;
    position: sticky;
    background: var(--color-bg);
    padding: 0.55rem 0;
  }
}

body.is-home .site-header.is-scrolled {
  position: fixed;
  top: 0;
  background: linear-gradient(
    180deg,
    #fff9f4 0%,
    rgba(255, 249, 244, 0.96) 55%,
    rgba(255, 249, 244, 0.7) 85%,
    rgba(255, 249, 244, 0) 100%
  );
  padding-top: 0;
  padding-bottom: 1.25rem;
}

body.is-home .site-header.is-scrolled .nav-pill {
  margin-top: 0;
  min-height: 56px;
  padding-top: 0.55rem;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex-shrink: 0;
  justify-self: start;
  margin-top: 0.55rem;
}

.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name strong {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--color-burgundy);
  letter-spacing: -0.02em;
}

.brand__name span {
  margin-top: 0.25rem;
  font-family: var(--font-latin);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
}

@media (max-width: 640px) {
  .brand__name span {
    display: none;
  }
}

/* Nav capsule — merges into announce as one burgundy piece */
.nav-pill {
  display: none;
  align-items: center;
  gap: 0.85rem;
  width: max-content;
  max-width: min(1100px, calc(100vw - 12rem));
  min-height: calc(56px + var(--announce-h));
  padding: calc(var(--announce-h) + 0.35rem) 1.35rem 0.75rem;
  margin-inline: auto;
  margin-top: calc(-1 * var(--announce-h));
  justify-self: center;
  background: var(--color-announce);
  border-radius: 0 0 128px 128px;
  box-shadow: 0 14px 28px rgba(91, 27, 42, 0.2);
  position: relative;
  z-index: calc(var(--z-header) + 2);
}

.nav-pill__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.55rem, 0.9vw, 0.95rem);
}

.nav-pill__links > a,
.nav-pill__trigger {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
  opacity: 0.95;
  transition: color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  padding: 0.25rem 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  white-space: nowrap;
  flex: 0 0 auto;
  text-align: center;
}

.nav-pill__links > a:hover,
.nav-pill__links > a[aria-current="page"],
.nav-pill__trigger:hover,
.nav-item.is-open > .nav-pill__trigger {
  opacity: 1;
  color: #e8d5c0;
}

/* مجله — محتوایی، نه دسته‌بندی محصول: چیپ متمایز با جداکننده */
.nav-pill__links > a.nav-pill__mag {
  position: relative;
  margin-inline-start: 0.85rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(232, 213, 192, 0.5);
  border-radius: var(--radius-pill);
  color: #e8d5c0;
  opacity: 1;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.nav-pill__links > a.nav-pill__mag::before {
  content: "";
  position: absolute;
  inset-inline-start: -0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 15px;
  background: rgba(255, 249, 244, 0.22);
}

.nav-pill__links > a.nav-pill__mag:hover,
.nav-pill__links > a.nav-pill__mag[aria-current="page"] {
  color: #fff;
  background: rgba(232, 213, 192, 0.16);
  border-color: rgba(232, 213, 192, 0.8);
}

.nav-pill__chevron {
  width: 9px;
  height: 9px;
  opacity: 0.75;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-item.is-open > .nav-pill__trigger .nav-pill__chevron {
  transform: rotate(180deg);
}

.nav-item {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  right: auto;
  min-width: 200px;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(40, 20, 24, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    visibility var(--dur-fast);
  z-index: 40;
}

.nav-item.is-open > .nav-dropdown,
.nav-item:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  color: var(--color-ink);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  flex: none;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
  justify-self: end;
  margin-top: 0.55rem;
}

.icon-round {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 100px;
  background: var(--color-pill);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.icon-round:hover {
  background: var(--color-nav-soft);
  transform: translateY(-1px);
}

.icon-round__badge {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-pill);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(40, 20, 24, 0.18);
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-pill);
  color: #fff;
  display: grid;
  place-items: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

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

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

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

@media (min-width: 1100px) {
  .nav-pill {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1280px) {
  .nav-pill {
    min-height: calc(60px + var(--announce-h));
    padding: calc(var(--announce-h) + 0.4rem) 2rem 0.9rem;
    gap: 1.25rem;
  }

  body.is-home .site-header.is-scrolled .nav-pill {
    min-height: 60px;
    padding-top: 0.65rem;
  }

  .nav-pill__links {
    gap: 1.35rem;
  }

  .nav-pill__links > a,
  .nav-pill__trigger {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

/* Mobile header: one row — سبد+منو چپ | لوگو راست */
@media (max-width: 1099px) {
  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 52px;
    direction: rtl;
  }

  .nav-pill {
    display: none !important;
  }

  .brand {
    order: 1;
    margin-top: 0;
    justify-self: unset;
    align-items: center;
  }

  .header-actions {
    order: 2;
    margin-top: 0;
    justify-self: unset;
    align-items: center;
    gap: 0.35rem;
  }

  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .brand__name strong {
    font-size: 1.2rem;
  }

  .icon-round,
  .nav-toggle {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 720px) {
  .header-actions > .icon-round:not(.icon-round--cart) {
    display: none;
  }

  .announce {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .brand__name span {
    display: none;
  }

  .icon-round,
  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}

/* Mobile drawer — luxury panel */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) - 1);
  background: rgba(47, 45, 60, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), visibility var(--dur-med);
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(100%, 22rem);
  z-index: var(--z-overlay);
  background: #fffdfb;
  box-shadow: 12px 0 40px rgba(47, 45, 60, 0.18);
  transform: translate3d(-105%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[dir="rtl"] .mobile-nav {
  inset-inline-start: auto;
  inset-inline-end: 0;
  transform: translate3d(105%, 0, 0);
  box-shadow: -12px 0 40px rgba(47, 45, 60, 0.18);
}

.mobile-nav.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(91, 27, 42, 0.1);
  background: linear-gradient(180deg, rgba(91, 27, 42, 0.04), transparent);
}

.mobile-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--color-burgundy);
  font-weight: 700;
  font-size: 1.15rem;
}

.mobile-nav__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.mobile-nav__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(91, 27, 42, 0.08);
  color: var(--color-burgundy);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav__close:hover {
  background: rgba(91, 27, 42, 0.14);
}

.mobile-nav__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.15rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__label {
  margin: 0.85rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-gold);
}

.mobile-nav__label:first-child {
  margin-top: 0;
}

.mobile-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.mobile-nav__grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(91, 27, 42, 0.04);
  border: 1px solid rgba(91, 27, 42, 0.08);
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.mobile-nav__grid a:hover {
  background: rgba(91, 27, 42, 0.08);
  border-color: rgba(91, 27, 42, 0.16);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-nav__list > a {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-burgundy);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 27, 42, 0.08);
}

.mobile-acc {
  margin: 0.35rem 0 0.65rem;
  border: 1px solid rgba(91, 27, 42, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.mobile-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-burgundy);
  background: rgba(91, 27, 42, 0.03);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: start;
}

.mobile-acc__panel {
  display: none;
  flex-direction: column;
  padding: 0.35rem 0.5rem 0.65rem;
  gap: 0.1rem;
  border-top: 1px solid rgba(91, 27, 42, 0.08);
}

.mobile-acc.is-open > .mobile-acc__panel {
  display: flex;
}

.mobile-acc__panel a {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  border-radius: 10px;
}

.mobile-acc__panel a:hover {
  background: rgba(91, 27, 42, 0.05);
}

.mobile-acc.is-open > .mobile-acc__btn .nav-pill__chevron {
  transform: rotate(180deg);
}

.mobile-nav__foot {
  padding: 1rem 1.15rem calc(1rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(91, 27, 42, 0.1);
  background: #fff;
  display: grid;
  gap: 0.75rem;
}

.mobile-nav__cta {
  width: 100%;
  min-height: 46px;
  justify-content: center;
}

.mobile-nav__utils {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.mobile-nav__utils a {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
}

.mobile-nav__utils a:hover {
  color: var(--color-burgundy);
}

body.nav-open {
  overflow: hidden;
}

/* Hamburger → close when open */
.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  transition: transform var(--dur-fast) var(--ease-out), top var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

/* ─── Section titles with star accents (Kiokids) ─── */
.section {
  padding-block: var(--space-7);
}

.section--tight {
  padding-block: var(--space-4) var(--space-7);
}

.page-hero--shop + .section--tight {
  padding-top: var(--space-3);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-title__text {
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-weight: 700;
  color: var(--color-ink);
  flex-shrink: 1;
  white-space: normal;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .section-title__text {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.section-title__line {
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: var(--color-line-strong);
  position: relative;
}

.section-title__line::after {
  content: "✦";
  position: absolute;
  top: 50%;
  inset-inline-end: -0.15rem;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--color-pill);
}

.section-title__line--start::after {
  inset-inline-end: auto;
  inset-inline-start: -0.15rem;
}

.section__lead {
  text-align: center;
  max-width: 40rem;
  margin: -1rem auto var(--space-6);
  color: var(--color-text-muted);
}

/* ─── Product cards ─── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product card — Suran lux (canonical across site; match homepage) */
.product-card {
  --pc-bg: var(--color-primary);
  --pc-pad: 10px;
  --pc-radius: 20px;
  --pc-inner-r: 0;
  --pc-cat-r: 15px;
  --pc-accent: #fff9f4;
  --pc-row-gap: 0.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-rows: auto auto auto auto auto;
  column-gap: 1rem;
  row-gap: var(--pc-row-gap);
  align-content: start;
  height: 100%;
  min-height: 100%;
  padding: 0 0 var(--pc-pad);
  border: 0;
  border-radius: var(--pc-radius);
  background: var(--pc-bg);
  color: #fff9f4;
  overflow: hidden;
  box-shadow: 0 12px 28px -12px rgba(91, 27, 42, 0.38);
  transition: box-shadow var(--dur-med) var(--ease-out);
}

.product-card:hover {
  box-shadow: 0 16px 34px -12px rgba(91, 27, 42, 0.48);
}

.product-card__media {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}

.product-card__media img,
.product-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 0;
  box-sizing: border-box;
}

.product-card__placeholder {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--color-text-subtle);
  font-size: var(--fs-caption);
  font-weight: 600;
}

/* Category notch — top-left into white photo */
.product-card__cat {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 3;
  justify-self: left;
  align-self: start;
  position: relative;
  max-width: calc(100% - 3rem);
  min-height: calc(var(--pc-cat-r) * 2);
  display: grid;
  align-content: center;
  padding: 0.7em 1.2em;
  border-bottom-right-radius: var(--pc-cat-r);
  background-color: var(--pc-bg);
  color: rgba(255, 249, 244, 0.95);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.18));
}

.product-card__cat::before,
.product-card__cat::after {
  content: "";
  position: absolute;
  width: var(--pc-cat-r);
  height: var(--pc-cat-r);
  background-color: inherit;
  mask-image: radial-gradient(
    circle at 100% 100%,
    transparent var(--pc-cat-r),
    #000 calc(var(--pc-cat-r) + 1px)
  );
  -webkit-mask-image: radial-gradient(
    circle at 100% 100%,
    transparent var(--pc-cat-r),
    #000 calc(var(--pc-cat-r) + 1px)
  );
  pointer-events: none;
}

.product-card__cat::before {
  top: 0;
  left: 100%;
}

.product-card__cat::after {
  top: 100%;
  left: 0;
}

/* Default discount chip */
.product-card__off {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  left: auto;
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 168, 0.8);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 249, 244, 0.2), transparent 55%),
    linear-gradient(155deg, #6b2435 0%, var(--color-primary) 42%, #3f121c 100%);
  color: #fff9f4;
  text-align: center;
  line-height: 1.05;
  box-shadow:
    0 0 0 3px rgba(91, 27, 42, 0.1),
    0 8px 18px rgba(91, 27, 42, 0.32),
    inset 0 1px 0 rgba(255, 249, 244, 0.2);
}

.product-card__off b,
.product-card__off strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #e8d5a8;
}

.product-card__off small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 249, 244, 0.88);
}

/*
 * Sale badge — mirrored category notch (top-right)
 * Used on homepage wonder + any product-card--sale
 */
.product-card--sale .product-card__off {
  top: 0;
  right: 0;
  left: auto;
  min-width: 0;
  min-height: calc(var(--pc-cat-r) * 2);
  padding: 0.7em 1.15em 0.8em;
  border: 0;
  border-radius: 0;
  border-bottom-left-radius: var(--pc-cat-r);
  background: var(--pc-bg);
  box-shadow: none;
  filter: drop-shadow(-2px 3px 4px rgba(0, 0, 0, 0.18));
}

.product-card--sale .product-card__off::before,
.product-card--sale .product-card__off::after {
  content: "";
  position: absolute;
  width: var(--pc-cat-r);
  height: var(--pc-cat-r);
  background-color: inherit;
  mask-image: radial-gradient(
    circle at 0% 100%,
    transparent var(--pc-cat-r),
    #000 calc(var(--pc-cat-r) + 1px)
  );
  -webkit-mask-image: radial-gradient(
    circle at 0% 100%,
    transparent var(--pc-cat-r),
    #000 calc(var(--pc-cat-r) + 1px)
  );
  pointer-events: none;
}

.product-card--sale .product-card__off::before {
  top: 0;
  right: 100%;
}

.product-card--sale .product-card__off::after {
  top: 100%;
  right: 0;
}

.product-card--sale .product-card__off b,
.product-card--sale .product-card__off strong {
  font-size: 1.05rem;
  color: #e8d5a8;
}

.product-card--sale .product-card__off small {
  margin-top: 0.18rem;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(255, 249, 244, 0.88);
}

.product-card__title {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  margin: 0;
  margin-inline: var(--pc-pad);
  padding-block: 0.45rem 0.1rem;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-align: center;
}

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

.product-card__title a:hover {
  color: #e8d5a8;
}

.product-card__price {
  grid-column: 1 / -1;
  grid-row: 4;
  place-self: stretch;
  direction: ltr;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin-inline: var(--pc-pad);
  margin-block: 0.2rem 0.45rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff9f4;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: center;
}

.product-card--sale .product-card__price {
  background: transparent;
  color: #fff9f4;
}

.product-card__price-old {
  color: rgba(255, 249, 244, 0.78);
  opacity: 1;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255, 249, 244, 0.55);
}

.product-card--sale .product-card__price > span:not(.product-card__price-old) {
  font-size: 0.98rem;
  font-weight: 800;
  color: #e8d5a8;
  letter-spacing: -0.01em;
}

.product-card__desc,
.product-card__tags {
  display: none;
}

.product-card__buy {
  grid-column: 1 / -1;
  grid-row: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: auto;
  margin-inline: var(--pc-pad);
  margin-top: 0;
  min-height: 0;
  padding: 0.65em 0.75em;
  border: 0;
  border-radius: 999px;
  background: #fff9f4;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.product-card__buy:hover {
  background: #e8d5a8;
  color: var(--color-burgundy-deep, #3f121c);
}

.product-card__buy svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.product-card__body,
.product-card__top,
.product-card__meta {
  display: contents;
}

@media (prefers-reduced-motion: reduce) {
  .product-card {
    transition: none;
  }
}

/* ─── Footer — burgundy atelier, balanced space ─── */
.site-footer {
  position: relative;
  margin-top: var(--space-8);
  background:
    linear-gradient(180deg, rgba(91, 27, 42, 0.06) 0%, rgba(91, 27, 42, 0.03) 28%, #fff9f4 100%);
  border-top: 3px solid var(--color-primary);
  overflow: hidden;
}

.site-footer__main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  padding: 2rem 0 1.75rem;
}

@media (min-width: 768px) {
  .site-footer__main {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) auto;
    align-items: start;
    gap: 1.75rem 2rem;
  }
}

.site-footer__brand-block {
  max-width: 20rem;
}

.site-footer__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(91, 27, 42, 0.1);
  color: var(--color-primary);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.site-footer__logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(91, 27, 42, 0.1);
}

.site-footer__logo strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-burgundy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-footer__logo-meta {
  display: flex;
  flex-direction: column;
}

.site-footer__logo-meta span {
  display: block;
  margin-top: 0.22rem;
  font-family: var(--font-latin);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.site-footer__text {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.site-footer__social {
  display: flex;
  gap: 0.5rem;
}

.site-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(91, 27, 42, 0.18);
  transition:
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.site-footer__social a:hover {
  background: var(--color-burgundy-deep);
  transform: translateY(-2px);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(91, 27, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(91, 27, 42, 0.05);
}

@media (min-width: 640px) {
  .site-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1.25rem 1.35rem;
    gap: 1.15rem 1.25rem;
  }
}

.site-footer__title {
  position: relative;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.site-footer__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  position: relative;
  display: inline-block;
  width: fit-content;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.site-footer__links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-med) var(--ease-out);
}

[dir="rtl"] .site-footer__links a::after {
  transform-origin: left center;
}

.site-footer__links a:hover {
  color: var(--color-primary);
}

.site-footer__links a:hover::after {
  transform: scaleX(1);
}

.site-footer__trust {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .site-footer__trust {
    flex-direction: column;
    align-items: center;
    justify-self: end;
    text-align: center;
    max-width: 8.5rem;
  }
}

.site-footer__enamad {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 108px;
  height: 118px;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid rgba(91, 27, 42, 0.14);
  border-radius: 16px;
  color: var(--color-text-subtle);
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 24px rgba(91, 27, 42, 0.08);
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.site-footer__enamad:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 14px 28px rgba(91, 27, 42, 0.12);
}

.site-footer__enamad img {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer__enamad-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
}

.site-footer__enamad-label svg {
  color: var(--color-primary);
}

.site-footer__enamad-label small {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-text-subtle);
}

.site-footer__trust-note {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.65;
  color: var(--color-text-subtle);
}

@media (min-width: 768px) {
  .site-footer__trust-note {
    text-align: center;
  }
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  background: var(--color-primary);
  color: rgba(255, 249, 244, 0.78);
  font-size: 0.78rem;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.95rem 0;
}

.site-footer__bottom a {
  color: #fff;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.site-footer__bottom a:hover {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__social a,
  .site-footer__enamad,
  .site-footer__links a::after {
    transition: none;
  }

  .site-footer__social a:hover,
  .site-footer__enamad:hover {
    transform: none;
  }
}

/* Shared page chrome leftovers */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-5);
}

.page-hero {
  padding-block: var(--space-7) var(--space-5);
}

.page-hero--shop {
  padding-block: var(--space-4) var(--space-3);
}

.page-hero--shop .page-hero__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.page-hero--shop .breadcrumb {
  margin-bottom: var(--space-2);
}

.page-hero__title {
  font-size: var(--fs-h1);
  font-weight: 700;
}

.page-hero__text {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  max-width: 36rem;
}

.form {
  display: grid;
  gap: var(--space-5);
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

/* ─── Cart drawer sidebar ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(40, 20, 24, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur-med) var(--ease-out),
    visibility var(--dur-med);
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-overlay[hidden] {
  display: none;
}

.cart-overlay.is-open[hidden] {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  z-index: var(--z-drawer);
  width: min(100vw - 2.5rem, 400px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 0 48px rgba(40, 20, 24, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform var(--dur-med) var(--ease-out),
    visibility var(--dur-med);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

[dir="rtl"] .cart-drawer {
  transform: translateX(-100%);
}

.cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid var(--color-line);
  flex-shrink: 0;
}

.cart-drawer__head h2,
.cart-drawer__heading {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.cart-drawer__count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.cart-drawer__close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  background: transparent;
  color: var(--color-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.cart-drawer__close:hover,
.cart-drawer__close:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  outline: none;
}

.cart-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem 1.15rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer__body.is-empty {
  display: grid;
  place-items: center;
}

.cart-drawer__item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-line);
}

.cart-drawer__item:last-of-type {
  border-bottom: 0;
}

.cart-drawer__thumb {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-surface);
}

.cart-drawer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-drawer__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-drawer__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.35;
}

.cart-drawer__title:hover {
  color: var(--color-primary);
}

.cart-drawer__meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
}

.cart-drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cart-drawer__price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cart-drawer__remove {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-subtle);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cart-drawer__remove:hover {
  color: var(--color-primary);
}

.cart-drawer__empty {
  text-align: center;
  padding: 2.5rem 1rem;
}

.cart-drawer__empty[hidden] {
  display: none !important;
}

.cart-drawer__empty .btn {
  min-width: 10rem;
  justify-content: center;
}

.qty--sm {
  min-height: 0;
  direction: ltr;
  flex-shrink: 0;
}

.qty--sm button {
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.qty--sm input {
  width: 2rem;
  height: 30px;
  font-size: 0.8rem;
  -moz-appearance: textfield;
}

.qty--sm input::-webkit-outer-spin-button,
.qty--sm input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-drawer__foot {
  flex-shrink: 0;
  padding: 1.1rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
}

.cart-drawer__foot[hidden] {
  display: none !important;
}

.cart-drawer__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-drawer__total span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cart-drawer__total strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.cart-drawer__checkout {
  width: 100%;
  justify-content: center;
}

.cart-drawer__view {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.cart-drawer__view:hover {
  color: var(--color-primary);
}

body.cart-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100vw;
  }
}

