/* PIKY - Custom Styles */
:root {
  --piky-red: #E63946;
  --piky-dark: #1D1D2C;
  --piky-accent: #FF6B6B;
  --piky-orange: #FF9F1C;
  --piky-light: #F8F9FA;
  --piky-border: #E5E7EB;
  --piky-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --piky-shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════════════════════
   GLOBAL OVERFLOW CONTAINMENT
   Layered defence: html → body → #main-content → sections
   Each layer clips independently so iOS Safari can't slip through.
══════════════════════════════════════════════════════ */
html {
  overflow-x: clip;       /* clip is stronger than hidden on iOS — no scroll axis created */
  max-width: 100vw;
}
body {
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}
/* Every direct child of body that wraps page content */
#announcement-bar,
#navbar,
#main-content,
footer {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: var(--piky-dark);
  line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--piky-red); border-radius: 4px; }

/* ===== HEADER ===== */
#navbar {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--piky-border);
  transition: var(--transition);
}
#navbar.scrolled { box-shadow: var(--piky-shadow); }

.nav-logo {
  font-size: 1.8rem; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--piky-red), var(--piky-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
}
.nav-logo span { -webkit-text-fill-color: var(--piky-dark); }

.nav-link {
  color: var(--piky-dark); text-decoration: none; font-weight: 500;
  padding: 6px 14px; border-radius: 8px; transition: var(--transition);
}
.nav-link:hover { background: #FFF0F0; color: var(--piky-red); }

/* ===== CART BADGE ===== */
.cart-btn {
  position: relative; cursor: pointer;
  background: var(--piky-red); color: white;
  border: none; border-radius: 12px;
  padding: 10px 18px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.cart-btn:hover { background: #c62828; transform: translateY(-1px); }
#cart-count {
  background: var(--piky-orange); color: white;
  border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ===== HERO SECTION ===== */
#hero {
  background: linear-gradient(135deg, var(--piky-dark) 0%, #2d1b4e 50%, #1a1a2e 100%);
  color: white; overflow: hidden; position: relative;
  min-height: 85vh; display: flex; align-items: center;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 80px 20px;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(230,57,70,0.2); border: 1px solid rgba(230,57,70,0.4);
  color: var(--piky-accent); padding: 6px 16px; border-radius: 100px;
  font-size: 14px; font-weight: 600; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--piky-red), var(--piky-orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: 1.2rem; opacity: 0.8; margin-bottom: 36px;
  max-width: 500px;
}
.hero-promise {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px;
}
.hero-promise-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; opacity: 0.9;
}
.hero-promise-item .icon {
  width: 32px; height: 32px; background: linear-gradient(135deg, var(--piky-red), var(--piky-accent));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--piky-red), var(--piky-accent));
  color: white; padding: 14px 32px; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: none; cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,57,70,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.1); color: white;
  padding: 14px 32px; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3); cursor: pointer;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap;
}
.hero-stat .num {
  font-size: 1.8rem; font-weight: 900;
  background: linear-gradient(135deg, var(--piky-red), var(--piky-orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat .label { font-size: 0.85rem; opacity: 0.6; }
.hero-img-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  position: relative;
}
.hero-img-grid img {
  width: 100%; border-radius: 20px; object-fit: cover;
  box-shadow: var(--piky-shadow-lg);
}
.hero-img-grid img:first-child { height: 260px; }
.hero-img-grid img:last-child { height: 200px; margin-top: 40px; }
.hero-floating-badge {
  position: absolute; top: -10px; right: -10px;
  background: linear-gradient(135deg, var(--piky-orange), var(--piky-red));
  color: white; padding: 12px 18px; border-radius: 16px;
  font-weight: 700; font-size: 0.85rem; text-align: center;
  box-shadow: 0 8px 24px rgba(255,159,28,0.4);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
/* Product-detail gets tighter vertical padding — the image + info fills the screen */
.section-pd { padding: 32px 0 60px; }
.section-alt { background: var(--piky-light); }
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;    /* padding always inward, never outward */
  /* Belt-and-suspenders: never wider than viewport */
  max-width: min(1200px, 100vw);
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
  color: var(--piky-red); text-transform: uppercase; margin-bottom: 8px;
}
.section-title { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.section-sub { font-size: 1rem; color: #666; max-width: 500px; margin: 0 auto; }

/* ===== ANNOUNCEMENT BAR ===== */
#announcement-bar {
  background: linear-gradient(90deg, var(--piky-red), var(--piky-accent), var(--piky-orange));
  color: white; text-align: center; padding: 10px;
  font-size: 0.9rem; font-weight: 600;
  /* ── Prevent this bar from blowing the page wider than 100vw ── */
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
  white-space: nowrap;
}
/* On mobile: CSS marquee — text is IMMEDIATELY visible and scrolls left in a
   seamless loop. JS duplicates the text into a .bar-track wrapper; CSS slides
   the track by exactly -50% so the second copy snaps into the first's position.
   No JS = plain centred text (bar-inner is still visible). */
@media (max-width: 768px) {
  #announcement-bar {
    padding: 9px 0;
    white-space: nowrap;
    text-align: left;       /* track is left-aligned; static fallback stays centred via bar-inner */
  }
  /* Static fallback: if JS hasn't run yet, bar-inner shows centred */
  #announcement-bar .bar-inner {
    display: inline-block;
    white-space: nowrap;
  }
  /* JS-injected sliding track */
  #announcement-bar .bar-track {
    display: inline-flex !important;
    animation: marquee-slide 20s linear infinite;
    will-change: transform;
  }
  #announcement-bar .bar-inner,
  #announcement-bar .bar-copy {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
/* Keyframe: -50% of the doubled width = exactly one copy width */
@keyframes marquee-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: white; border-radius: 16px;
  box-shadow: var(--piky-shadow);
  overflow: hidden; transition: var(--transition);
  cursor: pointer; position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--piky-shadow-lg);
}
.product-card-img {
  position: relative; overflow: hidden;
  height: 250px;
  background: #f8f8f8;          /* neutral background for product shots */
  display: flex; align-items: center; justify-content: center;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;          /* ✅ show full product, no cropping */
  transition: transform 0.5s ease;
  padding: 8px;                 /* small inset so image never touches edges */
  box-sizing: border-box;
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--piky-red), var(--piky-accent));
  color: white; padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 700; z-index: 1;
}
.product-badge.orange { background: linear-gradient(135deg, var(--piky-orange), #f57c00); }
.product-discount-badge {
  position: absolute; top: 12px; right: 12px;
  background: #22c55e; color: white; padding: 4px 10px;
  border-radius: 100px; font-size: 12px; font-weight: 700; z-index: 1;
  direction: ltr; unicode-bidi: isolate;
}
.product-wishlist {
  position: absolute; bottom: 12px; right: 12px;
  background: white; border: none; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition); z-index: 1; font-size: 18px;
}
.product-wishlist:hover { transform: scale(1.2); }
.product-card-body { padding: 14px 16px 16px; }
.product-category { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--piky-red); text-transform: uppercase; margin-bottom: 6px; }
.product-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35;
  /* clamp to 2 lines to keep all cards same height */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.stars { color: #F59E0B; font-size: 14px; }
.rating-count { font-size: 12px; color: #999; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--piky-red); }
.product-original-price { font-size: 0.9rem; color: #aaa; text-decoration: line-through; }
.product-card-btn {
  display: block; width: 100%; margin-top: 12px;
  background: var(--piky-dark); color: white;
  padding: 11px; border-radius: 10px; border: none;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: var(--transition); text-align: center;
  /* big enough tap target on mobile */
  min-height: 44px;
}
.product-card-btn:hover { background: var(--piky-red); }
.product-card-btn:active { transform: scale(0.97); }

/* ===== CATEGORY FILTERS ===== */
.category-tabs {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}
.category-tab {
  padding: 10px 20px; border-radius: 100px; border: 2px solid var(--piky-border);
  background: white; font-weight: 600; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 6px; font-size: 14px;
}
.category-tab:hover, .category-tab.active {
  border-color: var(--piky-red); background: var(--piky-red); color: white;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
  /* Prevent either column from pushing the grid wider than its container */
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
/* Both columns must respect their grid cell — never grow past it */
.product-gallery,
.product-detail-info {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.product-gallery { position: sticky; top: 100px; }

/* ══════════════════════════════════════════════════════
   PRODUCT GALLERY — main image + thumbnails
══════════════════════════════════════════════════════ */

/* Main image wrapper — always shows full image, no cropping */
.main-image-wrap {
  width: 100%;
  max-width: 100%;        /* never wider than the gallery column */
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
  border-radius: 20px;
  margin-bottom: 14px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  box-sizing: border-box;
}
.main-image {
  width: 100%; height: 100%;
  object-fit: contain;          /* ✅ full image always visible — never cropped */
  display: block;
  transition: transform 0.3s ease;
}
.main-image-wrap:hover .main-image { transform: scale(1.05); }

/* Zoom hint badge */
.main-img-hint {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 20px; padding: 4px 10px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  display: flex; align-items: center; gap: 5px;
  transition: opacity 0.2s;
}
.main-image-wrap:hover .main-img-hint { opacity: 0; }

/* Counter badge */
.main-img-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 20px; padding: 4px 10px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Thumbnail strip */
.thumbnail-row {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.thumbnail-row::-webkit-scrollbar { display: none; }
.thumbnail {
  width: 70px; height: 70px; border-radius: 10px;
  object-fit: contain; background: #f5f5f5;
  cursor: pointer; border: 2.5px solid transparent;
  transition: all 0.2s; opacity: 0.6;
  flex-shrink: 0;
}
.thumbnail.active, .thumbnail:hover {
  border-color: var(--piky-red); opacity: 1;
  box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}
/* Video thumbnail in strip */
.thumb-video-btn {
  width: 70px; height: 70px; border-radius: 10px;
  background: #111; border: 2.5px solid transparent;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 4px;
  flex-shrink: 0; opacity: 0.65; transition: all 0.2s;
  position: relative; overflow: hidden;
}
.thumb-video-btn:hover, .thumb-video-btn.active {
  border-color: var(--piky-red); opacity: 1;
}
.thumb-video-btn .play-icon {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #e00; padding-left: 2px;
}
.thumb-video-btn span { color: rgba(255,255,255,0.7); font-size: 9px; font-weight: 700; }
.thumb-video-btn img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5; border-radius: 8px;
}

@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }
  .main-image-wrap { aspect-ratio: 1 / 1; }
}

/* ══════════════════════════════════════════════════════
   LIGHTBOX — full-screen immersive gallery viewer
══════════════════════════════════════════════════════ */
#piky-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(8,8,12,0.97);
  flex-direction: column;
  align-items: stretch;
  touch-action: pan-y;
  user-select: none;
  --lb-accent: #e63946;
}
#piky-lightbox.open { display: flex; }

/* Top bar */
#lb-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; flex-shrink: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
}
#lb-counter {
  color: rgba(255,255,255,0.65); font-size: 13px;
  font-weight: 700; letter-spacing: 1px;
}
#lb-title-text {
  color: rgba(255,255,255,0.75); font-size: 13px;
  font-weight: 600; max-width: 50%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; text-align: center;
}
#lb-close {
  background: rgba(255,255,255,0.1); color: #fff;
  border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 20px;
  cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
  backdrop-filter: blur(8px);
}
#lb-close:hover { background: rgba(255,255,255,0.22); transform: scale(1.1); }

/* Slide track */
#lb-track-wrap {
  flex: 1; overflow: hidden; position: relative;
  display: flex; align-items: center;
}
#lb-track {
  display: flex; height: 100%; width: 100%;
  transition: transform 0.38s cubic-bezier(0.35,0,0.2,1);
  will-change: transform;
}
.lb-slide {
  min-width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 70px 72px 20px;
  box-sizing: border-box; position: relative;
}
.lb-slide-img-wrap {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  max-width: 100%; max-height: 100%;
}
.lb-slide img.lb-main-img {
  max-width: 100%; max-height: calc(100vh - 200px);
  object-fit: contain;
  border-radius: 10px;
  pointer-events: none; user-select: none;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7);
  transition: transform 0.3s ease, opacity 0.2s;
  display: block;
}
/* Zoom state */
.lb-slide.zoomed .lb-main-img {
  transform: scale(1.9);
  cursor: zoom-out;
  pointer-events: auto;
}
.lb-slide:not(.zoomed) .lb-slide-img-wrap { cursor: zoom-in; }

/* Video slide */
.lb-slide-video {
  min-width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 70px 40px 20px;
  box-sizing: border-box;
}
.lb-yt-card {
  width: min(820px, 92vw);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  cursor: pointer; text-decoration: none; display: block;
  position: relative;
}
.lb-yt-thumb-wrap {
  position: relative; width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #111; overflow: hidden;
}
.lb-yt-thumb-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.4s ease;
}
.lb-yt-card:hover .lb-yt-thumb-wrap img { transform: scale(1.04); }
/* Red gradient overlay */
.lb-yt-thumb-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
}
/* Big play button */
.lb-yt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 2;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(230,30,30,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(230,30,30,0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lb-yt-card:hover .lb-yt-play {
  transform: translate(-50%,-50%) scale(1.12);
  box-shadow: 0 12px 48px rgba(230,30,30,0.7);
}
.lb-yt-play svg { width: 34px; height: 34px; margin-left: 5px; }
/* Bottom info bar */
.lb-yt-bar {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lb-yt-label {
  display: flex; align-items: center; gap: 10px;
}
.lb-yt-label svg { width: 32px; height: 22px; flex-shrink: 0; }
.lb-yt-label div { color: #fff; }
.lb-yt-label div strong { display: block; font-size: 14px; font-weight: 700; }
.lb-yt-label div small { font-size: 11px; color: rgba(255,255,255,0.5); }
.lb-yt-open-btn {
  background: #e00; color: #fff; border: none;
  border-radius: 24px; padding: 9px 20px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap; transition: background 0.2s;
  text-decoration: none;
}
.lb-yt-open-btn:hover { background: #c00; }

/* Arrows */
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 52px; height: 52px; font-size: 24px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 15;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.lb-arrow:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.08);
}
#lb-prev { left: 14px; }
#lb-next { right: 14px; }
.lb-arrow.hidden { opacity: 0; pointer-events: none; }

/* Bottom bar: dots + thumbs */
#lb-bottom {
  flex-shrink: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 12px 16px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
#lb-dots {
  display: flex; gap: 7px; justify-content: center;
}
.lb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.28); cursor: pointer;
  transition: all 0.25s; border: none; padding: 0;
}
.lb-dot.active {
  background: var(--lb-accent,#e63946);
  width: 22px; border-radius: 4px;
}
/* Thumbnail strip */
#lb-thumbs {
  display: flex; gap: 7px;
  overflow-x: auto; max-width: 100%;
  scrollbar-width: none; padding: 2px 0;
}
#lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0;
  object-fit: cover; background: #222;
  cursor: pointer; border: 2px solid transparent;
  opacity: 0.45; transition: all 0.2s;
}
.lb-thumb.active { border-color: var(--lb-accent,#e63946); opacity: 1; transform: scale(1.08); }
.lb-thumb:hover:not(.active) { opacity: 0.75; }
.lb-thumb-video {
  width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0;
  background: #111; border: 2px solid transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0.45; transition: all 0.2s; position: relative; overflow: hidden;
}
.lb-thumb-video.active { border-color: var(--lb-accent,#e63946); opacity: 1; transform: scale(1.08); }
.lb-thumb-video:hover:not(.active) { opacity: 0.75; }
.lb-thumb-video img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55;
}
.lb-thumb-video .tv-play {
  position: relative; z-index: 1;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #e00; padding-left: 2px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .lb-slide { padding: 64px 10px 10px; }
  .lb-slide-video { padding: 64px 10px 10px; }
  .lb-arrow { width: 40px; height: 40px; font-size: 20px; }
  #lb-prev { left: 8px; } #lb-next { right: 8px; }
  .lb-slide img.lb-main-img { max-height: calc(100vh - 180px); }
  #lb-thumbs { display: none; }
}
.product-detail-info {
  padding-top: 8px;
  /* Contain all children — nothing escapes this column */
  min-width: 0; overflow: hidden;
}
.product-detail-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFF0F0; color: var(--piky-red);
  padding: 4px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.product-detail-name {
  font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 6px;
  word-break: break-word; overflow-wrap: break-word;
  max-width: 100%; overflow: hidden;
}
.product-detail-sku {
  font-size: 12px; color: #aaa; font-weight: 500; letter-spacing: .3px;
  margin-bottom: 14px;
}
/* ── Flash sale badge ── */
.flash-badge {
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content; max-width: calc(100% - 16px);
  background: linear-gradient(135deg, #E63946 0%, #c0282f 100%);
  color: #fff; border-radius: 10px;
  font-size: 13px; font-weight: 700; padding: 6px 12px;
  white-space: nowrap; box-sizing: border-box;
}
.flash-badge-card {
  position: absolute; bottom: 8px; left: 8px;
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #E63946 0%, #c0282f 100%);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  width: fit-content; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(230,57,70,.4);
  z-index: 1;
}
.flash-badge-detail {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  padding: 8px 16px; border-radius: 12px; margin-bottom: 12px;
  font-size: 14px;
}
.flash-countdown {
  background: rgba(255,255,255,.22); border-radius: 6px;
  padding: 2px 8px; font-variant-numeric: tabular-nums;
  letter-spacing: .5px; font-size: 13px;
}
.product-detail-rating {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  flex-wrap: wrap;          /* stock badge wraps under stars on narrow screens */
  max-width: 100%;
}
.product-detail-price { margin-bottom: 24px; }
.product-detail-price .price { font-size: 2.2rem; font-weight: 900; color: var(--piky-red); }
.product-detail-price .original { font-size: 1.1rem; color: #aaa; text-decoration: line-through; margin-left: 8px; }
.product-detail-price .save { background: #dcfce7; color: #16a34a; padding: 4px 10px; border-radius: 100px; font-size: 13px; font-weight: 700; margin-left: 8px; }
.variants-section { margin-bottom: 24px; }
.variant-label { font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.variant-options { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-option {
  padding: 8px 16px; border: 2px solid var(--piky-border);
  border-radius: 10px; cursor: pointer; transition: var(--transition);
  font-weight: 600; font-size: 14px;
}
.variant-option:hover, .variant-option.selected {
  border-color: var(--piky-red); background: #FFF0F0; color: var(--piky-red);
}
.qty-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.qty-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--piky-border);
  background: white; font-size: 18px; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--piky-red); color: var(--piky-red); }
#qty-display { font-size: 1.1rem; font-weight: 700; min-width: 30px; text-align: center; }
.cta-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.btn-add-cart {
  background: var(--piky-dark); color: white; padding: 16px;
  border: none; border-radius: 14px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-add-cart:hover { background: var(--piky-red); transform: translateY(-1px); }
.btn-buy-now {
  background: linear-gradient(135deg, var(--piky-red), var(--piky-accent));
  color: white; padding: 16px; border: none; border-radius: 14px;
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: var(--transition);
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-buy-now:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(230,57,70,0.4); }
.btn-whatsapp {
  background: #25D366; color: white; padding: 14px;
  border: none; border-radius: 14px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-1px); }
.trust-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #555;
}
.trust-badge .icon { font-size: 18px; }

/* ===== BENEFITS / ACCORDIONS ===== */
.info-accordion { border: 1px solid var(--piky-border); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.info-accordion-header {
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 700; background: white; transition: var(--transition);
}
.info-accordion-header:hover { background: var(--piky-light); }
.info-accordion-body { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.info-accordion-body.open { max-height: 2000px; padding: 16px 20px; }  /* tall enough for any content */
/* ── Word-wrap: stop long text / URLs from overflowing on mobile ── */
.info-accordion-body p,
.info-accordion-body li,
.info-accordion-body span {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.info-accordion-body ul { list-style: none; padding: 0; margin: 0; }
.info-accordion-body li {
  padding: 5px 0; display: flex; align-items: flex-start; /* ✅ top-align checkmark */
  gap: 10px; color: #444; line-height: 1.6;
}
.info-accordion-body li::before {
  content: '✓'; color: #22c55e; font-weight: 800;
  flex-shrink: 0;          /* never squish the checkmark */
  margin-top: 2px;         /* nudge to optical baseline of first text line */
  font-size: 14px;
}

/* ===== CART DRAWER ===== */
#cart-drawer {
  position: fixed; right: -440px; top: 0; height: 100vh;
  width: 420px; background: white; z-index: 9999;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
#cart-drawer.open { right: 0; }
#cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 9998; opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
#cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-header {
  padding: 24px; border-bottom: 1px solid var(--piky-border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 { font-size: 1.3rem; font-weight: 800; }
.cart-close {
  background: var(--piky-light); border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.cart-close:hover { background: #fee2e2; color: var(--piky-red); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--piky-border);
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: #999; margin-bottom: 8px; }
.cart-item-price-row { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-weight: 800; color: var(--piky-red); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty button { background: var(--piky-light); border: none; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 700; }
.cart-item-remove { background: none; border: none; color: #ccc; cursor: pointer; font-size: 18px; transition: var(--transition); }
.cart-item-remove:hover { color: var(--piky-red); }
.cart-footer {
  padding: 24px; border-top: 1px solid var(--piky-border);
  background: var(--piky-light);
}
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.cart-delivery { display: flex; justify-content: space-between; font-size: 14px; color: #666; margin-bottom: 16px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 900; color: var(--piky-red); margin-bottom: 16px; }
.free-delivery-bar { background: #dcfce7; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #16a34a; font-weight: 600; margin-bottom: 16px; }
.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart .icon { font-size: 60px; margin-bottom: 16px; }
.empty-cart h3 { font-weight: 700; margin-bottom: 8px; }
.empty-cart p { color: #999; margin-bottom: 20px; }

/* ===== CHECKOUT PAGE ===== */
.checkout-grid {
  display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start;
}
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.form-card { background: white; border-radius: 20px; padding: 32px; box-shadow: var(--piky-shadow); margin-bottom: 24px; }
.form-card h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--piky-border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--piky-border);
  border-radius: 10px; font-size: 15px; transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--piky-red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.payment-options { display: flex; flex-direction: column; gap: 12px; }
.payment-option {
  border: 2px solid var(--piky-border); border-radius: 12px; padding: 16px;
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 12px;
}
.payment-option.selected { border-color: var(--piky-red); background: #FFF0F0; }
.payment-option input[type=radio] { accent-color: var(--piky-red); }
.order-summary-card { background: white; border-radius: 20px; padding: 28px; box-shadow: var(--piky-shadow); position: sticky; top: 100px; }
.order-summary-card h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 20px; }
.summary-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.summary-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.summary-item-details { flex: 1; }
.summary-item-name { font-weight: 600; font-size: 14px; }
.summary-item-variant { font-size: 12px; color: #999; }
.summary-item-price { font-weight: 700; color: var(--piky-red); font-size: 15px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: #666; }
.summary-total { display: flex; justify-content: space-between; padding: 16px 0; border-top: 2px solid var(--piky-border); font-size: 1.1rem; font-weight: 800; }
.summary-total span:last-child { color: var(--piky-red); }

/* ===== ORDER SUCCESS ===== */
.order-success {
  text-align: center; padding: 80px 24px; max-width: 600px; margin: 0 auto;
}
.order-success .check-icon {
  width: 100px; height: 100px; background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 48px; margin: 0 auto 24px; animation: scaleIn 0.5s ease;
}
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }
.tracking-steps { display: flex; flex-direction: column; gap: 0; margin: 32px auto; max-width: 400px; text-align: left; }
.tracking-step { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 24px; position: relative; }
.tracking-step:not(:last-child)::before {
  content: ''; position: absolute; left: 14px; top: 32px;
  width: 2px; height: calc(100% - 20px); background: var(--piky-border);
}
.tracking-step.done:not(:last-child)::before { background: #22c55e; }
.step-dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: var(--piky-border); color: white; font-weight: 700;
}
.tracking-step.done .step-dot { background: #22c55e; }
.tracking-step.current .step-dot { background: var(--piky-red); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); } 70% { box-shadow: 0 0 0 8px rgba(230,57,70,0); } }
.step-info .step-label { font-weight: 700; font-size: 15px; }
.step-info .step-time { font-size: 12px; color: #999; margin-top: 2px; }

/* ===== SOCIAL PROOF ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.review-card { background: white; border-radius: 20px; padding: 24px; box-shadow: var(--piky-shadow); }
.review-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--piky-red), var(--piky-accent));
  color: white; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.review-author { font-weight: 700; font-size: 14px; }
.review-date { font-size: 12px; color: #999; }
.review-text { font-size: 14px; line-height: 1.6; color: #444; }
.review-verified { font-size: 12px; color: #22c55e; font-weight: 600; margin-top: 8px; display: flex; align-items: center; gap: 4px; }

/* ===== SOCIAL MEDIA SECTION ===== */
.social-card {
  background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
  color: white; border-radius: 24px; padding: 48px;
  text-align: center; margin: 40px 0;
}
.social-icons { display: flex; justify-content: center; gap: 20px; margin: 24px 0; }
.social-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: var(--transition); cursor: pointer;
  text-decoration: none; color: white;
}
.social-icon.instagram { background: linear-gradient(135deg, #E1306C, #833AB4, #F77737); }
.social-icon.facebook { background: #1877F2; }
.social-icon.whatsapp { background: #25D366; }
.social-icon:hover { transform: translateY(-4px) scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* ===== USP / FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature-card { background: white; border-radius: 20px; padding: 28px; text-align: center; box-shadow: var(--piky-shadow); transition: var(--transition); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--piky-shadow-lg); }
.feature-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--piky-red), var(--piky-accent));
  color: white; font-size: 28px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
}
.feature-title { font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: #666; }

/* ===== SEARCH BAR ===== */
.search-bar { display: flex; gap: 12px; max-width: 540px; margin: 0 auto 40px; }
.search-input {
  flex: 1; padding: 14px 20px; border: 2px solid var(--piky-border);
  border-radius: 14px; font-size: 15px; outline: none; transition: var(--transition);
}
.search-input:focus { border-color: var(--piky-red); }
.search-btn {
  background: var(--piky-red); color: white; border: none; padding: 14px 24px;
  border-radius: 14px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.search-btn:hover { background: #c62828; }

/* ===== NEWSLETTER ===== */
.newsletter-card {
  background: linear-gradient(135deg, var(--piky-red), var(--piky-accent));
  color: white; border-radius: 24px; padding: 56px 40px; text-align: center;
}
.newsletter-form { display: flex; gap: 12px; max-width: 440px; margin: 24px auto 0; }
.newsletter-input {
  flex: 1; padding: 14px 20px; border-radius: 12px; border: none; font-size: 15px; outline: none;
}
.newsletter-btn {
  background: var(--piky-dark); color: white; border: none; padding: 14px 24px;
  border-radius: 12px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.newsletter-btn:hover { background: #333; }

/* ===== FOOTER ===== */
footer {
  background: var(--piky-dark); color: white; padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 14px; opacity: 0.6; margin-top: 12px; max-width: 260px; line-height: 1.7; }
.footer-col h3 { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--piky-accent); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-payment { display: flex; gap: 12px; font-size: 22px; }

/* ===== MOBILE MENU ===== */
#mobile-menu {
  display: none; position: fixed; inset: 0; background: white; z-index: 9990;
  flex-direction: column; padding: 24px;
}
#mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 16px; }
.mobile-link { font-size: 1.3rem; font-weight: 700; color: var(--piky-dark); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--piky-border); }

/* ===== TOAST ===== */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--piky-dark); color: white; padding: 14px 28px;
  border-radius: 100px; font-weight: 600; z-index: 99999;
  transition: transform 0.3s ease; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.success { background: #16a34a; }
#toast.error { background: var(--piky-red); }

/* ===== PAGE VIEWS ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* ── Layout ── */
  .hero-img-grid { display: none; }
  .section { padding: 44px 0; }
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: 1.55rem; }
  .section-sub { font-size: 0.9rem; }
  .mobile-hide { display: none !important; }

  /* ── Hero ── */
  #hero { min-height: auto; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-tagline { font-size: 1rem; margin-bottom: 20px; }
  .hero-stats { gap: 16px; margin-top: 28px; }
  .hero-stat .num { font-size: 1.3rem; }
  .hero-stat .label { font-size: 0.75rem; }
  .hero-promise { gap: 8px; margin-bottom: 24px; }
  .hero-promise-item { font-size: 0.9rem; }
  .hero-promise-item .icon { width: 28px; height: 28px; font-size: 14px; }
  .hero-cta-group { gap: 10px; }
  .btn-primary, .btn-secondary { padding: 13px 24px; font-size: 0.95rem; }

  /* ── Products grid — 2 columns ── */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card-img { height: 160px; }
  .product-card-body { padding: 10px 12px 12px; }
  .product-category { font-size: 9px; letter-spacing: 1px; margin-bottom: 4px; }
  .product-name { font-size: 0.82rem; margin-bottom: 6px; }
  .product-rating { margin-bottom: 8px; gap: 4px; }
  .stars { font-size: 12px; }
  .product-price { font-size: 1.1rem; }
  .product-original-price { font-size: 0.78rem; }
  .product-card-btn {
    padding: 9px 6px; font-size: 0.8rem;
    margin-top: 8px; border-radius: 8px;
  }
  .product-wishlist { width: 30px; height: 30px; font-size: 14px; bottom: 8px; right: 8px; }
  .product-badge { font-size: 10px; padding: 3px 8px; }
  .product-discount-badge { font-size: 10px; padding: 3px 8px; }

  /* ── Features grid — 2 col ── */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-card { padding: 20px 14px; }
  .feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
  .feature-title { font-size: 0.9rem; }
  .feature-desc { font-size: 0.8rem; }

  /* ── Misc ── */
  .newsletter-form { flex-direction: column; }
  .search-bar { flex-direction: column; }
  #cart-drawer { width: 100%; right: -100%; }
  .social-card { padding: 28px 16px; }
  .category-tabs { gap: 8px; }
  .category-tab { padding: 8px 14px; font-size: 13px; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  color: #999; margin-bottom: 32px; flex-wrap: wrap;
  width: 100%; max-width: 100%; overflow: hidden;
}
.breadcrumb span { cursor: pointer; word-break: break-word; min-width: 0; }
.breadcrumb span:hover { color: var(--piky-red); }
/* Last breadcrumb item = product name: truncate with ellipsis so it never overflows */
.breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(280px, 55vw);   /* never more than 55% of the screen */
}
.breadcrumb-sep { opacity: 0.4; flex-shrink: 0; }

/* ===== LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%; animation: shimmer 1.5s infinite; border-radius: 8px;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ===== STICKY ADD TO CART ===== */
#sticky-atc {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: white; border-top: 2px solid var(--piky-border);
  padding: 16px 24px; z-index: 998; display: none;
  align-items: center; gap: 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
}
#sticky-atc.show { display: flex; }

/* ===== INFO MODAL ===== */
#info-modal-overlay {
  animation: fadeInOverlay 0.2s ease;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#info-modal {
  animation: slideUpModal 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUpModal {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#info-modal-body h2 { color: var(--piky-dark); }
#info-modal-body a  { color: var(--piky-red); }
@media (max-width: 600px) {
  #info-modal { border-radius: 20px 20px 0 0; max-height: 92vh; }
  #info-modal-overlay { align-items: flex-end !important; padding: 0 !important; }
  #info-modal-body { padding: 28px 24px 40px; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE-FIRST OVERRIDES  (≤ 768px)
   All product / hero / detail / nav improvements for phones
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Hero: single column, compact padding ── */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 48px 20px 40px;
  }

  /* ── Product detail layout ── */
  /*
   * MOBILE CONTAINMENT STRATEGY
   * Every element in the product detail chain is explicitly bounded.
   * Rule: if it's on the product screen, it has max-width:100% + overflow:hidden.
   */
  .section-pd,
  .product-detail-grid,
  .product-gallery,
  .product-detail-info,
  .main-image-wrap,
  .thumbnail-row,
  .product-detail-name,
  .product-detail-price,
  .product-detail-rating,
  .variants-section,
  .variant-options,
  .qty-selector,
  .cta-buttons,
  .trust-badges,
  .info-accordion,
  .info-accordion-body,
  .breadcrumb {
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow: hidden;        /* clip any child that still tries to escape */
  }
  .product-gallery { position: static; overflow: hidden; }
  .product-detail-info { overflow: hidden; }
  .section-pd { padding: 20px 0 48px; }

  /* Main image: square on phones — shows full product, no letterbox awkwardness */
  .main-image-wrap { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; }

  /* Thumbnail strip: scroll horizontally, don't wrap */
  .thumbnail-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; gap: 7px; }
  .thumbnail, .thumb-video-btn { width: 58px; height: 58px; flex-shrink: 0; }

  /* Product info: tighter spacing */
  .product-detail-info { padding-top: 0; }
  .product-detail-name {
    font-size: 1.3rem; margin-bottom: 12px;
    /* Clamp to 3 lines max on mobile — tidy, no runaway height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-detail-price .price { font-size: 1.8rem; }
  .product-detail-price { margin-bottom: 16px; }
  .product-detail-rating { margin-bottom: 14px; gap: 8px; }

  /* Qty + ATC stack full width */
  .qty-selector { margin-bottom: 16px; }
  .btn-add-cart, .btn-buy-now, .btn-whatsapp {
    padding: 14px; font-size: 0.95rem; border-radius: 12px;
    min-height: 48px; /* accessible tap target */
  }

  /* Trust badges: 2-col grid */
  .trust-badges {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .trust-badge { font-size: 12px; }

  /* Accordions: full bleed on small screens */
  .info-accordion { border-radius: 12px; }
  .info-accordion-header { padding: 14px 16px; font-size: 0.9rem; }
  .info-accordion-body.open { padding: 12px 16px; }

  /* Breadcrumb: smaller */
  .breadcrumb { font-size: 12px; margin-bottom: 20px; }

  /* Sticky ATC: always on mobile */
  #sticky-atc { padding: 12px 16px; gap: 10px; }
  #sticky-atc img { width: 40px; height: 40px; border-radius: 8px; }

  /* Cart drawer: full width */
  #cart-drawer { width: 100%; right: -100%; border-radius: 0; }
  .cart-header { padding: 18px; }
  .cart-item { gap: 10px; }
  .cart-item img { width: 64px; height: 64px; }

  /* Checkout: single column */
  .checkout-grid { gap: 20px; }
  .form-card { padding: 20px; border-radius: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* ── Extra-small phones (≤ 480px) ── */
@media (max-width: 480px) {

  /* Hero: even tighter */
  .hero-inner { padding: 36px 16px 32px; }
  .hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 14px; }
  .hero-title { font-size: clamp(1.65rem, 8vw, 2rem); }
  .hero-tagline { font-size: 0.9rem; margin-bottom: 16px; }
  .hero-stats { gap: 12px; margin-top: 20px; }
  .hero-stat .num { font-size: 1.15rem; }
  .hero-stat .label { font-size: 0.7rem; }
  .hero-promise { display: none; } /* hide on tiny screens — save space */
  .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 0.9rem; width: 100%; justify-content: center; }
  .hero-cta-group { flex-direction: column; gap: 8px; }

  /* Products grid: 2 tight columns */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-img { height: 140px; }
  .product-card { border-radius: 12px; }
  .product-card-body { padding: 9px 10px 11px; }
  .product-name { font-size: 0.78rem; -webkit-line-clamp: 2; }
  .product-price { font-size: 1rem; }
  .product-card-btn { font-size: 0.75rem; padding: 8px 4px; margin-top: 6px; min-height: 36px; }
  .product-category { display: none; } /* reclaim space — category shown by card context */

  /* Features: single column */
  .features-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Containers: tighter horizontal padding */
  .container { padding: 0 14px; }
  .section { padding: 36px 0; }
  .section-pd { padding: 16px 0 40px; }   /* product detail: almost no top gap on tiny phones */
  .section-title { font-size: 1.35rem; }
}

/* ── Bundle tier selector ──────────────────────────────── */
.bundle-tier-active {
  background: #EFF6FF !important;
  border-bottom: 3px solid #2563EB !important;
  color: #1e3a8a !important;
}
.bundle-tier-active > div:first-child {
  color: #1e3a8a !important;
}

/* ── Voice recording pulse animation ───────────────────── */
@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(1.4); }
}
