/* =====================================================================
   Lovo Boutique: custom CSS for Salla
   Works on top of the store's current theme (no custom theme needed).
   Palette: white, deep burgundy #5E1424, pearl #F1ECE6, light blue #CFE0F1,
   dusty pink #D9A9AE. Pair this file with lovo-custom.js.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600&display=swap');

/* Variables are set on <body> so they win over the theme's own :root values */
body {
  --lovo-burgundy: #5E1424; --lovo-burgundy-dark: #45101B; --lovo-pearl: #F1ECE6;
  --lovo-blue: #CFE0F1; --lovo-pink: #D9A9AE; --lovo-ink: #2E0F18;
  --color-primary: #5E1424; --color-primary-dark: #45101B; --color-primary-light: #7A2236;
  --color-primary-reverse: #FFFFFF;
  --font-main: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  --main-text-color: #2E0F18; --s-radius: .25rem;
  color: var(--lovo-ink);
}
body, button, input, select, textarea { font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif; }

/* ---------- Top bar ---------- */
.top-navbar, .topnav-is-dark .top-navbar {
  background: var(--lovo-pink) !important; color: var(--lovo-burgundy) !important;
  font-size: .75rem; font-weight: 500; min-height: 40px; align-items: center;
}
.top-navbar a, .top-navbar button, .top-navbar .topnav-link-item { color: inherit !important; }
.top-navbar .btn--rounded-gray, .top-navbar .btn--circle-gray {
  background: transparent !important; border: 1px solid var(--lovo-burgundy); color: var(--lovo-burgundy) !important;
}
.top-navbar .s-search-input { background: rgba(255,255,255,.6) !important; border: 0; color: var(--lovo-ink) !important; }
.lovo-announce { flex: 1; text-align: center; padding: 0 .75rem; }
.lovo-announce--bar { background: var(--lovo-pink); color: var(--lovo-burgundy); padding: .5rem; font-size: .75rem; font-weight: 500; }
@media (max-width: 1023px) { .top-navbar .lovo-announce { display: none; } }

/* ---------- Header: menu | centered logo | account + cart ---------- */
.main-nav-container { border-bottom: 1px solid var(--lovo-pearl); }
@media (min-width: 1024px) { .main-nav-container { min-height: 100px; } }
.main-nav-container .container { position: relative; }
.navbar-brand.lovo-brand {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  margin: 0 !important; z-index: 2; display: flex; justify-content: center; padding: 6px 0;
}
.lovo-logo { width: auto !important; max-width: none !important; display: block; }
.lovo-logo--stack { height: 72px; max-height: 72px !important; display: none; }
.lovo-logo--wide { height: 40px; max-height: 40px !important; }
@media (min-width: 1024px) { .lovo-logo--stack { display: block; } .lovo-logo--wide { display: none; } }
.main-nav-container.fixed-pinned .lovo-logo--stack, .fixed-header .lovo-logo--stack { height: 52px; }
.main-menu > li > a:hover, .main-menu > li.active > a { color: var(--lovo-burgundy) !important; }

/* ---------- Buttons and links use the brand color ---------- */
.btn--primary, .s-button-primary, .s-button-solid.s-button-primary {
  background: var(--lovo-burgundy) !important; border-color: var(--lovo-burgundy) !important; color: #fff !important;
}
.btn--outline-primary, .s-button-primary-outline { border-color: var(--lovo-burgundy) !important; color: var(--lovo-burgundy) !important; }
.s-block__title h2, .s-block--features__item h2 { color: var(--lovo-ink); }

/* ---------- Home: hero ---------- */
.lovo-hero { margin: 0; }
.lovo-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 340px; background: var(--lovo-pearl); }
.lovo-hero__text { display: flex; align-items: center; padding: 2rem 1.5rem; }
@media (min-width: 1024px) { .lovo-hero__text { padding: 3rem 5rem; } }
.lovo-hero__text-inner { max-width: 440px; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.lovo-hero__eyebrow { font-size: .7rem; letter-spacing: .25em; font-weight: 500; color: var(--lovo-burgundy); }
.lovo-hero__title { font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.2; font-weight: 500; color: var(--lovo-ink); margin: 0; }
.lovo-hero__desc { opacity: .75; line-height: 1.8; margin: 0; }
.lovo-hero__media { background: linear-gradient(200deg, var(--lovo-blue), var(--lovo-pink)); background-size: cover; background-position: center; min-height: 240px; }
@media (max-width: 767px) { .lovo-hero__grid { grid-template-columns: 1fr; } }
.lovo-btn { display: inline-block; background: var(--lovo-burgundy); color: #fff !important; padding: .7rem 1.8rem; border-radius: 2px; font-size: .875rem; transition: opacity .2s; }
.lovo-btn:hover { opacity: .85; }

/* ---------- Home: season tiles ---------- */
.lovo-tiles { padding: 2rem 0; }
.lovo-tiles .container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 10px; }
.lovo-tiles__title { font-size: 1.25rem; font-weight: 600; margin: 0 0 1rem; color: var(--lovo-ink); }
.lovo-tiles__grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .lovo-tiles__grid { grid-template-columns: repeat(3, 1fr); } .lovo-tiles__grid--2 { grid-template-columns: repeat(2, 1fr); } .lovo-tiles__grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lovo-tiles__grid--4 { grid-template-columns: repeat(4, 1fr); } }
.lovo-tile { position: relative; display: flex; align-items: flex-end; min-height: 120px; padding: 1rem; color: #fff !important; background: var(--c) center / cover no-repeat; border-radius: 2px; overflow: hidden; }
@media (min-width: 768px) { .lovo-tile { min-height: 180px; } }
.lovo-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 70%); transition: opacity .3s; }
.lovo-tile:hover::before { opacity: .8; }
.lovo-tile__title { position: relative; font-size: 1.1rem; font-weight: 500; }
.lovo-tile--c1 { --c: var(--lovo-burgundy); } .lovo-tile--c2 { --c: var(--lovo-pink); } .lovo-tile--c3 { --c: #8fb0d1; }

/* ---------- Home: offer strip ---------- */
.lovo-strip { background: var(--lovo-pink); color: var(--lovo-burgundy); }
.lovo-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; padding: 1.1rem 10px; font-size: 1.1rem; font-weight: 500; text-align: center; }
.lovo-strip__btn { border: 1px solid var(--lovo-burgundy); padding: .3rem 1rem; font-size: .8rem; border-radius: 2px; color: var(--lovo-burgundy) !important; }
.lovo-strip__btn:hover { background: var(--lovo-burgundy); color: #fff !important; }

/* ---------- Pearl bands behind product and review sections ---------- */
.lovo-band-section { position: relative; isolation: isolate; margin-top: 0 !important; padding-top: 2rem; padding-bottom: 2rem; }
.lovo-band-section::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vw; right: -100vw; background: var(--lovo-pearl); z-index: -1; }
html, body { overflow-x: hidden; }

/* ---------- Product cards ---------- */
.s-product-card-vertical { background: transparent !important; border-radius: 2px; }
.s-product-card-vertical .s-product-card-image { flex: none !important; height: auto !important; max-height: none !important; aspect-ratio: 3 / 4; border-radius: 2px; position: relative; overflow: hidden; }
.s-product-card-vertical .s-product-card-content { padding: .75rem 0 0 !important; }
.s-product-card-content-title a { font-weight: 400; font-size: .9rem; color: var(--lovo-ink) !important; }
.s-product-card-content-title a:hover { color: var(--lovo-burgundy) !important; }
.s-product-card-sale-price h4, .s-product-card-starting-price h4, .s-product-card-price { color: var(--lovo-burgundy) !important; font-weight: 600; }
.s-product-card-sale-price span { color: rgba(46,15,24,.45) !important; }
.s-product-card-entry .s-button-btn { border-radius: 2px !important; }
.lovo-tag { position: absolute; bottom: .5rem; inset-inline-end: .5rem; z-index: 2; background: var(--lovo-burgundy); color: #fff; font-size: .7rem; padding: .1rem .5rem; border-radius: 2px; }
.lovo-quick-add { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; background: rgba(94,20,36,.92); transform: translateY(100%); transition: transform .25s ease; }
.s-product-card-vertical:hover .lovo-quick-add, .lovo-quick-add:focus-within { transform: none; }
@media (hover: none) { .lovo-quick-add { transform: none; } }
.lovo-quick-add salla-add-product-button { display: block; width: 100%; }
.lovo-quick-add .s-button-btn, .lovo-quick-add .s-button-element, .lovo-quick-add button {
  width: 100%; background: transparent !important; border: 0 !important; color: #fff !important;
  border-radius: 0 !important; box-shadow: none !important; font-size: .8rem; padding: .55rem 0;
}
.lovo-quick-add .s-button-text, .lovo-quick-add i { color: #fff !important; }

/* ---------- "Products with background" section: burgundy tint ---------- */
.s-block--slider-with-bg .slider-bg:before { background-color: var(--lovo-burgundy) !important; opacity: .55 !important; }

/* ---------- Footer ---------- */
.store-footer, .footer-is-light .store-footer, .footer-is-dark .store-footer { background: var(--lovo-pink) !important; color: var(--lovo-burgundy) !important; margin-top: 2rem; }
.store-footer .store-footer__inner { background: var(--lovo-pink) !important; border-bottom-color: rgba(94,20,36,.2) !important; }
.store-footer h3, .store-footer .copyright-text p { color: var(--lovo-burgundy) !important; }
.store-footer .social-link, .store-footer .contact-social { border-color: rgba(94,20,36,.3) !important; }
.lovo-footer-logo { height: 44px; width: auto; margin-bottom: 1rem; }
.lovo-footer-motto { font-size: .95rem; font-weight: 500; margin: -.25rem 0 .75rem; opacity: .9; }

/* ---------- Footer v3: every band dusty pink ---------- */
.store-footer, .store-footer > *, .store-footer__inner, .store-footer .copyright-text { background-color: var(--lovo-pink) !important; }
.store-footer, .store-footer a, .store-footer p, .store-footer span, .store-footer li,
.store-footer h3, .store-footer h4, .store-footer i, .store-footer .copyright-text * { color: var(--lovo-burgundy) !important; }
.store-footer__inner { border-bottom-color: rgba(94,20,36,.25) !important; }
.lovo-footer-logo--stack { height: 90px !important; width: auto !important; max-width: none !important; background: transparent !important; margin: 0 auto 1rem; display: block; }

/* ---------- Hero: Lovo logo centered on the gradient panel ---------- */
.lovo-hero__media { display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.lovo-hero__logo { width: min(78%, 520px); height: auto; max-width: 100%; }
@media (max-width: 767px) { .lovo-hero__logo { width: min(70%, 360px); } }

/* ---------- v5: centered top-bar text, no header logo, footer curve ---------- */
.top-navbar { position: relative; }
.top-navbar .lovo-announce {
  position: absolute !important; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 60%; padding: 0 !important; flex: none !important; text-align: center;
  white-space: nowrap; pointer-events: none;
}
.lovo-announce--bar { position: static !important; transform: none !important; max-width: none !important; white-space: normal !important; pointer-events: auto; }
.lovo-brand-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap; margin: -1px !important; padding: 0 !important;
}
@media (min-width: 1024px) { body.lovo-no-logo .main-nav-container { min-height: 84px; } }
.lovo-nopseudo-before::before, .lovo-nopseudo-after::after { display: none !important; }
.store-footer .store-footer__inner { padding-top: 3rem; }

/* ---------- v6: remove the footer curve so white page meets pink footer cleanly ---------- */
.lovo-hide { display: none !important; }
.store-footer::before, .store-footer::after,
.store-footer > .store-footer__inner::before, .store-footer > .store-footer__inner::after { display: none !important; }
.store-footer [class*="curve" i], .store-footer [class*="wave" i] { display: none !important; }

/* ---------- v7: curved (dome) footer top, white corners above the arc, pink below ---------- */
body { --lovo-dome: clamp(90px, 14vw, 300px); }
body .store-footer.lovo-curve {
  margin-top: 0 !important;
  padding-top: max(28px, calc(var(--lovo-dome) * .22)) !important;
  background-color: transparent !important;
  background-image:
    radial-gradient(54% 100% at 50% 100%, var(--lovo-pink) 99.4%, rgba(217,169,174,0) 100%),
    linear-gradient(var(--lovo-pink), var(--lovo-pink)) !important;
  background-repeat: no-repeat !important;
  background-size: 100% var(--lovo-dome), 100% calc(100% - var(--lovo-dome) + 2px) !important;
  background-position: top center, bottom center !important;
}
body .store-footer.lovo-curve > *,
body .store-footer.lovo-curve .store-footer__inner,
body .store-footer.lovo-curve .copyright-text { background-color: transparent !important; }
@media (max-width: 767px) {
  body .store-footer.lovo-curve { padding-top: calc(var(--lovo-dome) * .6) !important; }
}

/* ---------- v8: straight split footer: top = Top Seller background, bottom bar = pink ---------- */
body .store-footer.lovo-split {
  margin-top: 0 !important;
  background-color: var(--lt-bg-color, var(--lovo-pearl)) !important;
  background-image: var(--lt-bg-image, none) !important;
  background-size: var(--lt-bg-size, auto) !important;
  background-repeat: var(--lt-bg-repeat, repeat) !important;
  background-position: var(--lt-bg-pos, 0 0) !important;
}
body .store-footer.lovo-split > *,
body .store-footer.lovo-split .store-footer__inner { background-color: transparent !important; }
body .store-footer.lovo-split .lovo-footer-bar { background-color: var(--lovo-pink) !important; border-top: 0 !important; }
body .store-footer.lovo-split .lovo-above-bar { border-bottom: 0 !important; }

/* ---------- v9: seamless split footer ---------- */
body .store-footer.lovo-split { position: relative !important; }
/* the white gap above the footer is filled with the same background, so the two sections join */
body .store-footer.lovo-split::before {
  content: "" !important; display: block !important; position: absolute; left: 0; right: 0; bottom: 100%;
  height: var(--lt-gap, 0px); pointer-events: none; z-index: 0;
  background-color: var(--lt-bg-color, var(--lovo-pearl));
  background-image: var(--lt-bg-image, none); background-size: var(--lt-bg-size, auto);
  background-repeat: var(--lt-bg-repeat, repeat); background-position: var(--lt-gap-pos, 0 0);
}
/* the bottom strip: full-width pink band behind payments + copyright */
body .store-footer.lovo-split .lovo-footer-bar { position: relative; isolation: isolate; background-color: transparent !important; border-top: 0 !important; }
body .store-footer.lovo-split .lovo-footer-bar::before {
  content: "" !important; display: block !important; position: absolute; top: 0; bottom: 0; left: -100vw; right: -100vw;
  background: var(--lovo-pink) !important; z-index: -1;
}

/* ---------- v10: no gap fill (the white gap stays white; the footer grid fades in from white) ---------- */
body .store-footer.lovo-split::before { display: none !important; }
body .store-footer.lovo-split .lovo-footer-bar::before { display: block !important; }

/* ---------- v11: on phones the LOVO logo panel comes first, right after the header; the text goes below it ---------- */
@media (max-width: 767px) {
  .lovo-hero__media { order: -1; min-height: 220px; }
  .lovo-hero__text { order: 1; }
}

/* ---------- v12: show the top-bar message on phones too (v1 hid it below 1024px) ---------- */
@media (max-width: 1023px) {
  .top-navbar .lovo-announce {
    display: block !important;
    max-width: 92%; white-space: normal; text-align: center;
    font-size: .8rem; line-height: 1.4; z-index: 2;
  }
}

/* ---------- v13: no logo in the footer ---------- */
.lovo-footer-logo-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap; margin: -1px !important; padding: 0 !important;
}

/* ---------- v14: footer contacts + social = one row of clickable icons, no text ---------- */
.lovo-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap; margin: -1px !important; padding: 0 !important;
}
.lovo-gone, .lovo-dup { display: none !important; }
.lovo-contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 1.5rem 0 1.25rem; }
body .store-footer .lovo-contact-row > a {
  display: inline-flex !important; align-items: center; justify-content: center; position: relative;
  width: 44px; height: 44px; padding: 0 !important; margin: 0 !important;
  border: 1px solid rgba(94,20,36,.35) !important; border-radius: 50% !important;
  background: transparent !important; color: var(--lovo-burgundy) !important; transition: background-color .2s, color .2s;
}
body .store-footer .lovo-contact-row > a > *:not(.lovo-sr) {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
}
body .store-footer .lovo-contact-row > a i { font-size: 1.15rem; line-height: 1; }
body .store-footer .lovo-contact-row > a:hover { background-color: var(--lovo-burgundy) !important; }
body .store-footer .lovo-contact-row > a:hover i,
body .store-footer .lovo-contact-row > a:hover svg { color: #fff !important; fill: #fff; }

/* ---------- v15: every icon in the row has the same color, weight and size ---------- */
body .store-footer .lovo-contact-row > a { color: rgba(94,20,36,.68) !important; }
body .store-footer .lovo-contact-row > a i,
body .store-footer .lovo-contact-row > a svg,
body .store-footer .lovo-contact-row > a > span { color: inherit !important; opacity: 1 !important; }
body .store-footer .lovo-contact-row > a > svg.lovo-ico { width: 20px !important; height: 20px !important; margin: 0 !important; display: block; fill: none !important; stroke: currentColor; }
body .store-footer .lovo-contact-row > a:hover { color: #fff !important; }
body .store-footer .lovo-contact-row > a:hover svg.lovo-ico { fill: none !important; stroke: #fff; }

/* ---------- v16: no line under section titles ---------- */
body.lovo-no-title-line :is(.s-block__title, .s-slider-block__title, .section-title, [class*="block__title"], [class*="block-title"]) {
  border-bottom: 0 !important; box-shadow: none !important;
}
body.lovo-no-title-line :is(.s-block__title, .s-slider-block__title, .section-title, [class*="block__title"], [class*="block-title"])::before,
body.lovo-no-title-line :is(.s-block__title, .s-slider-block__title, .section-title, [class*="block__title"], [class*="block-title"])::after,
body.lovo-no-title-line :is(.s-block__title, .s-slider-block__title, .section-title, [class*="block__title"], [class*="block-title"]) :is(div, span, h1, h2, h3, h4):not(a *)::before,
body.lovo-no-title-line :is(.s-block__title, .s-slider-block__title, .section-title, [class*="block__title"], [class*="block-title"]) :is(div, span, h1, h2, h3, h4):not(a *)::after { display: none !important; content: none !important; }
body.lovo-no-title-line :is(.s-block__title, .s-slider-block__title, .section-title, [class*="block__title"], [class*="block-title"]) hr { display: none !important; }

/* ---------- v17: no pink top bar (soft version: bar stays in the DOM so the layout never breaks) ---------- */
body.lovo-no-topbar .lovo-announce { display: none !important; }
body.lovo-no-topbar .top-navbar,
body.lovo-no-topbar.topnav-is-dark .top-navbar {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
}

/* ---------- v19: language switcher sits in the header row, with the theme's own styling (no custom font, color or size) ---------- */
body .lovo-lang-wrap { display: inline-flex; align-items: center; }
body.lovo-no-topbar .top-navbar { height: 0 !important; overflow: hidden !important; }

/* ---------- v18: no search button in the header ---------- */
body.lovo-no-search :is(salla-search, .s-search, .s-search-container, .header-btn--search, [class*="search-btn"], [class*="search-icon"], [class*="header-search"], .main-nav-container [href*="search"], header button[aria-label*="search" i], header button[aria-label*="بحث"], header .sicon-search, header .sicon-search-2):not(.lovo-lang-wrap *) { display: none !important; }

/* ---------- v20: product sections use the same white background as "Shop by Season" ---------- */
body .lovo-band-section::before { background: #fff !important; }
body .lovo-band-section { background-color: #fff !important; }
body .lovo-band-section .s-product-card-entry { border: 1px solid #EFE8E1; }
body .store-footer.lovo-split { --lt-bg-color: #fff; }

/* ---------- v22: every section title matches "Shop by Season" (same font, size, weight, color) ---------- */
body :is(.s-block__title, .s-slider-block__title, .section-title, [class*="block__title"], [class*="block-title"]) :is(h1, h2, h3, h4, span, b, strong):not(a *):not(a):not(button *) {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
  font-size: 1.25rem !important; font-weight: 600 !important; line-height: 1.4 !important;
  color: var(--lovo-ink) !important; letter-spacing: normal !important; text-transform: none !important;
}

/* ---------- v25: search = just a thin magnifier icon beside the other header icons; tap it to type ---------- */
.lovo-search { display: inline-flex; align-items: center; gap: .35rem; margin: 0 .6rem; padding: 0; height: 34px; background: none; border: 0; flex: none; }
.lovo-search__go { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: #111; }
.lovo-search__input {
  width: 0; opacity: 0; padding: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important;
  height: 30px; font-size: .85rem; color: var(--lovo-ink); transition: width .25s ease, opacity .2s;
}
.lovo-search.is-open .lovo-search__input { width: 170px; opacity: 1; border-bottom: 1px solid var(--lovo-burgundy) !important; }
.lovo-search__input::-webkit-search-cancel-button { display: none; }
@media (max-width: 767px) { .lovo-search { margin: 0 .35rem; } .lovo-search.is-open .lovo-search__input { width: 120px; } }
.lovo-search--free { position: absolute; inset-inline-end: 1rem; top: 50%; transform: translateY(-50%); margin: 0; }