/* COSMALINE store
   Visual rules: one type family (Manrope for Latin, IBM Plex Sans Arabic for Arabic glyphs via unicode-range),
   Tailwind type scale only, spacing tokens only, flat backgrounds, Phosphor icons, base curve motion. */

@font-face { font-family: "Cosmaline Sans"; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cosmaline Sans"; font-weight: 500; font-display: swap; src: url(fonts/manrope-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cosmaline Sans"; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cosmaline Sans"; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cosmaline Sans"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cosmaline Sans"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cosmaline Sans"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cosmaline Sans"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  /* spacing tokens */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
  /* radius (Tailwind values) */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;
  /* colour */
  --bg: #FFFFFF; --surface: #F7F4EF; --surface-2: #EFE9DF; --line: #E6DFD3;
  --ink: #141414; --ink-2: #4A4A4A; --ink-3: #6B6B6B;
  --gold: #9A7631; --gold-soft: #F3EADB; --ok: #1E6B45; --err: #B3261E;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Cosmaline Sans", system-ui, sans-serif; font-size: 16px; line-height: 24px; font-style: normal; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== Text styles (names from the design system) ===== */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.015em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }

.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-300); }
section { scroll-margin-top: var(--s-900); }

/* ===== Skip link ===== */
.skip { position: fixed; inset-inline-start: var(--s-200); top: var(--s-200); z-index: 100; padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); background: var(--ink); color: #fff; text-decoration: none; transform: translateY(-200%); transition: transform 500ms var(--ease); }
.skip:focus { transform: translateY(0); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75); padding: var(--s-75) var(--s-100); border-radius: var(--r-xl); border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 500ms var(--ease), background-color 300ms var(--ease), opacity 300ms var(--ease), border-color 300ms var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, .nav-link:focus-visible, .qty button:focus-visible, summary:focus-visible, .cat:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2B2B2B; }
.btn-ghost { background: var(--bg); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-gold { background: var(--gold-soft); color: var(--ink); border-color: #E5D6BB; }
.btn-gold:hover { background: #EBDDC4; }
.btn-lg { padding: var(--s-100) var(--s-300); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full); border: 0; background: transparent; cursor: pointer; transition: background-color 300ms var(--ease), transform 500ms var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.98); }
.badge { position: absolute; top: 0; inset-inline-end: 0; min-width: 20px; height: 20px; padding-inline: var(--s-50); border-radius: var(--r-full); background: var(--gold); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform 500ms var(--ease); }
.badge.on { transform: scale(1); }
.badge.bump { animation: bump 500ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ===== Floating navigation ===== */
.nav { position: fixed; top: var(--s-200); left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: var(--s-300); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); width: max-content; max-width: calc(100% - var(--s-400)); border-radius: var(--r-2xl); background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(20, 20, 20, 0.08); box-shadow: 0 8px 24px rgba(20, 20, 20, 0.06); }
[dir="rtl"] .nav { padding: var(--s-75) var(--s-200) var(--s-75) var(--s-75); }
.brand { display: inline-flex; align-items: center; gap: var(--s-75); text-decoration: none; }
.brand img { width: 24px; height: 32px; object-fit: contain; }
.brand b { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.12em; }
.nav-links { display: flex; align-items: center; gap: var(--s-50); }
.nav-link { padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); text-decoration: none; color: var(--ink-2); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-link[aria-current="true"] { color: var(--ink); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: var(--s-50); }
.lang-btn { width: auto; padding-inline: var(--s-100); border-radius: var(--r-lg); }
.menu-btn { display: none; }
.menu-icon { position: relative; width: 18px; height: 12px; }
.menu-icon span { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 5px; }
.menu-icon span:nth-child(3) { top: 10px; }
.menu-open .menu-icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-icon span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu-open .menu-icon span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 40; padding: 112px var(--s-300) var(--s-400); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); display: flex; flex-direction: column; gap: var(--s-75); opacity: 0; pointer-events: none; transition: opacity 500ms var(--ease); }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: var(--s-100) var(--s-75); text-decoration: none; border-radius: var(--r-lg); opacity: 0; transform: translateY(24px); transition: transform 500ms var(--ease), opacity 500ms var(--ease); }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu .mm-foot { margin-top: auto; }

/* ===== Hero ===== */
.hero { padding-top: 112px; padding-bottom: var(--s-800); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: var(--gold-soft); color: #5C4419; }
.hero h1 { max-width: 680px; margin: var(--s-300) auto 0; padding-bottom: var(--s-50); background: linear-gradient(90deg, #000000, #666666); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .hero h1 { background-image: linear-gradient(270deg, #000000, #666666); }
.hero .sub { max-width: 680px; margin: var(--s-300) auto 0; color: var(--ink-2); }
.hero-cta { margin-top: var(--s-400); display: flex; justify-content: center; }
.proof { margin-top: var(--s-300); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75) var(--s-300); color: var(--ink-3); }
.proof span { display: inline-flex; align-items: center; gap: var(--s-75); }
.proof .icon { color: var(--gold); }
.mosaic { margin-top: var(--s-700); display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-200); }
.mosaic figure { margin: 0; padding: var(--s-75); border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); }
.mosaic figure:nth-child(even) { transform: translateY(var(--s-400)); }

/* ===== Sections ===== */
.section { padding-block: var(--s-900); }
.section-head { max-width: 680px; margin-bottom: var(--s-600); }
.section-head .kicker { color: var(--gold); margin-bottom: var(--s-100); display: block; }
.section-head p { margin-top: var(--s-200); color: var(--ink-2); }
.tinted { background: var(--surface); }

/* categories */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-200); }
.cat { display: flex; align-items: center; gap: var(--s-200); padding: var(--s-200); border-radius: var(--r-2xl); background: var(--bg); border: 1px solid var(--line); text-align: start; cursor: pointer; transition: transform 500ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease); }
.cat:hover { transform: translateY(-2px); border-color: #D7C7A8; }
.cat:active { transform: scale(0.98); }
.cat .ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-xl); background: var(--gold-soft); color: #6E5222; flex: none; }
.cat .muted { display: block; }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-300); }
.benefit { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--bg); border: 1px solid var(--line); }
.benefit .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-xl); background: var(--ink); color: #fff; margin-bottom: var(--s-300); }
.benefit p { margin-top: var(--s-75); color: var(--ink-2); }

/* tagline reveal */
.tagline { padding-block: 160px; }
.tagline p { text-wrap: balance; max-width: 900px; margin-inline: auto; text-align: center; }
.tagline .w { color: rgba(20, 20, 20, 0.28); transition: color 500ms var(--ease); }
.tagline .w.on { color: var(--ink); }

/* catalog */
.toolbar { position: sticky; top: 88px; z-index: 5; display: flex; flex-direction: column; gap: var(--s-200); padding: var(--s-200); margin-bottom: var(--s-400); border-radius: var(--r-2xl); background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.search { position: relative; }
.search .icon { position: absolute; top: 12px; inset-inline-start: var(--s-100); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; padding: var(--s-100) var(--s-100); padding-inline-start: var(--s-500); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); outline: none; transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
.search input:focus { background: var(--bg); border-color: var(--gold); }
.chips { display: flex; gap: var(--s-75); overflow-x: auto; scrollbar-width: none; padding-bottom: var(--s-25); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: var(--s-50) var(--s-100); border-radius: var(--r-full); border: 1px solid var(--line); background: var(--bg); cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 500ms var(--ease); }
.chip:hover { background: var(--surface); }
.chip:active { transform: scale(0.98); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); margin-bottom: var(--s-200); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-300); }
.card { display: flex; flex-direction: column; padding: var(--s-75); border-radius: var(--r-2xl); background: var(--bg); border: 1px solid var(--line); transition: transform 500ms var(--ease), border-color 300ms var(--ease); }
.card:hover { transform: translateY(-2px); border-color: #D7C7A8; }
.card .ph { border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.card .ph svg, .card .ph .pic { display: block; width: 100%; height: auto; aspect-ratio: 1; padding: var(--s-200); transition: transform 500ms var(--ease); }
.card .ph .pic { padding: var(--s-100); object-fit: contain; }
.card:hover .ph svg, .card:hover .ph .pic { transform: translateY(-4px) scale(1.04); }
.card .body { display: flex; flex-direction: column; gap: var(--s-50); padding: var(--s-100) var(--s-75) var(--s-75); flex: 1; }
.card .cat-name { color: var(--gold); }
.card .name { min-height: 48px; }
.card .alt { color: var(--ink-3); }
.card .foot { margin-top: auto; padding-top: var(--s-100); display: flex; align-items: center; justify-content: space-between; gap: var(--s-75); }
.price { display: flex; flex-direction: column; }
.add { padding: var(--s-75) var(--s-100); }
.qty { display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-25); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: var(--r-lg); background: var(--bg); cursor: pointer; transition: background-color 300ms var(--ease), transform 500ms var(--ease); }
.qty button:hover { background: var(--surface-2); }
.qty button:active { transform: scale(0.98); }
.qty output { min-width: 24px; text-align: center; }

.skeleton { pointer-events: none; }
.skeleton .ph, .skeleton .bar { background: var(--surface-2); animation: pulse 1600ms var(--ease) infinite; }
.skeleton .ph { aspect-ratio: 1; }
.skeleton .bar { height: 12px; border-radius: var(--r-full); }
@keyframes pulse { 50% { opacity: 0.45; } }

.empty { padding: var(--s-700) var(--s-300); border-radius: var(--r-2xl); background: var(--surface); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-100); }
.empty .ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r-full); background: var(--bg); color: var(--gold); margin-bottom: var(--s-75); }
.empty .btn { margin-top: var(--s-100); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-300); counter-reset: step; }
.step { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--bg); border: 1px solid var(--line); }
.step .n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-full); background: var(--gold-soft); color: #5C4419; margin-bottom: var(--s-300); }
.step p { margin-top: var(--s-75); color: var(--ink-2); }

/* trust */
.trust { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-300); }
.trust-card { padding: var(--s-400); border-radius: var(--r-3xl); background: var(--ink); color: #fff; }
.trust-card p { margin-top: var(--s-200); color: #CFCFCF; }
.trust-card ul { margin-top: var(--s-300); display: grid; gap: var(--s-100); }
.trust-card li { display: flex; gap: var(--s-100); align-items: flex-start; }
.trust-card li .icon { color: #D9BC83; margin-top: var(--s-25); }
.trust-card a { color: #fff; }
.visit { padding: var(--s-400); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s-200); }
.visit .row { display: flex; gap: var(--s-100); align-items: flex-start; }
.visit .row .icon { color: var(--gold); margin-top: var(--s-25); }
.visit .row a { text-decoration: none; }
.visit .row a:hover { text-decoration: underline; }

/* faq */
.faq { max-width: 800px; display: grid; gap: var(--s-100); }
.faq details { border-radius: var(--r-2xl); background: var(--bg); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); padding: var(--s-200) var(--s-300); border-radius: var(--r-2xl); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 500ms var(--ease); color: var(--ink-3); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .a { padding: 0 var(--s-300) var(--s-300); color: var(--ink-2); }

/* final cta */
.final { text-align: center; }
.final .box { padding: var(--s-800) var(--s-300); border-radius: var(--r-3xl); background: var(--gold-soft); border: 1px solid #E5D6BB; }
.final h2 { max-width: 680px; margin-inline: auto; }
.final p { max-width: 560px; margin: var(--s-200) auto 0; color: var(--ink-2); }
.final .hero-cta { margin-top: var(--s-400); }
.final .alt-line { margin-top: var(--s-200); }
.final .alt-line a { color: var(--ink); }

/* footer */
footer { padding-block: var(--s-700) var(--s-500); border-top: 1px solid var(--line); margin-top: var(--s-900); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-400); }
.foot-grid h3 { margin-bottom: var(--s-200); }
.foot-grid li + li { margin-top: var(--s-75); }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { margin-top: var(--s-200); max-width: 360px; color: var(--ink-3); }
.copyright { margin-top: var(--s-600); color: var(--ink-3); }

/* ===== Cart drawer ===== */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20, 20, 20, 0.36); opacity: 0; pointer-events: none; transition: opacity 500ms var(--ease); }
.drawer { visibility: hidden; position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 70; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 500ms var(--ease), visibility 0s var(--ease) 500ms; box-shadow: 0 0 48px rgba(20, 20, 20, 0.12); }
[dir="rtl"] .drawer { transform: translateX(-100%); }
.cart-open .scrim { opacity: 1; pointer-events: auto; }
.cart-open .drawer { visibility: visible; transform: translateX(0); transition: transform 500ms var(--ease), visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-200) var(--s-300); border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s-200) var(--s-300) var(--s-300); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-100); align-items: center; padding-block: var(--s-100); border-bottom: 1px solid var(--line); }
.line .thumb { width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--surface); display: block; }
.line .thumb svg, .line .thumb .pic { width: 100%; height: 100%; display: block; padding: var(--s-50); object-fit: contain; }
.line .meta { min-width: 0; }
.line .meta .title-4 { display: block; }
.line .right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-50); }
.link-btn { border: 0; background: none; padding: var(--s-50); color: var(--ink-3); cursor: pointer; display: inline-flex; gap: var(--s-50); align-items: center; border-radius: var(--r-md); transition: color 300ms var(--ease); }
.link-btn:hover { color: var(--err); }
.summary { margin-top: var(--s-300); padding: var(--s-200); border-radius: var(--r-2xl); background: var(--surface); display: grid; gap: var(--s-75); }
.summary .row { display: flex; justify-content: space-between; gap: var(--s-200); }
.form { margin-top: var(--s-300); display: grid; gap: var(--s-200); }
.field label { display: block; margin-bottom: var(--s-75); }
.field input, .field textarea { width: 100%; padding: var(--s-100); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg); outline: none; transition: border-color 300ms var(--ease); }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field.invalid input { border-color: var(--err); }
.field .err { display: none; margin-top: var(--s-50); color: var(--err); }
.field.invalid .err { display: block; }
.note { display: flex; gap: var(--s-75); align-items: flex-start; color: var(--ink-3); }
.sent { margin-top: var(--s-200); padding: var(--s-200); border-radius: var(--r-xl); background: #E9F4EE; color: var(--ok); display: none; gap: var(--s-75); align-items: flex-start; }
.sent.on { display: flex; }

/* toast */
.toast { position: fixed; bottom: var(--s-300); left: 50%; z-index: 80; transform: translate(-50%, 24px); opacity: 0; padding: var(--s-100) var(--s-200); border-radius: var(--r-xl); background: var(--ink); color: #fff; display: flex; gap: var(--s-75); align-items: center; transition: transform 500ms var(--ease), opacity 500ms var(--ease); pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* mobile sticky order bar */
.mbar { display: none; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats, .benefits { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav .lang-btn { display: none; }
  .menu-btn { display: inline-grid; }
  .nav { width: calc(100% - var(--s-400)); justify-content: space-between; }
  .hero { padding-top: 88px; padding-bottom: var(--s-700); }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .tagline .heading-2 { font-size: 30px; line-height: 36px; }
  .mosaic { grid-template-columns: repeat(3, 1fr); gap: var(--s-100); margin-top: var(--s-600); }
  .mosaic figure:nth-child(even) { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .section { padding-block: var(--s-800); }
  .tagline { padding-block: var(--s-900); }
  .toolbar { top: 76px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: var(--s-200); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-100); }
  .cats { grid-template-columns: 1fr 1fr; gap: var(--s-100); }
  .cat { flex-direction: column; align-items: flex-start; gap: var(--s-100); padding: var(--s-100); }
  .cat .ic { width: 40px; height: 40px; }
  .benefits { grid-template-columns: 1fr; }
  .card .body { padding: var(--s-75) var(--s-50) var(--s-50); }
  .card .name { min-height: 40px; font-size: 14px; line-height: 20px; }
  .card .foot { flex-direction: column; align-items: stretch; }
  .card .foot .btn, .card .foot .qty { width: 100%; justify-content: space-between; }
  .card .foot .btn { justify-content: center; }
  .trust-card, .visit { padding: var(--s-300); }
  .final .box { padding: var(--s-600) var(--s-200); }
  .mbar { position: fixed; left: var(--s-200); right: var(--s-200); bottom: var(--s-200); z-index: 30; display: flex; transform: translateY(160%); transition: transform 500ms var(--ease); }
  .mbar.on { transform: none; }
  .mbar .btn { width: 100%; box-shadow: 0 8px 24px rgba(20, 20, 20, 0.2); }
  body.has-mbar .toast { bottom: 88px; }
  body.has-mbar footer { padding-bottom: var(--s-900); }
}

[dir="ltr"] .flip { transform: scaleX(-1); }
.more { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: var(--s-300); }

/* ===== Orbit motion (logo with products orbiting in 3D) ===== */
.orbit { position: relative; perspective: 1200px; isolation: isolate; user-select: none; }
.orbit > * { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; }
.orbit-logo { z-index: 20; opacity: 0; }
.orbit-logo img { height: var(--logo-h, 240px); width: auto; filter: drop-shadow(0 16px 24px rgba(122, 88, 28, 0.22)); }
.orbit-glow { width: 56%; aspect-ratio: 1.8; border-radius: var(--r-full); background: #F3E6CC; filter: blur(48px); z-index: 0; opacity: 0; }
.orbit-ring { border: 1px solid rgba(154, 118, 49, 0.5); border-radius: 50%; z-index: 2; opacity: 0; }
.orbit-item { opacity: 0; }
.orbit-face { width: 100%; height: 100%; transform-style: preserve-3d; filter: drop-shadow(0 16px 16px rgba(60, 44, 16, 0.14)); }
.orbit-face svg, .orbit-face img { width: 100%; height: 100%; display: block; object-fit: contain; }
/* add-to-cart: product copy flies to the cart icon, then the icon catches it */
.fly { position: fixed; z-index: 90; pointer-events: none; object-fit: contain; will-change: transform, opacity; filter: drop-shadow(0 12px 16px rgba(60, 44, 16, 0.2)); }
#cartBtn.catch { animation: catch 500ms var(--ease); }
@keyframes catch { 35% { transform: scale(1.18) rotate(-6deg); } 70% { transform: scale(0.96); } 100% { transform: scale(1); } }
.hero-stage { height: 440px; margin: 0 auto var(--s-500); max-width: 1100px; }
@media (max-width: 860px) { .hero-stage { height: 300px; margin-bottom: var(--s-200); } }
@media (max-width: 640px) { .hero-stage { height: 260px; } }

/* ===== Store policy pages (terms, returns, delivery, privacy) ===== */
.doc-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.doc-nav-in { display: flex; align-items: center; gap: var(--s-300); padding-block: var(--s-100); }
.doc-links { display: flex; flex-wrap: wrap; gap: var(--s-50); flex: 1; }
.doc-links .nav-link[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.doc { max-width: 760px; margin-inline: auto; padding-block: var(--s-800) 0; }
.doc h1 { margin-top: var(--s-200); }
.doc > p { margin-top: var(--s-200); }
.doc section { margin-top: var(--s-500); padding-top: var(--s-400); border-top: 1px solid var(--line); }
.doc section h2 { margin-bottom: var(--s-200); }
.doc ul, .doc ol { margin: 0; padding-inline-start: var(--s-300); color: var(--ink-2); }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li + li { margin-top: var(--s-100); }
.doc section > p { color: var(--ink-2); }
.doc section > p + p, .doc ul + p { margin-top: var(--s-200); }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-contact { display: grid; gap: var(--s-100); padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); }
.doc-contact p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-75) var(--s-300); }
.doc-contact b { font-weight: 600; }
.policy-page footer { margin-top: var(--s-800); }
@media (max-width: 860px) {
  .doc-nav-in { flex-wrap: wrap; gap: var(--s-100); }
  .doc-links { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .doc-links .nav-link { white-space: nowrap; }
  .nav-tools { margin-inline-start: auto; }
  .doc { padding-block: var(--s-600) 0; }
}
.policy-page footer .copyright { margin-top: 0; }

/* ===== Card payment in the order list ===== */
.form .or { display: flex; align-items: center; gap: var(--s-100); }
.form .or::before, .form .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.test-badge { justify-self: start; align-self: flex-start; padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: var(--gold-soft); color: #5C4419; }
.pay-err { color: var(--err); }
.pay-err:empty { display: none; }
/* payment result page */
.paid-page main { min-height: 70vh; display: grid; place-items: center; padding-block: var(--s-800); }
.paid-card { width: 100%; max-width: 560px; margin-inline: auto; padding: var(--s-500) var(--s-400); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-200); }
.paid-card .ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r-full); background: var(--ink); color: #fff; }
.paid-card .ic.ok { background: var(--ok); }
.paid-card .ic.bad { background: var(--err); }
.paid-card .code { padding: var(--s-50) var(--s-200); border-radius: var(--r-full); background: var(--bg); border: 1px solid var(--line); }
.paid-card ul { width: 100%; text-align: start; border-top: 1px solid var(--line); padding-top: var(--s-200); }
.paid-card li { display: flex; justify-content: space-between; gap: var(--s-200); color: var(--ink-2); }
.paid-card li + li { margin-top: var(--s-75); }
.paid-card .total { width: 100%; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: var(--s-200); }
.paid-card .actions { width: 100%; display: grid; gap: var(--s-100); margin-top: var(--s-100); }
.spin { width: 32px; height: 32px; border-radius: var(--r-full); border: 3px solid var(--surface-2); border-top-color: var(--ink); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2400ms; } }
.paid-card .test-badge { align-self: center; }
