/* Product gallery + zoom */
.product-gallery {
  position: relative;
}
.product-zoom-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc, #eef4f9);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.product-zoom-wrap.is-zooming {
  cursor: none;
}
.product-zoom-wrap img#mainProductImg {
  max-height: 420px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: opacity .2s ease;
}
.zoom-lens {
  display: none;
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(29, 121, 180, 0.85);
  border-radius: 8px;
  background: rgba(29, 121, 180, 0.12);
  pointer-events: none;
  z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.zoom-result {
  display: none;
  position: absolute;
  top: 0;
  left: calc(100% + 16px);
  width: min(420px, 46vw);
  height: 100%;
  min-height: 340px;
  border-radius: 16px;
  border: 1px solid #E2EAF2;
  background-repeat: no-repeat;
  background-color: #fff;
  background-position: center;
  box-shadow: 0 12px 40px rgba(15, 76, 117, 0.12);
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
}
.zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(26, 35, 50, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
  z-index: 3;
  pointer-events: none;
  letter-spacing: 0.02em;
}
.thumb-img {
  border: 2px solid #e0e4f0 !important;
  transition: border-color .15s ease, transform .15s ease;
}
.thumb-img:hover {
  transform: translateY(-2px);
}
.thumb-img.active {
  border-color: var(--primary, #1D79B4) !important;
}

/* Mobile lightbox zoom */
.zoom-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(10, 18, 28, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  touch-action: none;
}
.zoom-lightbox.open {
  display: flex;
}
.zoom-lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 900px;
  overflow: hidden;
  border-radius: 12px;
  cursor: grab;
}
.zoom-lightbox-inner.dragging {
  cursor: grabbing;
}
.zoom-lightbox-inner img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .05s linear;
}
.zoom-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1A2332;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.zoom-lightbox-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 0.8rem;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .zoom-result,
  .zoom-lens {
    display: none !important;
  }
  .product-zoom-wrap {
    cursor: zoom-in;
  }
  .product-zoom-wrap.is-zooming {
    cursor: zoom-in;
  }
  .zoom-hint::after {
    content: " · Tap to enlarge";
  }
}

.toast-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #1A2332;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  display: none;
}

/* ===== Modern site navbar ===== */
.site-navbar {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,234,242,.9);
  padding: .65rem 0;
  z-index: 1100 !important;
  box-shadow: 0 4px 24px rgba(15,76,117,.06);
}
.site-navbar .navbar-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.site-navbar .nav-link {
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  color: #0F1B2D !important;
  padding: .45rem .85rem !important;
  border-radius: 50px;
  transition: .2s ease;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #1D79B4 !important;
  background: #E8F4FB;
}
.nav-search {
  position: relative;
  min-width: 160px;
}
.nav-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: .8rem;
}
.nav-search input {
  width: 100%;
  border: 1px solid #E2EAF2;
  border-radius: 50px;
  padding: .45rem .9rem .45rem 2rem;
  font-size: .85rem;
  background: #F8FBFE;
  outline: none;
}
.nav-search input:focus {
  border-color: #1D79B4;
  box-shadow: 0 0 0 3px rgba(29,121,180,.12);
}
.nav-select {
  border-radius: 50px !important;
  border-color: #E2EAF2 !important;
  font-size: .75rem !important;
  font-weight: 600;
  min-width: 72px;
  background: #F8FBFE;
}
.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0F1B2D;
  background: #F0F5FA;
  text-decoration: none;
  transition: .15s ease;
}
.nav-icon-btn:hover {
  background: #E8F4FB;
  color: #1D79B4;
}
.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50px;
  background: #1D79B4;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-navbar .btn-signup {
  border-radius: 50px;
  padding: .5rem 1.25rem;
  font-weight: 700;
  font-size: .85rem;
  background: linear-gradient(135deg, #1D79B4, #2E9BD6);
  color: #fff !important;
  border: none;
  text-align: center;
}
.site-navbar .btn-signup:hover { opacity: .95; color: #fff !important; }
.site-navbar .navbar-toggler {
  padding: .35rem;
  border-radius: 10px;
  background: #E8F4FB;
}
.site-navbar .navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    margin-top: .75rem;
    padding: 1rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E2EAF2;
    box-shadow: 0 12px 40px rgba(15,76,117,.1);
  }
  .site-navbar .navbar-nav {
    margin-bottom: .75rem !important;
  }
  .site-navbar .nav-link {
    padding: .7rem 1rem !important;
  }
  .nav-search { min-width: 100%; }
  .w-lg-auto { width: 100% !important; }
}

/* Pagination polish */
.pagination .page-link {
  border-radius: 10px !important;
  margin: 0 3px;
  border-color: #E2EAF2;
  color: #1D79B4;
  font-weight: 600;
}
.pagination .page-item.active .page-link {
  background: #1D79B4;
  border-color: #1D79B4;
}

/* ========== Kids-friendly storefront polish ========== */
:root {
  --kid-blue: #1D79B4;
  --kid-sky: #4DB7E8;
  --kid-orange: #FF8A3D;
  --kid-yellow: #FFD166;
  --kid-green: #2ECC71;
  --kid-pink: #FF6B9D;
  --kid-purple: #9B59B6;
  --kid-cream: #FFF8F0;
  --kid-card: #ffffff;
  --bottom-nav-h: 68px;
}

body {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 209, 102, 0.18), transparent 45%),
    radial-gradient(ellipse at 90% 10%, rgba(77, 183, 232, 0.16), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 107, 157, 0.08), transparent 40%),
    #f5f9fc !important;
}

/* Playful cards */
.product-card,
.category-card,
.card.product-card {
  border-radius: 20px !important;
  border: 2px solid rgba(29, 121, 180, 0.08) !important;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease !important;
  background: var(--kid-card);
}
.product-card:hover,
.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 32px rgba(29, 121, 180, 0.15) !important;
  border-color: rgba(255, 138, 61, 0.35) !important;
}

.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, #FF8A3D, #FFB347) !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(255, 138, 61, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-radius: 999px !important;
  border-width: 2px !important;
  font-weight: 600 !important;
}

/* Section titles */
.section-title,
h2.section-title,
.home-section h2 {
  position: relative;
  display: inline-block;
  font-weight: 800 !important;
}
.section-title::after {
  content: '';
  display: block;
  height: 6px;
  width: 48px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kid-orange), var(--kid-yellow), var(--kid-sky));
}

.badge.sale,
.badge-sale,
.product-badge {
  background: linear-gradient(135deg, #FF6B9D, #FF8A3D) !important;
  border-radius: 999px !important;
  font-weight: 700;
}

/* Navbar polish */
.site-navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(29, 121, 180, 0.06);
  box-shadow: 0 4px 20px rgba(15, 76, 117, 0.06);
}
.site-navbar .nav-link {
  font-weight: 600 !important;
  border-radius: 999px;
  padding: .4rem .85rem !important;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  background: rgba(29, 121, 180, 0.1);
  color: var(--kid-blue) !important;
}

/* ========== Mobile / Tablet bottom navigation ========== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  height: var(--bottom-nav-h);
  padding: 0 6px env(safe-area-inset-bottom, 0);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(1.2);
  border-top: 1px solid rgba(29, 121, 180, 0.1);
  box-shadow: 0 -8px 28px rgba(15, 76, 117, 0.1);
}

.mobile-bottom-nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none !important;
  color: #7a8a9a !important;
  font-size: 0.65rem;
  font-weight: 600;
  position: relative;
  transition: color .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}

.mbn-item i {
  font-size: 1.2rem;
  line-height: 1;
  width: 42px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: background .2s, color .2s, transform .2s;
}

.mbn-item.active {
  color: var(--kid-blue) !important;
}
.mbn-item.active i {
  background: linear-gradient(135deg, rgba(29, 121, 180, 0.15), rgba(77, 183, 232, 0.2));
  color: var(--kid-blue);
  transform: translateY(-2px);
}

.mbn-item:active i {
  transform: scale(0.92);
}

/* Center FAB-style shop button */
.mbn-item.mbn-center {
  margin-top: -18px;
}
.mbn-item.mbn-center i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A3D, #FFB347);
  color: #fff !important;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(255, 138, 61, 0.45);
  border: 3px solid #fff;
}
.mbn-item.mbn-center span {
  margin-top: 2px;
  color: var(--kid-orange);
  font-weight: 700;
}
.mbn-item.mbn-center.active i {
  background: linear-gradient(135deg, #1D79B4, #4DB7E8);
  box-shadow: 0 8px 20px rgba(29, 121, 180, 0.4);
}
.mbn-item.mbn-center.active span {
  color: var(--kid-blue);
}

.mbn-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF6B9D, #FF8A3D);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(255, 107, 157, 0.4);
}

@media (max-width: 991.98px) {
  .mobile-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom, 0px));
  }
  /* Keep footer clear of bottom nav */
  footer.site-footer,
  .site-footer {
    margin-bottom: 8px;
  }
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Soft rounded form controls on mobile */
@media (max-width: 991.98px) {
  .form-control, .form-select {
    border-radius: 12px !important;
  }
  .nav-search input {
    border-radius: 999px !important;
  }
}


/* Shop filters collapse (mobile/tablet) */
.shop-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: linear-gradient(135deg, rgba(29,121,180,.08), rgba(255,138,61,.08));
  color: #0f4c75;
  font-size: 1rem;
  border-radius: 0;
}
.shop-filter-chevron {
  transition: transform .25s ease;
  font-size: .85rem;
  opacity: .7;
}
.shop-filter-toggle[aria-expanded="true"] .shop-filter-chevron {
  transform: rotate(180deg);
}
@media (min-width: 992px) {
  .shop-filter-toggle {
    display: none !important;
  }
  #shopFiltersCollapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
}



/* ========== Mobile chrome: hide top nav + footer, polish filters, tight bottom nav ========== */

.shop-filter-card {
  border: 2px solid rgba(29, 121, 180, 0.1) !important;
  box-shadow: 0 8px 24px rgba(15, 76, 117, 0.08) !important;
}
.shop-filter-toggle {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: linear-gradient(135deg, #1D79B4 0%, #2E9BD6 55%, #4DB7E8 100%) !important;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.06);
}
.shop-filter-toggle strong {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.shop-filter-toggle i.fa-sliders-h {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  font-size: 0.9rem;
}
.shop-filter-hint {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
  background: rgba(255,255,255,.22);
  padding: 3px 10px;
  border-radius: 999px;
}
.shop-filter-chevron {
  transition: transform .25s ease;
  font-size: 0.8rem;
  opacity: 0.9;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
}
.shop-filter-toggle[aria-expanded="true"] .shop-filter-chevron {
  transform: rotate(180deg);
}
.shop-filter-toggle:active {
  filter: brightness(0.97);
}

@media (min-width: 992px) {
  .shop-filter-toggle {
    display: none !important;
  }
  #shopFiltersCollapse.collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
}

@media (max-width: 991.98px) {
  .site-navbar {
    display: none !important;
  }

  footer.site-footer,
  .site-footer,
  footer {
    display: none !important;
  }

  body,
  body.has-mobile-bottom-nav {
    padding-bottom: calc(var(--bottom-nav-h, 68px) + env(safe-area-inset-bottom, 0px)) !important;
    margin-bottom: 0 !important;
  }

  .mobile-bottom-nav {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    height: calc(var(--bottom-nav-h, 68px) + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid rgba(29, 121, 180, 0.12) !important;
    box-shadow: 0 -4px 20px rgba(15, 76, 117, 0.12) !important;
    background: #ffffff !important;
    z-index: 1100 !important;
  }

  .mobile-bottom-nav__inner {
    height: var(--bottom-nav-h, 68px);
  }

  main,
  section:last-of-type {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  body.has-mobile-bottom-nav {
    padding-bottom: 0 !important;
  }
}



/* Hide breadcrumbs on mobile/tablet (app-like) */
@media (max-width: 991.98px) {
  .breadcrumb,
  nav[aria-label="breadcrumb"],
  .page-hero .breadcrumb {
    display: none !important;
  }
  .page-hero {
    padding-top: 1.25rem !important;
    padding-bottom: 1rem !important;
  }
  .page-hero h1 {
    margin-bottom: 0 !important;
    font-size: 1.45rem !important;
  }
}

/* Horizontal category scroll */
.category-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}
.category-scroll-item {
  flex: 0 0 auto;
  width: 132px;
  scroll-snap-align: start;
  text-decoration: none !important;
  text-align: center;
  color: inherit;
  transition: transform .2s ease;
}
.category-scroll-item:active {
  transform: scale(0.96);
}
.category-scroll-thumb {
  width: 132px;
  height: 132px;
  border-radius: 24px;
  background: linear-gradient(160deg, #fff 0%, #eef7fc 100%);
  border: 2px solid rgba(29, 121, 180, 0.1);
  box-shadow: 0 8px 20px rgba(15, 76, 117, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.category-scroll-item:hover .category-scroll-thumb {
  border-color: rgba(255, 138, 61, 0.45);
  box-shadow: 0 12px 28px rgba(29, 121, 180, 0.14);
  transform: translateY(-4px);
}
.category-scroll-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-scroll-thumb i {
  font-size: 2.2rem;
  color: #1D79B4;
}
.category-scroll-name {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: #0f172a;
  line-height: 1.25;
  padding: 0 4px;
}
@media (min-width: 992px) {
  .category-scroll-item {
    width: 160px;
  }
  .category-scroll-thumb {
    width: 160px;
    height: 160px;
    border-radius: 28px;
  }
}

/* Empty states — wishlist / cart */
.empty-state-card {
  max-width: 420px;
  margin: 1.5rem auto;
  text-align: center;
  background: #fff;
  border-radius: 28px;
  padding: 2.5rem 1.75rem;
  box-shadow: 0 12px 40px rgba(15, 76, 117, 0.1);
  border: 2px solid rgba(29, 121, 180, 0.08);
}
.empty-state-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}
.empty-state-icon.wish {
  background: linear-gradient(135deg, #FF6B9D, #FF8A3D);
  box-shadow: 0 10px 24px rgba(255, 107, 157, 0.35);
}
.empty-state-icon.cart {
  background: linear-gradient(135deg, #1D79B4, #4DB7E8);
  box-shadow: 0 10px 24px rgba(29, 121, 180, 0.35);
}
.empty-state-card h3 {
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: #0f172a;
}
.empty-state-card p {
  color: #64748b;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.btn-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #FF8A3D, #FFB347);
  box-shadow: 0 8px 22px rgba(255, 138, 61, 0.4);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-empty-cta:hover {
  color: #fff !important;
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 138, 61, 0.45);
}
.btn-empty-cta:active {
  transform: scale(0.98);
}


/* Product card compact + quick view */
.product-card .product-info .d-flex {
  margin-top: 0.35rem !important;
  gap: 0.35rem !important;
}
.product-card .btn-sm {
  padding: 0.28rem 0.55rem !important;
  font-size: 0.78rem !important;
}
.product-card .product-actions {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  opacity: 1;
}
.product-card .product-actions .btn-qv {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #1D79B4;
  box-shadow: 0 4px 12px rgba(15,76,117,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.product-card .product-actions .btn-qv:hover {
  background: #1D79B4;
  color: #fff;
}

/* Quick view modal */
.qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.qv-overlay.open { display: flex; }
.qv-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  max-height: min(92vh, 720px);
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  position: relative;
}
.qv-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.1rem;
  z-index: 2;
  cursor: pointer;
}
.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 767.98px) {
  .qv-grid { grid-template-columns: 1fr; }
}
.qv-media {
  background: #f3f7fb;
  aspect-ratio: 1;
  overflow: hidden;
}
.qv-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.qv-body {
  padding: 1.5rem 1.35rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.qv-body h3 {
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.qv-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1D79B4;
  margin-bottom: 0.75rem;
}
.qv-price .old {
  font-size: 0.95rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 8px;
}
.qv-desc {
  color: #64748b;
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qv-actions .btn {
  border-radius: 999px;
  font-weight: 700;
}







/* Plane base position (previous layout) + scroll transform only */
.hero-parallax,
.hero-parallax img {
  animation: none !important;
}
.hero-parallax {
  right: 5%;
  left: auto;
  bottom: 8%;
}
@media (max-width: 991.98px) {
  .hero-parallax {
    right: 2%;
    left: auto;
    bottom: 5%;
    width: min(340px, 55vw);
  }
}
@media (max-width: 767.98px) {
  .hero-parallax {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: 70% !important;
    max-width: 280px !important;
    margin: 1.5rem auto 0 !important;
  }
}


/* Lazy load + placeholder */
.product-img-wrap {
  background: #f7f3eb url('../img/placeholder.png') center / cover no-repeat;
}
.product-lazy {
  opacity: 0.35;
  transition: opacity 0.35s ease;
  object-fit: cover;
}
.product-lazy.is-loaded {
  opacity: 1;
}
.product-lazy.is-fallback {
  opacity: 1;
  object-fit: cover;
}
