/* =========================================================
   ROSAYA — design tokens
   ========================================================= */
:root {
  --ivory:        #FFFFFF;
  --ivory-deep:   #FFF5F9;
  --charcoal:     #5A3A48;
  --charcoal-70:  rgba(90,58,72,.72);
  --charcoal-45:  rgba(90,58,72,.48);
  --pink:         #fc6ea6;
  --mauve:        #fc6ea6;
  --mauve-dark:   #fc6ea6;
  --rose-soft:    #FFE0EF;
  --gold:         #fc6ea6;
  --line:         rgba(252,110,166,.18);
  --white:        #FFFFFF;
  --pink-glow:    #fc6ea6;

  --font-display: 'DM Sans', serif;
  --font-body:    'DM Sans', sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  --radius-s: 2px;
  --radius-m: 4px;
  --ease: cubic-bezier(.4,0,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--charcoal);
  letter-spacing: .01em;
}
p { margin: 0; }
:focus-visible { outline: 2px solid var(--mauve-dark); outline-offset: 3px; }

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.section--tinted {
  max-width: none;
  background: var(--ivory-deep);
}
.section--tinted > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.section--tinted { padding-left: 0; padding-right: 0; }
.section--tinted .section__head,
.section--tinted .collection-row,
.section--tinted .tab-bar,
.section--tinted .product-row { padding-left: var(--gutter); padding-right: var(--gutter); }

.section__head { margin-bottom: 40px; max-width: 640px; }
.section__head--center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--mauve-dark);
  margin-bottom: 10px;
  font-style: italic;
}
.section__head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section__foot { margin-top: 40px; text-align: center; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-size: 14px;
  letter-spacing: .03em;
  font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--mauve-dark); color: #fff; }
.btn--primary:hover { background: var(--charcoal); }
.btn--outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--mauve-dark); color: #fff; border-color: var(--mauve-dark); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--charcoal-70); }
.btn--ghost:hover { border-color: var(--charcoal); color: var(--charcoal); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--charcoal);
  border-radius: 50%;
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--ivory-deep); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--mauve-dark); color: var(--white);
  font-size: 10px; line-height: 16px; text-align: center;
  border-radius: 999px; font-family: var(--font-body);
}

.search-panel {
  position: fixed; top: var(--header-height, 88px); left: 0; right: 0; z-index: 780;
  background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(23,20,23,.1);
}
.search-panel__inner { max-width: var(--container); margin: 0 auto; padding: 18px var(--gutter) 22px; }
.search-form {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 4px 8px 4px 18px; transition: border-color .2s, box-shadow .2s;
}
.is-rtl .search-form { padding: 4px 18px 4px 8px; }
.search-form:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(252,110,166,.12); }
.search-form > svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 11px 0; background: transparent; color: var(--charcoal); font: 16px var(--font-body); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-panel__close { flex-shrink: 0; }
.search-results { display: grid; gap: 6px; margin-top: 14px; max-height: min(62vh, 520px); overflow-y: auto; padding: 2px; }
.search-result {
  display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 8px;
  color: var(--charcoal); background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: background .15s, border-color .15s, transform .15s;
}
.is-rtl .search-result { padding: 8px 8px 8px 12px; }
.search-result:hover, .search-result:focus-visible { background: var(--ivory-deep); border-color: var(--pink); outline: 0; }
.search-result__thumb {
  flex: 0 0 56px; width: 56px; height: 68px; border-radius: 10px; overflow: hidden;
  background: var(--ivory-deep) url("../assets/logo/rosaya-icon-pink.png") center / 40% no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.search-result__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.search-result__text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.search-result__name { font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-result__sub { font-size: 12px; color: var(--charcoal-45); }
.search-result__meta { flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--pink); white-space: nowrap; }
.search-result__meta em { font-style: normal; color: var(--charcoal-45); font-weight: 500; }
.search-empty { color: var(--charcoal-70); font-size: 14px; padding: 14px 4px 4px; text-align: center; }
@media (max-width: 600px) {
  .search-result__thumb { flex-basis: 48px; width: 48px; height: 58px; }
  .search-result { gap: 10px; }
}

/* =========================================================
   Placeholder image system
   ========================================================= */
[data-placeholder], .img-placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--ivory-deep), var(--rose-soft) 140%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.img-placeholder__label {
  position: relative;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--charcoal-45);
  text-align: center;
  padding: 6px 10px;
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-s);
  max-width: 90%;
  word-break: break-all;
  line-height: 1.5;
}

/* =========================================================
   Announcement + Header
   ========================================================= */
.announce-bar {
  background: var(--mauve-dark); color: var(--charcoal);
  text-align: center; font-size: 13px; letter-spacing: .02em;
  padding: 9px var(--gutter);
}

.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(23,20,23,.06); }
.site-header__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 16px;
}
.site-logo { grid-column: 2; grid-row: 1; justify-self: center; display: inline-flex; align-items: center; transition: transform .25s var(--ease); }
.site-logo:hover { transform: scale(1.04); }
.site-logo img {
  height: 30px; width: auto;
}
@media (min-width: 901px) { .site-logo img { height: 46px; } }

.nav-toggle { grid-column: 1; grid-row: 1; justify-self: start; }

.main-nav { display: none; grid-column: 1; grid-row: 1; justify-self: start; }
@media (min-width: 901px) {
  .main-nav { display: block; margin: 0; }
  .main-nav > ul { display: flex; gap: clamp(14px, 2.2vw, 32px); flex-wrap: nowrap; }
  .main-nav > ul > li { position: relative; padding: 26px 0; }
  .main-nav > ul > li > a { font-size: 14px; letter-spacing: .02em; position: relative; }
  .main-nav > ul > li > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
    background: var(--mauve-dark); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .main-nav > ul > li > a:hover::after { transform: scaleX(1); }

  .mega-panel {
    position: absolute; top: 100%; left: 0; transform: translateY(6px);
    background: var(--ivory); border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(23,20,23,.08);
    min-width: 240px; max-width: min(320px, calc(100vw - 2 * var(--gutter)));
    max-height: min(70vh, 480px); overflow-y: auto;
    padding: 20px 22px;
    opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }
  .mega-panel__list { display: grid; gap: 10px; }
  .mega-panel__list a { font-size: 13.5px; color: var(--charcoal-70); }
  .mega-panel__list a:hover { color: var(--mauve-dark); }
  .mega-panel__list--nested .mega-sub { margin: 6px 0 4px 12px; display: grid; gap: 8px; }
  .mega-panel__list--nested .mega-sub-title { font-weight: 500; color: var(--charcoal); }
  .mega-panel__list a.mega-sub-title--link { font-weight: 500; color: var(--charcoal); display: block; margin-bottom: 2px; }
  .mega-panel__list a.mega-sub-title--link:hover { color: var(--mauve-dark); }
}

.site-header__actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 2px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 10px;
  background: none; border: none;
}
@media (min-width: 901px) { .nav-toggle { display: none; } }
.nav-toggle span { width: 20px; height: 1.4px; background: var(--charcoal); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

.mobile-nav {
  max-height: 0; overflow: hidden; background: var(--ivory);
  transition: max-height .3s var(--ease);
  border-top: 0 solid var(--line);
}
.mobile-nav.is-open { max-height: 70vh; overflow-y: auto; border-top: 1px solid var(--line); }
.mobile-nav ul { padding: 10px var(--gutter) 24px; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
button.mobile-nav-top,
.mobile-nav-top {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 0; font-size: 15px;
  background: transparent !important; border: none !important;
  box-shadow: none !important; color: var(--charcoal);
  font-family: inherit; font-weight: 500; text-align: start; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.mobile-nav-sub { display: none; padding: 0 0 14px 14px; }
.mobile-nav-sub a { display: block; padding: 8px 0; font-size: 13.5px; color: var(--charcoal-70); }
.mobile-nav li.is-open .mobile-nav-sub { display: block; }
.mobile-nav-caret { transition: transform .2s var(--ease); }
.mobile-nav li.is-open .mobile-nav-caret { transform: rotate(180deg); }
@media (min-width: 901px) { .mobile-nav { display: none; } }

/* =========================================================
   Hero slider
   ========================================================= */
.hero-slider { position: relative; width: 100%; aspect-ratio: 16/7; min-height: 260px; overflow: hidden; background: var(--ivory-deep); }
.hero-slider__track { display: flex; height: 100%; transition: transform .6s var(--ease); }
.hero-slide { flex: 0 0 100%; height: 100%; background-size: cover; background-position: center; }
.hero-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.75); color: var(--charcoal);
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
  z-index: 2;
}
.hero-slider__arrow:hover { background: var(--white); }
.hero-slider__arrow--prev { left: 18px; }
.hero-slider__arrow--next { right: 18px; }
.hero-slider__dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.hero-slider__dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); padding: 0; }
.hero-slider__dots button.is-active { background: var(--white); transform: scale(1.3); }

/* =========================================================
   Product cards + rows
   ========================================================= */
.product-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  max-width: var(--container);
  margin: 0 auto;
  overflow: visible;
  padding-bottom: 0;
}
@media (max-width: 1100px) {
  .product-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .product-row { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
}

.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-card__media {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius-m); margin-bottom: 14px;
  overflow: hidden; background: var(--ivory-deep);
}
.product-card__media img,
.product-card__media [data-placeholder] {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.product-card:hover .product-card__media img,
.product-card:hover .product-card__media [data-placeholder] { transform: scale(1.05); }
.product-card__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: 2;
  background: linear-gradient(to top, rgba(23,20,23,.32), transparent); pointer-events: none;
}
.product-card.is-soldout .product-card__media img,
.product-card.is-soldout .product-card__media [data-placeholder] { opacity: .55; filter: grayscale(.35); }

.product-card__badges {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.product-card__badge {
  background: var(--mauve-dark); color: #fff;
  font-size: 10.5px; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px;
}
.product-card__badge--sold { background: var(--mauve-dark); color: #fff; border: none; }

.product-card__quick-actions {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: flex; flex-direction: column; gap: 8px;
}
.product-card__icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(23,20,23,.12);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.product-card__icon-btn:hover { background: var(--white); transform: scale(1.06); }
.product-card__icon-btn svg { width: 16px; height: 16px; stroke: var(--charcoal); fill: none; stroke-width: 1.6; }
.product-card__wish.is-active svg { fill: var(--mauve-dark); stroke: var(--mauve-dark); }

.product-card__media [data-placeholder] { cursor: pointer; }

.product-card__quickadd { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; }
.product-card__quickadd-btn {
  width: 100%; border: none; border-radius: var(--radius-s);
  background: rgba(255,255,255,.94); color: var(--charcoal);
  padding: 11px; font-size: 12px; letter-spacing: .06em; font-weight: 500; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(23,20,23,.14);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.product-card__quickadd-btn:hover:not(:disabled) { background: var(--charcoal); color: var(--ivory); }
.product-card__quickadd-btn:disabled { background: rgba(23,20,23,.5); color: var(--ivory); cursor: not-allowed; }

.product-card__name { font-size: 14.5px; margin-bottom: 6px; }
.product-card__name a:hover { color: var(--mauve-dark); }
.product-card__prices { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.price-compare { text-decoration: line-through; color: var(--charcoal-45); font-size: 12.5px; }
.price-sale { color: var(--mauve-dark); font-weight: 500; }

/* =========================================================
   Collections
   ========================================================= */
.collection-row {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 720px) { .collection-row { grid-template-columns: 1fr; } }
.collection-card { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-m); overflow: hidden; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.collection-card:hover img { transform: scale(1.05); }
.collection-card__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px;
  background: linear-gradient(to top, rgba(23,20,23,.55), transparent);
  color: var(--white); font-family: var(--font-display); font-size: 21px;
}

/* =========================================================
   Gallery + numbered list
   ========================================================= */
.gallery-grid {
  max-width: var(--container); margin: 0 auto 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid > div { aspect-ratio: 3/4; border-radius: var(--radius-m); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-m); }

.numbered-list {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px;
}
@media (max-width: 720px) { .numbered-list { grid-template-columns: repeat(2, 1fr); } }
.numbered-list li { border-top: 1px solid var(--line); padding-top: 16px; }
.numbered-list a { display: flex; flex-direction: column; gap: 4px; }
.numbered-list .n { font-family: var(--font-display); font-style: italic; color: var(--mauve); font-size: 15px; }
.numbered-list .label { font-size: 15px; }
.numbered-list li:hover .label { color: var(--mauve-dark); }

/* =========================================================
   Tabs
   ========================================================= */
.tab-bar {
  max-width: var(--container); margin: 0 auto 32px;
  display: flex; gap: 20px; justify-content: flex-start; flex-wrap: nowrap;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  padding: 0 4px;
}
.tab-bar button {
  background: none; border: none; padding: 0 2px 16px; font-size: 14px;
  color: var(--charcoal-45); position: relative; letter-spacing: .02em;
  flex-shrink: 0; white-space: nowrap;
}
.tab-bar button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--mauve-dark); transform: scaleX(0); transition: transform .25s var(--ease);
}
.tab-bar button.is-active { color: var(--charcoal); }
.tab-bar button.is-active::after { transform: scaleX(1); }

/* =========================================================
   Wide banner
   ========================================================= */
.wide-banner {
  position: relative; min-height: 340px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, var(--mauve) 0%, var(--mauve-dark) 100%);
  color: var(--white);
}
.wide-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('../assets/logo/rosaya-icon-white.png');
  background-repeat: no-repeat; background-position: 88% 30%; background-size: 220px auto; opacity: .18;
}
.wide-banner__copy { position: relative; padding: 48px var(--gutter); max-width: var(--container); margin: 0 auto; width: 100%; }
.wide-banner .section__eyebrow { color: var(--rose-soft); }
.wide-banner h2 { font-size: clamp(28px, 4vw, 46px); color: var(--white); max-width: 560px; }

/* =========================================================
   Reviews
   ========================================================= */
.review-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
@media (max-width: 900px) { .review-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-grid > div { aspect-ratio: 1/1; border-radius: var(--radius-m); cursor: pointer; }
.review-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-m); transition: transform .3s var(--ease); }
.review-grid a:hover img { transform: scale(1.04); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: linear-gradient(180deg, #FFF8FB 0%, #FFE8F2 100%); color: var(--charcoal); padding: 64px var(--gutter) 0; border-top: 1px solid var(--line); }
.site-footer__grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo {
  height: 30px; width: auto; margin-bottom: 16px;
  filter: brightness(0) saturate(100%) invert(46%) sepia(75%) saturate(1878%) hue-rotate(299deg) brightness(101%) contrast(96%);
}
.site-footer__brand p { color: var(--charcoal-70); font-size: 13.5px; max-width: 34ch; margin-bottom: 18px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; transition: border-color .2s var(--ease), background .2s var(--ease); }
.social-row a:hover { border-color: var(--mauve); background: var(--mauve-dark); }
.social-row svg { width: 15px; height: 15px; fill: var(--ivory); }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(252,110,166,.25);
  color: #fc6ea6;
}
.social-row a:hover { background: #fc6ea6; color: #fff; }
.social-row svg {
  width: 18px; height: 18px; fill: currentColor;
}
.social-row svg.icon-stroke {
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.site-footer__col h4 { color: var(--mauve-dark); font-size: 14px; margin-bottom: 16px; font-family: var(--font-body); font-weight: 500; }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a { color: #fc6ea6; font-size: 13.5px; }
.site-footer__col a:hover { color: #fc6ea6; }

.site-footer__bottom {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 20px 0; font-size: 12.5px; color: var(--pink);
}
.site-footer__credits { display: grid; gap: 4px; }
.site-footer__credits p { margin: 0; color: var(--pink); }
.site-footer__dev { font-size: 12px; opacity: .85; letter-spacing: .02em; }
.site-footer__dev strong { font-weight: 700; }

/* =========================================================
   Cart drawer
   ========================================================= */
.overlay-scrim {
  position: fixed; inset: 0; background: rgba(23,20,23,.5); z-index: 800;
  opacity: 0; transition: opacity .3s var(--ease);
}
.overlay-scrim.is-visible { opacity: 1; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--ivory); z-index: 850; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
  box-shadow: -20px 0 40px rgba(23,20,23,.1);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h2 { font-size: 19px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { color: var(--charcoal-45); text-align: center; margin-top: 40px; font-size: 14px; }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line__media { width: 70px; height: 70px; border-radius: var(--radius-s); flex-shrink: 0; display: block; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-s); }
.cart-line__info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cart-line__name { font-size: 14px; color: inherit; text-decoration: none; }
.cart-line__name:hover { color: var(--mauve-dark); }
.cart-line__price { font-size: 13px; color: var(--charcoal-70); }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-s); }
.qty-stepper button { width: 26px; height: 26px; background: none; border: none; font-size: 15px; }
.qty-stepper span { min-width: 24px; text-align: center; font-size: 13px; }
.cart-line__remove { font-size: 12px; color: var(--charcoal-45); text-decoration: underline; background: none; border: none; }
.cart-line__remove:hover { color: var(--mauve-dark); }

.cart-drawer__foot { border-top: 1px solid var(--line); padding: 18px 24px 24px; display: grid; gap: 14px; }
.cart-note label { font-size: 12px; color: var(--charcoal-70); display: block; margin-bottom: 6px; }
.cart-note textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px;
  font-family: var(--font-body); font-size: 13px; resize: vertical; background: var(--white);
}
.cart-subtotal { display: flex; justify-content: space-between; font-size: 15px; }

/* ---------- Offers + discount code (js/offers.js) ---------- */
.cart-line__deal {
  display: inline-block; align-self: flex-start;
  font-size: 12px; font-weight: 600; color: var(--pink);
  background: var(--rose-soft); border-radius: 999px; padding: 3px 10px;
}
.cart-discounts { display: grid; gap: 10px; }
.cart-discounts:empty { display: none; }
.cart-disc { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--pink); }
.cart-disc strong { white-space: nowrap; }
.cart-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; }
.cart-hint {
  margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--charcoal-70);
  background: var(--ivory-deep); border: 1px dashed var(--line); border-radius: var(--radius-m); padding: 8px 12px;
}

.cart-promo:empty { display: none; }
.promo__row { display: flex; gap: 8px; }
.promo__input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 10px 12px; font-family: var(--font-body); font-size: 13.5px; background: var(--white);
  color: var(--charcoal); text-transform: uppercase; letter-spacing: .04em;
}
.promo__input::placeholder { text-transform: none; letter-spacing: 0; color: var(--charcoal-45); }
.promo__input:focus { outline: none; border-color: var(--pink); }
.promo__btn {
  border: 1px solid var(--pink); background: var(--white); color: var(--pink);
  border-radius: var(--radius-s); padding: 0 16px; font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer;
}
.promo__btn:hover { background: var(--pink); color: #fff; }
.promo__chip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--rose-soft); border-radius: var(--radius-m); padding: 9px 12px; font-size: 13px;
}
.promo__code { font-weight: 700; letter-spacing: .04em; color: var(--charcoal); }
.promo__pct { color: var(--pink); font-weight: 700; }
.promo__remove {
  margin-inline-start: auto; background: none; border: none; font-size: 12px; text-decoration: underline;
  color: var(--charcoal-70); cursor: pointer; font-family: var(--font-body);
}
.promo--warn .promo__chip { background: #FFF6E5; }
.promo__msg { margin: 6px 2px 0; font-size: 12.5px; }
.promo__msg--err { color: #B3261E; }

/* =========================================================
   Preloader
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark {
  position: relative;
  width: clamp(96px, 22vw, 136px); height: clamp(96px, 22vw, 136px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ivory-deep);
}
.preloader__spinner {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid var(--mauve-dark);
  border-bottom-color: transparent;
  animation: preloader-spin .9s linear infinite;
}
.preloader__logo {
  width: 40%; height: auto;
  filter: brightness(0) saturate(100%) invert(18%) sepia(89%) saturate(4685%) hue-rotate(316deg) brightness(82%) contrast(96%);
}
@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   Account / login modal
   ========================================================= */
.badge--dot { min-width: 0; width: 9px; height: 9px; padding: 0; top: 3px; right: 3px; }

.account-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(380px, 92vw); max-height: 88vh; overflow-y: auto;
  background: var(--ivory); z-index: 870; border-radius: var(--radius-m);
  padding: 40px 32px 32px; box-shadow: 0 30px 60px rgba(23,20,23,.25);
}
.account-modal__close { position: absolute; top: 10px; right: 10px; }
.account-modal h2 { font-size: 22px; margin-bottom: 6px; }
.account-modal p.sub { color: var(--charcoal-70); font-size: 13px; margin-bottom: 22px; }
.account-form { display: grid; gap: 12px; margin-top: 4px; }
.account-hint { font-size: 11.5px; color: var(--charcoal-45); margin: -4px 0 0; line-height: 1.4; }
.account-form input {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: 14px; color: var(--charcoal); background: var(--white);
}
.account-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--charcoal-45); font-size: 12px; }
.account-divider::before, .account-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#google-signin-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
#google-signin-btn svg { flex-shrink: 0; }
.account-error {
  background: rgba(124,45,59,.08); color: var(--mauve-dark); font-size: 12.5px;
  padding: 9px 12px; border-radius: var(--radius-s); margin: 0;
}
.account-link {
  background: none; border: none; padding: 0; margin-top: 12px;
  font-size: 12.5px; color: var(--charcoal-70); text-decoration: underline;
}
.account-link:hover { color: var(--mauve-dark); }
.account-switch { margin-top: 20px; text-align: center; font-size: 13px; color: var(--charcoal-70); }
.account-switch button {
  background: none; border: none; padding: 0; margin-left: 4px;
  color: var(--mauve-dark); font-weight: 500; text-decoration: underline;
}
.account-loggedin { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.account-loggedin img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.account-avatar-fallback {
  width: 64px; height: 64px; border-radius: 50%; background: var(--rose-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; color: var(--mauve-dark); margin-bottom: 8px;
}
.account-loggedin .btn { margin-top: 16px; }

/* =========================================================
   Quick view modal
   ========================================================= */
.quickview-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(880px, 94vw); max-height: min(88vh, 640px);
  overflow: hidden;
  background: var(--ivory); z-index: 870; border-radius: var(--radius-m);
  box-shadow: 0 30px 60px rgba(23,20,23,.25);
}
.quickview-modal__close { position: absolute; top: 10px; right: 10px; z-index: 5; background: rgba(255,255,255,.9); }
.quickview {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-height: min(88vh, 640px);
  overflow: hidden;
}
@media (max-width: 700px) {
  .quickview-modal {
    width: 100vw; max-height: 92vh; top: auto; bottom: 0; left: 0;
    transform: none; border-radius: var(--radius-m) var(--radius-m) 0 0;
  }
  .quickview {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
}
.quickview__media-wrap {
  position: relative;
  background: var(--ivory-deep);
  min-height: 0;
  max-height: min(88vh, 640px);
  height: min(88vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.quickview__media {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: min(88vh, 640px);
  aspect-ratio: auto;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: var(--ivory-deep);
}
.quickview__media img, .quickview__media[data-placeholder] {
  width: 100%; height: 100%; object-fit: contain;
}
.quickview__info {
  padding: clamp(20px, 3vw, 36px);
  display: flex; flex-direction: column;
  min-height: 0;
  max-height: min(88vh, 640px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.quickview__info h2 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 12px; }
.quickview__info .product-card__prices { font-size: 16px; margin-bottom: 16px; }
.quickview__desc {
  color: var(--charcoal-70); font-size: 14px; line-height: 1.7;
  margin-bottom: 24px; white-space: pre-line;
}
.quickview__info .btn { margin-top: auto; flex-shrink: 0; }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 400;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--mauve-dark); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(23,20,23,.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--charcoal); }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--charcoal); color: var(--ivory); padding: 13px 22px; border-radius: var(--radius-s);
  font-size: 13.5px; z-index: 950; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .site-header__inner { gap: 12px; }
  .account-modal { padding: 32px 24px 28px; }
}

/* =========================================================
   Language toggle
   ========================================================= */
.lang-toggle {
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--ivory); color: var(--charcoal);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: .02em; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 4px;
}
.lang-toggle:hover {
  background: var(--mauve-dark); color: var(--ivory); border-color: var(--mauve-dark);
}
body.is-rtl .lang-toggle { margin-right: 0; margin-left: 4px; }

/* Empty category state */
.empty-tab {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  padding: 48px 20px;
  background: rgba(255,255,255,.55);
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
}
.empty-tab__title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.empty-tab__text {
  font-size: 14px;
  color: var(--charcoal-70);
  max-width: 36ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Light RTL tweaks */
body.is-rtl .main-nav > ul > li > a::after { transform-origin: right; }
body.is-rtl .site-header__actions { flex-direction: row-reverse; }
body.is-rtl .cart-drawer { right: auto; left: 0; transform: translateX(-100%); }
body.is-rtl .cart-drawer.is-open { transform: translateX(0); }
body.is-rtl .product-card__badges { left: auto; right: 10px; }
body.is-rtl .product-card__quick-actions { right: auto; left: 10px; }
body.is-rtl .mega-panel { left: auto; right: 0; }
body.is-rtl .tab-bar { direction: rtl; }
body.is-rtl .numbered-list,
body.is-rtl .section__head--center { direction: rtl; }

/* =========================================================
   Mobile / tablet only — desktop layout stays unchanged
   ========================================================= */
@media (max-width: 900px) {
  :root {
    --gutter: clamp(14px, 4vw, 24px);
  }

  .announce-bar {
    font-size: 11.5px;
    padding: 8px 12px;
    line-height: 1.35;
  }

  .site-header__inner {
    padding: 10px var(--gutter);
    column-gap: 8px;
  }
  .site-logo img { height: 28px; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 18px; height: 18px; }
  .lang-toggle {
    min-width: 32px; height: 32px; padding: 0 8px; font-size: 12px; margin-right: 2px;
  }

  /* Hero: shorter on phone so it doesn't dominate the screen */
  .hero-slider {
    aspect-ratio: 5 / 4;
    min-height: 180px;
    max-height: min(52vh, 420px);
  }
  .hero-slider__arrow {
    width: 34px; height: 34px; font-size: 18px;
  }
  .hero-slider__arrow--prev { left: 10px; }
  .hero-slider__arrow--next { right: 10px; }
  .hero-slider__dots { bottom: 12px; gap: 6px; }

  .section {
    padding: 36px var(--gutter) 40px;
  }
  .section__head { margin-bottom: 22px; }
  .section__head h2 { font-size: clamp(22px, 6vw, 30px); line-height: 1.25; }
  .section__eyebrow { font-size: 12px; margin-bottom: 6px; }
  .section__foot { margin-top: 24px; }

  /* Product cards: fit ~2 on screen, less cramped */
  .product-row { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .product-card__media {
    margin-bottom: 10px;
    border-radius: var(--radius-s);
  }
  .product-card__name {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card__prices { font-size: 13px; }
  .price-compare { font-size: 11.5px; }
  .product-card__badge { font-size: 9.5px; padding: 4px 8px; }
  .product-card__quickadd-btn {
    padding: 9px 6px; font-size: 10.5px; letter-spacing: .04em;
  }
  .product-card__icon-btn { width: 28px; height: 28px; }
  .product-card__icon-btn svg { width: 14px; height: 14px; }
  .product-card__badges { top: 8px; left: 8px; }
  .product-card__quick-actions { top: 8px; right: 8px; gap: 6px; }

  .collection-row { gap: 12px; }
  .collection-card { aspect-ratio: 4/5; }
  .collection-card__label { font-size: 18px; padding: 18px; }

  .gallery-grid {
    gap: 10px;
    margin-bottom: 24px;
  }

  .numbered-list {
    gap: 12px;
    margin-top: 20px;
  }
  .numbered-list .n { font-size: 14px; }
  .numbered-list .label { font-size: 13.5px; }

  /* Tabs: scroll sideways instead of wrapping into a tall block */
  .tab-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-bar button {
    flex-shrink: 0;
    padding: 0 2px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .wide-banner {
    min-height: 220px;
  }
  .wide-banner::before {
    background-size: 140px auto;
    background-position: 92% 20%;
    opacity: .12;
  }
  .wide-banner__copy { padding: 32px var(--gutter); }
  .wide-banner h2 { font-size: clamp(22px, 7vw, 32px); }

  .review-grid { gap: 8px; }

  .site-footer {
    padding: 36px var(--gutter) 8px;
  }
  .site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    padding-bottom: 28px;
  }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__brand p {
    max-width: none;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 0;
  }
  .site-footer__logo { height: 24px; margin-bottom: 12px; }
  .site-footer__col h4 { font-size: 13px; margin-bottom: 10px; }
  .site-footer__col ul { gap: 8px; }
  .site-footer__col a { font-size: 13px; }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0 28px;
    padding-right: 56px; /* clear floating back-to-top */
  }
  .site-footer__bottom p { font-size: 11.5px; }
  .site-footer__credits { order: 2; }
  .social-row { order: 1; flex-wrap: wrap; gap: 8px; }
  .social-row a { width: 38px; height: 38px; }

  .search-panel {
    top: var(--header-height, 72px);
  }
  .search-panel__inner { padding: 12px var(--gutter) 16px; }

  .cart-drawer { width: 100vw; }
  .quickview-modal { width: 100vw; max-height: 92vh; border-radius: var(--radius-m) var(--radius-m) 0 0; top: auto; bottom: 0; left: 0; transform: none; }
  .quickview-modal__close { top: 8px; right: 8px; }
  .account-modal { width: min(100vw - 24px, 380px); padding: 28px 20px 22px; }

  .back-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
  .toast { left: 12px; right: 12px; transform: translate(0, 20px); width: auto; text-align: center; }
  .toast.is-visible { transform: translate(0, 0); }

  .empty-tab { padding: 32px 16px; }
  .empty-tab__title { font-size: 16px; }
  .empty-tab__text { font-size: 13px; }

  .btn { padding: 12px 22px; font-size: 13px; }
}

@media (max-width: 480px) {
  .hero-slider {
    aspect-ratio: 1 / 1;
    max-height: min(48vh, 360px);
    min-height: 160px;
  }

  .product-row { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }

  .site-header__actions { gap: 0; }
  .lang-toggle { min-width: 30px; height: 30px; font-size: 11px; }

  .section { padding: 28px var(--gutter) 32px; }
  .section__head h2 { font-size: 21px; }

  .product-card__quickadd { left: 6px; right: 6px; bottom: 6px; }
  .product-card__quickadd-btn { padding: 8px 4px; font-size: 10px; }
}



/* Product multi-image gallery */
.product-card__media { position: relative; }
.product-card__photo {
  position: absolute; inset: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.product-card__media [data-placeholder],
.product-card__photo[data-placeholder] {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.product-card__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; width: 28px; height: 28px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.88);
  color: var(--charcoal); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.product-card:hover .product-card__nav,
.product-card__media:focus-within .product-card__nav { opacity: 1; }
.product-card__nav--prev { left: 6px; }
.product-card__nav--next { right: 6px; }
.product-card__dots {
  position: absolute; bottom: 44px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px; z-index: 4;
  pointer-events: none;
}
.product-card__dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.product-card__dots span.is-active { background: #fff; transform: scale(1.2); }

.quickview__media-wrap {
  position: relative;
  background: var(--ivory-deep);
  min-height: 0;
  overflow: hidden;
}
.quickview__media {
  min-height: 240px;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.quickview__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.9); font-size: 22px; cursor: pointer;
  z-index: 2; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.quickview__nav--prev { left: 10px; }
.quickview__nav--next { right: 10px; }
.quickview__dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.quickview__dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.quickview__dots span.is-active { background: #fff; }

@media (max-width: 900px) {
  .product-card__nav { opacity: 1; width: 26px; height: 26px; font-size: 16px; }
  .product-card__dots { bottom: 40px; }
}


/* Language toggle — keep off the logo on phone */
@media (max-width: 900px) {
  /* Keep language off the logo area on phone — switch from inside the menu */
  .site-header__actions .lang-toggle {
    display: none !important;
  }
  .mobile-nav__lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--gutter) 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
  }
  .mobile-nav__lang span {
    font-size: 14px;
    color: var(--charcoal-70);
  }
  .mobile-nav__lang .lang-toggle {
    display: inline-flex !important;
    min-width: 48px;
    height: 34px;
    font-size: 13px;
  }
  .site-header__actions {
    gap: 4px;
    flex-wrap: nowrap;
  }
  .site-logo {
    max-width: 42vw;
  }
  .site-logo img {
    height: 26px;
    max-width: 100%;
  }
  /* Mobile nav looks clean */
  .mobile-nav > ul > li {
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav-top:hover,
  .mobile-nav-top:focus {
    color: var(--mauve-dark);
    background: transparent !important;
  }
  .mobile-nav-sub a {
    padding: 10px 0;
    font-size: 14px;
  }
  /* product cards handled in dedicated phone block below */
  .section__head h2 {
    font-size: clamp(24px, 6.5vw, 32px) !important;
  }
  .tab-bar button {
    font-size: 14px !important;
  }
  /* Hide eye already removed; only wishlist on cards */
  .product-card__quick-actions {
    gap: 6px;
  }
}


/* ===== Phone product cards — clean & readable ===== */
@media (max-width: 900px) {
  .product-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 14px !important;
    padding-left: 0;
    padding-right: 0;
  }
  .product-card {
    min-width: 0;
    width: 100%;
  }
  .product-card__media {
    aspect-ratio: 3 / 4;
    margin-bottom: 10px;
    border-radius: 12px;
  }
  .product-card__name {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
  }
  .product-card__prices {
    font-size: 13px !important;
    flex-wrap: wrap;
    gap: 4px 8px !important;
    line-height: 1.3;
  }
  .product-card__prices .price-compare {
    font-size: 12px;
  }
  .product-card__quickadd {
    left: 6px;
    right: 6px;
    bottom: 6px;
  }
  .product-card__quickadd-btn {
    padding: 9px 6px !important;
    font-size: 10px !important;
    letter-spacing: 0.04em;
    border-radius: 8px;
  }
  .product-card__icon-btn {
    width: 30px;
    height: 30px;
  }
  .product-card__badge {
    font-size: 9.5px;
    padding: 4px 8px;
  }
  /* Quick view — bigger image on phone */
  .quickview-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 94vh !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
  }
  .quickview {
    display: flex !important;
    flex-direction: column !important;
    max-height: 94vh !important;
    overflow: hidden !important;
  }
  .quickview__media-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: min(52vh, 420px) !important;
    max-height: 52vh !important;
    min-height: 240px !important;
  }
  .quickview__media {
    width: 100% !important;
    height: 100% !important;
    min-height: 240px !important;
    max-height: 52vh !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  .quickview__info {
    flex: 1 1 auto;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 16px 18px 28px !important;
    -webkit-overflow-scrolling: touch;
  }
  .quickview__info h2 {
    font-size: 18px !important;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .quickview__desc {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 16px;
  }
  .quickview__info .btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
  }
  .quickview-modal__close {
    top: 8px !important;
    right: 8px !important;
    background: rgba(255,255,255,.95) !important;
  }
}
@media (max-width: 380px) {
  .product-row {
    gap: 16px 10px !important;
  }
  .product-card__name {
    font-size: 12.5px !important;
  }
}


/* ===== Heart burst on add-to-cart ===== */
.heart-burst {
  position: fixed; z-index: 9999; pointer-events: none;
  transform: translate(-50%, -50%);
}
.heart-burst span,
.heart-burst__heart {
  position: absolute; left: 0; top: 0;
  font-size: 32px;
  color: #e11d48;
  animation: heartFly 1s ease-out forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  filter: drop-shadow(0 3px 6px rgba(225,29,72,.35));
  line-height: 1;
}
@keyframes heartFly {
  0% { transform: translate(0,0) scale(.5) rotate(0deg); opacity: 0; }
  18% { opacity: 1; }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(1.25) rotate(var(--rot, 0deg));
    opacity: 0;
  }
}

/* Cart icon quick-add */
.product-card__quickadd-btn--icon {
  width: 44px !important; height: 44px !important; padding: 0 !important;
  border-radius: 50% !important; margin-left: auto; margin-right: auto;
  display: flex !important; align-items: center; justify-content: center;
  background: rgba(255,255,255,.95) !important; color: var(--mauve-dark) !important;
  box-shadow: 0 4px 16px rgba(252,110,166,.2);
  border: 1px solid rgba(252,110,166,.2);
}
.product-card__quickadd-btn--icon:hover:not(:disabled) {
  background: var(--mauve-dark) !important; color: #fff !important;
}
.product-card__quickadd {
  display: flex; justify-content: center;
}

/* Product card photo as link */
a.product-card__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}

/* Soft announce bar */
.announce-bar {
  background: linear-gradient(90deg, #FFE8F2, #FFF5F9, #FFE8F2) !important;
  color: var(--mauve-dark) !important;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(252,110,166,.12);
}
.announce-bar__track {
  display: inline-flex;
  gap: 64px;
  will-change: transform;
}
/* Top announcement bar stays put; only the secondary strip below the header scrolls */
#announce-track {
  animation: none;
  justify-content: center;
  width: 100%;
}
#announce-track .announce-bar__item:nth-child(n+2) { display: none; }
.announce-bar--secondary .announce-bar__track {
  animation: announceMarquee 22s linear infinite;
}
.announce-bar__item {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #fc6ea6;
}
@keyframes announceMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}
@media (prefers-reduced-motion: reduce) {
  .announce-bar__track { animation: none; }
}

/* Reviews — large sliding cards */
.review-grid {
  display: flex !important;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: none;
  padding: 8px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.review-grid::-webkit-scrollbar { display: none; }
.review-grid > a,
.review-grid > div {
  flex: 0 0 auto;
  width: min(280px, 72vw);
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  background: #FFF0F6;
  box-shadow: 0 12px 32px rgba(252,110,166,.12);
  position: relative;
}
.review-grid > a img,
.review-grid > div img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.review-grid > a[data-placeholder],
.review-grid > div[data-placeholder] {
  background-size: cover !important;
  background-position: center !important;
}

/* Soft header */
.site-header {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
  .product-card__nav { display: none !important; }
}

/* Logo assets are pre-colored to the brand pink (assets/logo/*-pink.png), no filter needed */

.announce-bar--secondary {
  background: linear-gradient(90deg, #FFF0F6, #FFE8F2, #FFF0F6) !important;
  border-bottom: 1px solid rgba(252,110,166,.1);
  padding: 8px 0 !important;
}
.announce-bar--secondary .announce-bar__item {
  font-size: 12.5px;
  color: #fc6ea6;
}
.announce-bar--secondary .announce-bar__track {
  animation-duration: 28s;
  animation-direction: reverse;
}

/* =========================================================
   Divider banners (glossy pink, centered text)
   ========================================================= */
.wide-banner {
  min-height: 300px; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(255,255,255,.5) 0, rgba(255,255,255,0) 48%),
    linear-gradient(112deg, rgba(255,255,255,0) 28%, rgba(255,255,255,.32) 40%, rgba(255,255,255,0) 52%),
    linear-gradient(68deg, rgba(255,255,255,0) 58%, rgba(255,255,255,.22) 68%, rgba(255,255,255,0) 78%),
    linear-gradient(135deg, #ff8fbf 0%, #fc5a9b 52%, #e23a84 100%);
}
.wide-banner--deep {
  background:
    radial-gradient(120% 80% at 88% 0%, rgba(255,255,255,.42) 0, rgba(255,255,255,0) 50%),
    linear-gradient(112deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.26) 42%, rgba(255,255,255,0) 54%),
    linear-gradient(135deg, #f0509b 0%, #d62a78 55%, #b81f66 100%);
}
.wide-banner--peach {
  background:
    radial-gradient(120% 80% at 20% 100%, rgba(255,255,255,.45) 0, rgba(255,255,255,0) 50%),
    linear-gradient(112deg, rgba(255,255,255,0) 28%, rgba(255,255,255,.3) 40%, rgba(255,255,255,0) 52%),
    linear-gradient(135deg, #ffb3c9 0%, #ff8fae 50%, #fc6ea6 100%);
}
.wide-banner::before { background-position: 50% 50%; background-size: 260px auto; opacity: .1; }
.wide-banner__copy { text-align: center; padding: 56px var(--gutter); max-width: 900px; }
.wide-banner .section__eyebrow { color: #fff; opacity: .95; font-size: 15px; letter-spacing: .02em; margin-bottom: 14px; }
.wide-banner h2 { max-width: none; margin: 0 auto 14px; font-size: clamp(30px, 5vw, 52px); text-shadow: 0 2px 18px rgba(130,20,70,.28); }
.wide-banner__sub { margin: 0 auto; max-width: 620px; font-size: clamp(15px, 2.4vw, 19px); line-height: 1.5; color: #fff; opacity: .95; text-shadow: 0 1px 10px rgba(130,20,70,.25); }
@media (max-width: 720px) {
  .wide-banner { min-height: 230px; }
  .wide-banner::before { background-size: 160px auto; }
  .wide-banner__copy { padding: 40px var(--gutter); }
  .wide-banner h2 { font-size: clamp(26px, 8vw, 34px); }
}

/* =========================================================
   View all button
   ========================================================= */
.section__foot--viewall { margin-top: 28px; }
.section__foot--viewall[hidden] { display: none; }
.section__foot--viewall .btn { min-width: 170px; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }

/* =========================================================
   Before / After slider
   ========================================================= */
.section--compare[hidden] { display: none; }
.cmp-grid { max-width: 920px; margin: 0 auto; display: grid; gap: 28px; grid-template-columns: 1fr; }
.cmp-grid--multi { max-width: var(--container); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .cmp-grid--multi { grid-template-columns: 1fr; } }
.cmp {
  --pos: 50%;
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; direction: ltr;
  border-radius: var(--radius-m); background: var(--ivory-deep);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.cmp__img {
  position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat;
}
.cmp__img--after  { background-color: #ffd2e4; background-image: linear-gradient(135deg, #ffc2da, #ff9cc2); }
.cmp__img--before { background-color: #f4e4ea; }
.cmp__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp__tag {
  position: absolute; top: 14px; padding: 6px 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.88); color: var(--charcoal); border-radius: 999px; pointer-events: none;
}
.cmp__tag--before { left: 14px; }
.cmp__tag--after  { right: 14px; }
.cmp__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.25); outline: none;
}
.cmp__knob {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.3); color: var(--charcoal);
}
.cmp__knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp__handle:focus-visible .cmp__knob { outline: 2px solid var(--pink); outline-offset: 2px; }
.cmp.is-drag .cmp__knob { transform: scale(1.08); }


/* =========================================================
   Welcome popup
   ========================================================= */
.welcome-popup {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(40,20,30,.55);
  opacity: 0; transition: opacity .25s ease;
}
.welcome-popup.is-visible { opacity: 1; }
.welcome-popup__card {
  position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
  transform: translateY(16px) scale(.97); transition: transform .3s ease;
}
.welcome-popup.is-visible .welcome-popup__card { transform: none; }
.welcome-popup__close {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #333; font-size: 15px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer;
}
.welcome-popup__media { background: linear-gradient(135deg, #ffe0ef, #fff5f9); display: flex; align-items: center; justify-content: center; }
.welcome-popup__media img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
.welcome-popup__media img.welcome-popup__logo { width: 120px; height: auto; padding: 40px 0; object-fit: contain; }
.welcome-popup__body { padding: 26px 26px 30px; text-align: start; }
.welcome-popup__body h2 { font-size: 26px; line-height: 1.25; font-weight: 700; color: #111; margin-bottom: 12px; letter-spacing: 0; }
.welcome-popup__body p { font-size: 16px; line-height: 1.6; color: #222; margin-bottom: 22px; }
.welcome-popup__btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  background: #e6007e; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
}
.welcome-popup__btn:hover { background: #c4006b; }
@media (max-width: 480px) { .welcome-popup__body h2 { font-size: 23px; } }


/* Banner with a custom background image (set from dashboard → Banners) */
.wide-banner--image { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.wide-banner--image::before { display: none !important; }

/* Legal links at the very bottom of the footer */
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
  padding: 18px var(--gutter, 20px) 26px; border-top: 1px solid var(--line);
}
.site-footer__legal a { font-size: 13.5px; color: var(--charcoal-70); text-decoration: none; }
.site-footer__legal a:hover { color: var(--pink); text-decoration: underline; }

/* Policy pages */
.policy-page { max-width: 780px; margin: 0 auto; padding: 40px 20px 70px; }
.policy-page h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 22px; color: var(--charcoal); }
.policy-page p { font-size: 16px; line-height: 1.75; color: var(--charcoal); margin: 0 0 16px; }
.policy-page p.policy-head { font-weight: 700; font-size: 17px; margin-bottom: 6px; margin-top: 24px; }
.policy-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.policy-tabs a { padding: 8px 16px; border-radius: 999px; background: var(--ivory-deep); color: var(--charcoal); text-decoration: none; font-size: 14px; }
.policy-tabs a.is-active { background: var(--pink); color: #fff; }

/* =========================================================
   Category tiles (under Best Seller)
   Tall pink pills side by side. A light circle is "scooped" out of the top of each pill
   (so neighbours meet in sharp points) and the product pops out of that circle.
   Everything inside is sized in cqw (= % of the tile's own width) so it scales perfectly.
   ========================================================= */
.category-tiles { padding: 0 0 34px; background: #fdf1f5; }
.category-tiles__row {
  max-width: var(--container); margin: 0 auto; padding: 78px 8px 6px;
  display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.category-tiles__row::-webkit-scrollbar { display: none; }
.cat-tile {
  position: relative; flex: 0 0 calc((100vw - 16px) / 4.25); min-width: 84px; max-width: 190px;
  aspect-ratio: 1 / 1.36;
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: inherit; scroll-snap-align: start;
  background: linear-gradient(180deg, #fbdbe7 0%, #fce6ee 100%);
  border-radius: 0 0 999px 999px;                    /* flat top corners, big round bottom */
  transition: transform .25s var(--ease);
}
/* the light circle scooped out of the top (its centre sits on the pill's top edge) */
.cat-tile::before {
  content: ""; position: absolute; left: 0; top: -50cqw; width: 100cqw; height: 100cqw;
  border-radius: 50%; background: #f8f5f6; z-index: 0;
}
.cat-tile__media {
  position: absolute; z-index: 1; left: 0; top: -50cqw; width: 100cqw; height: 100cqw;   /* exactly the circle */
  border-radius: 50%; overflow: hidden;                                                   /* any photo is cropped to the circle */
  background-color: transparent; background-image: none;
  background-repeat: no-repeat; background-size: cover !important; background-position: center !important;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
/* no image yet → just a small hint inside the circle (no box) */
.cat-tile__media:has(.img-placeholder__label) { left: 6cqw; top: -42cqw; width: 88cqw; height: 80cqw; }
.cat-tile__media .img-placeholder__label {
  font-size: 11px; color: rgba(90, 40, 65, .45); text-align: center; padding: 0;
  background: none; border-radius: 0; word-break: normal; max-width: 100%;
}
.cat-tile:hover { transform: translateY(-4px); }
.cat-tile:hover .cat-tile__media { transform: scale(1.04); }
.cat-tile__label {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 15cqw; margin-top: 64cqw;
  font-size: clamp(11.5px, 13cqw, 17px); font-weight: 700; color: #1b1b1b; text-align: center; line-height: 1.2;
  padding: 0 4px;
}
.cat-tile__label svg { width: clamp(14px, 17cqw, 22px); height: clamp(14px, 17cqw, 22px); stroke: #1b1b1b; stroke-width: 2.6; fill: none; transition: transform .2s var(--ease); }
.cat-tile:hover .cat-tile__label svg { transform: translate(3px, -3px); }
.cat-tile:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }

/* =========================================================
   Scroll reveal — content fades/slides in as you scroll
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Product rating (★ 4.5) — set from dashboard → Products
   ========================================================= */
.product-card__rating, .pp-rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; line-height: 1; color: var(--charcoal);
  margin: 0 0 6px;
}
.product-card__rating .rating-star, .pp-rating .rating-star { color: #f5b301; font-size: 15px; line-height: 1; }
.product-card__rating .rating-num, .pp-rating .rating-num { font-weight: 600; }
.pp-rating { font-size: 15px; margin: 0; }
.pp-rating .rating-star { font-size: 18px; }
.pp-rate-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   Divider banners — double underline on the LAST word of the title.
   Two lines draw in (left → right, right → left in Arabic) each time
   the banner scrolls into view.
   ========================================================= */
.wide-banner h2 .dl-word { position: relative; display: inline-block; padding-bottom: .16em; }
.wide-banner h2 .dl-word::before,
.wide-banner h2 .dl-word::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px;
  background: #fff; box-shadow: 0 1px 8px rgba(130, 20, 70, .3);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .75s var(--ease);
}
.wide-banner h2 .dl-word::before { bottom: .08em; }
.wide-banner h2 .dl-word::after  { bottom: calc(.08em - 7px); transition-delay: .18s; }
.is-rtl .wide-banner h2 .dl-word::before,
.is-rtl .wide-banner h2 .dl-word::after { transform-origin: right center; }
.wide-banner.is-inview h2 .dl-word::before,
.wide-banner.is-inview h2 .dl-word::after { transform: scaleX(1); }
.wide-banner h2 .dl-word { margin-bottom: 7px; }
@media (max-width: 720px) {
  .wide-banner h2 .dl-word::before, .wide-banner h2 .dl-word::after { height: 2.5px; }
  .wide-banner h2 .dl-word::after { bottom: calc(.08em - 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .wide-banner h2 .dl-word::before, .wide-banner h2 .dl-word::after { transform: scaleX(1); transition: none; }
}


/* ===== Cart footer must truly hide when the cart is empty (display:grid was overriding [hidden]) ===== */
.cart-drawer__foot[hidden] { display: none !important; }

/* ===== Fit-frame: whole product centred, the photo's own background colour fills the rest ===== */
.fit-frame, .fit-host { overflow: hidden; }
.fit-frame:not(.product-card__photo), .fit-host { position: relative; }
.fit-frame, .fit-host { background-color: #FFD9E8; }
.fit-frame::before, .fit-host::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--fit-img) center / cover no-repeat; pointer-events: none;
}
.fit-frame.fit-failed::before, .fit-host.fit-failed::before { background-size: cover; }
.fit-host > img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: contain !important; background: transparent !important;
}
/* once the filled version is ready it already contains the photo → hide the plain <img> */
.fit-host.fit-ready > img { opacity: 0; }
.pp-suggest__media a.fit-host { aspect-ratio: 1; }
.pp-suggest__media a.fit-host img { aspect-ratio: auto; position: absolute; inset: 0; }
.fit-frame:not(.fit-ready):not(.fit-host)::before { background-size: contain; background-repeat: no-repeat; }

/* ---------- Login / account window — redesigned ---------- */
.account-modal {
  width: min(420px, 92vw); border-radius: 24px; padding: 0 30px 30px; background: #fff;
  box-shadow: 0 40px 90px rgba(120,40,80,.28), 0 0 0 1px rgba(252,110,166,.12);
  overflow-x: hidden;
}
.account-modal::before {
  content: ""; display: block; height: 104px; margin: 0 -30px -52px;
  background: radial-gradient(120% 140% at 50% 0%, #ffd3e6 0%, #ffe9f2 55%, #fff 100%);
}
.account-modal__close { top: 12px; right: 12px; background: rgba(255,255,255,.8); z-index: 2; }
.is-rtl .account-modal__close, [dir="rtl"] .account-modal__close { right: auto; left: 12px; }
.account-brand { display: flex; justify-content: center; position: relative; }
.account-brand img {
  width: 76px; height: 76px; padding: 16px; border-radius: 50%; background: #fff; object-fit: contain;
  box-shadow: 0 10px 26px rgba(252,110,166,.28), 0 0 0 4px #fff;
}
.account-modal h2 { text-align: center; font-size: 24px; margin: 16px 0 6px; color: var(--mauve-dark); }
.account-modal p.sub { text-align: center; margin-bottom: 20px; line-height: 1.6; }
.account-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 18px 0 0;
  background: #fdeaf2; border-radius: 999px; padding: 4px;
}
.account-tabs button {
  border: 0; background: transparent; border-radius: 999px; padding: 9px 8px; cursor: pointer;
  font: 600 13px var(--font-body); color: var(--charcoal-70); transition: background .2s, color .2s, box-shadow .2s;
}
.account-tabs button.is-active { background: #fff; color: var(--pink); box-shadow: 0 4px 12px rgba(252,110,166,.22); }
.account-form input {
  padding: 13px 16px; border: 1.5px solid #f3d9e5; border-radius: 14px; background: #fffafc; transition: border-color .2s, box-shadow .2s;
}
.account-form input:focus { outline: 0; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(252,110,166,.13); background: #fff; }
.account-modal .btn { border-radius: 999px; }
#google-signin-btn { border-radius: 999px; padding: 12px; background: #fff; border: 1.5px solid #f0d3e1; font-weight: 600; }
#google-signin-btn:hover { background: #fff7fb; border-color: var(--pink); }
.account-switch { display: none; }          /* replaced by the tabs at the top */
.account-link { display: block; margin: 14px auto 0; text-align: center; color: var(--pink); text-decoration: none; font-weight: 500; }
.account-link:hover { text-decoration: underline; color: var(--mauve-dark); }
.account-loggedin { padding-top: 6px; }
@media (max-width: 600px) { .account-modal { width: min(100vw - 24px, 400px); padding: 0 20px 24px; } .account-modal::before { margin: 0 -20px -52px; } }

/* =========================================================
   v8 — Arabic (RTL): slider / gallery arrows follow the reading direction
   (the "previous" button sits on the right and points right, "next" on the left and points left)
   ========================================================= */
.is-rtl .hero-slider__arrow { transform: translateY(-50%) scaleX(-1); }
.is-rtl .hero-slider__arrow--prev { left: auto; right: 18px; }
.is-rtl .hero-slider__arrow--next { right: auto; left: 18px; }
.is-rtl .product-card__nav { transform: translateY(-50%) scaleX(-1); }
.is-rtl .product-card__nav--prev { left: auto; right: 6px; }
.is-rtl .product-card__nav--next { right: auto; left: 6px; }
.is-rtl .quickview__nav { transform: translateY(-50%) scaleX(-1); }
.is-rtl .quickview__nav--prev { left: auto; right: 10px; }
.is-rtl .quickview__nav--next { right: auto; left: 10px; }
@media (max-width: 800px) {
  .is-rtl .hero-slider__arrow--prev { right: 10px; }
  .is-rtl .hero-slider__arrow--next { left: 10px; }
}

/* =========================================================
   v8 — login / account window: bigger logo, fully visible
   ========================================================= */
.account-modal::before { height: 124px; margin-bottom: -66px; }
.account-brand { margin-bottom: 4px; }
.account-brand img {
  width: 108px; height: 108px; padding: 22px 20px; border-radius: 50%; background: #fff; object-fit: contain; overflow: visible;
  box-shadow: 0 14px 34px rgba(252,110,166,.32), 0 0 0 5px #fff;
}
@media (max-width: 600px) {
  .account-modal::before { height: 118px; margin-bottom: -62px; }
  .account-brand img { width: 100px; height: 100px; padding: 20px 18px; }
}

/* category circles (Hair Care / Skin Care / …): phone only — hidden on laptop/desktop */
@media (min-width: 721px) { .category-tiles { display: none; } }

/* =========================================================
   Elegant scrollbars — page, drawers, popups, lists, tables
   (areas that hide their scrollbar on purpose keep doing so)
   ========================================================= */
html { scrollbar-width: thin; scrollbar-color: #f59cc1 #fff1f7; }
* { scrollbar-width: thin; scrollbar-color: #f59cc1 transparent; }
html, body { overscroll-behavior-y: none; }
.cart-drawer__body, .search-results, .mobile-nav, [class*="modal"], [class*="popup"], [class*="drawer"] { overscroll-behavior: contain; scroll-behavior: smooth; }
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  html::-webkit-scrollbar-track { background: #fff1f7; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff9cc6, #fc6ea6); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
  ::-webkit-scrollbar-thumb:hover { background: #fc6ea6; background-clip: padding-box; }
}

/* Change-avatar control in the account modal */
.account-avatar-edit { position: relative; display: inline-block; cursor: pointer; }
.account-avatar-edit img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.account-avatar-edit .account-avatar-fallback { width: 72px; height: 72px; }
.account-avatar-edit__badge {
  position: absolute; right: -2px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: #fc6ea6; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* =========================================================
   Responsive hardening — phones, tablets, laptops, big screens & TVs
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img, video, svg, canvas { max-width: 100%; }
table { max-width: 100%; }
/* never let long words / names / emails break the layout */
h1, h2, h3, h4, p, li, td, th, a, label, .pp-comment__text, .co-line__name { overflow-wrap: anywhere; }
/* iOS: inputs ≥16px so Safari does not zoom the page when focused */
@media (max-width: 900px) {
  input, select, textarea { font-size: max(16px, 1em); }
}
/* phones with a notch / rounded corners */
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
/* tablets in portrait */
@media (min-width: 721px) and (max-width: 1024px) {
  :root { --gutter: clamp(20px, 4vw, 40px); }
}
/* big laptops / desktop monitors */
@media (min-width: 1600px) {
  :root { --container: 1440px; }
  body { font-size: 17px; }
}
/* Full-HD+ screens and TVs: wider content, scaled up so it stays readable from the sofa */
@media (min-width: 1920px) {
  :root { --container: 1560px; }
  :focus-visible { outline-width: 4px; outline-offset: 4px; }   /* clear focus ring for TV remotes */
}
@supports (zoom: 1) {
  @media (min-width: 2200px) { html { zoom: 1.3; } }
  @media (min-width: 3000px) { html { zoom: 1.8; } }
  @media (min-width: 3800px) { html { zoom: 2.4; } }
}
/* very short landscape screens (phones turned sideways) */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-slider { max-height: 88vh; }
}
#reviews-section[hidden] { display: none !important; }
