/* Curly Box by Farah — mobile-first, brand #D4537E */

:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --brand: #d4537e;
  --brand-dark: #b83d68;
  --brand-soft: #f8e8ef;
  --rose-50: #fff5f8;
  --rose-100: #fce4ec;
  --rose-200: #f8bbd0;
  --text: #3a2a32;
  --text-muted: #6b5560;
  --white: #fff;
  --shadow: 0 8px 32px rgba(212, 83, 126, 0.12);
  --radius: 14px;
  --radius-pill: 999px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --nav-h: 64px;
  /* Set by JS from measured bar; fallback avoids layout jump before script runs */
  --announce-bar-height: 48px;
  --safe-top: env(safe-area-inset-top, 0px);
  --z-overlay: 158;
  --z-menu: 160;
  --z-nav: 180;
  /* Above nav + announcement so drawer content isn’t clipped under the fixed header */
  --z-cart: 205;
}

html[data-season="valentines"] {
  --accent-extra: #e91e63;
  --season-gradient: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
}

html[data-season="mothers_day"] {
  --accent-extra: #c2185b;
  --season-gradient: linear-gradient(135deg, #fce4ec 0%, #e1bee7 45%, #f8bbd0 100%);
}

html[data-season="eid"] {
  --accent-extra: #ad1457;
  --season-gradient: linear-gradient(135deg, #fff8e1 0%, #fce4ec 40%, #f8bbd0 100%);
}

html[data-season="default"],
html:not([data-season]) {
  --accent-extra: var(--brand);
  --season-gradient: linear-gradient(135deg, #fff5f8 0%, #fce4ec 50%, #f8bbd0 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--rose-50);
  padding-top: calc(var(--safe-top) + var(--announce-bar-height) + var(--nav-h));
}

body.scroll-locked {
  overflow: hidden;
  touch-action: none;
}

button,
[role="button"],
.btn,
.pill,
.menu-toggle,
.btn-icon {
  touch-action: manipulation;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

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

/* Announcement — compact row; page-loader (500) sits above until hidden, then z-index -1 */
.announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 8px 10px;
  padding-top: max(8px, var(--safe-top));
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
  font-size: 0.8125rem;
  background: var(--brand);
  color: var(--white);
  isolation: isolate;
}

.announcement__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.announcement__text {
  flex: 1;
  min-width: 0;
  text-align: center;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcement__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  border-radius: 12px;
  color: inherit;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  font-family: var(--font-body);
  cursor: pointer;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.announcement__close:active {
  background: rgba(255, 255, 255, 0.4);
}

.announcement--hidden {
  display: none;
}

body.announcement-dismissed {
  padding-top: calc(var(--safe-top) + var(--nav-h));
  --announce-bar-height: 0px;
}

body.announcement-dismissed .announcement {
  display: none;
}

/* Nav */
.site-nav {
  position: fixed;
  top: calc(var(--safe-top) + var(--announce-bar-height));
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rose-200);
  display: flex;
  align-items: center;
  transition: top 0.2s ease;
}

body.announcement-dismissed .site-nav {
  top: var(--safe-top);
}

.site-nav__inner {
  width: min(1120px, 100% - 24px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--brand);
}

.logo:hover {
  text-decoration: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--brand-soft);
  color: var(--brand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-pill);
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

.menu-toggle {
  display: flex;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

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

  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: calc(var(--safe-top) + var(--announce-bar-height) + var(--nav-h));
  inset-inline-end: 0;
  bottom: 0;
  width: min(360px, 88vw);
  max-width: 100%;
  z-index: var(--z-menu);
  background: var(--white);
  padding: 12px 0 max(24px, calc(12px + var(--safe-bottom)));
  box-shadow: -6px 0 32px rgba(58, 42, 50, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
}

html[dir="rtl"] .mobile-menu {
  box-shadow: 6px 0 32px rgba(58, 42, 50, 0.18);
  transform: translateX(-100%);
}

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

/* RTL closed-state rule is more specific; must win when open */
html[dir="rtl"] .mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px max(28px, calc(16px + var(--safe-bottom)));
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid var(--rose-100);
}

.mobile-menu li:first-child {
  border-top: 1px solid var(--rose-100);
}

.mobile-menu a {
  display: block;
  padding: 16px 4px 16px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu a:active {
  color: var(--brand);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(58, 42, 50, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn--ghost:hover {
  background: var(--brand-soft);
  text-decoration: none;
}

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

/* Hero */
.hero {
  padding: 32px 0 48px;
  background: var(--season-gradient);
  border-radius: 0 0 32px 32px;
  margin-bottom: 32px;
}

.hero__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.hero__tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--white);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.hero p {
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 42ch;
}

.hero__visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--white), var(--rose-100));
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Home hero: image fills the card; dots sit below the pink frame (not inside it). */
.hero-carousel-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.hero__visual.hero-carousel__frame {
  aspect-ratio: 1;
  width: 100%;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.hero-carousel__frame > .hero-carousel__viewport.gallery-carousel__viewport {
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  background: transparent;
  border-radius: inherit;
}

.hero-carousel__dots {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .hero-carousel-stack {
    width: min(100%, 1000px, 70dvh);
    margin-inline: auto;
  }
}

.hero-scroll-hint {
  display: none;
}

@media (max-width: 767px) {
  .hero-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
    padding: 10px 16px 4px;
    border: 0;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    border-radius: var(--radius-pill);
  }

  .hero-scroll-hint:hover {
    color: var(--brand-dark);
  }

  .hero-scroll-hint:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
  }

  .hero-scroll-hint__icon {
    width: 28px;
    height: 28px;
    opacity: 0.85;
    animation: hero-scroll-hint-bob 1.75s ease-in-out infinite;
  }
}

@keyframes hero-scroll-hint-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint__icon {
    animation: none;
  }
}

/* Category pills */
.section {
  padding: 24px 0 40px;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--rose-200);
  text-decoration: none;
}

.pill:hover,
.pill.is-active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  text-decoration: none;
}

.shop-filters {
  margin-top: 8px;
}

.shop-filters__label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.shop-filters__label:not(:first-child) {
  margin-top: 18px;
}

/* Breathing room between type/brand pills and product cards */
.shop-filters + .product-grid {
  margin-top: 28px;
}

@media (max-width: 768px) {
  .shop-filters + .product-grid {
    margin-top: 14px;
  }
}

/* Horizontally scrollable pills (mobile) + animated scroll hint */
.pills-scroll-wrap {
  position: relative;
}

.pills--scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 2px 10px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pills--scroll::-webkit-scrollbar {
  display: none;
}

.pills--scroll .pill,
.pills--scroll button.pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.pills-scroll-hint {
  height: 4px;
  border-radius: 999px;
  width: min(160px, 55%);
  margin: 2px auto 8px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand-soft),
    var(--brand),
    var(--brand-dark),
    var(--brand),
    var(--brand-soft),
    transparent
  );
  background-size: 220% 100%;
  animation: pills-scroll-hint 2.4s ease-in-out infinite;
  opacity: 0.65;
}

.pills-scroll-hint[hidden] {
  display: none !important;
}

@keyframes pills-scroll-hint {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -120% 50%;
  }
}

.pills-scroll-wrap--scrollable::before,
.pills-scroll-wrap--scrollable::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 18px;
  width: 36px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.pills-scroll-wrap--scrollable::before {
  left: 0;
  background: linear-gradient(90deg, var(--rose-50) 30%, transparent);
}

.pills-scroll-wrap--scrollable::after {
  right: 0;
  background: linear-gradient(270deg, var(--rose-50) 30%, transparent);
}

.pills-scroll-wrap--scrollable:not(.pills-scroll-wrap--at-start)::before {
  opacity: 1;
}

.pills-scroll-wrap--scrollable:not(.pills-scroll-wrap--at-end)::after {
  opacity: 1;
}

@media (min-width: 769px) {
  .pills-scroll-wrap .pills--scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0;
    margin: 0;
  }

  .pills-scroll-wrap .reviews.reviews--hscroll {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0;
    margin: 0;
  }

  .pills-scroll-wrap .reviews.reviews--hscroll .review {
    width: auto;
    scroll-snap-align: unset;
  }

  .pills-scroll-wrap::before,
  .pills-scroll-wrap::after {
    display: none !important;
  }

  .pills-scroll-hint {
    display: none !important;
  }
}

@media (min-width: 960px) {
  .pills-scroll-wrap .reviews.reviews--hscroll {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Product grid — two columns on phones so more products show above the fold */
.product-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.product-grid--list {
  grid-template-columns: 1fr;
}

.product-grid--list .product-card {
  flex-direction: row;
  max-width: none;
}

.product-grid--list .product-card__media {
  width: 140px;
  min-width: 140px;
  aspect-ratio: 1;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(212, 83, 126, 0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card--clickable {
  cursor: pointer;
}

.product-card--clickable .product-card__quick-add,
.product-card--clickable a {
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card__media {
  aspect-ratio: 1;
  background: var(--rose-100);
  position: relative;
}

/* Quick add: cart + plus, bottom-right on the image */
.product-card__quick-add {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 2px 14px rgba(40, 20, 30, 0.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.product-card__quick-add:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(212, 83, 126, 0.22);
}

.product-card__quick-add:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.product-card__quick-add:active {
  transform: scale(0.94);
}

.product-card__quick-add.is-added {
  background: var(--brand);
  color: var(--white);
}

.product-card__quick-add svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.product-card__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px;
}

.product-card__color-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fdf6f8;
  border: 1px solid var(--rose-200);
  color: var(--text-muted);
  line-height: 1.2;
}

/* Product page — choose colour before Add to cart */
.product-color-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.product-color-tag {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--rose-200);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.product-color-tag:hover {
  border-color: var(--brand);
}

.product-color-tag.is-selected {
  border-color: var(--brand);
  background: rgba(212, 83, 126, 0.08);
  box-shadow: 0 0 0 1px var(--brand);
}

@media (max-width: 899px) {
  .product-card__body {
    padding: 12px;
    gap: 6px;
  }

  .product-card__title {
    font-size: 1.0625rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card__cat {
    font-size: 0.625rem;
  }

  .price {
    font-size: 1rem;
  }

  .product-card__body .btn--block {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--rose-200);
}

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.product-card__cat {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 800;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}

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

.product-card__title a:hover {
  color: var(--brand);
}

.product-card__prices {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
}

.price--old {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Home: optional sale strip (above browse) */
.home-sale-banner-wrap {
  margin: 10px auto 0;
  padding-bottom: 4px;
}

.home-sale-banner-wrap[hidden] {
  display: none !important;
}

.home-sale-banner {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  padding: 22px clamp(16px, 4vw, 32px);
  border: 1px solid var(--rose-200);
  box-shadow: 0 10px 32px rgba(58, 42, 50, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-sale-banner:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(58, 42, 50, 0.12);
}

.home-sale-banner[data-season="default"] {
  background: linear-gradient(135deg, #fff8fb 0%, #fce4ec 92%);
}

.home-sale-banner[data-season="valentines"] {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 52%, #fce4ec 100%);
  border-color: #e1a4bc;
}

.home-sale-banner[data-season="mothers_day"] {
  background: linear-gradient(135deg, #faf5ff 0%, #fce4ec 50%, #f3e5f5 100%);
  border-color: #d1c4e9;
}

.home-sale-banner[data-season="eid"] {
  background: linear-gradient(135deg, #fffbf0 0%, #fff5f8 48%, #fce4ec 100%);
  border-color: #e8d4a8;
}

.home-sale-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 28px);
  max-width: 52rem;
  margin: 0 auto;
}

.home-sale-banner__copy {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.home-sale-banner__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.home-sale-banner[data-season="valentines"] .home-sale-banner__title {
  font-style: italic;
  color: #7b1541;
}

.home-sale-banner[data-season="mothers_day"] .home-sale-banner__title {
  color: #5d2168;
}

.home-sale-banner[data-season="eid"] .home-sale-banner__title {
  color: #5d4037;
}

.home-sale-banner__sub {
  margin: 0;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.home-sale-banner__decor {
  flex-shrink: 0;
  width: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  line-height: 1;
}

.home-sale-banner__decor--left::before,
.home-sale-banner__decor--right::before {
  display: block;
}

.home-sale-banner[data-season="default"] .home-sale-banner__decor--left::before,
.home-sale-banner[data-season="default"] .home-sale-banner__decor--right::before {
  content: '\2726';
  color: var(--brand);
}

.home-sale-banner[data-season="valentines"] .home-sale-banner__decor--left::before,
.home-sale-banner[data-season="valentines"] .home-sale-banner__decor--right::before {
  content: '\2665';
  color: #ad1457;
}

.home-sale-banner[data-season="mothers_day"] .home-sale-banner__decor--left::before,
.home-sale-banner[data-season="mothers_day"] .home-sale-banner__decor--right::before {
  content: '\2661';
  color: #8e24aa;
}

.home-sale-banner[data-season="eid"] .home-sale-banner__decor--left::before,
.home-sale-banner[data-season="eid"] .home-sale-banner__decor--right::before {
  content: '\2728';
  color: #c9a227;
}

@media (max-width: 480px) {
  .home-sale-banner__decor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-sale-banner {
    transition: none;
  }

  .home-sale-banner:hover {
    transform: none;
  }
}

/* Seasonal promo strip */
.season-banner {
  margin: 32px 0;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--season-gradient);
  text-align: center;
  border: 1px solid var(--rose-200);
}

.season-banner h2 {
  margin-bottom: 8px;
}

.season-banner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 50ch;
  margin-inline: auto;
}

/* Instagram CTA (home) */
.instagram-cta {
  margin: 8px 0 0;
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(145deg, #fff8fc 0%, #fce8f2 45%, #fff5f8 100%);
  border: 1px solid var(--rose-200);
  box-shadow: 0 8px 28px rgba(212, 83, 126, 0.08);
}

.instagram-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}

.instagram-cta p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 46ch;
  margin-inline: auto;
}

.instagram-cta .btn {
  margin-top: 4px;
}

/* How it works */
.steps {
  display: grid;
  gap: 20px;
}

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

.step {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--rose-100);
  box-shadow: 0 4px 16px rgba(212, 83, 126, 0.06);
}

.step__num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Reviews — mobile: horizontal scroll + pills-scroll-hint; desktop: grid (see 769px+ with .reviews--hscroll) */
.pills-scroll-wrap .reviews.reviews--hscroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  padding: 4px 2px 10px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pills-scroll-wrap .reviews.reviews--hscroll::-webkit-scrollbar {
  display: none;
}

.pills-scroll-wrap .reviews.reviews--hscroll .review {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(86vw, 340px);
  margin: 0;
}

.review {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--rose-100);
}

.review__stars {
  color: #f5a623;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.review p {
  margin: 0 0 12px;
  font-size: 0.9375rem;
}

.review cite {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 700;
  color: var(--brand);
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 40px 0 28px;
  background: var(--text);
  color: var(--rose-100);
}

.site-footer a {
  color: var(--rose-200);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

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

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
  }
}

.site-footer h3 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}

.footer-brand span {
  color: var(--rose-200);
}

.footer-tagline {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  opacity: 0.85;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

/* Shop toolbar */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--white);
}

.view-toggle {
  display: flex;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--rose-200);
}

.view-toggle button {
  padding: 10px 14px;
  border: 0;
  background: var(--white);
  cursor: pointer;
  color: var(--text-muted);
}

.view-toggle button.is-active {
  background: var(--brand);
  color: var(--white);
}

/* Product detail */
.product-detail {
  padding: 24px 0 48px;
}

.product-detail__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .product-detail__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.product-gallery-wrap {
  min-width: 0;
}

.gallery-mobile {
  display: none;
}

.gallery-desktop {
  display: block;
}

@media (max-width: 767px) {
  .gallery-mobile {
    display: block;
  }

  .gallery-desktop {
    display: none;
  }
}

.gallery-carousel__viewport {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--rose-100);
  aspect-ratio: 1;
}

.gallery-carousel__track {
  display: flex;
  gap: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  direction: ltr;
}

.gallery-carousel__track::-webkit-scrollbar {
  display: none;
}

.gallery-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

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

.gallery-carousel__placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 8px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rose-200);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.gallery-dot:hover {
  background: #e8a4bc;
}

.gallery-dot.is-active {
  background: var(--brand);
  transform: scale(1.2);
}

.gallery-dot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--rose-100);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gallery-thumbs button {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--rose-100);
}

.gallery-thumbs button.is-active {
  border-color: var(--brand);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.qty-row--stepper {
  flex-wrap: wrap;
  align-items: center;
}

.qty-row__label {
  font-weight: 700;
}

.qty-row__stepper {
  display: flex;
  align-items: center;
}

.prose {
  color: var(--text-muted);
}

.prose p {
  margin: 0 0 1em;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35em;
}

/* Static / legal / about pages */
.static-page {
  padding: 20px 0 56px;
  margin-inline: auto;
  max-width: 720px;
}

.static-page--wide {
  max-width: 800px;
}

.static-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.2;
}

.static-page .static-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

.about-split {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .about-split {
    grid-template-columns: min(280px, 36%) 1fr;
    align-items: start;
  }
}

.about-photo-placeholder {
  aspect-ratio: 4 / 5;
  max-height: 420px;
  border-radius: var(--radius);
  border: 2px dashed var(--rose-200);
  background: linear-gradient(160deg, var(--rose-50) 0%, var(--brand-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.45;
}

.about-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--rose-100);
}

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

.about-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: var(--text);
}

.about-section {
  margin-bottom: 32px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* FAQ accordion (<details name="faq"> = one open at a time in supporting browsers) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.faq-details {
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(58, 42, 50, 0.05);
  overflow: clip;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-details:hover {
  border-color: var(--rose-200);
  box-shadow: 0 4px 20px rgba(212, 83, 126, 0.08);
}

.faq-details[open] {
  border-color: var(--rose-200);
  box-shadow: 0 8px 28px rgba(212, 83, 126, 0.1);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--text);
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-details[open] > .faq-summary {
  background: linear-gradient(180deg, var(--rose-50) 0%, rgba(255, 255, 255, 0.92) 100%);
  color: var(--text);
}

.faq-summary:hover {
  background: var(--rose-50);
}

.faq-details[open] > .faq-summary:hover {
  background: linear-gradient(180deg, var(--rose-50) 0%, var(--white) 100%);
}

.faq-summary__title {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.faq-summary__chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rose-100);
  color: var(--brand);
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-details[open] .faq-summary__chevron {
  transform: rotate(180deg);
  background: rgba(212, 83, 126, 0.15);
}

.faq-panel {
  padding: 0 20px 20px;
}

.faq-panel__text {
  margin: 0;
  padding-top: 4px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.faq-panel__text a {
  font-weight: 600;
}

.static-back {
  margin-bottom: 20px;
}

.static-back a {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.static-back a:hover {
  text-decoration: underline;
}

/* Order confirmation & tracking */
.order-flow-page {
  padding: 24px 16px 56px;
  max-width: 640px;
  margin: 0 auto;
}

.order-flow-state__text {
  color: var(--text-muted);
  line-height: 1.55;
}

.order-flow-state a {
  color: var(--brand);
  font-weight: 600;
}

.order-confirm-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--rose-100);
  padding: 28px 22px;
  box-shadow: 0 4px 24px rgba(58, 42, 50, 0.06);
}

.order-confirm__celebrate {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.order-confirm__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 8px;
  color: var(--text);
}

.order-confirm__num {
  color: var(--brand);
}

.order-confirm__lead {
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.order-confirm__block {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rose-100);
}

.order-confirm__h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.order-confirm__items {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.55;
}

.order-confirm__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 10px 0 0;
}

.order-confirm__total {
  margin: 12px 0 0;
  font-size: 1.0625rem;
}

.order-confirm__address {
  margin: 0;
  line-height: 1.55;
  color: var(--text);
}

.order-confirm__bilingual {
  background: var(--rose-50);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.order-confirm__bilingual p {
  margin: 0 0 12px;
}

.order-confirm__bilingual p:last-child {
  margin-bottom: 0;
}

.order-confirm__copy-wrap {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px dashed var(--rose-200);
  background: rgba(255, 255, 255, 0.85);
}

.order-confirm__save-hint {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.order-confirm__copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.order-confirm__copy-btn {
  flex-shrink: 0;
}

.order-confirm__copy-feedback {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
}

.order-confirm__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-confirm__actions .btn {
  text-align: center;
  justify-content: center;
}

.track-page__h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 8px;
}

.track-page__lead {
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.track-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.track-form__label {
  font-weight: 600;
  font-size: 0.875rem;
}

.track-form__input {
  padding: 12px 14px;
  border: 1px solid var(--rose-200);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.track-form__btn {
  align-self: flex-start;
}

.track-msg {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 20px;
}

.track-msg a {
  color: var(--brand);
  font-weight: 600;
}

.track-result__card {
  margin-top: 8px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius);
}

.track-cancel-banner {
  background: #fff3e0;
  border: 1px solid #ffcc80;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.order-timeline {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-left: 2px solid var(--rose-100);
  margin-left: 12px;
}

.order-timeline__step {
  position: relative;
  padding: 0 0 20px 22px;
  margin-left: -2px;
}

.order-timeline__step:last-child {
  padding-bottom: 0;
}

.order-timeline__mark {
  position: absolute;
  left: -13px;
  top: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  border: 2px solid var(--rose-200);
  color: var(--text-muted);
}

.order-timeline__step--done .order-timeline__mark {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
}

.order-timeline__step--current .order-timeline__mark {
  box-shadow: 0 0 0 4px rgba(212, 83, 126, 0.25);
}

.order-timeline__step--current .order-timeline__label {
  font-weight: 700;
  color: var(--text);
}

.order-timeline__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-timeline__label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.order-timeline__step--done .order-timeline__label {
  color: var(--text);
}

.order-timeline__time {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.track-result__ordernum {
  margin: 0 0 10px;
  font-size: 1.0625rem;
}

.track-result .track-result__copy-wrap {
  margin-bottom: 16px;
}

.track-result__gov {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.track-result__h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  color: var(--text-muted);
}

.track-result__items {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  line-height: 1.5;
}

.track-result__total {
  margin: 0 0 16px;
}

.track-result__wa {
  display: inline-flex;
  text-decoration: none;
}

.track-msg--err {
  color: var(--text-muted);
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  width: min(400px, 100vw);
  height: 100%;
  height: 100dvh;
  background: var(--white);
  z-index: var(--z-cart);
  box-shadow: -8px 0 40px rgba(58, 42, 50, 0.15);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .cart-drawer {
  box-shadow: 8px 0 40px rgba(58, 42, 50, 0.15);
  transform: translateX(-100%);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

html[dir="rtl"] .cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head {
  padding: max(16px, var(--safe-top)) 20px 16px;
  border-bottom: 1px solid var(--rose-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-line {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rose-50);
}

.cart-line__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--rose-100);
  object-fit: cover;
}

.cart-line__info {
  flex: 1;
  min-width: 0;
}

.cart-line__title {
  font-weight: 700;
  font-size: 0.9375rem;
}

.cart-line__variant {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-line__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.cart-line__each {
  display: block;
}

/* DoorDash-style quantity stepper (− / trash · count · +) */
.cart-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rose-200);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(40, 20, 30, 0.06);
}

.cart-stepper--compact .cart-stepper__btn {
  width: 34px;
  min-height: 34px;
}

.cart-stepper--page .cart-stepper__btn {
  width: 40px;
  min-height: 40px;
}

.cart-stepper__btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-stepper__btn:hover:not(:disabled) {
  background: var(--rose-50);
}

.cart-stepper__btn:active:not(:disabled) {
  background: var(--rose-100);
}

.cart-stepper__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}

.cart-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cart-stepper__btn--trash {
  color: var(--text-muted);
}

.cart-stepper__btn--trash:hover:not(:disabled) {
  background: #fff5f5;
  color: #c62828;
}

.cart-stepper__btn svg {
  width: 18px;
  height: 18px;
}

.cart-stepper--page .cart-stepper__btn svg {
  width: 20px;
  height: 20px;
}

.cart-stepper__val {
  min-width: 28px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--text);
  border-inline: 1px solid var(--rose-100);
  line-height: 1;
  user-select: none;
}

.cart-stepper--page .cart-stepper__val {
  min-width: 32px;
  font-size: 1rem;
  padding: 0 8px;
}

/* Cart quantity / remove: loading until priced refresh finishes */
.cart-stepper.cart-ui--loading {
  position: relative;
  pointer-events: none;
}

.cart-stepper.cart-ui--loading > .cart-stepper__btn,
.cart-stepper.cart-ui--loading > .cart-stepper__val {
  opacity: 0.35;
}

.cart-stepper.cart-ui--loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  border-radius: inherit;
  z-index: 1;
}

.cart-stepper.cart-ui--loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2.5px solid var(--rose-100);
  border-top-color: var(--brand);
  animation: cart-ui-spin 0.65s linear infinite;
  z-index: 2;
}

.cart-line.cart-ui--loading,
.cart-table-row.cart-ui--loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}

.cart-line.cart-ui--loading::before,
.cart-table-row.cart-ui--loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 3;
}

.cart-line.cart-ui--loading::after,
.cart-table-row.cart-ui--loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 2.5px solid var(--rose-100);
  border-top-color: var(--brand);
  animation: cart-ui-spin 0.65s linear infinite;
  z-index: 4;
}

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

.cart-line__remove {
  background: none;
  border: 0;
  color: var(--brand);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.cart-drawer__foot {
  padding: 16px 20px max(24px, var(--safe-bottom));
  border-top: 1px solid var(--rose-100);
  background: var(--rose-50);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rose-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
}

.form-group textarea {
  min-height: 72px;
  resize: vertical;
}

.checkout-msg {
  margin-top: 10px;
  font-size: 0.875rem;
}

.checkout-msg--ok {
  color: #2e7d32;
}

.checkout-msg--err {
  color: #c62828;
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.page-title {
  padding: 16px 0 8px;
}

/* Full-page loader (vanilla — no framework required) */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(160deg, var(--rose-50) 0%, var(--rose-100) 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.45s ease, visibility 0.45s ease, z-index 0s linear 0.5s;
}

.page-loader__mark {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 600;
  color: var(--brand);
  animation: page-loader-pulse 1.4s ease-in-out infinite;
}

.page-loader__mark span {
  color: var(--text);
  font-weight: 500;
}

.page-loader__dots {
  display: flex;
  gap: 10px;
}

.page-loader__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.35;
  animation: page-loader-bounce 0.9s ease-in-out infinite;
}

.page-loader__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.page-loader__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes page-loader-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.02);
  }
}

@keyframes page-loader-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Skeleton cards while grids load */
.skeleton-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .skeleton-grid {
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
  }
}

.skeleton-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(212, 83, 126, 0.06);
}

.skeleton-block {
  background: linear-gradient(90deg, var(--rose-100) 25%, var(--rose-50) 50%, var(--rose-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-card__media {
  aspect-ratio: 1;
}

.skeleton-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.skeleton-line--short {
  width: 45%;
}

.skeleton-line--btn {
  height: 40px;
  border-radius: var(--radius-pill);
  margin-top: 8px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Sale promo: full-screen overlay + centered modal (shown after load + delay in sale-promo.js) */
.sale-promo {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
  pointer-events: none;
}

.sale-promo--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sale-promo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 42, 50, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}

.sale-promo__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 24px 48px 24px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--rose-200);
  box-shadow: 0 24px 64px rgba(58, 42, 50, 0.28), 0 0 0 1px rgba(212, 83, 126, 0.1);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.sale-promo--visible .sale-promo__panel {
  transform: scale(1) translateY(0);
}

.sale-promo__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--rose-50);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.sale-promo__close:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.sale-promo__close:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.sale-promo__eyebrow {
  margin: 0 0 10px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.sale-promo__text {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 600;
  white-space: pre-wrap;
}

.sale-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sale-promo__shop {
  text-decoration: none;
  padding: 12px 22px;
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
  .sale-promo,
  .sale-promo__panel {
    transition-duration: 0.15s;
  }

  .sale-promo__panel {
    transform: none;
  }

  .sale-promo--visible .sale-promo__panel {
    transform: none;
  }
}

/* EN / AR: Arabic body font + header language switcher */
html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Nunito Sans", system-ui, sans-serif;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: 6px;
  flex-shrink: 0;
}

.lang-switch__btn {
  min-width: 38px;
  padding: 7px 9px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rose-200);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  line-height: 1.2;
}

.lang-switch__btn[aria-pressed="true"] {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

html[dir="rtl"] .cart-page__actions > div:last-child {
  text-align: left;
}
