/* ==========================================================
   Single product page – compact, modern, responsive (v2)
   Loaded after style.css / shopvista.css
   ========================================================== */
html body.is-product-details { --pd-blue: var(--sv-blue, #0b69f0); --pd-line: var(--sv-line, #e8eef8); --pd-soft: var(--sv-bg, #f6f9ff); --pd-text: #0f172a; --pd-muted: #64748b; }
html body.is-product-details .store-product-detail-page { padding-bottom: 16px; }
html body.is-product-details .store-product-detail-page .container { max-width: 1120px; }

/* ---------- Breadcrumb ---------- */
html body.is-product-details .product-breadcrumb { display: flex; align-items: center; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 6px !important; font-size: 12px !important; margin: 10px 0 10px !important; color: var(--pd-muted); scrollbar-width: none; }
html body.is-product-details .product-breadcrumb::-webkit-scrollbar { display: none; }
html body.is-product-details .product-breadcrumb a { color: var(--pd-muted); text-decoration: none; }
html body.is-product-details .product-breadcrumb a:hover { color: var(--pd-blue); }
html body.is-product-details .product-breadcrumb .bc-sep { opacity: .5; }
html body.is-product-details .product-breadcrumb .bc-current { color: var(--pd-text); font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Main card ---------- */
html body.is-product-details .luxury-product-showcase {
  display: grid !important;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
  gap: 28px !important; padding: 20px !important;
  background: #fff !important; border: 1px solid var(--pd-line) !important; border-radius: 18px !important;
  box-shadow: 0 8px 28px rgba(15, 40, 100, .06) !important; margin-bottom: 18px !important;
}

/* ---------- Gallery ---------- */
html body.is-product-details .product-gallery-sticky { position: sticky; top: 84px; align-self: start; }
html body.is-product-details .product-main-view { position: relative; aspect-ratio: 1 / 1; max-height: 460px; margin: 0 auto; border-radius: 16px !important; overflow: hidden; background: var(--pd-soft); border: 1px solid var(--pd-line) !important; }
html body.is-product-details .product-main-view img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
html body.is-product-details .product-luxury-badge { position: absolute; top: 10px !important; left: 10px !important; right: auto !important; font-size: 11px !important; font-weight: 800; padding: 4px 10px !important; border-radius: 999px !important; background: #ef3e55 !important; color: #fff !important; box-shadow: 0 4px 10px rgba(239, 62, 85, .3); }
html body.is-product-details .product-thumbs-strip { display: flex; gap: 8px !important; margin-top: 10px !important; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
html body.is-product-details .product-thumbs-strip::-webkit-scrollbar { display: none; }
html body.is-product-details .gallery-thumb-pill { flex: 0 0 56px; width: 56px !important; height: 56px !important; padding: 0 !important; border-radius: 11px !important; overflow: hidden; border: 2px solid transparent !important; background: var(--pd-soft) !important; opacity: .75; transition: .15s; }
html body.is-product-details .gallery-thumb-pill:hover { opacity: 1; }
html body.is-product-details .gallery-thumb-pill.active { border-color: var(--pd-blue) !important; opacity: 1; }
html body.is-product-details .gallery-thumb-pill img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Summary ---------- */
html body.is-product-details .product-summary-section { display: flex; flex-direction: column; min-width: 0; }
html body.is-product-details .product-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px !important; margin: 0 0 8px !important; }
html body.is-product-details .product-category-pill { font-size: 11px !important; font-weight: 700; padding: 3px 10px !important; border-radius: 999px !important; background: var(--sv-soft, #eaf2ff) !important; color: var(--pd-blue) !important; text-decoration: none; }
html body.is-product-details .stock-status-tag { font-size: 11.5px !important; font-weight: 700; padding: 3px 10px !important; border-radius: 999px !important; }
html body.is-product-details .product-sku-tag { font-size: 11px !important; color: #94a3b8 !important; }
html body.is-product-details .product-hero-title { font-size: 22px !important; line-height: 1.3 !important; font-weight: 800 !important; letter-spacing: -.2px; color: var(--pd-text); margin: 0 0 10px !important; }

html body.is-product-details .product-price-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px !important; margin: 0 0 12px !important; padding: 10px 14px !important; background: linear-gradient(135deg, #f3f8ff, #eaf2ff) !important; border: 1px solid var(--sv-line, #dbe8fb) !important; border-radius: 14px !important; }
html body.is-product-details .detail-current-price { font-size: 26px !important; font-weight: 800 !important; line-height: 1.1; color: var(--pd-blue) !important; }
html body.is-product-details .detail-regular-price { font-size: 14px !important; color: #94a3b8 !important; text-decoration: line-through; }
html body.is-product-details .detail-savings-tag { font-size: 11.5px !important; font-weight: 700; padding: 3px 10px !important; border-radius: 999px !important; background: #dcfce7 !important; color: #15803d !important; }
html body.is-product-details .product-brief-desc { font-size: 13.5px !important; line-height: 1.65 !important; color: #475569 !important; margin: 0 0 12px !important; padding: 0 !important; background: none !important; border: 0 !important; }

/* ---------- Variations ---------- */
html body.is-product-details .product-size-card { padding: 10px 12px !important; margin: 0 0 12px !important; border-radius: 14px !important; background: var(--pd-soft) !important; border: 1px solid var(--pd-line) !important; }
html body.is-product-details .size-header-row { margin: 0 0 6px !important; }
html body.is-product-details .size-label-title { font-size: 12.5px !important; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
html body.is-product-details .size-label-title .selected-size-name { font-size: 12px !important; }
html body.is-product-details .size-options-group { display: flex; flex-wrap: wrap; gap: 6px !important; }
html body.is-product-details .variation-opt-pill { min-width: 0 !important; height: 32px !important; padding: 0 12px !important; font-size: 12.5px !important; font-weight: 700; line-height: 1; border-radius: 9px !important; background: #fff !important; border: 1.5px solid var(--sv-line, #d9e4f5) !important; color: var(--pd-text) !important; transition: .15s; }
html body.is-product-details .variation-opt-pill:hover { border-color: var(--pd-blue) !important; }
html body.is-product-details .variation-opt-pill.active { background: var(--pd-blue) !important; border-color: var(--pd-blue) !important; color: #fff !important; box-shadow: 0 4px 10px rgba(var(--sv-rgb, 11, 105, 240), .25); }
html body.is-product-details .variation-opt-pill span[style*="border-radius: 50%"] { width: 12px !important; height: 12px !important; }
html body.is-product-details .var-price-tag { font-size: 10.5px !important; }

/* ---------- Actions ---------- */
html body.is-product-details .product-purchase-actions { display: flex; flex-direction: column; gap: 8px !important; }
html body.is-product-details .btn-luxury-buynow { height: 46px !important; font-size: 14.5px !important; font-weight: 800 !important; border-radius: 12px !important; box-shadow: 0 8px 18px rgba(var(--sv-rgb, 11, 105, 240), .25) !important; }
html body.is-product-details .purchase-secondary-row { display: flex !important; gap: 8px !important; align-items: stretch; }
html body.is-product-details .luxury-qty-control { display: inline-flex; align-items: center; flex: 0 0 auto; width: auto !important; height: 42px !important; border-radius: 11px !important; border: 1.5px solid var(--sv-line, #d9e4f5) !important; background: #fff; overflow: hidden; }
html body.is-product-details .l-qty-btn { width: 34px !important; height: 100% !important; font-size: 17px !important; }
html body.is-product-details .l-qty-input { width: 40px !important; height: 100% !important; font-size: 14px !important; text-align: center; border: 0 !important; background: transparent !important; }
html body.is-product-details .btn-luxury-addcart { flex: 1 1 auto; height: 42px !important; font-size: 13.5px !important; font-weight: 700; border-radius: 11px !important; }
html body.is-product-details .btn-luxury-whatsapp { height: 42px !important; font-size: 13.5px !important; font-weight: 700; border-radius: 11px !important; display: flex !important; align-items: center; justify-content: center; gap: 7px; }

/* ---------- Trust strip ---------- */
html body.is-product-details .product-guarantee-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; margin-top: 12px !important; }
html body.is-product-details .guarantee-card { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center; gap: 5px !important; padding: 10px 6px !important; border-radius: 12px !important; background: var(--pd-soft) !important; border: 1px solid var(--pd-line) !important; }
html body.is-product-details .guarantee-icon { width: 30px !important; height: 30px !important; font-size: 13px !important; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; background: var(--sv-soft, #e3efff) !important; color: var(--pd-blue) !important; }
html body.is-product-details .guarantee-text strong { display: block; font-size: 11.5px !important; line-height: 1.25; color: var(--pd-text); }
html body.is-product-details .guarantee-text span { display: none !important; }

/* ---------- Description tabs ---------- */
html body.is-product-details .product-extended-details { padding: 0 !important; margin-bottom: 18px !important; border-radius: 18px !important; border: 1px solid var(--pd-line) !important; background: #fff; overflow: hidden; box-shadow: 0 8px 28px rgba(15, 40, 100, .05); }
html body.is-product-details .product-tabs-nav { display: flex; gap: 4px !important; padding: 8px 10px 0 !important; background: var(--pd-soft); border-bottom: 1px solid var(--pd-line); overflow-x: auto; scrollbar-width: none; }
html body.is-product-details .product-tabs-nav::-webkit-scrollbar { display: none; }
html body.is-product-details .p-tab-btn { font-size: 13px !important; font-weight: 700; padding: 9px 14px !important; white-space: nowrap; border-radius: 10px 10px 0 0 !important; }
html body.is-product-details .product-tabs-content { padding: 16px 20px !important; }
html body.is-product-details .product-rich-text { font-size: 14px !important; line-height: 1.75 !important; color: #334155; }
html body.is-product-details .product-rich-text img { max-width: 100%; height: auto; border-radius: 10px; }
html body.is-product-details .luxury-specs-table th, html body.is-product-details .luxury-specs-table td { padding: 8px 12px !important; font-size: 13px !important; }

/* ---------- Related ---------- */
html body.is-product-details .related-products-section { margin-top: 24px !important; }
html body.is-product-details .related-products-section .section-main-title { font-size: 18px !important; }
html body.is-product-details .related-products-section .section-sub-title { font-size: 12.5px !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  html body.is-product-details .luxury-product-showcase { gap: 20px !important; padding: 16px !important; }
  html body.is-product-details .product-hero-title { font-size: 20px !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  html body.is-product-details .store-product-detail-page .container { padding-left: 10px; padding-right: 10px; }
  html body.is-product-details .luxury-product-showcase { grid-template-columns: 1fr !important; gap: 12px !important; padding: 10px !important; border-radius: 16px !important; margin-bottom: 14px !important; }
  html body.is-product-details .product-gallery-sticky { position: static; }
  html body.is-product-details .product-main-view { max-height: 340px; border-radius: 13px !important; }
  html body.is-product-details .gallery-thumb-pill { flex-basis: 48px; width: 48px !important; height: 48px !important; }
  html body.is-product-details .product-hero-title { font-size: 18px !important; margin-bottom: 8px !important; }
  html body.is-product-details .product-price-strip { padding: 8px 12px !important; margin-bottom: 10px !important; border-radius: 12px !important; }
  html body.is-product-details .detail-current-price { font-size: 22px !important; }
  html body.is-product-details .detail-regular-price { font-size: 13px !important; }
  html body.is-product-details .product-brief-desc { font-size: 13px !important; }
  html body.is-product-details .product-size-card { padding: 8px 10px !important; border-radius: 12px !important; }
  html body.is-product-details .variation-opt-pill { height: 30px !important; padding: 0 10px !important; font-size: 12px !important; border-radius: 8px !important; }
  html body.is-product-details .btn-luxury-buynow { height: 42px !important; font-size: 14px !important; }
  html body.is-product-details .luxury-qty-control, html body.is-product-details .btn-luxury-addcart, html body.is-product-details .btn-luxury-whatsapp { height: 38px !important; }
  html body.is-product-details .guarantee-card { padding: 8px 4px !important; }
  html body.is-product-details .guarantee-text strong { font-size: 10.5px !important; }
  html body.is-product-details .product-tabs-content { padding: 12px !important; }
  html body.is-product-details .p-tab-btn { padding: 8px 11px !important; font-size: 12.5px !important; }

  /* Sticky order bar: slimmer */
  html body.is-product-details .product-mobile-sticky-bar { padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px)) !important; background: rgba(255, 255, 255, .96) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--pd-line) !important; box-shadow: 0 -6px 18px rgba(15, 40, 100, .08) !important; }
  html body.is-product-details .pmsb-inner { gap: 8px !important; }
  html body.is-product-details .pmsb-price-col { min-width: 58px !important; }
  html body.is-product-details .pmsb-price-label { font-size: 9px !important; }
  html body.is-product-details .pmsb-price-val { font-size: 15px !important; color: var(--pd-blue) !important; }
  html body.is-product-details .pmsb-icon-btn { width: 36px !important; height: 36px !important; border-radius: 10px !important; font-size: 14px !important; }
  html body.is-product-details .pmsb-buynow-btn { height: 36px !important; font-size: 13px !important; border-radius: 10px !important; }
  html body.is-product-details { padding-bottom: 60px !important; }
}

@media (max-width: 380px) {
  html body.is-product-details .product-hero-title { font-size: 17px !important; }
  html body.is-product-details .detail-current-price { font-size: 20px !important; }
}
