/* Hijaaaby shared styles: design tokens, layout and components used across all pages. */
:root {
  --ink: #35272e;
  --muted: #7f7177;
  --rose: #995774;
  --rose-dark: #783f59;
  --rose-light: #f5e5e9;
  --rose-line: #ead7de;
  --cream: #faf7f5;
  --paper: #ffffff;
  --border: #ede6e4;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --max-width: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 400 15px/1.65 var(--body); }
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #bb819a; outline-offset: 3px; }
.container { width: min(calc(100% - 64px), var(--max-width)); margin: 0 auto; }
.eyebrow { color: var(--rose); font-size: 11px; letter-spacing: .19em; text-transform: uppercase; font-weight: 700; }
.section-heading { margin: 8px 0 12px; font: 500 clamp(30px, 3.5vw, 48px)/1.17 var(--display); letter-spacing: -.025em; }
.section-copy { color: var(--muted); max-width: 550px; margin: 0; }

/* Top announcement and navigation */
.announcement { min-height: 37px; background: var(--rose-dark); color: #fff; display: grid; place-items: center; padding: 6px 18px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-shell { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { font: 600 30px/1 var(--display); letter-spacing: -.05em; text-decoration: none; white-space: nowrap; }
.logo .dot { color: var(--rose); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 38px; }
.nav-links a { font-size: 13px; font-weight: 700; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--rose); }
.header-link { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; text-decoration: none; color: var(--rose-dark); font-weight: 700; border-bottom: 1px solid var(--rose); padding: 7px 0; white-space: nowrap; }
.header-link span { font-size: 19px; }
.menu-toggle { display: none; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 8px 13px; color: var(--ink); font-size: 13px; font-weight: 700; }

/* Editorial hero */
.hero { background: linear-gradient(125deg, #f9f3f1 0%, #f6e8e9 100%); overflow: hidden; }
.hero-grid { min-height: 604px; display: grid; grid-template-columns: 1fr .92fr; align-items: stretch; gap: min(5vw, 80px); }
.hero-copy { align-self: center; padding: 88px 0 85px; position: relative; z-index: 1; }
.hero-caption { display: flex; align-items: center; gap: 14px; }
.hero-caption::before { content: ''; width: 30px; height: 1px; background: var(--rose); }
h1 { font: 500 clamp(49px, 5.7vw, 83px)/1.09 var(--display); letter-spacing: -.045em; margin: 26px 0 25px; max-width: 750px; }
h1 em { color: var(--rose); font-weight: 500; }
.hero-copy > p { font-size: 16px; line-height: 1.95; max-width: 490px; color: #71636b; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 48px; border-radius: 6px; padding: 13px 22px; text-decoration: none; border: 1px solid transparent; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { background: var(--rose-dark); color: white; }
.btn-primary:hover { background: #5f3044; }
.btn-soft { color: var(--rose-dark); background: transparent; border-color: #d7b2c1; }
.btn-soft:hover { background: #fff8fa; }
.hero-footnote { display: flex; align-items: center; gap: 10px; margin-top: 51px; color: #8b7880; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.hero-footnote::before { content: '✦'; color: var(--rose); font-size: 17px; }
.hero-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 540px; }
.hero-visual::before { content: ''; position: absolute; height: 84%; width: 87%; background: linear-gradient(145deg, #ebd1d6, #e7cbd1); left: 7%; bottom: 0; border-radius: 49% 49% 0 0; }
.hero-image-wrap { position: relative; width: 83%; height: 92%; margin: 0 0 0 auto; overflow: hidden; border-radius: 180px 180px 0 0; background: #eddae1; }
.hero-image-wrap img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center bottom; }
.hero-image-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #a9778f; font: 500 200px/1 var(--display); user-select: none; }
.hero-image-label { position: absolute; bottom: 37px; left: -11px; background: rgba(255,255,255,.96); box-shadow: 0 14px 45px #5536431c; padding: 16px 22px; border-radius: 4px; display: flex; align-items: center; gap: 16px; }
.hero-label-icon { font: italic 36px/1 var(--display); color: var(--rose); }
.hero-image-label strong { display: block; font-size: 13px; }
.hero-image-label small { display: block; font-size: 11px; color: var(--muted); }

/* Value line */
.value-bar { background: var(--paper); border-bottom: 1px solid var(--border); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; min-height: 104px; }
.value-item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 22px; }
.value-item + .value-item { border-left: 1px solid var(--border); }
.value-symbol { font: italic 35px/1 var(--display); color: var(--rose); }
.value-item strong { display: block; font-size: 13px; font-weight: 700; }
.value-item small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }

/* Collection */
.collection { padding: 98px 0 110px; }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 32px; }
.section-intro > p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.shop-toolbar { display: grid; grid-template-columns: minmax(225px, 1fr) repeat(3, minmax(125px, .48fr)); gap: 12px; padding: 16px; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 30px; }
.filter-field { position: relative; display: flex; align-items: center; }
.filter-field svg { width: 17px; height: 17px; position: absolute; left: 15px; color: #8c7d84; pointer-events: none; }
.filter-field input, .filter-field select { width: 100%; min-width: 0; height: 46px; border: 1px solid var(--border); background: var(--cream); border-radius: 6px; color: var(--ink); outline: none; padding: 0 14px; font-size: 12px; }
.filter-field input { padding-left: 43px; }
.filter-field input:focus, .filter-field select:focus { border-color: var(--rose); box-shadow: 0 0 0 3px #e7c9d577; }
.filter-field input::placeholder { color: #92858b; }
.filter-field select { cursor: pointer; }
.results-line { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 20px; min-height: 20px; }
.status { text-align: center; color: var(--rose); padding: 40px 12px; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; align-items: stretch; }
.product { min-width: 0; background: white; border: 1px solid var(--border); border-radius: 10px; padding: 11px; box-shadow: 0 10px 32px #48343e08; transition: transform .22s, box-shadow .22s; }
.product:hover { transform: translateY(-3px); box-shadow: 0 18px 42px #48343e13; }
.product-media { min-width: 0; }
.photo { position: relative; width: 100%; aspect-ratio: 4/5; background: #f5e9ed; border-radius: 7px; overflow: hidden; display: grid; place-items: center; color: var(--rose); }
.photo .photo-placeholder { font-size: 54px; }
.main-photo-button { display: block; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; cursor: zoom-in; }
.main-photo-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo:hover .main-photo-button img { transform: scale(1.012); }
.main-photo-button img { transition: transform .3s; }
.image-count { position: absolute; left: 13px; top: 13px; padding: 6px 10px; border-radius: 4px; background: rgba(255,255,255,.93); font-size: 10px; font-weight: 700; color: var(--rose-dark); letter-spacing: .03em; pointer-events: none; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; border: 1px solid #ebe4e5; background: rgba(255,255,255,.94); box-shadow: 0 3px 12px #11111112; color: var(--ink); width: 34px; height: 34px; border-radius: 50%; font-size: 23px; line-height: 1; display: grid; place-items: center; }
.gallery-arrow:hover { color: var(--rose); background: white; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-thumbnails { display: flex; align-items: center; gap: 9px; margin: 12px 0 2px; padding: 2px 2px 5px; overflow-x: auto; }
.gallery-thumbnail { flex: 0 0 52px; width: 52px; height: 66px; padding: 2px; border: 2px solid transparent; background: #f5e8ec; border-radius: 5px; }
.gallery-thumbnail.active { border-color: var(--rose); }
.gallery-thumbnail img { display: block; height: 100%; width: 100%; object-fit: contain; }
.photo-hint { color: var(--muted); margin: 6px 0 0; text-align: start; font-size: 10px; }
.product-content { padding: 16px 9px 10px; min-width: 0; }
.product-overline { color: var(--rose); text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 700; }
.product h3 { font: 500 25px/1.26 var(--display); margin: 9px 0 9px; }
.product-details { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; margin: 0 0 17px; }
.product-detail-dot { color: #bda4ad; }
.color-swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid #d8cdd2; border-radius: 50%; flex: 0 0 auto; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 17px; border-top: 1px solid var(--border); }
.product-price { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.stock { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.coming-soon { border: 1px solid var(--rose-line); background: #fbf3f6; padding: 9px 14px; border-radius: 5px; color: var(--rose); font-size: 11px; font-weight: 700; white-space: nowrap; cursor: not-allowed; }
.coming-soon:disabled { opacity: 1; }
.empty-message { text-align: center; border: 1px dashed #e3cdd5; background: #fff; padding: 50px 24px; border-radius: 12px; }
.empty-message h3 { margin: 0 0 5px; font: 500 27px var(--display); }
.empty-message p { color: var(--muted); margin: 0 0 16px; }
.clear-filters { background: none; border: none; color: var(--rose-dark); text-decoration: underline; font-weight: 700; }

/* One-product presentation: editorial product spotlight */
.products.is-single { display: block; }
.products.is-single .product { max-width: 1010px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: clamp(25px, 5vw, 80px); padding: 20px; }
.products.is-single .product-content { padding: 26px 32px 26px 0; }
.products.is-single .product h3 { font-size: clamp(30px, 4vw, 47px); margin: 15px 0 15px; }
.products.is-single .product-details { font-size: 14px; margin-bottom: 30px; }
.products.is-single .product-bottom { margin-top: 30px; padding-top: 24px; }
.products.is-single .product-price { font-size: 25px; }
.products.is-single .product-note { display: block; }
.product-note { display: none; font-size: 13px; color: var(--muted); max-width: 290px; margin: 0; }

/* Editorial feature / upcoming AI styling */
.story { padding: 76px 0; background: var(--paper); border-top: 1px solid var(--border); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-top: 30px; }
.story-item { background: var(--cream); padding: 30px; border: 1px solid var(--border); border-radius: 8px; }
.story-number { color: var(--rose); font: italic 34px/1 var(--display); }
.story-item h3 { font: 500 24px/1.3 var(--display); margin: 19px 0 8px; }
.story-item p { font-size: 13px; color: var(--muted); margin: 0; }
.stylist { padding: 105px 0; background: #f1e4e8; }
.stylist-panel { position: relative; display: grid; grid-template-columns: 1fr .55fr; align-items: center; gap: 28px; overflow: hidden; }
.stylist .section-heading { max-width: 650px; }
.stylist-copy { max-width: 550px; margin: 16px 0 26px; color: #75616c; }
.coming-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #bd9eac; padding: 10px 16px; color: var(--rose-dark); border-radius: 30px; font-size: 12px; font-weight: 700; }
.coming-badge::before { content: ''; height: 7px; width: 7px; background: var(--rose); border-radius: 50%; }
.stylist-art { justify-self: end; width: min(100%, 330px); aspect-ratio: 1; border: 1px solid #ddc5cf; border-radius: 50%; display: grid; place-items: center; position: relative; }
.stylist-art::before { content: ''; position: absolute; inset: 22px; border: 1px solid #d9baca; border-radius: 50%; }
.stylist-art span { font: italic 130px/1 var(--display); color: #b78ca2; }

/* Footer */
footer { background: #30252b; color: #fff; padding: 64px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 57px; border-bottom: 1px solid #51434c; }
.footer-brand { font: 500 42px/1 var(--display); letter-spacing: -.04em; }
.footer-brand span { color: #cb98ad; }
.footer-desc { color: #c6b8c0; font-size: 13px; max-width: 260px; margin-top: 13px; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 16px; }
.footer-links a { color: #e9dfe3; font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; color: #ae9faa; font-size: 11px; padding-top: 22px; }

/* Full-size in-page image viewer: keeps existing gallery behavior */
.image-modal { position: fixed; inset: 0; z-index: 100; background: rgba(25, 17, 23, .95); display: flex; align-items: center; justify-content: center; padding: 65px 55px; }
.image-modal img { max-width: 100%; max-height: 100%; object-fit: contain; }
.modal-close, .modal-arrow { position: absolute; border: 0; border-radius: 50%; background: white; color: var(--ink); display: grid; place-items: center; width: 44px; height: 44px; font-size: 27px; cursor: pointer; }
.modal-close { top: 18px; right: 18px; }
.modal-prev { left: 12px; }
.modal-next { right: 12px; }
.modal-count { position: absolute; bottom: 22px; color: #f6eaef; font-size: 12px; letter-spacing: .12em; }

/* Responsive layout */
@media (max-width: 1080px) {
  .container { width: min(calc(100% - 48px), var(--max-width)); }
  .hero-grid { min-height: 540px; gap: 16px; }
  .hero-visual { min-height: 490px; }
  .hero-copy { padding: 72px 0; }
  .shop-toolbar { grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(110px, .5fr)); gap: 9px; }
}
@media (max-width: 800px) {
  .nav-shell { min-height: 72px; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; background: white; top: 100%; left: 0; right: 0; padding: 20px 24px; flex-direction: column; align-items: stretch; gap: 18px; border-bottom: 1px solid var(--border); box-shadow: 0 14px 20px #0000000d; }
  .nav-links.open { display: flex; }
  .header-link { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 63px 0; }
  .hero-copy > p { font-size: 14px; }
  h1 { font-size: clamp(43px, 6vw, 65px); }
  .hero-image-label { left: -8px; padding: 12px; }
  .value-item { gap: 8px; padding: 15px 7px; }
  .value-symbol { font-size: 26px; }
  .value-item small { font-size: 10px; }
  .products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shop-toolbar { grid-template-columns: 1fr 1fr; }
  .shop-toolbar .search-field { grid-column: 1/-1; }
  .products.is-single .product { gap: 22px; }
  .products.is-single .product-content { padding: 15px 10px; }
  .story-item { padding: 23px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .announcement { font-size: 10px; }
  .logo { font-size: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 58px 0 40px; }
  .hero-caption { font-size: 10px; }
  h1 { font-size: clamp(48px, 11.3vw, 66px); margin: 23px 0 19px; }
  .hero-copy > p { font-size: 14px; margin-bottom: 23px; }
  .hero-actions .btn { min-height: 46px; padding: 10px 15px; font-size: 12px; }
  .hero-footnote { margin-top: 30px; }
  .hero-visual { min-height: 390px; max-height: 470px; }
  .hero-visual::before { width: 82%; left: 11%; }
  .hero-image-wrap { width: 75%; margin: 0 auto; }
  .hero-image-label { bottom: 18px; left: 1px; }
  .value-grid { grid-template-columns: 1fr; padding: 10px 0; min-height: auto; }
  .value-item { justify-content: flex-start; padding: 10px 14px; }
  .value-item + .value-item { border: 0; border-top: 1px solid var(--border); }
  .collection { padding: 70px 0 78px; }
  .section-intro { display: block; }
  .section-intro > p { margin-top: 12px; }
  .shop-toolbar { grid-template-columns: 1fr 1fr; padding: 10px; gap: 8px; }
  .shop-toolbar .search-field, .shop-toolbar .sort-field { grid-column: 1/-1; }
  .filter-field input, .filter-field select { height: 43px; }
  .products { grid-template-columns: 1fr; gap: 19px; }
  .products.is-single .product { grid-template-columns: 1fr; padding: 11px; gap: 0; }
  .products.is-single .product-content { padding: 19px 9px 12px; }
  .products.is-single .product h3 { font-size: 32px; }
  .products.is-single .product-details { margin-bottom: 18px; }
  .products.is-single .product-bottom { margin-top: 17px; padding-top: 17px; }
  .products.is-single .product-price { font-size: 21px; }
  .photo { aspect-ratio: 4/5; }
  .story { padding: 64px 0; }
  .story-grid { grid-template-columns: 1fr; gap: 11px; }
  .story-item { padding: 23px; }
  .story-item h3 { margin-top: 10px; }
  .stylist { padding: 72px 0; }
  .stylist-panel { grid-template-columns: 1fr; }
  .stylist-art { display: none; }
  .footer-inner { display: block; padding-bottom: 33px; }
  .footer-links { gap: 20px; }
  .footer-bottom { display: block; }
  .footer-bottom > span { display: block; margin-bottom: 7px; }
  .image-modal { padding: 76px 42px; }
  .modal-close, .modal-arrow { width: 38px; height: 38px; font-size: 23px; }
  .modal-prev { left: 3px; }
  .modal-next { right: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

/* Shop card links to product pages */
.product h3 a { text-decoration: none; }
.product h3 a:hover { color: var(--rose); }
.view-details { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rose-dark); background: var(--rose-dark); color: #fff; padding: 9px 14px; border-radius: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background .2s; }
.view-details:hover { background: #5f3044; }

/* Product detail page */
.pdp { padding: 26px 0 100px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }
.pdp-missing { max-width: 620px; margin: 40px auto; }
.pdp-missing .btn { margin-top: 6px; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp-gallery { position: sticky; top: 104px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; min-width: 0; }
.pdp-gallery .gallery-thumbnail { flex-basis: 64px; width: 64px; height: 80px; }
.pdp-info { min-width: 0; padding-top: 6px; }
.pdp-name { font: 500 clamp(34px, 4vw, 52px)/1.12 var(--display); letter-spacing: -.03em; margin: 12px 0 8px; }
.pdp-fabric { color: var(--muted); margin: 0 0 4px; font-size: 14px; }
.pdp-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; padding: 18px 0 22px; border-bottom: 1px solid var(--border); }
.pdp-price { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.pdp-stock { font-size: 12px; font-weight: 700; color: #4f7a5c; background: #edf5ef; padding: 5px 10px; border-radius: 20px; }
.pdp-stock.is-low { color: #9a5b12; background: #fbf1e3; }
.pdp-stock.is-out { color: #8c3a4f; background: #f8e6eb; }
.pdp-block { padding-top: 22px; }
.pdp-label { margin: 0 0 11px; font-size: 13px; color: var(--muted); }
.pdp-label strong { color: var(--ink); }
.pdp-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-color { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 14px 8px 9px; border: 1px solid var(--border); background: #fff; border-radius: 30px; color: var(--ink); font-size: 13px; font-weight: 600; }
.pdp-color:hover { border-color: #d7b2c1; }
.pdp-color.active { border-color: var(--rose-dark); box-shadow: 0 0 0 1px var(--rose-dark); }
.pdp-color.is-out span:last-child { text-decoration: line-through; color: var(--muted); }
.pdp-color-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #d8cdd2; background: linear-gradient(135deg, #f5e5e9, #e8d3da); flex: 0 0 auto; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; overflow: hidden; }
.qty button { width: 46px; height: 46px; border: 0; background: transparent; font-size: 20px; color: var(--ink); }
.qty button:hover:not(:disabled) { background: var(--cream); }
.qty button:disabled { color: #c9bfc3; cursor: not-allowed; }
.qty input { width: 54px; height: 46px; border: 0; border-inline: 1px solid var(--border); text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-actions { display: grid; gap: 11px; padding: 26px 0 8px; }
.pdp-actions .btn { width: 100%; }
.pdp-cart:disabled { background: #c9a7b6; cursor: not-allowed; }
.pdp-details { padding-top: 26px; }
.pdp-details h2 { font: 500 24px/1.3 var(--display); margin: 0 0 8px; }
.pdp-details p { margin: 0; color: #6f6168; white-space: pre-line; }
.pdp-specs { display: grid; grid-template-columns: max-content 1fr; gap: 12px 26px; margin: 26px 0 0; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.pdp-specs dt { font-weight: 700; }
.pdp-specs dd { margin: 0; color: #6f6168; }
@media (max-width: 800px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
}
@media (max-width: 600px) {
  .pdp { padding: 18px 0 70px; }
  .breadcrumb { margin-bottom: 16px; }
  .pdp-gallery { padding: 9px; }
  .pdp-name { font-size: 34px; }
  .pdp-price { font-size: 24px; }
}

/* Header cart */
.header-actions { display: flex; align-items: center; gap: 22px; }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s; }
.cart-link:hover { color: var(--rose); border-color: #d7b2c1; }
.cart-link svg { width: 21px; height: 21px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rose-dark); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count.bump { animation: cart-bump .35s ease; }
@keyframes cart-bump { 50% { transform: scale(1.3); } }
.cart-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 8px; background: #edf5ef; color: #2f5a3c; font-size: 13px; font-weight: 600; }
.cart-notice.is-warning { background: #fbf1e3; color: #7a4a0e; }
.cart-notice a { color: inherit; font-weight: 700; white-space: nowrap; }

/* Cart page */
.cart-page { padding: 26px 0 100px; }
.cart-title { font: 500 clamp(36px, 4.5vw, 54px)/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 26px; }
.cart-empty { max-width: 620px; margin: 10px auto; }
.cart-empty .btn { margin-top: 6px; }
#cart-notice-box { display: block; margin-bottom: 18px; }
#cart-notice-box p { margin: 0; }
#cart-notice-box p + p { margin-top: 4px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.cart-item.is-unavailable { background: #fcfafa; }
.cart-item.is-unavailable .cart-item-photo { opacity: .5; }
.cart-item-photo { width: 96px; height: 120px; border-radius: 7px; background: #f5e9ed; display: grid; place-items: center; overflow: hidden; text-decoration: none; font-size: 34px; }
.cart-item-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cart-item-info { min-width: 0; }
.cart-item-name { display: block; font: 500 21px/1.25 var(--display); text-decoration: none; }
a.cart-item-name:hover { color: var(--rose); }
.cart-item-meta { display: flex; align-items: center; gap: 7px; margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.cart-item-unit { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.is-unavailable .cart-item-unit { color: #8c3a4f; }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.qty-small button { width: 38px; height: 38px; font-size: 18px; }
.qty-value { min-width: 40px; text-align: center; font-weight: 700; border-inline: 1px solid var(--border); line-height: 38px; }
.cart-item-total { font-size: 16px; }
.cart-remove { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: 12px; text-decoration: underline; }
.cart-remove:hover { color: #8c3a4f; }
.cart-summary { position: sticky; top: 104px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.cart-summary h2 { font: 500 25px/1.2 var(--display); margin: 0 0 16px; }
.cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0; font-size: 14px; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; font-weight: 600; text-align: end; }
.summary-muted { color: var(--muted); font-weight: 500 !important; font-size: 13px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--border); font-weight: 600; }
.summary-total strong { font-size: 22px; }
.cart-summary .btn { width: 100%; }
.cart-summary .btn:disabled { background: #c9a7b6; cursor: not-allowed; }
.summary-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.continue-link { display: block; margin-top: 14px; text-align: center; font-size: 13px; font-weight: 700; color: var(--rose-dark); text-decoration: none; }
@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 600px) {
  .cart-page { padding: 18px 0 70px; }
  .cart-item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 11px; }
  .cart-item-photo { width: 76px; height: 95px; }
  .cart-item-name { font-size: 18px; }
  .cart-item-controls { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
  .cart-summary { padding: 20px; }
}

/* Checkout */
.checkout-error { display: block; margin-bottom: 18px; }
.checkout-error a { margin-inline-start: 4px; }
.checkout-form { display: grid; gap: 18px; min-width: 0; }
.checkout-form fieldset { margin: 0; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.checkout-form legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font: 500 22px/1.2 var(--display); }
.field { clear: both; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--cream); color: var(--ink); font-size: 16px; outline: none; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px #e7c9d577; background: #fff; }
.field [aria-invalid] { border-color: #b4475f; background: #fff7f8; }
.field-help { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: #a1354e; }
.field-error:empty { display: none; }
.payment-option { clear: both; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--rose-dark); border-radius: 8px; background: #fbf5f7; }
.payment-option strong { display: block; font-size: 14px; }
.payment-option small { display: block; color: var(--muted); font-size: 12px; }
.payment-dot { width: 18px; height: 18px; border-radius: 50%; border: 5px solid var(--rose-dark); background: #fff; flex: 0 0 auto; }
.checkout-items { list-style: none; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--border); display: grid; gap: 10px; font-size: 13px; }
.checkout-items li { display: flex; justify-content: space-between; gap: 14px; }
.checkout-items strong { white-space: nowrap; }

/* Order placed */
.order-done { max-width: 640px; margin: 10px auto 0; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 38px clamp(20px, 5vw, 46px); }
.done-icon { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #edf5ef; color: #2f5a3c; font-size: 28px; font-weight: 700; }
.order-done h1 { font: 500 clamp(28px, 4vw, 40px)/1.15 var(--display); margin: 10px 0 12px; letter-spacing: -.02em; }
.order-done > p { color: var(--muted); margin: 0 auto 22px; max-width: 470px; }
.btn-whatsapp { width: 100%; max-width: 380px; background: #1f8f4e; color: #fff; font-size: 15px; min-height: 54px; }
.btn-whatsapp:hover { background: #18773f; }
.done-summary { text-align: start; margin-top: 28px; padding: 20px; background: var(--cream); border-radius: 10px; }
.done-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; font-size: 14px; }
.done-summary dt { color: var(--muted); }
.done-summary dd { margin: 0; text-align: end; font-weight: 600; }
.done-summary .done-total { color: var(--ink); font-weight: 700; font-size: 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.done-address { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* Language switch */
.lang-switch { min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 22px; background: #fff; color: var(--rose-dark); font-size: 13px; font-weight: 700; transition: border-color .2s; }
.lang-switch:hover { border-color: #d7b2c1; }
.lang-switch:lang(ar) { font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; font-size: 14px; }
@media (max-width: 600px) {
  .header-actions { gap: 8px; }
  .lang-switch { padding: 0 11px; font-size: 12px; }
}

/* Hide the page for a moment while Arabic text is applied (falls back to visible after 1.5s). */
html.i18n-pending body { animation: i18n-reveal 0s linear 1.5s forwards; visibility: hidden; }
@keyframes i18n-reveal { to { visibility: visible; } }

/* Arabic: right-to-left layout and Arabic fonts */
[dir="rtl"] {
  --display: 'El Messiri', 'Playfair Display', Georgia, serif;
  --body: 'Tajawal', 'DM Sans', 'Segoe UI', Tahoma, sans-serif;
}
[dir="rtl"] body { font-size: 16px; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .logo, [dir="rtl"] .footer-brand { font-family: 'Playfair Display', Georgia, serif; }
[dir="rtl"] h1 { line-height: 1.3; }
[dir="rtl"] .eyebrow, [dir="rtl"] .product-overline { font-size: 13px; }
[dir="rtl"] .hero-visual::before { left: auto; right: 7%; }
[dir="rtl"] .hero-image-label { left: auto; right: -11px; }
[dir="rtl"] .value-item + .value-item { border-left: 0; border-right: 1px solid var(--border); }
[dir="rtl"] .filter-field svg { left: auto; right: 15px; }
[dir="rtl"] .filter-field input { padding-left: 14px; padding-right: 43px; }
[dir="rtl"] .image-count { left: auto; right: 13px; }
[dir="rtl"] .gallery-prev { left: auto; right: 10px; }
[dir="rtl"] .gallery-next { right: auto; left: 10px; }
[dir="rtl"] .gallery-arrow, [dir="rtl"] .modal-arrow { transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .modal-arrow { transform: scaleX(-1); }
[dir="rtl"] .modal-close { right: auto; left: 18px; }
[dir="rtl"] .modal-prev { left: auto; right: 12px; }
[dir="rtl"] .modal-next { right: auto; left: 12px; }
[dir="rtl"] .cart-count { right: auto; left: -4px; }
[dir="rtl"] .checkout-form legend { float: right; }
[dir="rtl"] .header-link span, [dir="rtl"] .btn span[aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] #f-phone { direction: ltr; text-align: right; }
[dir="rtl"] #f-phone::placeholder { text-align: right; }
@media (max-width: 800px) {
  [dir="rtl"] .hero-image-label { right: -8px; }
}
@media (max-width: 600px) {
  [dir="rtl"] .hero-visual::before { right: 11%; }
  [dir="rtl"] .hero-image-label { right: 1px; }
  [dir="rtl"] .value-item + .value-item { border-right: 0; }
  [dir="rtl"] .modal-prev { right: 3px; }
  [dir="rtl"] .modal-next { left: 3px; }
}
[dir="rtl"] .logo, [dir="rtl"] .footer-brand { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .footer-brand { text-align: right; }
[dir="rtl"] .cart-notice a span { display: inline-block; transform: scaleX(-1); }

/* Floating WhatsApp button */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1f8f4e; color: #fff; box-shadow: 0 10px 28px rgba(20, 70, 40, .3); transition: transform .2s, background .2s; }
.whatsapp-float:hover { transform: translateY(-2px); background: #18773f; }
.whatsapp-float svg { width: 30px; height: 30px; }
[dir="rtl"] .whatsapp-float { right: auto; left: 18px; }
@media (max-width: 600px) { .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; } [dir="rtl"] .whatsapp-float { left: 14px; } }

/* Footer social icons */
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #5d4d56; color: #f3e9ed; transition: background .2s; }
.footer-social a:hover { background: #3f333a; }
.footer-social svg { width: 18px; height: 18px; }

/* Product page reassurance */
.pdp-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.pdp-trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pdp-trust li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pdp-trust li::before { content: "✓"; color: #2f6a45; font-weight: 700; }
.pdp-trust a { color: var(--rose-dark); font-weight: 700; }
.summary-links { margin-top: 6px !important; }
.summary-links a { color: var(--rose-dark); font-weight: 600; }

/* Help and privacy pages */
.info-page { padding: 26px 0 100px; }
.info-container { max-width: 820px; }
.info-intro { color: var(--muted); font-size: 16px; margin: -12px 0 24px; }
.info-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.info-toc a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 20px; background: #fff; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--rose-dark); }
.info-toc a:hover { border-color: #d7b2c1; }
.info-section { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 16px; scroll-margin-top: 100px; }
.info-section h2 { font: 500 24px/1.25 var(--display); margin: 0 0 10px; }
.info-section p { margin: 0 0 10px; color: #5f5157; }
.info-section p:last-child { margin-bottom: 0; }
.info-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; color: #5f5157; }
.info-steps li::marker { color: var(--rose); font-weight: 700; }
.info-note { font-size: 13px; color: var(--muted) !important; margin-top: 12px !important; }
.info-note a { color: var(--rose-dark); font-weight: 700; }
#help-inspect { font-weight: 600; color: #2f6a45; }
.table-wrap { overflow-x: auto; margin: 6px 0; }
.zones-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.zones-table th, .zones-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: start; }
.zones-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--cream); }
.zones-table tbody th { font-weight: 600; }
.zones-table td { white-space: nowrap; }
.faq { border-top: 1px solid var(--border); }
.faq:last-child { border-bottom: 1px solid var(--border); }
.faq summary { padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { padding-bottom: 14px; }
.info-contact { text-align: center; }
.info-contact .btn-whatsapp { margin: 6px auto 0; }
@media (max-width: 600px) {
  .info-page { padding: 18px 0 80px; }
  .info-section { padding: 18px; }
  .zones-table th, .zones-table td { padding: 9px 8px; font-size: 13px; }
}

/* Look Builder */
.stylist-page { padding: 26px 0 100px; }
.stylist-intro .cart-title { margin-top: 8px; max-width: 760px; }
.stylist-intro .info-intro { margin-top: -10px; }
.lb-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.lb-stage-wrap { position: sticky; top: 100px; background: linear-gradient(160deg, #fbf6f5, #f3e3e7); border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 20px; text-align: center; }
.lb-stage { max-width: 340px; margin: 0 auto; }
.lb-stage svg { display: block; width: 100%; height: auto; }
.lb-caption { margin: 6px 0 12px; font: 500 20px/1.3 var(--display); min-height: 26px; }
.lb-save { min-height: 42px; }
.lb-controls { display: grid; gap: 16px; min-width: 0; }
.lb-step { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.lb-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 22px/1.2 var(--display); }
.lb-step h2 span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-dark); color: #fff; font: 700 13px var(--body); flex: 0 0 auto; }
.lb-sets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lb-set { display: grid; gap: 6px; justify-items: center; padding: 8px 4px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--cream); font-size: 12px; font-weight: 700; color: var(--ink); }
.lb-set.active { border-color: var(--rose-dark); box-shadow: 0 0 0 1px var(--rose-dark); background: #fff; }
.lb-set-thumb { width: 54px; }
.lb-set-thumb svg { display: block; width: 100%; height: auto; }
.lb-parts { display: grid; gap: 14px; }
.lb-part-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lb-part-title { font-weight: 700; font-size: 14px; }
.lb-custom { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--rose-dark); cursor: pointer; }
.lb-custom input { width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.lb-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.lb-custom input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.lb-swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.lb-swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); padding: 0; }
.lb-swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rose-dark); }
.lb-hijabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.lb-hijab { display: grid; gap: 8px; padding: 8px; text-align: start; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); }
.lb-hijab.active { border-color: var(--rose-dark); box-shadow: 0 0 0 1px var(--rose-dark); }
.lb-hijab-photo { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 7px; background: #f5e9ed; overflow: hidden; }
.lb-hijab-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-hijab-dot { position: absolute; bottom: 6px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.lb-hijab-text { display: grid; gap: 1px; font-size: 12px; color: var(--muted); }
.lb-hijab-text strong { color: var(--ink); font-size: 13px; }
.lb-best { color: #8a5210; font-weight: 700; }
.lb-selected { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--rose-dark); border-radius: 12px; padding: 14px; }
.lb-selected-photo { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #f5e9ed; }
.lb-selected-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-selected-info h3 { margin: 4px 0 2px; font: 500 21px/1.25 var(--display); }
.lb-selected-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lb-selected-actions .btn-small { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.lb-selected .cart-notice { margin-top: 10px; }
.lb-note { margin: 0 !important; }
@media (max-width: 860px) {
  .lb-grid { grid-template-columns: 1fr; }
  .lb-stage-wrap { position: static; padding: 12px; }
  .lb-stage { max-width: 260px; }
}
@media (max-width: 600px) {
  .stylist-page { padding: 18px 0 80px; }
  .lb-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-set { grid-template-columns: 40px 1fr; justify-items: start; align-items: center; text-align: start; padding: 8px; }
  .lb-set-thumb { width: 40px; }
  .lb-step { padding: 14px; }
  .lb-hijabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-selected { grid-template-columns: 84px 1fr; gap: 12px; }
}
.stylist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.stylist-art-figure { display: block; text-decoration: none; padding: 26px 40px 0; background: radial-gradient(circle at 50% 45%, #fbf3f5 0, #f6e7ec 62%, transparent 63%); }
.stylist-art-figure::before { display: none; }
.stylist-art-figure svg { display: block; width: 100%; height: auto; }
@media (max-width: 600px) {
  .stylist-art-figure { display: block; width: 220px; margin: 10px auto 0; justify-self: center; padding: 16px 30px 0; }
}
.stylist-art.stylist-art-figure { aspect-ratio: auto; border: 0; border-radius: 0; width: min(100%, 250px); place-items: initial; }
@media (max-width: 600px) { .stylist-art.stylist-art-figure { display: block; width: 200px; } }
/* Phones: keep a compact preview pinned while choosing */
@media (max-width: 860px) {
  .lb-stage-wrap { position: sticky; top: 72px; z-index: 12; display: grid; grid-template-columns: 96px 1fr; gap: 4px 14px; align-items: center; text-align: start; padding: 8px 14px; border-radius: 12px; box-shadow: 0 10px 24px rgba(72, 52, 62, .12); }
  .lb-stage { grid-row: span 2; width: 96px; max-width: none; margin: 0; }
  .lb-caption { margin: 0; font-size: 16px; align-self: end; }
  .lb-save { justify-self: start; align-self: start; min-height: 36px; padding: 6px 14px; font-size: 12px; }
}
.lb-groups { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; background: var(--cream); border: 1px solid var(--border); border-radius: 22px; }
.lb-group { border: 0; background: none; padding: 7px 16px; border-radius: 18px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lb-group.active { background: var(--rose-dark); color: #fff; }
.lb-sets { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.lb-swatch[data-color="#ffffff"] { border-color: rgba(0,0,0,.25); }
.lb-wear { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 14px; }
.lb-wear-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.lb-wear .lb-groups { margin: 0; }

/* AI shopping assistant */
.chat-float { position: fixed; right: 18px; bottom: 86px; z-index: 41; width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--rose-dark); color: #fff; box-shadow: 0 10px 28px rgba(72, 30, 50, .3); transition: transform .2s; }
.chat-float:hover { transform: translateY(-2px); }
.chat-float svg { width: 26px; height: 26px; }
.chat-float-badge { position: absolute; top: -3px; right: -3px; padding: 1px 6px; border-radius: 10px; background: #fff; color: var(--rose-dark); font-size: 10px; font-weight: 800; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
[dir="rtl"] .chat-float { right: auto; left: 18px; }
.chat-panel { position: fixed; right: 18px; bottom: 154px; z-index: 60; width: min(380px, calc(100vw - 24px)); height: min(540px, calc(100vh - 190px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 60px rgba(48, 30, 40, .25); overflow: hidden; }
[dir="rtl"] .chat-panel { right: auto; left: 18px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--rose-dark); color: #fff; }
.chat-title { display: flex; align-items: center; gap: 8px; }
.chat-title strong { font-size: 15px; }
.chat-ai-pill { padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,.2); font-size: 11px; font-weight: 800; }
.chat-close { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: 50%; }
.chat-close:hover { background: rgba(255,255,255,.15); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: grid; align-content: start; gap: 8px; background: var(--cream); }
.chat-msg { display: flex; }
.chat-msg.from-user { justify-content: flex-end; }
.chat-bubble { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.from-bot .chat-bubble { background: #fff; border: 1px solid var(--border); border-end-start-radius: 4px; }
.from-user .chat-bubble { background: var(--rose-dark); color: #fff; border-end-end-radius: 4px; }
.chat-bubble a { color: var(--rose-dark); font-weight: 700; }
.is-typing .chat-bubble { display: flex; gap: 4px; padding: 12px 14px; }
.is-typing .chat-bubble span { width: 7px; height: 7px; border-radius: 50%; background: #c9a7b6; animation: chat-dot 1s infinite ease-in-out; }
.is-typing .chat-bubble span:nth-child(2) { animation-delay: .15s; }
.is-typing .chat-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 50% { transform: translateY(-4px); opacity: .5; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; background: var(--cream); }
.chat-chip { border: 1px solid #e3c9d4; background: #fff; color: var(--rose-dark); border-radius: 16px; padding: 6px 11px; font-size: 12px; font-weight: 700; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 22px; background: var(--cream); font-size: 16px; outline: none; }
.chat-form input:focus { border-color: var(--rose); }
.chat-send { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--rose-dark); color: #fff; display: grid; place-items: center; }
.chat-send:disabled { opacity: .5; }
.chat-send svg { width: 20px; height: 20px; }
[dir="rtl"] .chat-send svg { transform: scaleX(-1); }
.chat-foot { margin: 0; padding: 0 14px 10px; font-size: 11px; color: var(--muted); background: #fff; }
.chat-foot a { color: #1f8f4e; font-weight: 700; }
@media (max-width: 600px) {
  .chat-float { right: 14px; bottom: 78px; width: 52px; height: 52px; }
  [dir="rtl"] .chat-float { left: 14px; }
  .chat-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(78vh, 600px); }
  [dir="rtl"] .chat-panel { left: 8px; right: 8px; }
  body.chat-open .whatsapp-float, body.chat-open .chat-float { display: none; }
}
