/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: #262626;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ ANNOUNCEMENT BAR ============ */
.announce-bar {
  background: var(--primary);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 16px;
}
.announce-track {
  display: inline-flex;
  animation: scrollLeft 18s linear infinite;
  padding: 8px 0;
}
.announce-track span { padding: 0 40px; }
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ HEADER ============ */
.site-header { border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; gap: 16px; }
.logo { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; letter-spacing: 1px; color: var(--primary); display: inline-flex; align-items: center; }
.logo-img { max-height: 52px; width: auto; display: block; }
.footer-logo { color: #fff; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 500; letter-spacing: .3px; transition: color .2s; }
.main-nav a:hover { color: var(--primary); }
.header-icons { display: flex; align-items: center; gap: 16px; }
.icon-btn { position: relative; color: #262626; display: flex; background: none; border: none; padding: 0; cursor: pointer; }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--accent); color: #fff;
  font-size: 10px; width: 17px; height: 17px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 600;
}
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; }
.mobile-menu-btn span { width: 24px; height: 2px; background: #262626; }

/* ============ HERO ============ */
.hero {
  background: repeating-linear-gradient(45deg, #f4f6f2, #f4f6f2 40px, #eef1ea 40px, #eef1ea 80px);
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}
.hero.has-image {
  position: relative;
  padding: 0;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  z-index: 1;
  pointer-events: none;
}
.hero-image-link { display: block; width: 100%; height: 100%; cursor: pointer; }
.hero.has-overlay-text::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.hero.has-overlay-text .hero-content { position: relative; z-index: 2; padding: 60px 20px; }
.hero.has-overlay-text .eyebrow,
.hero.has-overlay-text h1,
.hero.has-overlay-text p { color: #fff; }
.hero-ribbon {
  background: var(--primary);
  color: #fff;
  padding: 14px 0;
  display: flex;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 6px;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 40px;
}
.hero-ribbon-track { display: inline-flex; animation: scrollLeft 14s linear infinite; }
.hero-ribbon-track span { padding: 0 30px; }
.hero-content { text-align: center; padding: 0 20px; }
.hero-content .eyebrow { font-size: 15px; letter-spacing: 3px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.hero-content h1 {
  font-size: clamp(36px, 7vw, 72px);
  color: var(--primary);
  margin-bottom: 8px;
}
.hero-content p { font-size: clamp(18px, 3vw, 28px); font-weight: 500; margin-bottom: 24px; }
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ============ SECTION HEADINGS ============ */
.section { padding: 56px 0; }
.section-title { text-align: center; font-size: 28px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 36px; color: #1a1a1a; }

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card { position: relative; }
.product-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: #f3f3f3;
  border-radius: 6px;
  margin-bottom: 14px;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; background: #f3f3f3; }
.product-card:hover .thumb img { transform: scale(1.06); }
.badge-discount {
  position: absolute; top: 10px; left: 10px; background: #d0392b; color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 3px;
}
.product-card .brand { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.product-card h3 { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; margin: 4px 0 6px; }
.stars { color: var(--accent); font-size: 13px; }
.review-count { color: #888; font-size: 12px; margin-left: 4px; }
.price-row { margin-top: 6px; font-size: 14px; }
.price-old { text-decoration: line-through; color: #999; margin-right: 8px; font-size: 13px; }
.price-new { font-weight: 700; color: #1a1a1a; }

/* ============ PRODUCT DETAIL PAGE ============ */
.breadcrumb { font-size: 13px; color: #888; padding: 18px 0; }
.breadcrumb a { color: #888; }
.breadcrumb span { color: var(--primary); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.pd-gallery-col { display: flex; flex-direction: column; gap: 14px; }
.pd-badges-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-badges-row .pd-badge-img { flex: 1; min-width: 0; max-height: 200px; object-fit: fill; border-radius: 6px; }
.pd-gallery-inner { display: flex; gap: 14px; }
.pd-license-img { width: 100%; object-fit: contain; border-radius: 6px; background: #f7f5f2; }
.pd-license-mobile { display: none; }
.thumb-list { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; width: 100px; }
.thumb-list img { border-radius: 4px; border: 1px solid #eee; cursor: pointer; aspect-ratio: 1; object-fit: contain; background: #f7f5f2; }
.thumb-list img.active { border-color: var(--primary); }
.gallery-main { border-radius: 8px; overflow: hidden; background: #f7f5f2; aspect-ratio: 1; flex: 1; min-width: 0; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-info .badge-discount { position: static; display: inline-block; margin-bottom: 10px; }
.badge-instock { display: inline-block; background: #e6f4ea; color: #1e7e34; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 3px; margin-left: 6px; }
.badge-sold { display: inline-block; background: #fdeaea; color: #c0392b; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 3px; margin-left: 6px; }
.pd-info h1 { font-size: 26px; margin-bottom: 8px; }
.pd-price { margin: 14px 0; }
.pd-price .price-old { font-size: 17px; }
.pd-price .price-new { font-size: 26px; }
.pd-save { color: #d0392b; font-size: 13px; margin-bottom: 14px; }
.qty-selector { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; width: fit-content; margin: 16px 0; }
.qty-selector button { width: 38px; height: 38px; background: #fafafa; border: none; font-size: 18px; }
.qty-selector input { width: 50px; text-align: center; border: none; font-size: 15px; }
.pd-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 160px; text-align: center; }
.btn-whatsapp {
  display: block; width: 100%; text-align: center; background: #25D366; color: #fff;
  padding: 14px 20px; border-radius: 4px; font-weight: 600; font-size: 14px; margin-top: 12px;
}
.btn-whatsapp:hover { background: #1ebe57; }

.delivery-estimate { display: flex; justify-content: space-between; position: relative; margin-top: 30px; padding: 0 6px; }
.delivery-estimate::before {
  content: ''; position: absolute; top: 20px; left: 15%; right: 15%; height: 2px; background: #e6e6e6; z-index: 0;
}
.de-step { flex: 1; text-align: center; position: relative; z-index: 1;  }
.de-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 17px;
  border: 3px solid #fff; box-shadow: 0 0 0 1px #eee; transform: rotateY(180deg);
}
.de-date { font-size: 13px; font-weight: 600; color: #333; }
.de-label { font-size: 12px; color: #888; margin-top: 2px; }
.size-label { font-size: 13px; color: #666; margin-top: 18px; }
.size-box { display: inline-block; border: 1px solid var(--primary); color: var(--primary); padding: 6px 14px; border-radius: 4px; font-size: 13px; margin-top: 6px; }

.variation-selector { margin: 14px 0; }
.variation-label { font-size: 13px; color: #666; font-weight: 600; margin-bottom: 8px; }
.variation-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.variation-chip {
  background: #fff; border: 1px solid #ddd; color: #333; padding: 8px 16px; border-radius: 5px;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.variation-chip:hover { border-color: var(--primary); }
.variation-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.pd-description-block { line-height: 1.8; color: #444; margin-top: 40px; }
.pd-description-block h2 { font-size: 22px; margin-bottom: 14px; }
.pd-viewer-count {
  display: inline-flex; align-items: center; gap: 6px; background: #fff3cd; color: #8a6512;
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 20px; margin: 10px 0;
}

.reviews-summary { display: flex; gap: 40px; align-items: center; padding: 30px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; flex-wrap: wrap; }
.reviews-score { text-align: center; }
.reviews-score .big { font-size: 34px; font-weight: 700; }
.review-bars { flex: 1; min-width: 200px; }
.review-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.review-bar-row .bar { flex: 1; background: #eee; height: 6px; border-radius: 3px; overflow: hidden; }
.review-bar-row .bar span { display: block; height: 100%; background: var(--accent); }
.review-item { padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.review-item .name { font-weight: 600; font-size: 14px; }
.review-item .verified { background: #e6f4ea; color: #1e7e34; font-size: 11px; padding: 2px 6px; border-radius: 3px; margin-left: 6px; }

/* ============ CART / CHECKOUT ============ */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th { text-align: left; font-size: 13px; text-transform: uppercase; color: #888; padding: 10px 0; border-bottom: 1px solid #eee; }
.cart-table td { padding: 16px 0; border-bottom: 1px solid #f2f2f2; vertical-align: middle; }
.cart-product { display: flex; gap: 14px; align-items: center; }
.cart-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: #f3f3f3; }
.cart-remove { color: #d0392b; font-size: 13px; }
.cart-summary { max-width: 380px; margin-left: auto; background: #f9f8f6; padding: 24px; border-radius: 8px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.cart-summary .row.total { font-weight: 700; font-size: 17px; border-top: 1px solid #ddd; padding-top: 12px; margin-top: 12px; }

.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.order-summary-box { background: #f9f8f6; border-radius: 8px; padding: 24px; }
.order-line { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid #eee; }
.empty-state { text-align: center; padding: 80px 20px; color: #888; }
.alert { padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e6f4ea; color: #1e7e34; }
.alert-error { background: #fdeaea; color: #c0392b; }

/* ============ HOMEPAGE PROMO SECTION ============ */
.promo-section { background: #faf9f6; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.promo-image { border-radius: 10px; overflow: hidden; background: #eee; }
.promo-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-text h2 { font-size: 28px; margin-bottom: 16px; color: var(--primary); }
.promo-text p { font-size: 15px; line-height: 1.8; color: #444; }
@media (max-width: 900px) {
  .promo-grid { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.site-footer { background: var(--primary); color: #f0efe9; padding: 50px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; padding-bottom: 30px; }
.footer-grid.footer-grid-compact { grid-template-columns: 2fr 1fr 1.4fr; }
.footer-grid h4 { font-size: 15px; margin-bottom: 14px; color: #fff; }
.footer-grid a, .footer-grid p { display: block; font-size: 14px; color: #d8ddd3; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 20px; font-size: 13px; color: #c9cec1; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom-links a { color: #c9cec1; font-size: 13px; }
.footer-bottom-links a:hover { color: #fff; text-decoration: underline; }

/* ============ LEGAL / POLICY PAGES ============ */
.legal-page { max-width: 820px; padding: 10px 20px 60px; }
.legal-page h1 { font-size: 28px; margin-bottom: 20px; }
.legal-content { font-size: 15px; line-height: 1.75; color: #333; }
.legal-content h3 { font-size: 17px; margin: 22px 0 8px; color: #1a1a1a; }
.legal-content p { margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin: 0 0 14px 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--primary); text-decoration: underline; }

/* ============ FAQ ============ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid #eee; border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; background: #fff;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; color: #1a1a1a; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--primary); margin-left: 12px; flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer { margin-top: 10px; color: #555; font-size: 14.5px; line-height: 1.7; }
.faq-section { padding: 50px 0; }
.faq-section .section-title { margin-bottom: 24px; }
.faq-section-footer { text-align: center; margin-top: 20px; }

/* ============ SKU ============ */
.pd-sku { font-size: 13px; color: #888; margin: 6px 0 10px; }

/* ============ SINGLE PRODUCT WEBSITE (homepage landing mode) ============ */
.spw-hero {
  background: linear-gradient(180deg, #faf8f4 0%, #fff 65%);
  padding: 32px 0 10px;
}
.spw-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--primary);
  display: inline-block;
  padding: 7px 18px;
  border-radius: 30px;
  margin: 0 auto 24px;
}
.spw-hero .container:first-child { text-align: center; }
.spw-detail {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.07);
  padding: 36px;
  margin-bottom: 10px;
}
.spw-detail .pd-info h1 { font-size: 30px; }
@media (max-width: 700px) {
  .spw-detail { padding: 18px; border-radius: 14px; }
}

.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; background: #25D366; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 200;
}

.call-float {
  position: fixed; bottom: 90px; right: 22px; background: var(--primary); width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 200;
}
.call-float svg { animation: call-shake 4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes call-shake {
  0%, 80%, 100% { transform: rotate(0deg); }
  82%, 86%, 90%, 94% { transform: rotate(-14deg); }
  84%, 88%, 92%, 96% { transform: rotate(14deg); }
}

/* ============ MOBILE BOTTOM NAV ============ */
.mobile-bottom-nav { display: none; }
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 250;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .mbn-item {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 6px 2px;
    color: #777; text-decoration: none;
    background: none; border: none; font: inherit; cursor: pointer;
    position: relative;
  }
  .mbn-item span { font-size: 11px; font-weight: 500; }
  .mbn-item.active { color: var(--primary); }
  .mbn-badge {
    position: absolute; top: 0; right: calc(50% - 20px);
    background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 8px; line-height: 16px; text-align: center; padding: 0 3px;
  }
  /* Keep body content, the floating WhatsApp/call buttons, and the search overlay's own
     close area clear of the fixed bottom nav bar. */
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
  .whatsapp-float { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .call-float { bottom: calc(144px + env(safe-area-inset-bottom, 0px)); }
}

/* ============ STICKY ADD-TO-CART BAR (product page, mobile only) ============ */
/* Hidden until the shopper scrolls past the real Add to Cart / Buy Now buttons - see the
   scroll-listener script on the product page. Sits just above the mobile bottom nav. */
.sticky-cart-bar {
  display: none;
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 240;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  padding: 10px 14px;
  transform: translateY(120%);
  transition: transform .25s ease;
}
.sticky-cart-bar.visible { transform: translateY(0); }
.scb-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.scb-info img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #f3f3f3; }
.scb-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.scb-price { font-size: 13px; color: var(--primary); font-weight: 700; margin-top: 2px; }
.scb-actions { display: flex; gap: 8px; flex-shrink: 0; }
.scb-actions .btn { padding: 9px 14px; font-size: 13px; white-space: nowrap; min-width: 0; }
@media (max-width: 768px) {
  .sticky-cart-bar { display: flex; bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
}

/* ============ LIVE SEARCH OVERLAY ============ */
.search-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.98); z-index: 300;
  display: none; overflow-y: auto;
}
.search-overlay.open { display: block; }
.search-overlay-inner { max-width: 900px; margin: 0 auto; padding: 60px 24px 40px; position: relative; }
.search-close { position: absolute; top: 18px; right: 20px; background: none; border: none; font-size: 30px; line-height: 1; color: #999; cursor: pointer; }
.search-close:hover { color: #333; }
.search-label { display: block; font-size: 13px; letter-spacing: 2px; color: #888; margin-bottom: 10px; }
.search-input-row { display: flex; align-items: center; border-bottom: 2px solid #222; padding-bottom: 14px; gap: 12px; }
.search-input-row input { flex: 1; border: none; outline: none; font-size: 22px; font-family: 'Playfair Display', serif; }
.search-input-row svg { color: #888; flex-shrink: 0; }
.search-results-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-top: 36px; }
.search-suggestions h4, .search-products h4 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #888; margin-bottom: 14px; }
.search-suggestions ul { list-style: none; }
.search-suggestions li { padding: 0; margin-bottom: 4px; }
.search-suggestions li a { display: block; padding: 8px 0; font-size: 15px; color: #333; }
.search-suggestions li a:hover { color: var(--primary); }
.search-suggestions .empty, .search-products .empty { color: #aaa; font-size: 14px; }
.search-product-item { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.search-product-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: #f2f2f2; flex-shrink: 0; }
.search-product-item .name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.search-product-item .price-old { text-decoration: line-through; color: #999; font-size: 12px; margin-right: 6px; }
.search-product-item .price-new { font-weight: 600; font-size: 13px; color: #1a1a1a; }
.search-for-link { display: inline-block; margin-top: 20px; font-size: 14px; text-decoration: underline; color: #333; }
@media (max-width: 700px) {
  .search-results-grid { grid-template-columns: 1fr; gap: 26px; }
  .search-overlay-inner { padding: 70px 20px 40px; }
  .search-input-row input { font-size: 18px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-detail { grid-template-columns: 1fr; }
  .pd-gallery-inner { flex-direction: column-reverse; }
  .thumb-list { flex-direction: row; overflow-x: auto; width: auto; }
  .thumb-list img { width: 70px; height: 70px; flex-shrink: 0; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-license-desktop { display: none; }
  .pd-license-mobile { display: block; }
}
@media (max-width: 700px) {
  .main-nav {
    position: fixed; top: 0; left: -100%; width: 78%; height: 100vh; background: #fff;
    flex-direction: column; padding: 90px 30px; gap: 24px; transition: left .3s; box-shadow: 4px 0 20px rgba(0,0,0,.1);
  }
  .main-nav.open { left: 0; }
  .mobile-menu-btn { display: flex; }
  .hero-ribbon { font-size: 15px; letter-spacing: 3px; }
  .section-title { font-size: 22px; }
  .hero.has-image { min-height: 260px; }
}
@media (max-width: 560px) {
  /* One product per row on phones, shown as a horizontal list-style card
     (image on the left, details on the right) instead of a tall single column. */
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    column-gap: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
  }
  .product-card .thumb { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; border-radius: 5px; }
  .product-card .badge-discount { font-size: 10px; padding: 3px 6px; }
  .product-card .brand,
  .product-card h3,
  .product-card .rating-row,
  .product-card .price-row { grid-column: 2; }
  .product-card h3 { font-size: 13.5px; margin: 3px 0 5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pd-actions .btn { min-width: 100%; }
}

/* ============ ADMIN OVERRIDES SHARED ============ */
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; display: none; }
.mobile-nav-overlay.open { display: block; }

/* ============ STATUS BADGES (used on order tracking page) ============ */
.badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.badge-pending { background: #fff3cd; color: #8a6512; }
.badge-confirmed { background: #e0e7ff; color: #3730a3; }
.badge-processing { background: #d6e4ff; color: #2a4ba0; }
.badge-on_the_way { background: #ffe8cc; color: #b45309; }
.badge-delivered { background: #d6f5df; color: #1e7e34; }
.badge-cancelled { background: #fde0e0; color: #c0392b; }

/* ============ ORDER TRACKING PAGE ============ */
.track-hero {
  background: var(--primary);
  color: #fff;
  padding: 60px 0 70px;
  text-align: center;
}
.track-hero h1 { color: #fff; font-size: clamp(28px, 5vw, 42px); margin-bottom: 10px; }
.track-hero p { opacity: .9; margin-bottom: 26px; font-size: 15px; }
.track-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.track-form input {
  flex: 1; min-width: 220px; padding: 14px 16px; border: none; border-radius: 5px; font-size: 15px;
}
.track-form .btn { background: var(--accent); flex-shrink: 0; }

.track-card {
  max-width: 900px; margin: -40px auto 0; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12); padding: 30px; position: relative; z-index: 2;
}
.track-card-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.track-card-head h2 { font-size: 20px; }
.track-date { color: #888; font-size: 13px; margin-top: 4px; }

.track-stepper { display: flex; justify-content: space-between; position: relative; padding: 0 6px; }
.track-stepper::before {
  content: ''; position: absolute; top: 22px; left: 6%; right: 6%; height: 3px; background: #e6e6e6; z-index: 0;
}
.track-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.track-step-icon {
  width: 46px; height: 46px; border-radius: 50%; background: #f0f0f0; color: #aaa;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 18px;
  border: 3px solid #fff; box-shadow: 0 0 0 2px #e6e6e6; transition: all .3s;
}
.track-step-label { font-size: 12px; color: #999; font-weight: 500; }
.track-step-done .track-step-icon { background: var(--primary); color: #fff; box-shadow: 0 0 0 2px var(--primary); }
.track-step-done .track-step-label { color: var(--primary); font-weight: 600; }
.track-step-active .track-step-icon { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(198,90,158,.25); }
.track-step-active .track-step-label { color: var(--accent); font-weight: 700; }

.track-cancelled {
  max-width: 600px; margin: -40px auto 0; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12); padding: 40px; text-align: center; position: relative; z-index: 2;
}
.track-cancelled-icon { font-size: 44px; margin-bottom: 14px; }
.track-cancelled h2 { color: #c0392b; margin-bottom: 8px; }

.track-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 30px auto 0; }
.track-details-grid .card-like { background: #f9f8f6; border-radius: 8px; padding: 22px; }
.track-details-grid h3 { font-size: 15px; margin-bottom: 12px; }
.track-details-grid p { font-size: 14px; color: #444; margin-bottom: 4px; }

@media (max-width: 700px) {
  .track-stepper { flex-wrap: wrap; row-gap: 20px; }
  .track-stepper::before { display: none; }
  .track-step { flex: 0 0 33.33%; }
  .track-details-grid { grid-template-columns: 1fr; }
  .track-card, .track-cancelled { padding: 22px; margin-top: -25px; }
}

/* ============ LANDING PAGE THEMES (selectable from Admin > Settings) ============ */
/* theme-classic is the default look above - no overrides needed. */

/* --- Modern: bold, rounded, high-contrast --- */
body.theme-modern .hero.has-image { border-radius: 0 0 28px 28px; overflow: hidden; }
body.theme-modern .hero:not(.has-image) { border-radius: 0 0 28px 28px; }
body.theme-modern .hero-content h1 { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
body.theme-modern .section-title {
  text-transform: none; letter-spacing: 0; font-weight: 700; position: relative; padding-bottom: 16px;
}
body.theme-modern .section-title::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; background: var(--accent); border-radius: 4px;
}
body.theme-modern .product-card .thumb { border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.08); transition: box-shadow .3s; }
body.theme-modern .product-card:hover .thumb { box-shadow: 0 12px 28px rgba(0,0,0,.16); }
body.theme-modern .btn { border-radius: 30px; font-weight: 700; letter-spacing: .3px; }
body.theme-modern .promo-image img,
body.theme-modern .pd-license-img { border-radius: 16px; }

/* --- Minimal: clean lines, no shadows, generous whitespace --- */
body.theme-minimal .hero { background: #faf9f7; }
body.theme-minimal .hero-content h1 { font-family: 'Playfair Display', serif; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.theme-minimal .section-title { font-weight: 400; letter-spacing: 4px; font-size: 20px; }
body.theme-minimal .product-card .thumb { border-radius: 0; border: 1px solid #eee; }
body.theme-minimal .btn { border-radius: 0; letter-spacing: 1px; box-shadow: none; }
body.theme-minimal .btn-outline { border-width: 1px; }
body.theme-minimal .track-card, body.theme-minimal .track-cancelled { box-shadow: none; border: 1px solid #eee; }
