/* FEMI LINE — storefront styles
   Colours, type and shapes follow the brand style guide in the developer handoff. */

:root {
  --taupe: #837665;
  --rose: #9D6E64;
  --deep: #7E544B;
  --linen: #F5EFEA;
  --sand: #E9E0D6;
  --espresso: #3A332D;
  --text: #4A4239;
  --white: #FFFFFF;
  --muted: #7b7168;

  --head: "Josefin Sans", "Century Gothic", "Futura", Arial, sans-serif;
  --body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --track: .14em;

  --pr: 40px;           /* petal corner radius */
  --gap: 16px;
  --wrap: 1280px;
  --hdr: 64px;
}
@media (min-width: 1024px) {
  :root { --pr: 70px; --gap: 28px; --hdr: 84px; }
}
[dir="rtl"] {
  --head: "Tajawal", "IBM Plex Sans Arabic", Arial, sans-serif;
  --body: "Tajawal", "IBM Plex Sans Arabic", Arial, sans-serif;
  --track: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
a:hover { color: var(--rose); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
h1, h2, h3, h4, p { margin: 0 0 .6em; }
ul { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--rose); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 8px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- type */
.h1, .h2, .h3, .h4, .eyebrow, .btn, .main-nav a, .card-name, .pdp-name, .footer-h, .chip, .tag, .opt-head, .fhead {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
}
[dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .h3, [dir="rtl"] .h4, [dir="rtl"] .btn, [dir="rtl"] .pdp-name { font-weight: 700; }
.h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.15; color: var(--taupe); letter-spacing: calc(var(--track) * 1.1); }
.h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; color: var(--taupe); }
.h3 { font-size: 20px; line-height: 1.3; color: var(--text); }
.h4 { font-size: 15px; line-height: 1.4; color: var(--text); }
.lead { font-size: 1.06em; max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .3em; color: var(--rose); margin-bottom: 14px;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.text-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--deep); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- star motif */
.star-bullet { width: 14px; height: 14px; color: var(--rose); flex: none; }
.star-icon { width: 34px; height: 34px; color: var(--rose); margin: 0 auto 12px; display: block; }
.divider { display: flex; align-items: center; gap: 16px; max-width: 360px; margin: 0 auto 18px; color: var(--rose); }
.divider span { flex: 1; height: 1px; background: var(--sand); }
.divider-star { width: 18px; height: 18px; }
.watermark { position: absolute; pointer-events: none; color: var(--rose); opacity: .1; width: 320px; height: 320px; }
@media (min-width: 1024px) { .watermark { width: 460px; height: 460px; } }
.ph-star { width: 34%; height: 34%; color: var(--white); opacity: .8; }
.db-star { width: 40%; height: 40%; color: var(--rose); }

/* ---------- petal frames */
.petal { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--sand); aspect-ratio: 3 / 4; }
.petal img { width: 100%; height: 100%; object-fit: cover; }
.petal.petal-a, .petal-a > .petal { border-radius: var(--pr) 0 var(--pr) 0; }
.petal.petal-b, .petal-b > .petal { border-radius: 0 var(--pr) 0 var(--pr); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 0; border: 1px solid transparent;
  font-size: 13px; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
[dir="rtl"] .btn { font-size: 15px; }
.btn-primary { background: var(--rose); color: var(--white); }
.btn-primary:hover { background: var(--deep); color: var(--white); }
.btn-primary[disabled], .btn-primary.is-disabled { background: #c9b6b0; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--taupe); }
.btn-secondary:hover { background: var(--linen); color: var(--text); }
.btn-light { background: var(--white); color: var(--deep); }
.btn-light:hover { background: var(--linen); color: var(--deep); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-row.center { justify-content: center; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 18px; height: 18px; vertical-align: -4px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text);
}
.icon-btn:hover { color: var(--rose); }

/* ---------- announcement + header */
.announce { background: var(--rose); color: var(--white); text-align: center; font-size: 13px; padding: 8px 16px; }
.announce p { margin: 0; letter-spacing: .04em; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--sand); }
.hdr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--hdr); gap: 12px; }
.logo { grid-column: 2; display: block; }
.logo img { width: 140px; height: auto; }
@media (min-width: 1024px) { .logo img { width: 150px; } }
.menu-toggle { grid-column: 1; justify-self: start; }
.main-nav { display: none; }
.hdr-tools { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 2px; }
.lang-link { display: none; font-weight: 700; text-decoration: none; color: var(--text); padding: 10px; min-height: 44px; align-items: center; }
.wish-count {
  position: absolute; top: 4px; inset-inline-end: 2px; min-width: 17px; height: 17px; border-radius: 9px;
  background: var(--rose); color: #fff; font-size: 10px; line-height: 17px; text-align: center; padding: 0 4px;
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-nav { display: block; grid-column: 1; align-self: stretch; }
  .main-nav > ul { height: 100%; }
  .main-nav > ul > li { display: flex; align-items: stretch; }
  .lang-link { display: inline-flex; }
  .main-nav > ul { display: flex; gap: 4px; }
  .main-nav > ul > li > a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; height: 100%; padding: 0 10px;
    font-size: 12.5px; color: var(--text); text-decoration: none;
  }
  [dir="rtl"] .main-nav > ul > li > a { font-size: 15px; }
  .main-nav > ul > li > a:hover, .has-mega:hover > a { color: var(--rose); }
  .caret { font-size: 10px; }
  .mega {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--white); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand);
    padding: 32px 0 36px; box-shadow: 0 20px 30px -24px rgba(58, 51, 45, .35);
  }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.is-open > .mega { display: block; }
  .has-mega.is-closing > .mega { display: none; }
  /* invisible bridge: the panel stays open while the mouse travels down into it */
  .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .mega { max-height: calc(100vh - var(--hdr) - 20px); overflow-y: auto; overscroll-behavior: contain; }
  .mega-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 32px; }
  .mega-brands { grid-template-columns: 1fr 3fr; }
  .mega-head { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 13px; color: var(--text); text-decoration: none; margin-bottom: 10px; }
  .mega-col ul a { display: block; padding: 5px 0; color: var(--text); text-decoration: none; }
  .mega-col ul a:hover { color: var(--rose); }
  .mega-all { font-weight: 700; color: var(--deep) !important; }
  .mega-promo { text-decoration: none; color: var(--text); }
  .promo-img { aspect-ratio: 4 / 3; margin-bottom: 10px; }
  .promo-title { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 13px; }
  .logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
.site-search { border-top: 1px solid var(--sand); padding: 14px 0; background: var(--linen); }
.site-search .wrap, .inline-search { display: flex; gap: 10px; }
.site-search input, .inline-search input, .brand-find input, .fsearch, .nl-form input[type="email"] {
  flex: 1; min-height: 52px; border: 1px solid var(--sand); background: var(--white); padding: 0 16px; border-radius: 0; min-width: 0;
}
.inline-search { margin-top: 18px; max-width: 560px; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(58, 51, 45, .45); }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(88vw, 380px);
  background: var(--white); overflow-y: auto; padding: 14px 20px 40px;
}
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-link, .drawer details summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  border-bottom: 1px solid var(--sand); color: var(--text); text-decoration: none; cursor: pointer;
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 14px;
}
.drawer details summary { list-style: none; }
.drawer details summary::-webkit-details-marker { display: none; }
.drawer details summary::after { content: "+"; font-size: 20px; color: var(--rose); }
.drawer details[open] summary::after { content: "–"; }
.drawer-sub { display: flex; align-items: center; min-height: 44px; padding-inline-start: 14px; color: var(--text); text-decoration: none; }
.drawer-sub.strong { font-weight: 700; color: var(--deep); }

/* ---------- breadcrumb */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--taupe); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--deep); text-decoration: underline; }

/* ---------- sections */
.section { padding: 48px 0; }
@media (min-width: 1024px) { .section { padding: 80px 0; } }
.section-tight { padding-top: 28px; }
.section-linen { background: var(--linen); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head .h2 { margin: 0; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--linen); padding: 36px 0 44px; }
.wm-hero { inset-inline-end: -110px; top: -90px; }
.hero-grid { display: grid; gap: 30px; align-items: center; position: relative; }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-photo:nth-child(2) { margin-top: 44px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .hero-photo:nth-child(2) { margin-top: 90px; }
}

/* category tiles */
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-top: 22px; }
.cat-tile { text-decoration: none; color: var(--text); display: block; flex: 0 0 calc((100% - var(--gap)) / 2); min-width: 0; }
@media (min-width: 768px) { .cat-tile { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (min-width: 1200px) { .cat-tile { flex-basis: calc((100% - 5 * var(--gap)) / 6); } }
.cat-tile:nth-child(even) .cat-img { border-radius: 0 var(--pr) 0 var(--pr); }
.cat-name { display: block; margin-top: 12px; text-align: center; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 14px; }
.cat-tile:hover .cat-name { color: var(--rose); }

/* brand tiles */
.brand-wall, .related-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.brand-wall > .logo-tile, .related-brands > .logo-tile { flex: 0 0 calc((100% - 12px) / 2); min-width: 0; }
@media (min-width: 768px) { .brand-wall > .logo-tile, .related-brands > .logo-tile { flex-basis: calc((100% - 36px) / 4); } }
.logo-tile {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--white); border: 1px solid var(--sand); min-height: 72px; padding: 12px;
  color: var(--text); text-decoration: none; transition: border-color .2s;
}
.logo-tile:hover, .logo-tile.is-active { border-color: var(--rose); }
/* brand logo + name, side by side */
.brand-mark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.bm-logo { flex: none; width: 40px; height: 40px; object-fit: contain; }
.bm-name { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 13px;
  line-height: 1.3; overflow-wrap: anywhere; text-align: start; }
.logo-tile-lg { min-height: 96px; }
.logo-tile-lg .bm-logo { width: 54px; height: 54px; }
.logo-tile-sm { min-height: 56px; padding: 8px 14px; }
.logo-tile-sm .bm-logo { width: 30px; height: 30px; }
.logo-tile-sm .bm-name { white-space: nowrap; font-size: 12px; }
.bom { display: grid; gap: 24px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--sand); align-items: center; }
.bom-products { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (min-width: 900px) { .bom { grid-template-columns: 1fr 1.3fr; gap: 48px; } }

/* occasion banner */
.occasion { position: relative; overflow: hidden; background: var(--rose); color: var(--white); padding: 48px 0; }
.occasion .h1 { color: var(--white); }
.wm-occasion { color: var(--white); opacity: .12; inset-inline-start: -120px; bottom: -140px; }
.occasion-grid { display: grid; gap: 28px; align-items: center; position: relative; }
.occasion-photo { max-width: 420px; width: 100%; justify-self: center; background: rgba(255, 255, 255, .18); }
@media (min-width: 900px) { .occasion { padding: 80px 0; } .occasion-grid { grid-template-columns: 1.2fr 1fr; } }

/* promises */
.promises { border-top: 1px solid var(--sand); }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }
@media (min-width: 900px) { .promise-grid { grid-template-columns: repeat(4, 1fr); } }
.promise { text-align: center; }
.promise p { font-size: 15px; margin: 0; }

/* partner */
.partner { position: relative; overflow: hidden; background: var(--linen); padding: 44px 0; }
.partner-rose { background: var(--rose); color: var(--white); }
.partner-rose .h2 { color: var(--white); }
.partner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; position: relative; }
.partner-inner p { margin: 0; max-width: 60ch; }

/* newsletter */
.newsletter { padding: 56px 0; }
.nl-form { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.nl-form input[type="email"] { flex: 1 1 240px; }
.notice { background: var(--linen); border-inline-start: 3px solid var(--rose); padding: 12px 16px; margin: 12px 0; }

/* ---------- product card + grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px var(--gap); }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; min-width: 0; }
.card-media { display: block; }
.card-media .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
@media (hover: hover) and (min-width: 1024px) { .card:hover .card-media .alt { opacity: 1; } }
.label {
  position: absolute; top: 12px; inset-inline-start: 12px; background: var(--white); color: var(--deep);
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 10.5px; padding: 6px 10px;
}
.petal-a .label { top: auto; bottom: 12px; }
.label-sale { background: var(--deep); color: var(--white); }
.wish-btn {
  position: absolute; top: 6px; inset-inline-end: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .85); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.wish-btn .ico { width: 20px; height: 20px; }
.wish-btn[aria-pressed="true"] { color: var(--rose); }
.wish-btn[aria-pressed="true"] path { fill: currentColor; }
.card-body { padding-top: 12px; }
.card-brand { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: 10.5px; color: var(--rose); margin: 0 0 4px; }
[dir="rtl"] .card-brand { letter-spacing: 0; font-size: 13px; }
.card-name { font-size: 13px; line-height: 1.45; margin: 0 0 4px; color: var(--text); }
[dir="rtl"] .card-name { font-size: 15px; }
.card-name a { color: inherit; text-decoration: none; }
.card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.wish-btn { z-index: 2; }
.card-price { color: var(--deep); font-weight: 700; margin: 0 0 6px; font-size: 15px; }
.card-price s, .pdp-price s { color: var(--muted); font-weight: 400; margin-inline-end: 6px; }
.dots { display: flex; gap: 6px; align-items: center; }
.dot { display: block; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(58, 51, 45, .25); }
.dots-more { font-size: 12px; color: var(--muted); }

.loadmore { text-align: center; margin-top: 40px; display: grid; justify-items: center; gap: 12px; }
.loadmore-count { margin: 0; font-size: 14px; }
.progress { width: min(260px, 70%); height: 2px; background: var(--sand); }
.progress span { display: block; height: 100%; background: var(--rose); transition: width .3s; }

/* ---------- title banner + shop */
.title-banner { position: relative; overflow: hidden; background: var(--linen); padding: 28px 0 32px; }
.title-banner .h1 { margin-bottom: 8px; }
.title-banner .lead { margin: 0; }
.title-banner-sm { padding: 24px 0; }
.wm-banner { inset-inline-end: -80px; top: -120px; }
.wm-banner-2 { inset-inline-start: -200px; bottom: -260px; opacity: .06; }
@media (min-width: 1024px) { .title-banner { padding: 44px 0 48px; } }

.brand-strip { border-bottom: 1px solid var(--sand); padding: 14px 0; }
.strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.strip li { flex: none; }
.strip-all { display: flex; align-items: center; gap: 6px; min-height: 56px; padding: 0 14px; white-space: nowrap; font-weight: 700; text-decoration: none; }

.shop-layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 1024px) { .shop-layout { grid-template-columns: 250px 1fr; gap: 44px; padding-top: 36px; } }

.filters { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(90vw, 360px); z-index: 70; background: var(--white);
  overflow-y: auto; padding: 16px 20px 28px; transform: translateX(-105%); transition: transform .25s; visibility: hidden; }
[dir="rtl"] .filters { transform: translateX(105%); }
.filters.is-open { transform: none; visibility: visible; }
.filters-backdrop { position: fixed; inset: 0; background: rgba(58, 51, 45, .45); z-index: 65; }
.filters-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-top .h4 { margin: 0; }
.filters-actions { position: sticky; bottom: -28px; background: var(--white); padding: 14px 0; display: grid; gap: 6px; justify-items: center; }
@media (min-width: 1024px) {
  .filters { position: static; width: auto; transform: none; visibility: visible; padding: 0; overflow: visible; z-index: auto; }
  [dir="rtl"] .filters { transform: none; }
  .filters-top { display: none; }
  .filters-backdrop { display: none !important; }
  .btn-filter { display: none !important; }
  .filters-actions { position: static; padding-top: 20px; }
}
.fgroup { border-bottom: 1px solid var(--sand); padding: 18px 0; }
.fhead { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); margin-bottom: 10px; }
.fsearch { width: 100%; min-height: 44px; margin-bottom: 8px; font-size: 15px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--rose); flex: none; }
.check .count { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.fbrands:not(.show-all) .is-extra { display: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatch-check, .swatch-opt { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.swatch-check input, .swatch-opt input, .chip-check input, .opt-btn input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(58, 51, 45, .25); }
input:checked + .swatch { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--rose); }
input:focus-visible + .swatch, input:focus-visible + span { outline: 2px solid var(--deep); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check span, .opt-btn span {
  display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--sand); font-size: 14px; font-weight: 700; background: var(--white);
}
.chip-check input:checked + span, .opt-btn input:checked + span { border-color: var(--rose); background: var(--rose); color: var(--white); }

.toolbar { display: grid; gap: 14px; margin-bottom: 16px; }
.style-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; white-space: nowrap;
  border: 1px solid var(--sand); color: var(--text); text-decoration: none; font-size: 12px;
}
.chip:hover { border-color: var(--taupe); color: var(--text); }
.chip.is-active { background: var(--rose); border-color: var(--rose); color: var(--white); }
.chip .count { font-family: var(--body); letter-spacing: 0; opacity: .75; }
.toolbar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-filter { min-height: 44px; padding: 0 18px; }
.item-count { margin: 0; font-size: 14px; color: var(--muted); }
.sort-form { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort-form select { min-height: 44px; border: 1px solid var(--sand); background: var(--white); padding: 0 12px; border-radius: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: var(--linen); color: var(--text); text-decoration: none; font-size: 11.5px; }
.tag:hover { background: var(--sand); color: var(--text); }
.empty { text-align: center; padding: 48px 16px; }
.empty p { max-width: 46ch; margin-inline: auto; }

/* ---------- product page */
.product { display: grid; gap: 28px; padding-top: 18px; padding-bottom: 40px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 36px; align-items: start; } }
.gallery-main {
  aspect-ratio: 4 / 5; display: flex; justify-content: flex-start; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--sand);
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .gallery { position: sticky; top: calc(var(--hdr) + 16px); } .gallery-main { overflow-x: hidden; } }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.thumbs .thumb:nth-child(n+5) { display: none; }
.thumbs.show-all .thumb { display: block; }
.thumb { border: 1px solid transparent; padding: 0; background: var(--sand); cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--rose); }
.thumb.is-hidden { display: none !important; }
.gallery-slide.is-hidden { display: none; }

.pdp-brand { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: 12.5px; color: var(--rose); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
[dir="rtl"] .pdp-brand { letter-spacing: 0; font-size: 15px; }
.pdp-name { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--taupe); margin: 2px 0 10px; }
.pdp-price { color: var(--deep); font-weight: 700; font-size: 21px; margin-bottom: 12px; }
.pdp-short { margin-bottom: 12px; }
.pdp-branch { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 10px 14px; background: var(--linen); }
.options { margin-top: 20px; }
.opt { margin-bottom: 18px; }
.opt-head { font-size: 13px; color: var(--text); margin-bottom: 8px; }
.opt-value { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn { position: relative; }
.opt-btn.is-unavailable span, .swatch-opt.is-unavailable .swatch { opacity: .35; }
.opt-btn.is-unavailable span { text-decoration: line-through; }
.swatch-opt.is-unavailable::after { content: ""; position: absolute; width: 32px; height: 1.5px; background: var(--text); transform: rotate(-45deg); }
.order-row { display: flex; gap: 10px; align-items: stretch; margin-top: 8px; }
.order-row .notice { flex: 1; margin: 0; }
.btn-wa { min-height: 56px; }
.wish-btn-lg { position: static; width: 56px; height: 56px; border: 1px solid var(--taupe); border-radius: 0; background: var(--white); flex: none; }
.order-hint { min-height: 1.5em; font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.services { display: grid; gap: 6px; margin: 22px 0; padding: 16px 0; border-block: 1px solid var(--sand); font-size: 15px; }
.services li { display: flex; align-items: center; gap: 10px; }
.designed-by { display: grid; grid-template-columns: 72px 1fr; gap: 6px 16px; align-items: center; padding: 18px; background: var(--linen); margin-bottom: 18px; }
.designed-by .text-link { grid-column: 2; min-height: 36px; }
.db-logo { width: 72px; height: 72px; background: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; grid-row: span 2; }
.db-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.designed-by .eyebrow { margin: 0; }
.db-name { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); margin: 0; }
.db-meta { margin: 0; font-size: 14px; color: var(--muted); }
.accordion details { border-bottom: 1px solid var(--sand); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; min-height: 54px; cursor: pointer; list-style: none;
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 13px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--rose); font-size: 20px; }
.accordion details[open] summary::after { content: "–"; }
.accordion .rich { padding-bottom: 16px; }
.pdp-code { font-size: 13px; color: var(--muted); margin-top: 14px; }

.sticky-order {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  background: var(--white); border-top: 1px solid var(--sand); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.sticky-info { flex: 1; min-width: 0; display: grid; }
.sticky-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 700; }
.sticky-price { color: var(--deep); font-weight: 700; font-size: 14px; }
.sticky-order .btn { padding: 0 16px; font-size: 12px; min-height: 50px; }
@media (min-width: 900px) { .sticky-order { display: none !important; } }

/* dialogs */
.dialog { border: 0; padding: 24px; max-width: min(760px, 94vw); width: 100%; max-height: 88vh; color: var(--text); }
.dialog::backdrop { background: rgba(58, 51, 45, .55); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.dialog-head .h3 { margin: 0; }
.zoom-dialog { padding: 0; background: var(--linen); max-width: 96vw; max-height: 96vh; width: auto; }
.zoom-dialog img { max-height: 94vh; width: auto; margin: 0 auto; }
.zoom-close { position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(255, 255, 255, .9); }

/* rich text (pages, size guide) */
.rich table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.rich th, .rich td { border: 1px solid var(--sand); padding: 8px 10px; text-align: start; }
.rich th { background: var(--linen); }
.rich h2 { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 18px; color: var(--text); margin-top: 1.4em; }

/* ---------- brands A–Z */
.brand-find { margin-top: 18px; max-width: 520px; display: flex; }
.featured-brands { display: grid; gap: 28px var(--gap); grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 700px) { .featured-brands { grid-template-columns: repeat(3, 1fr); } }
.fb-card { position: relative; display: grid; text-decoration: none; color: var(--text); }
.fb-badge {
  width: 76px; height: 76px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center;
  margin: -38px 0 0 20px; position: relative; box-shadow: 0 0 0 4px var(--white); overflow: hidden;
}
[dir="rtl"] .fb-badge { margin: -38px 20px 0 0; }
.fb-badge img { max-width: 76%; max-height: 76%; object-fit: contain; }
.fb-name { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 17px; margin-top: 10px; }
.fb-spec { color: var(--muted); font-size: 14px; }
.az-bar { display: flex; flex-wrap: wrap; gap: 4px; border-block: 1px solid var(--sand); padding: 10px 0; margin-bottom: 28px; position: sticky; top: var(--hdr); background: var(--white); z-index: 5; }
.az { min-width: 40px; min-height: 44px; border: 0; background: none; cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--text); }
.az:hover:not([disabled]) { color: var(--rose); }
.az.is-active { background: var(--rose); color: var(--white); }
.az[disabled] { color: #c8bfb6; cursor: default; }
.directory { display: grid; gap: 8px 48px; }
@media (min-width: 900px) { .directory { grid-template-columns: repeat(3, 1fr); } }
.dir-group { break-inside: avoid; margin-bottom: 20px; }
.dir-letter { font-family: var(--head); font-weight: 600; font-size: 40px; line-height: 1; color: var(--rose); margin-bottom: 8px; }
.dir-group a { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; border-bottom: 1px solid var(--sand); color: var(--text); text-decoration: none; }
.dir-group a:hover { color: var(--deep); }
.dir-group .count { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- brand storefront */
.brand-hero { position: relative; }
.brand-banner { position: relative; overflow: hidden; height: 220px; background: var(--linen); }
.brand-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .brand-banner { height: 380px; } }
.brand-card {
  position: relative; margin-top: -70px; background: var(--white); padding: 24px; display: grid; gap: 18px;
  box-shadow: 0 24px 40px -32px rgba(58, 51, 45, .45); border-radius: 0 var(--pr) 0 0;
}
[dir="rtl"] .brand-card { border-radius: var(--pr) 0 0 0; }
@media (min-width: 900px) { .brand-card { grid-template-columns: 140px 1fr; margin-top: -110px; padding: 36px 40px; max-width: 900px; gap: 32px; } }
.brand-card-logo { width: 110px; height: 110px; border-radius: 50%; background: var(--linen); display: flex; align-items: center; justify-content: center; overflow: hidden; }
@media (min-width: 900px) { .brand-card-logo { width: 140px; height: 140px; } }
.brand-card-logo img { max-width: 78%; max-height: 78%; object-fit: contain; }
.brand-story { max-width: 62ch; }
.brand-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.brand-meta span + span::before { content: "·"; margin-inline-end: 18px; color: var(--taupe); }
.brand-toolbar { margin-bottom: 24px; }
.brand-toolbar .style-chips { flex: 1; min-width: 0; }

/* ---------- footer */
.site-footer { background: var(--espresso); color: var(--sand); padding: 52px 0 24px; margin-top: 0; }
.site-footer a { color: var(--sand); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 130px; margin-bottom: 12px; }
.footer-brand p { max-width: 36ch; font-size: 15px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }
.footer-h { font-size: 12.5px; color: var(--white); margin-bottom: 10px; }
.footer-h-gap { margin-top: 22px; }
.footer-base { border-top: 1px solid rgba(233, 224, 214, .2); margin-top: 36px; padding-top: 18px; font-size: 13px; }
.footer-base p { margin: 0; }

/* maintenance page */
.maint { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 24px; background: var(--linen); }
.maint img { width: 180px; margin-bottom: 16px; }

body.page-product { padding-bottom: 0; }
@media (max-width: 899px) { body.page-product.has-sticky { padding-bottom: 76px; } }

.dir-group .bm-logo { width: 28px; height: 28px; }
.dir-group .bm-name { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400; }

/* ---------- bag, checkout, account */
.order-buttons { flex: 1; display: grid; gap: 10px; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 140%); transition: transform .25s;
  display: flex; gap: 16px; align-items: center; background: var(--espresso); color: var(--white); padding: 14px 20px; max-width: calc(100% - 32px); }
.toast.is-shown { transform: translate(-50%, 0); }
.toast a { color: var(--white); font-weight: 700; }
.page-product .toast { bottom: 90px; }
.dot-on { position: absolute; top: 9px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.notice-error { border-color: #a3242c; background: #f8e6e4; }
.notice ul { margin: 0; padding-inline-start: 18px; }
.bag-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .bag-layout { grid-template-columns: 1fr 360px; gap: 44px; } }
.bag-list { display: grid; gap: 0; }
.bag-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--sand); align-items: start; }
.bag-img { aspect-ratio: 3 / 4; }
.bag-info .card-name { position: static; font-size: 14px; }
.bag-info .card-name a::after { display: none; }
.bag-opts { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.bag-actions { display: flex; align-items: center; gap: 14px; }
.bag-actions select { min-height: 40px; border: 1px solid var(--sand); padding: 0 10px; background: var(--white); }
.bag-line { font-weight: 700; color: var(--deep); white-space: nowrap; margin: 0; }
.bag-summary { background: var(--linen); padding: 22px; display: grid; gap: 12px; }
@media (min-width: 960px) { .bag-summary { position: sticky; top: calc(var(--hdr) + 16px); } }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.sum dt { margin: 0; } .sum dd { margin: 0; text-align: end; font-weight: 700; }
.sum .sum-total { border-top: 1px solid var(--sand); padding-top: 10px; font-size: 18px; color: var(--deep); font-weight: 700; }
.mini-bag { display: grid; gap: 10px; font-size: 14px; }
.mini-bag li { display: flex; justify-content: space-between; gap: 12px; }
.mini-bag small { display: block; color: var(--muted); }
.stack-lg { display: grid; gap: 28px; }
.co-block { display: grid; gap: 14px; }
.co-block legend { margin-bottom: 12px; }
.co-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.fld input, .fld textarea, .fld select { min-height: 48px; border: 1px solid #d9cdbf; padding: 10px 14px; font-weight: 400; background: var(--white); border-radius: 0; width: 100%; }
.fld small { font-weight: 400; }
.fld-wide { grid-column: 1 / -1; }
.choice-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--sand); cursor: pointer; background: var(--white); }
.choice input { margin-top: 4px; accent-color: var(--rose); width: 18px; height: 18px; flex: none; }
.choice span { display: grid; } .choice small { color: var(--muted); }
.choice:has(input:checked) { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.choice-wide { grid-column: 1 / -1; }
.saved-addr { display: grid; gap: 10px; margin-bottom: 14px; }
.wa-sends { display: grid; gap: 12px; max-width: 420px; margin: 22px auto; }
.wa-send.is-sent { background: var(--deep); }
.wa-send.is-sent::after { content: " ✓"; }
/* WhatsApp order page: "one more step" + 3-second countdown */
.wa-next { display: grid; gap: 4px; max-width: 520px; margin: 18px auto 0; padding: 14px 18px; background: var(--linen);
  border-inline-start: 3px solid var(--rose); text-align: start; }
.wa-next strong { font-family: var(--head); letter-spacing: var(--track); text-transform: uppercase; font-size: 13px; color: var(--deep); }
.wa-count { display: grid; justify-items: center; gap: 6px; margin: 24px auto 0; }
.wa-count[hidden], .wa-done[hidden] { display: none; }
.wa-ring { position: relative; width: 76px; height: 76px; }
.wa-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.wa-ring circle { fill: none; stroke-width: 4; }
.wa-ring-bg { stroke: var(--sand); }
.wa-ring-bar { stroke: var(--rose); stroke-dasharray: 176; stroke-dashoffset: 0; stroke-linecap: round; }
.wa-ring-bar.run { animation: wa-ring 3s linear forwards; }
@keyframes wa-ring { to { stroke-dashoffset: 176; } }
.wa-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-size: 28px; color: var(--deep); }
.wa-ring span .ico { width: 30px; height: 30px; }
.wa-count.is-opening .wa-ring-bar { animation: none; stroke-dashoffset: 0; }
.wa-count-step { margin: 4px 0 0; font-weight: 700; color: var(--deep); }
.wa-count-text { margin: 0; color: var(--muted); }
.wa-done { max-width: 460px; margin: 20px auto 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .wa-ring-bar.run { animation: none; } }
.order-box { background: var(--linen); padding: 22px; margin: 24px 0; display: grid; gap: 14px; }
.inline-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.inline-actions form { display: flex; gap: 14px; margin: 0; }
.auth-box { max-width: 460px; }
.stack-form { display: grid; gap: 14px; }
.acc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 16px 0 28px; }
.acc-card { background: var(--linen); padding: 20px; display: grid; gap: 8px; align-content: start; }
.acc-card p { margin: 0; }
.acc-h { margin-top: 12px; }
.acc-logout { margin-top: 28px; }
.table-scroll { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.acc-table th, .acc-table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--sand); }
.acc-table .num { text-align: end; }
.addr-list { display: grid; gap: 12px; }
.label-inline { font-size: 12px; background: var(--rose); color: var(--white); padding: 2px 8px; }
@media (max-width: 600px) { .co-grid { grid-template-columns: 1fr; } .bag-item { grid-template-columns: 80px 1fr; } .bag-line { grid-column: 2; } }

/* ---------- hero slider */
.hero-track { display: grid; position: relative; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s, transform .8s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide .hero-grid { position: relative; }
.hero-slide { pointer-events: none; }
.hero-slide.is-active { pointer-events: auto; }
.hero-slide .btn-row:empty { display: none; }
.hero-slide { z-index: 0; } .hero-slide.is-active { z-index: 1; }
.hero-slide .hero-photo { transition: transform .8s ease; }
.hero-slide:not(.is-active) { transform: translateX(6%); }
[dir="rtl"] .hero-slide:not(.is-active) { transform: translateX(-6%); }
.hero-slide.is-leaving { transform: translateX(-6%); }
.hero-slide.is-active { transform: none; }
[dir="rtl"] .hero-slide.is-leaving { transform: translateX(6%); }
.hero-fade .hero-slide { transform: none !important; }
.hero-slide .hero-photo img { display: block; }
a.hero-photo { display: flex; }
.hero-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; position: relative; z-index: 2; }
.hero-arrow, .hero-pause { width: 44px; height: 44px; border: 1px solid var(--taupe); background: transparent; color: var(--text); cursor: pointer; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.hero-arrow:hover, .hero-pause:hover { background: var(--white); }
.hero-pause { font-size: 11px; letter-spacing: -1px; }
.hero-pause.is-paused span { letter-spacing: 0; }
.hero-dots { display: flex; gap: 4px; }
.hero-dot { width: 32px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.hero-dot::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--sand); transition: background .3s; }
.hero-dot.is-active::after { background: var(--rose); height: 3px; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide .hero-photo { transition: none; transform: none !important; } }

/* main menu labels stay on one line, also with extra items */
@media (min-width: 1024px) {
  .main-nav > ul > li > a { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  .main-nav > ul { gap: 0; }
  .main-nav > ul > li > a { padding: 0 7px; font-size: 11.5px; letter-spacing: .1em; }
}
