/* laverne.my — glue CSS on top of the self-hosted Salla theme (app.css). Only what the removed JS components used to provide. */

/* header */
.store-header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); }
.store-header.is-stuck { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.main-nav-container { min-height: 61px; }
.header__language-wrap { position: relative; }
.header__language-menu { position: absolute; top: 100%; inset-inline-start: 0; z-index: 70; background: #fff; border: 1px solid #eee; border-radius: .5rem; min-width: 10rem; padding: .25rem 0; box-shadow: 0 8px 24px rgba(0,0,0,.08); list-style: none; margin: .25rem 0 0; }
.header__language-menu a { display: block; padding: .5rem .9rem; font-size: .85rem; white-space: nowrap; }
.header__language-menu a:hover { background: #f5f5f5; }
.header__distributor { font-size: .8rem; color: var(--store-text-secondary); }
.header-btn { display: inline-flex; align-items: center; }
.header-btn--wa { color: #111; }
.header-btn--wa .header-btn__icon { color: #22c55e; }

/* missing Tailwind variants (app.css never compiled these) */
@media (min-width: 768px) { .md\:inline { display: inline !important; } }

/* mega menu (desktop) + drawer (mobile) — replaces mmenu-light */
.main-menu { list-style: none; margin: 0; padding: 0; }
.main-menu__arrow { font-size: .8em; opacity: .6; transition: transform .2s; }
.mobile-menu__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; opacity: 0; transition: opacity .25s; }
body.menu-open .mobile-menu__backdrop { opacity: 1; }
/* the theme's app.css double-draws a chevron on .has-children>a — our markup has its own arrow */
.main-menu .has-children > a:after { content: none !important; display: none !important; }
@media (min-width: 1024px) {
  .mobile-menu { position: static; display: flex; align-items: stretch; margin-inline-start: 1rem; min-width: 0; }
  .mobile-menu__head { display: none; }
  .main-menu { display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; }
  .main-menu > .main-menu__item { position: relative; display: flex; align-items: center; }
  .main-menu > .main-menu__item > .main-menu__link { position: relative; padding: .9rem .6rem; white-space: nowrap; transition: color .15s; }
  .main-menu > .main-menu__item > .main-menu__link:hover { color: var(--color-primary); }
  .main-menu > .main-menu__item > .main-menu__link::before { content: ""; position: absolute; inset-inline: .6rem; bottom: .45rem; height: 2px; background: currentColor; border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .2s; }
  .main-menu > .main-menu__item:hover > .main-menu__link::before, .main-menu > .main-menu__item.is-open > .main-menu__link::before { transform: scaleX(1); }
  .main-menu > .main-menu__item > .main-menu__link .main-menu__item-image { display: none; }
  .main-menu__sub { position: absolute; top: 100%; inset-inline-start: 0; min-width: 17rem; background: #fff; border: 1px solid #ececec; border-radius: .75rem; box-shadow: 0 18px 40px rgba(0,0,0,.12); padding: .5rem 0; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 75; }
  .main-menu__sub.align-end { inset-inline-start: auto; inset-inline-end: 0; }
  .main-menu__item.has-children:hover > .main-menu__sub, .main-menu__item.has-children:focus-within > .main-menu__sub, .main-menu__item.has-children.is-open > .main-menu__sub { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-menu__sub .main-menu__item { position: relative; }
  .main-menu__sub .main-menu__link { padding: .55rem 1rem; font-weight: 500; display: flex; border-radius: .5rem; margin: 0 .4rem; transition: background .15s, color .15s; }
  .main-menu__sub .main-menu__link:hover { color: var(--color-primary); background: #f5f5f5; }
  .main-menu__sub .main-menu__item-image { width: 2.25rem; height: 2.25rem; }
  .main-menu__view-all { padding: .35rem 1.4rem .6rem; border-bottom: 1px solid #eee; margin-bottom: .35rem; }
  .main-menu__sub--l3 { top: 0; inset-inline-start: 100%; }
  .mburger { display: none; }
  .lg\:hidden { display: none !important; }
}
/* header WA button label: icon-only until the row has room */
.wa-header-label { display: none; white-space: nowrap; }
@media (min-width: 1440px) { .wa-header-label { display: inline; } }
/* tighter nav between 1024 and 1440 so 8 items + logo + actions never overflow the row */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .main-menu > .main-menu__item > .main-menu__link { padding: .9rem .45rem; font-size: .8rem; }
}
@media (max-width: 1023.98px) {
  /* app.css ships `.mobile-menu{display:none}` at ≤1024 — must re-declare display or the drawer never renders */
  .mobile-menu { display: block; position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(85vw, 22rem); background: #fff; z-index: 90; transform: translateX(-105%); transition: transform .28s cubic-bezier(.22,.61,.36,1); overflow-y: auto; overscroll-behavior: contain; padding: 0 0 max(2rem, env(safe-area-inset-bottom)); box-shadow: 0 0 40px rgba(0,0,0,.18); }
  [dir="rtl"] .mobile-menu { transform: translateX(105%); }
  body.menu-open .mobile-menu { transform: none; }
  body.menu-open { overflow: hidden; }
  .mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 2; }
  /* app.css force-hides .btn--close-sm and .close-mobile-menu — restore ours as a plain inline button */
  .mobile-menu__head .btn--close-sm.close-mobile-menu { display: inline-flex !important; position: static; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; transform: none; opacity: 1; background: #f3f4f6; color: #111; border: 0; border-radius: 999px; font-size: 1rem; line-height: 1; cursor: pointer; }
  .main-menu > .main-menu__item { border-bottom: 1px solid #f3f3f3; }
  .main-menu__link { display: flex; align-items: center; padding: .95rem 1.25rem; min-height: 48px; }
  .main-menu__link .main-menu__arrow { margin-inline-start: auto; padding: .5rem .65rem; font-size: 1rem; }
  .main-menu__item.is-open > .main-menu__link .main-menu__arrow { transform: rotate(180deg); }
  .main-menu__sub { display: none; list-style: none; margin: 0; padding: .25rem 0 .6rem 1.1rem; background: #fafafa; border-radius: .5rem; margin: 0 .6rem .6rem; }
  [dir="rtl"] .main-menu__sub { padding: .25rem 1.1rem .6rem 0; }
  .main-menu__item.is-open > .main-menu__sub { display: block; }
  .main-menu__sub .main-menu__link { padding: .65rem 1rem; font-weight: 500; min-height: 44px; }
  .main-menu__sub .main-menu__item { border-bottom: 0; }
  .main-menu__sub .main-menu__item-image { width: 2rem; height: 2rem; }
  .mobile-menu__langs { display: flex; gap: .5rem; padding: 1rem 1.25rem; }
  .mobile-menu__langs a { padding: .45rem .9rem; border: 1px solid #e5e7eb; border-radius: 999px; font-size: .85rem; }
  .mobile-menu__langs a.is-active { font-weight: 700; background: #111; color: #fff; border-color: #111; }
}

/* WhatsApp */
.wa-fab { position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 50; display: inline-flex; align-items: center; gap: .5rem; background: var(--wa-btn-bg); color: var(--wa-btn-text-color); border-radius: 999px; padding: .75rem 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 700; font-size: .9rem; }
.wa-fab i { font-size: 1.5rem; }
.wa-fab:hover { color: #fff; filter: brightness(1.05); }
@media (max-width: 640px) { .wa-fab__label { display: none; } .wa-fab { padding: .8rem; } }
.btn--wa-order, .btn--wa-order:hover { background: var(--wa-btn-bg) !important; border-color: var(--wa-btn-bg) !important; color: #fff !important; }
.btn--wa-footer { display: inline-flex; align-items: center; gap: .5rem; background: var(--wa-btn-bg); color: #fff; padding: .6rem 1rem; border-radius: .5rem; font-weight: 700; }
.btn--wa-footer:hover { color: #fff; }
.footer-distributor i { color: #d4a53a; }

/* product card: buttons are <a> now (theme expects <salla-button>) */
.product-card__enhanced-mini-cart__btn, .product-card__normal-cart__btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; }
.product-card .custom-product-rating { display: flex; justify-content: center; gap: .3rem; font-size: .8rem; color: #6b7280; }
.product-card .custom-rating-star { color: #f59e0b; }

/* sliders: un-hydrated fallbacks from the source <style> block */
.advanced-slider salla-slider, .home-slider salla-slider { visibility: visible; }
.s-slider-nav-arrow { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; cursor: pointer; }
.s-slider-nav-arrow.swiper-button-disabled { opacity: .35; cursor: default; }
.s-slider-block__title { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.s-slider-block__title-nav { display: flex; gap: .5rem; }
.swiper-slide { height: auto; }
.s-products-slider-card > custom-salla-product-card { height: 100%; }
.s-products-list-vertical-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .s-products-list-vertical-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .s-products-list-vertical-cards { grid-template-columns: repeat(var(--products-per-row, 4), minmax(0, 1fr)); } }

/* hero — image slides size by their real 16:9 aspect (no fixed-vh crop box); video keeps the source's box */
.advanced-slider--video .advanced-slider__slide { height: var(--sliderHeight, 64vh); }
@media (max-width: 767.98px) { .advanced-slider--video .advanced-slider__slide { height: var(--mobileSliderHeight, 70vh); } }
.advanced-slider__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.advanced-slider__image { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 86vh; object-fit: cover; object-position: center; display: block; }

/* product page gallery — main image sized by aspect ratio, thumbs = horizontal strip under it at every width */
.product-single__main-media .swiper { height: 100%; }
.product-single__main-media .swiper-slide img { width: 100%; height: auto; aspect-ratio: 1; max-height: min(650px, 78vh); object-fit: cover; cursor: zoom-in; }
.product-gallery-thumbs { margin-top: .75rem; width: 100%; }
.product-gallery-thumbs .swiper-slide { opacity: .5; cursor: pointer; border-radius: .5rem; overflow: hidden; width: 5rem; transition: opacity .15s; }
.product-gallery-thumbs .swiper-slide-thumb-active { opacity: 1; outline: 2px solid #111; outline-offset: -2px; }
.product-gallery-thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; height: 100%; }
.tabs__item { display: none; } .tabs__item.is-active { display: block; }
.tab-trigger { cursor: pointer; }
.product-description :is(h1,h2,h3) { margin: 1rem 0 .5rem; font-weight: 700; }
.product-description h1 { font-size: 1.35rem; } .product-description h2 { font-size: 1.15rem; }
.product-description p { margin: .35rem 0; line-height: 1.8; }
.product-description ul { list-style: disc; padding-inline-start: 1.5rem; }

/* blog / pages / search / contact */
.page-content :is(h1,h2,h3) { margin: 1.2rem 0 .5rem; font-weight: 700; }
.page-content h1 { font-size: 1.5rem; } .page-content h2 { font-size: 1.25rem; } .page-content h3 { font-size: 1.1rem; }
.page-content p { margin: .5rem 0; line-height: 1.9; }
.page-content ul, .page-content ol { padding-inline-start: 1.5rem; margin: .5rem 0; } .page-content ul { list-style: disc; } .page-content ol { list-style: decimal; }
.page-content a { text-decoration: underline; }
.search-hit { display: flex; gap: 1rem; align-items: center; padding: .75rem; border: 1px solid #eee; border-radius: .75rem; }
.search-hit img { width: 5rem; height: 5rem; object-fit: contain; border-radius: .5rem; background: #fafafa; }
.search-hit span { display: flex; flex-direction: column; } .search-hit small { color: #6b7280; } .search-hit em { font-style: normal; font-weight: 700; }
.contact-form .form-input, .contact-form textarea { width: 100%; border: 1px solid #e5e7eb; border-radius: .5rem; padding: .75rem 1rem; }
.contact-form label { display: block; font-weight: 700; margin: 1rem 0 .35rem; }

/* distributor block (replaces store branches) */
.s-block--distributor { text-align: center; padding: 3rem 0; }
.s-block--distributor .distributor-card { max-width: 46rem; margin: 0 auto; border: 1px solid #eee; border-radius: 1rem; padding: 2rem; }

body{overflow-x:hidden}
.pct{font-family:Arial,sans-serif}

/* ---- search modal ---- */
.search-modal { position: fixed; inset: 0; z-index: 120; }
.search-modal__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.55); backdrop-filter: blur(2px); }
.search-modal__panel { position: relative; max-width: 40rem; margin: 8vh auto 0; background: #fff; border-radius: 1rem; box-shadow: 0 24px 60px rgba(0,0,0,.25); overflow: hidden; width: calc(100% - 2rem); }
.search-modal__bar { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-bottom: 1px solid #eee; }
.search-modal__bar i { color: #6b7280; font-size: 1.1rem; }
.search-modal__bar input { flex: 1; border: 0; outline: none; font-size: 1rem; background: transparent; min-width: 0; }
.search-modal__bar input::-webkit-search-cancel-button, .search-modal__bar input::-webkit-search-decoration { -webkit-appearance: none; }
.search-modal__close { padding: .4rem; cursor: pointer; color: #6b7280; background: none; border: 0; font-size: 1rem; }
.search-modal__results { max-height: min(60vh, 30rem); overflow-y: auto; padding: .75rem; display: grid; gap: .5rem; }
.search-modal__results:empty { padding: 0; }
body.search-open { overflow: hidden; }

/* ---- product page: stock / share / qty / sticky buy bar ---- */
.product-single__stock-info { display: inline-flex; align-items: center; gap: .4rem; color: #16a34a; font-weight: 700; font-size: .85rem; margin: .35rem 0 .5rem; }
.product-single__stock-info i { font-size: 1rem; }
.product-single__share-row { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 .25rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff; color: #374151; font-size: 1rem; cursor: pointer; transition: background .15s, color .15s; }
.share-btn:hover { background: #111; color: #fff; }
.share-btn--copied { background: #16a34a !important; color: #fff !important; border-color: #16a34a; }
.share-label { font-size: .85rem; color: var(--store-text-secondary); font-weight: 700; margin-inline-end: .25rem; }
.qty-row { display: flex; align-items: center; gap: .9rem; margin-top: 1.1rem; }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid #e5e7eb; border-radius: .5rem; overflow: hidden; background: #fff; }
.qty-stepper button { width: 2.6rem; min-height: 2.75rem; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: #111; }
.qty-stepper button:hover { background: #f3f4f6; }
.qty-stepper input { width: 3rem; border: 0; text-align: center; font-weight: 700; font-size: 1rem; -moz-appearance: textfield; appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-row .qty-label { font-size: .85rem; font-weight: 700; color: var(--store-text-primary); }
.sticky-buy-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 85; background: #fff; border-top: 1px solid #eee; box-shadow: 0 -6px 18px rgba(0,0,0,.08); display: flex; align-items: center; gap: .7rem; padding: .55rem .9rem calc(.55rem + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s; }
.sticky-buy-bar.is-visible { transform: none; }
.sticky-buy-bar img { width: 2.75rem; height: 2.75rem; border-radius: .5rem; object-fit: cover; background: #fafafa; flex-shrink: 0; }
.sticky-buy-bar__info { min-width: 0; flex: 1; }
.sticky-buy-bar__info b { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-bar__info span { font-size: .8rem; color: #b91c1c; font-weight: 700; }
.sticky-buy-bar__btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--wa-btn-bg); color: #fff !important; border-radius: .5rem; padding: .65rem .95rem; font-weight: 700; font-size: .85rem; white-space: nowrap; }
@media (min-width: 768px) { .sticky-buy-bar { display: none; } }
body.buy-bar-visible .wa-fab { opacity: 0; pointer-events: none; }

/* ---- lightbox ---- */
.lv-lightbox { position: fixed; inset: 0; z-index: 200; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.lv-lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; transition: transform .2s; cursor: zoom-in; }
.lv-lightbox img.is-zoomed { cursor: zoom-out; }
.lv-lightbox__close { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 1.2rem; cursor: pointer; z-index: 2; }
.lv-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 1.2rem; cursor: pointer; z-index: 2; }
.lv-lightbox__nav:disabled { opacity: .3; cursor: default; }
.lv-lightbox__prev { inset-inline-start: 1rem; } .lv-lightbox__next { inset-inline-end: 1rem; }
body.lv-lightbox-open { overflow: hidden; }

/* ---- recently viewed ---- */
.recently-viewed { padding: 1.5rem 0 2.5rem; }
.recently-viewed__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 11rem); gap: .9rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.recently-viewed__item { border: 1px solid #eee; border-radius: .75rem; padding: .6rem; display: flex; flex-direction: column; gap: .4rem; background: #fff; }
.recently-viewed__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; background: #fafafa; }
.recently-viewed__item b { font-size: .8rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recently-viewed__item span { font-size: .8rem; font-weight: 700; color: var(--store-text-secondary); }
