@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&family=Playball&family=Cairo:wght@400;500;600;700&display=swap');

/* ---------- Tokens: pulled from the FIORA logo (blush pink bg, near-black
   type, rose petals) plus a warm gold complement for energy/life ---------- */
:root {
  --blush: #ECCEDA;         /* logo background */
  --paper: #FDF6F9;         /* page background */
  --paper-2: #F8E3EC;       /* card / section alt background */
  --ink: #2E2B29;           /* near-black, matches logo type */
  --ink-soft: #836873;      /* muted mauve for secondary text */
  --accent: #D5546E;        /* rose/magenta, from the logo petals */
  --accent-warm: #E8A33D;   /* warm gold - the "full of life" spark */
  --accent-deep: #8E3A5C;   /* deep plum, for gradient depth & contrast */
  --line: #F0D6E1;
  --white: #FFFFFF;
  --danger: #C23B3B;
  --success: #3F7A4E;
  --radius: 14px;
  --radius-sm: 8px;
  --gradient-primary: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  --gradient-soft: linear-gradient(135deg, #FBEAF1 0%, #FCF1DE 100%);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-script: 'Playball', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Safety net: our own classes sometimes set "display" directly (e.g. flex
   rows), which would otherwise silently outrank the browser's default
   [hidden] rule. This keeps the hidden attribute authoritative everywhere. */
[hidden] { display: none !important; }

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.muted { color: var(--ink-soft); font-size: 0.9rem; }

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- RTL (Arabic) support ---------- */
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .btn, [dir="rtl"] .btn-link,
[dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select,
[dir="rtl"] .hero-script, [dir="rtl"] .eyebrow {
  font-family: 'Cairo', 'Work Sans', sans-serif;
}

/* ---------- Site header (storefront) ---------- */
/* ---------- Utility bar (social + language switch) ---------- */
.utility-bar {
  background: var(--ink);
  color: #D9C9D1;
  font-size: 0.78rem;
}
.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
}
.utility-social { display: flex; gap: 12px; align-items: center; }
.utility-social a { color: #D9C9D1; display: inline-flex; transition: color 0.15s ease; }
.utility-social a:hover { color: var(--white); }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-link { color: #D9C9D1; font-weight: 600; letter-spacing: 0.02em; }
.lang-link.active { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.lang-link:hover { color: var(--white); }

.cart-subtotal-preview {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .cart-subtotal-preview { display: none; }
}

.site-header {
  background: var(--blush);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 0 rgba(46, 43, 41, 0.06);
  border-top: 4px solid transparent;
  border-image: var(--gradient-primary) 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}

.logo { display: flex; align-items: center; }
.logo-mark { height: 64px; width: auto; border-radius: 50%; transition: transform 0.2s ease; }
.logo:hover .logo-mark { transform: scale(1.05) rotate(-2deg); }

.header-icons { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--gradient-primary); color: var(--white); transform: translateY(-2px); }

.cart-count {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--blush);
  animation: pop 0.25s ease;
}
.cart-count[hidden] { display: none; }
@keyframes pop {
  0% { transform: scale(0.6); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ---------- Expandable search bar ---------- */
.search-bar {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 14px 0;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-bar-form { display: flex; gap: 10px; }
.search-bar-form input {
  flex: 1;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.search-bar-form input:focus { border-color: var(--accent); }

/* ---------- Category nav bar ---------- */
.category-nav {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.category-nav-inner {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px 24px;
}
.category-nav a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding-bottom: 4px;
}
.category-nav a::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gradient-primary);
  transition: inset-inline-end 0.2s ease;
}
.category-nav a:hover::after,
.category-nav a.active::after { inset-inline-end: 0; }
.category-nav a.active { color: var(--accent-deep); }
.category-nav a.sale-link { color: var(--danger); }
.category-nav a.sale-link::after { background: var(--danger); }

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 40px 0 28px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}
.footer-blob {
  position: absolute;
  width: 240px; height: 240px;
  background: var(--gradient-soft);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  bottom: -140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.social-row { display: flex; gap: 14px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover { transform: translateY(-3px); border-color: transparent; color: var(--white); }
.social-icon.instagram:hover { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.social-icon.whatsapp:hover { background: #25D366; }
.social-icon.contact:hover { background: var(--gradient-primary); }

.footer-copy { margin: 0; }
.footer-staff-link { margin: 0; }
.footer-staff-link a { font-size: 0.78rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-staff-link a:hover { color: var(--accent); }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 43, 41, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 40;
}
.cart-overlay.visible { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh; /* on iOS, plain 100vh doesn't account for the address
    bar collapsing/expanding mid-scroll, which was freezing the drawer's
    internal scroll area — dvh tracks the real visible viewport instead. */
  width: min(400px, 92vw);
  background: var(--paper);
  box-shadow: -12px 0 40px rgba(0,0,0,0.18);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-drawer-header h3 { margin: 0; }

/* This wrapper is the ONE scrollable region between the fixed header and
   footer. min-height: 0 is essential here: without it, a flex child
   defaults to a min-height equal to its own content size, so it can never
   actually shrink to fit — the drawer would just try to grow past the
   viewport instead of scrolling internally, hiding the total/checkout
   button off-screen. */
.cart-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 18px 22px;
}

.cart-items { }
.cart-empty { color: var(--ink-soft); text-align: center; margin-top: 40px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-image { width: 64px; height: 78px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-noimage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--ink-soft); text-align: center; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.92rem; margin: 0 0 2px; }
.cart-item-options { font-size: 0.78rem; color: var(--ink-soft); margin: 0 0 4px; }
.cart-item-price { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); margin: 0 0 6px; }

.cart-qty-row { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-value { min-width: 18px; text-align: center; font-size: 0.85rem; }
.cart-remove { background: none; border: none; color: var(--ink-soft); font-size: 0.78rem; text-decoration: underline; cursor: pointer; margin-inline-start: auto; }
.cart-remove:hover { color: var(--danger); }

.cart-totals { padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; }

/* ---------- Checkout fields (inside the scrollable drawer body) ---------- */
.checkout-fields { padding-top: 16px; border-top: 1px dashed var(--line); margin-top: 10px; }
.checkout-fields h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin: 0 0 12px; }
.checkout-fields label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 10px 0 5px;
}
.checkout-fields label:first-of-type { margin-top: 0; }
.checkout-fields input[type="text"],
.checkout-fields input[type="tel"],
.checkout-fields textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.checkout-fields textarea { resize: vertical; }
.payment-options { display: flex; gap: 10px; flex-wrap: wrap; }
.checkout-field-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin: 10px 0 0;
  font-weight: 600;
}

.cart-drawer-footer { border-top: 1px solid var(--line); padding: 16px 22px; flex-shrink: 0; }
.cart-subtotal-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; font-family: var(--font-display); font-size: 1.1rem; }
.cart-delivery-row { font-size: 0.88rem; font-weight: 500; font-family: var(--font-body); color: var(--ink-soft); margin-bottom: 10px; }
.cart-total-row { border-top: 1px dashed var(--line); padding-top: 10px; font-size: 1.25rem; color: var(--accent-deep); }
.confirm-order-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.confirm-order-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.order-success {
  text-align: center;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.order-success svg { color: var(--success); margin-bottom: 6px; }
.order-success h4 { margin: 0; font-size: 1.2rem; }
.order-success p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 10px; }

body.no-scroll { overflow: hidden; }

/* ---------- Promo banner (animated, admin-toggleable) ---------- */
.promo-banner {
  position: relative;
  background: linear-gradient(135deg, #C22A3E 0%, var(--accent) 100%);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 46px;
}
.promo-marquee {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.18;
  pointer-events: none;
}
.promo-track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding-left: 28px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  animation: promoScroll 22s linear infinite;
}
@keyframes promoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.promo-content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 44px;
  text-align: center;
}
.promo-percent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--white);
  color: var(--accent-deep);
  padding: 2px 12px;
  border-radius: 999px;
  animation: promoPulse 1.8s ease-in-out infinite;
}
@keyframes promoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.promo-text { font-weight: 600; font-size: 0.9rem; }
.promo-cta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  padding: 4px 14px;
  transition: background 0.15s ease, color 0.15s ease;
}
.promo-cta:hover { background: var(--white); color: var(--accent-deep); }
.promo-close {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.85;
}
.promo-close:hover { opacity: 1; }
@media (max-width: 600px) {
  .promo-content { padding: 8px 40px; gap: 8px; }
  .promo-text { display: none; }
  .promo-track { font-size: 1.1rem; }
}

/* ---------- Unavailable size/color options (0 stock for the current pick) ---------- */
.option-badge.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
  background: var(--paper);
}
.option-badge.unavailable:hover { transform: none; border-color: var(--line); }

/* ---------- Sale pricing & badges ---------- */
.price-original {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-weight: 400;
  margin-inline-end: 8px;
  font-size: 0.85em;
}
.price-sale { color: var(--danger); }
.badge-sale {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: linear-gradient(135deg, #C22A3E, var(--accent));
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  z-index: 2;
}

/* ---------- Clickable color swatches on the shop grid (swap card photo) ---------- */
.swatch-btn {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
}
.swatch-btn .swatch { transition: box-shadow 0.15s ease, transform 0.15s ease; }
.swatch-btn:hover .swatch { transform: scale(1.15); }
.swatch-btn.swatch-selected .swatch { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- Shop hero ---------- */
.shop-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 40px;
  text-align: left;
}

.hero-script {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--accent);
  margin: 0 0 4px;
}

.shop-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 46ch;
  position: relative;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  z-index: -1;
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 { width: 260px; height: 260px; background: var(--accent); top: -80px; right: 10%; }
.blob-2 { width: 200px; height: 200px; background: var(--accent-warm); top: 40px; right: -40px; animation-delay: 1.5s; }
.blob-3 { width: 160px; height: 160px; background: var(--accent-deep); bottom: -60px; left: 30%; opacity: 0.28; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.05); }
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.filters input[type="text"],
.filters select {
  font-family: var(--font-body);
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.9rem;
}
.filters input[type="text"] { flex: 1; min-width: 200px; }
.filters input[type="text"]:focus, .filters select:focus { border-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 6px 16px rgba(213, 84, 110, 0.28);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 10px 22px rgba(213, 84, 110, 0.36); }

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-link {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.btn-link:hover { color: var(--accent); }
.btn-link.danger { color: var(--danger); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
  padding-bottom: 56px;
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-info { padding: 10px 12px; }
  .product-info h3 { font-size: 0.85rem; }
  .price { font-size: 0.85rem; }
}

.product-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(213, 84, 110, 0.22);
  border-color: var(--accent);
}
.product-card.sold-out { opacity: 0.55; }
.product-card.sold-out:hover { transform: none; box-shadow: none; border-color: var(--line); }
.product-card.sold-out .product-card-img { filter: grayscale(0.6); }

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }

.no-image {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.no-image.large { aspect-ratio: 4/5; border-radius: var(--radius); }

.badge-outofstock {
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-info { padding: 16px; }
.product-info h3 { font-size: 1.05rem; margin-bottom: 6px; }

.price {
  font-family: var(--font-mono);
  font-weight: 500;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price.large { font-size: 1.5rem; margin-bottom: 16px; }

.swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatch {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
  display: inline-block;
  transition: box-shadow 0.15s ease;
}
.product-card:hover .swatch { box-shadow: 0 0 0 1px var(--accent); }

.empty-state { color: var(--ink-soft); padding: 40px 0; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0 64px;
}
@media (max-width: 780px) {
  .product-detail { grid-template-columns: 1fr; }
}
.product-detail-image {
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 2px;
}

.description { color: var(--ink-soft); margin: 16px 0 24px; }

.option-group { margin-bottom: 20px; }
.option-group h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.options { display: flex; gap: 8px; flex-wrap: wrap; }
.option-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.option-badge:hover { border-color: var(--accent); transform: translateY(-1px); }
.option-badge.selected {
  border-color: var(--accent);
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 600;
}
.option-badge.selected .swatch { box-shadow: 0 0 0 2px var(--white); }
.color-badge .swatch { width: 12px; height: 12px; }

.stock { font-size: 0.9rem; margin: 20px 0; font-weight: 600; }
.stock.in-stock { color: var(--success); }
.stock.out-stock { color: var(--danger); }

/* ---------- Add to cart (product detail) ---------- */
.add-to-cart-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 10px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--white);
}
.qty-stepper .qty-btn { width: 26px; height: 26px; }
.add-to-cart-btn { flex: 1; }
.add-to-cart-msg {
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 16px;
  animation: pop 0.25s ease;
}

/* ---------- Auth pages ---------- */
.auth-body {
  background: linear-gradient(160deg, var(--ink) 0%, #4A2436 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  padding: 24px;
}
.auth-card {
  background: var(--paper);
  padding: 40px 36px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  text-align: center;
}
.auth-logo { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; box-shadow: 0 8px 20px rgba(213,84,110,0.25); }
.auth-card h1 { font-size: 1.6rem; }
.auth-card form { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; text-align: left; }
.auth-card label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 10px; }
.auth-card input {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.auth-card input:focus { border-color: var(--accent); }
.auth-card .btn { margin-top: 18px; text-align: center; width: 100%; }
.back-link { display: inline-block; margin-top: 20px; font-size: 0.85rem; color: var(--ink-soft); }
.back-link:hover { color: var(--accent); }

.error-msg {
  background: #FBE7E5;
  color: var(--danger);
  border: 1px solid #F1B8B2;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.success-msg {
  background: #E8F0E4;
  color: var(--success);
  border: 1px solid #BFDCB0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* ---------- Admin layout ---------- */
.admin-body { background: var(--paper-2); font-family: var(--font-body); }
.admin-layout { display: flex; min-height: 100vh; min-height: 100dvh; }

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
}
.admin-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.admin-logo-mark {
  width: 84px; height: 84px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12), 0 8px 18px rgba(0,0,0,0.3);
}
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-sidebar nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #E3D3DA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.admin-sidebar nav a:hover { background: rgba(255,255,255,0.08); color: var(--paper); }

.nav-badge {
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-sidebar nav a.active { background: var(--gradient-primary); color: var(--white); font-weight: 600; }

.logout-form {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  margin-top: 16px;
}
.signed-in-as { font-size: 0.78rem; color: #C6AFBB; margin-bottom: 10px; line-height: 1.4; }
.logout-form .btn-link { color: #E3D3DA; }
.logout-form .btn-link:hover { color: var(--white); }

.admin-main {
  flex: 1;
  padding: 40px 44px;
  max-width: 1040px;
}

/* The fixed 240px sidebar + 100vh sticky height is a common source of
   horizontal overflow / broken scroll feel on phones, so it collapses
   into a normal top bar below this breakpoint instead. */
@media (max-width: 780px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 16px;
  }
  .admin-logo { margin: 0 12px 0 0; }
  .admin-logo-mark { width: 44px; height: 44px; }
  .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; flex: 1; gap: 2px; }
  .admin-sidebar nav a { padding: 6px 10px; font-size: 0.82rem; }
  .logout-form { width: 100%; border-top: none; margin-top: 8px; padding-top: 0; }
  .admin-main { padding: 24px 16px; max-width: 100%; }
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.stat-cards { display: flex; gap: 16px; margin: 20px 0 28px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  min-width: 140px;
  border-top: 3px solid var(--accent);
}
.stat-card:nth-child(2) { border-top-color: var(--accent-warm); }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

.quick-actions { display: flex; gap: 12px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--paper-2);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FFFAFB; }
.admin-table .actions { display: flex; gap: 14px; align-items: center; }
.thumb { width: 40px; height: 50px; object-fit: cover; border-radius: 6px; }

.role-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.role-badge.owner { background: linear-gradient(135deg, #F3D9A6, #E8A33D); color: #5A3A0A; }
.role-badge.admin { background: #DCE6DC; color: var(--success); }

/* ---------- Forms (admin) ---------- */
.admin-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}
.admin-form label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 14px 0 6px;
}
.admin-form label:first-child { margin-top: 0; }
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form input[type="file"],
.admin-form textarea,
.admin-form select {
  font-family: var(--font-body);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  width: 100%;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--accent); }
.admin-form textarea { resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.checkbox-group { display: flex; gap: 10px; flex-wrap: wrap; }
.checkbox-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checkbox-item:has(input:checked) { border-color: var(--accent); background: var(--paper-2); }
.checkbox-item input { width: auto; }

.thumb-preview { width: 90px; height: 110px; object-fit: cover; margin-top: 10px; border-radius: var(--radius-sm); }

.form-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ---------- Color rows (per-color image, product form) ---------- */
.color-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}
.color-row-name-input {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.color-row { flex-direction: column; align-items: stretch; }
.color-row-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-row-file { font-size: 0.8rem; max-width: 100%; }
.color-row-addlabel { font-size: 0.78rem; color: var(--ink-soft); margin: 4px 0 0; }
.color-row-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.color-row-thumbs:empty { display: none; }
.color-thumb-wrap { position: relative; display: inline-block; }
.color-row-thumb { width: 64px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.color-thumb-x { position: absolute; top: -6px; inset-inline-end: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #111; color: #fff; font-size: 14px; line-height: 20px; padding: 0; cursor: pointer; }
.color-thumb-cover { position: absolute; bottom: 2px; inset-inline-start: 2px; background: rgba(0,0,0,.7); color: #fff; font-size: 0.6rem; padding: 1px 5px; border-radius: 4px; }

/* Product page gallery */
.product-gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.product-gallery-thumbs:empty { display: none; }
.gallery-thumb { flex: 0 0 auto; width: 64px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .75; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.add-color-btn { align-self: flex-start; margin-top: 10px; padding: 8px 16px; font-size: 0.78rem; }

/* ---------- Variant stock grid (product form) ---------- */
.variant-grid-container { margin-top: 8px; }
.variant-simple {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}
.variant-simple input { width: 100px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.variant-table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.variant-table th, .variant-table td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: center;
}
.variant-table th { background: var(--paper-2); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.variant-table td input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}

.admin-form + h2 { margin-top: 8px; }

/* ---------- Orders (admin) ---------- */
.order-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.order-card.order-new { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.order-number { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-inline-end: 10px; }
.order-card-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  margin-bottom: 14px;
}
@media (max-width: 700px) {
  .order-card-body { grid-template-columns: 1fr; }
}
.order-customer p { margin: 0 0 4px; font-size: 0.9rem; }
.order-line { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 4px 0; }
.order-line-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-weight: 600; }
.order-line-grand-total { font-weight: 700; color: var(--accent-deep); font-size: 1rem; }

/* ---------- Sale section (product form) ---------- */
.sale-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--paper-2);
}
.sale-fields { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sale-scope-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 4px; }
.sale-scope-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 6px; }


/* ---------- Header: menu button + logo nudge ---------- */
.header-start { display: flex; align-items: center; gap: 18px; }
.header-start .logo { margin-inline-start: 14px; }
.menu-btn { flex: 0 0 auto; }

/* ---------- Side menu ---------- */
.menu-overlay { position: fixed; inset: 0; background: rgba(20, 16, 18, .45); z-index: 90; }
.menu-overlay[hidden] { display: none !important; }
body.menu-open { overflow: hidden; }
.side-menu {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0;
  width: min(420px, 100vw); height: 100vh; height: 100dvh;
  background: #fff; z-index: 100; overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(-105%); transition: transform .28s ease; padding: 24px 28px 40px;
}
[dir="rtl"] .side-menu { transform: translateX(105%); }
.side-menu.open, [dir="rtl"] .side-menu.open { transform: none; }
.side-menu-top { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.side-menu-logo img { height: 64px; width: auto; border-radius: 50%; display: block; }
.side-menu-list { list-style: none; margin: 0; padding: 0; }
.side-menu-item { border-bottom: 1px solid var(--line); }
.side-menu-link, .side-menu-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 16px 4px; background: none; border: 0; cursor: pointer; text-align: start;
  font-family: inherit; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink);
}
.side-menu-item.active > .side-menu-link, .side-menu-item.active > .side-menu-toggle { color: var(--accent-deep); }
.side-menu-item.is-sale > .side-menu-link { color: var(--danger); }
.side-menu-sign { font-size: 1.4rem; font-weight: 400; }
.side-menu-sub { list-style: none; margin: 0 0 12px; padding: 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.side-menu-sub[hidden] { display: none !important; }
.side-menu-sub a { display: block; padding: 9px 0; font-size: .95rem; color: var(--ink); }
.side-menu-sub a:hover, .side-menu-sub a.active { color: var(--accent-deep); font-weight: 600; }
.side-menu-sub-all { grid-column: 1 / -1; }
.side-menu-sub-all a { font-weight: 600; }

.color-picked-list { display: flex; flex-wrap: wrap; gap: 6px; }
.color-picked-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px 3px 12px; font-size: .78rem; }
.color-picked-x { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--danger); padding: 0 4px; }

/* ---------- Admin: categories ---------- */
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.cat-card h3 { margin: 0 0 12px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: .88rem; }
.cat-chip-x { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--danger); padding: 0 6px; }
.cat-add { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-add input { flex: 1; min-width: 220px; }
.new-sub-input { margin-top: 8px; }
.success-msg { color: #2f7a46; font-weight: 600; }

/* Product photo slider: arrows + dots over the photo, swipe on touch */
.gallery-arrow {
  position: absolute; top: 45%; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.85); color: #111; font-size: 28px; line-height: 38px;
  padding: 0; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.gallery-arrow[hidden] { display: none !important; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.gallery-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: rgba(0,0,0,.35); cursor: pointer; pointer-events: auto; }
.gallery-dot.active { background: #fff; }
.gallery-dots:empty { display: none; }

/* ---------- Mobile & cross-browser polish (Android, iOS Safari/Chrome/Firefox) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, .swatch-btn, .size-option, .color-option { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.product-detail-image { display: block; }
.product-stage {
  position: relative; overflow: hidden; background: var(--paper-2);
  border-radius: var(--radius); aspect-ratio: 3 / 4; max-height: 88vh; max-height: 88dvh; width: 100%;
  touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none;
}
@supports not (aspect-ratio: 1) { .product-stage { height: 520px; } }
.product-stage img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.product-stage .no-image { height: 100%; }
.product-gallery-thumbs { padding: 10px 2px 0; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.gallery-thumb { scroll-snap-align: start; }
[dir="rtl"] .gallery-prev { left: auto; right: 10px; }
[dir="rtl"] .gallery-next { right: auto; left: 10px; }
[dir="rtl"] .gallery-arrow { transform: scaleX(-1); }

@media (max-width: 780px) {
  .product-detail { gap: 20px; padding-top: 12px; }
  .product-stage { border-radius: 12px; max-height: 78vh; max-height: 78dvh; }
  .gallery-arrow { width: 44px; height: 44px; font-size: 30px; line-height: 40px; }
  .gallery-thumb { width: 56px; height: 70px; }
}
/* iOS Safari zooms the page when a text field is smaller than 16px */
@media (max-width: 780px) {
  input[type="text"], input[type="tel"], input[type="search"], input[type="email"],
  input[type="number"], input[type="password"], select, textarea { font-size: 16px; }
}
/* Notched phones: keep drawers clear of the home bar / notch */
.cart-drawer { padding-bottom: env(safe-area-inset-bottom); }
.side-menu { padding-top: calc(24px + env(safe-area-inset-top)); padding-bottom: calc(40px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.cart-drawer-body { overscroll-behavior: contain; }


/* =====================================================================
   Joyful layer: animated logo "F", drifting colour, falling petals,
   playful hovers. Everything respects prefers-reduced-motion.
   ===================================================================== */

/* ---- Header colour ribbon that keeps sliding ---- */
.site-header::before {
  content: ''; position: absolute; top: -4px; left: 0; right: 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg, #D5546E, #E8A33D, #E86FA6, #8E3A5C, #E8A33D, #D5546E);
  background-size: 200% 100%; animation: fiora-ribbon 7s linear infinite;
}
@keyframes fiora-ribbon { to { background-position: -200% 0; } }

/* ---- Page background: soft colour clouds drifting slowly ---- */
body::before {
  content: ''; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 20%, rgba(232, 111, 166, .16), transparent 70%),
    radial-gradient(35% 30% at 85% 15%, rgba(232, 163, 61, .16), transparent 70%),
    radial-gradient(40% 35% at 70% 85%, rgba(213, 84, 110, .12), transparent 70%),
    radial-gradient(35% 30% at 10% 80%, rgba(168, 130, 220, .12), transparent 70%);
  animation: fiora-drift 22s ease-in-out infinite alternate;
}
@keyframes fiora-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(2%, -2%, 0) scale(1.08); } }

/* ---- Falling petals ---- */
.petals { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.petals i {
  position: absolute; top: -30px; width: 14px; height: 18px; opacity: 0;
  background: linear-gradient(135deg, #F4A6BE, #E8708F);
  border-radius: 80% 0 80% 0; animation: fiora-fall 14s linear infinite;
}
.petals i:nth-child(1) { left: 6%;  animation-delay: 0s;  animation-duration: 15s; }
.petals i:nth-child(2) { left: 20%; animation-delay: 3s;  animation-duration: 12s; width: 11px; height: 14px; }
.petals i:nth-child(3) { left: 36%; animation-delay: 6s;  animation-duration: 17s; background: linear-gradient(135deg, #F8D9A0, #E8A33D); }
.petals i:nth-child(4) { left: 52%; animation-delay: 1.5s; animation-duration: 13s; }
.petals i:nth-child(5) { left: 68%; animation-delay: 8s;  animation-duration: 16s; width: 12px; height: 15px; }
.petals i:nth-child(6) { left: 82%; animation-delay: 4.5s; animation-duration: 14s; background: linear-gradient(135deg, #F8D9A0, #E8A33D); }
.petals i:nth-child(7) { left: 94%; animation-delay: 10s; animation-duration: 18s; }
@keyframes fiora-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .55; }
  50%  { transform: translate3d(40px, 55vh, 0) rotate(180deg); }
  90%  { opacity: .45; }
  100% { transform: translate3d(-30px, 108vh, 0) rotate(360deg); opacity: 0; }
}

/* ---- Product cards: pop in one after another, wiggle a little on hover ---- */
.product-card { animation: fiora-card-in .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.product-grid .product-card:nth-child(2) { animation-delay: .06s; }
.product-grid .product-card:nth-child(3) { animation-delay: .12s; }
.product-grid .product-card:nth-child(4) { animation-delay: .18s; }
.product-grid .product-card:nth-child(5) { animation-delay: .24s; }
.product-grid .product-card:nth-child(6) { animation-delay: .30s; }
.product-grid .product-card:nth-child(n+7) { animation-delay: .36s; }
@keyframes fiora-card-in { from { opacity: 0; transform: translateY(26px) scale(.96); } }
.product-card:not(.sold-out):hover { transform: translateY(-7px) rotate(-.6deg); }
.swatch-btn { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.swatch-btn:hover { transform: scale(1.3); }

/* ---- Buttons: a light sweep and a little bounce ---- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn:hover::after { left: 130%; transition: left .6s ease; }
.btn:active { transform: translateY(0) scale(.97); }

/* ---- Bag counter and sale tags gently pulse ---- */
.cart-count { animation: fiora-pop 2.6s ease-in-out infinite; }
@keyframes fiora-pop { 0%, 80%, 100% { transform: scale(1); } 90% { transform: scale(1.25); } }
.badge-sale { animation: fiora-pulse 2s ease-in-out infinite; }
@keyframes fiora-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(213, 84, 110, .45); } 50% { box-shadow: 0 0 0 7px rgba(213, 84, 110, 0); } }
.icon-btn:hover svg { animation: fiora-wiggle .5s ease; }
@keyframes fiora-wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* ---- Side menu items slide in ---- */
.side-menu.open .side-menu-item { animation: fiora-menu-in .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.side-menu.open .side-menu-item:nth-child(1) { animation-delay: .08s; }
.side-menu.open .side-menu-item:nth-child(2) { animation-delay: .14s; }
.side-menu.open .side-menu-item:nth-child(3) { animation-delay: .20s; }
.side-menu.open .side-menu-item:nth-child(4) { animation-delay: .26s; }
@keyframes fiora-menu-in { from { opacity: 0; transform: translateX(-24px); } }
[dir="rtl"] .side-menu.open .side-menu-item { animation-name: fiora-menu-in-rtl; }
@keyframes fiora-menu-in-rtl { from { opacity: 0; transform: translateX(24px); } }
.side-menu-toggle:hover, .side-menu-link:hover { color: var(--accent); padding-inline-start: 10px; transition: padding .2s ease, color .2s ease; }

@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
  body::before, .site-header::before { animation: none; }
}
@media (max-width: 560px) {
  .petals i:nth-child(n+5) { display: none; }
}


/* ---------- Home banner: the logo floats around while flowers fall ---------- */
.shop-hero.logo-hero {
  --r: 70px;
  isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  min-height: 390px; margin: 18px 0 30px; padding: 24px;
  border-radius: 22px; border: 1px solid var(--line);
  background: var(--gradient-soft);
}
.hero-logo-wrap { position: relative; z-index: 2; animation: fiora-roam 16s ease-in-out infinite; will-change: transform; }
.hero-logo {
  height: clamp(130px, 20vw, 210px); width: auto; max-width: 80vw;
  filter: drop-shadow(0 10px 18px rgba(213, 84, 110, .28));
  animation: fiora-breathe 4.5s ease-in-out infinite;
}
@keyframes fiora-roam {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  14%  { transform: translate(var(--r), calc(var(--r) * -.35)) rotate(4deg); }
  28%  { transform: translate(calc(var(--r) * .5), calc(var(--r) * -.7)) rotate(-3deg); }
  42%  { transform: translate(calc(var(--r) * -.6), calc(var(--r) * -.55)) rotate(5deg); }
  57%  { transform: translate(calc(var(--r) * -1.1), calc(var(--r) * .1)) rotate(-4deg); }
  71%  { transform: translate(calc(var(--r) * -.4), calc(var(--r) * .55)) rotate(3deg); }
  85%  { transform: translate(calc(var(--r) * .6), calc(var(--r) * .45)) rotate(-3deg); }
}
@keyframes fiora-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.hero-flowers { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-flowers span {
  position: absolute; top: -48px; font-size: 26px; line-height: 1; opacity: 0;
  animation: fiora-flower-fall 9s linear infinite;
}
.hero-flowers span:nth-child(1)  { left: 4%;  animation-delay: 0s;   font-size: 28px; }
.hero-flowers span:nth-child(2)  { left: 12%; animation-delay: 2.2s; font-size: 20px; animation-duration: 11s; }
.hero-flowers span:nth-child(3)  { left: 21%; animation-delay: 5s;   font-size: 24px; }
.hero-flowers span:nth-child(4)  { left: 30%; animation-delay: 1s;   font-size: 30px; animation-duration: 10s; }
.hero-flowers span:nth-child(5)  { left: 39%; animation-delay: 6.5s; font-size: 22px; }
.hero-flowers span:nth-child(6)  { left: 47%; animation-delay: 3.4s; font-size: 26px; animation-duration: 12s; }
.hero-flowers span:nth-child(7)  { left: 56%; animation-delay: 0.6s; font-size: 20px; }
.hero-flowers span:nth-child(8)  { left: 64%; animation-delay: 4.4s; font-size: 28px; animation-duration: 10s; }
.hero-flowers span:nth-child(9)  { left: 72%; animation-delay: 7.5s; font-size: 24px; }
.hero-flowers span:nth-child(10) { left: 80%; animation-delay: 2.8s; font-size: 30px; animation-duration: 11s; }
.hero-flowers span:nth-child(11) { left: 88%; animation-delay: 5.8s; font-size: 22px; }
.hero-flowers span:nth-child(12) { left: 95%; animation-delay: 1.8s; font-size: 26px; animation-duration: 12s; }
@keyframes fiora-flower-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .95; }
  35%  { transform: translate3d(22px, 120px, 0) rotate(90deg); }
  65%  { transform: translate3d(-18px, 250px, 0) rotate(200deg); }
  92%  { opacity: .9; }
  100% { transform: translate3d(14px, 420px, 0) rotate(320deg); opacity: 0; }
}
@media (max-width: 640px) {
  .shop-hero.logo-hero { --r: 22px; min-height: 300px; margin: 12px 0 22px; }
  .hero-flowers span:nth-child(n+9) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flowers { display: none; }
}
