/* ==========================================================================
   SNUSLAB — Single Product Page (woocommerce/single-product.php)
   ========================================================================== */

.sl-product {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}
.sl-product-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* ---------- Gallery ---------- */
.sl-product-gallery { position: relative; }
.sl-product-main-img {
  aspect-ratio: 1;
  background: var(--sl-mist, #f4f5f6);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sl-product-main-img img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}
.sl-product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sl-product-thumbs::-webkit-scrollbar { display: none; }
.sl-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--sl-border, #e4e6e8);
  background: var(--sl-mist, #f4f5f6);
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
}
.sl-thumb:hover,
.sl-thumb:focus { border-color: var(--sl-ink, #0a0a0a); }
.sl-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Info column ---------- */
.sl-product-info { display: flex; flex-direction: column; gap: 0; }

.sl-product-title {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .3px;
  color: var(--sl-ink, #0a0a0a);
  margin: 0 0 10px;
}
.sl-product-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--sl-ink, #0a0a0a);
  margin-bottom: 12px;
}
.sl-product-price del { color: #9aa0a6; font-weight: 400; font-size: 18px; margin-right: 6px; }
.sl-product-price ins { text-decoration: none; }
.sl-product-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--sl-muted, #6b7280);
  margin-bottom: 16px;
}

/* ---------- Attribute chips (Strength / Flavour / Size) ---------- */
.sl-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 16px;
}
.sl-attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--sl-border, #e4e6e8);
  border-radius: 12px;
  padding: 9px 14px;
  background: #ffffff;
  min-width: 0;
}
.sl-attr-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9aa0a6;
}
.sl-attr-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--sl-ink, #0a0a0a);
  line-height: 1.25;
}
/* ---------- Shipping hint ---------- */
.sl-shipping-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sl-mist, #f4f5f6);
  border: 1px solid var(--sl-border, #e4e6e8);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--sl-ink, #0a0a0a);
  font-weight: 500;
}
.sl-shipping-hint .sl-ic { width: 16px; height: 16px; flex-shrink: 0; color: var(--sl-ink, #0a0a0a); }

/* ---------- Variant selector ---------- */
.sl-variants { margin-bottom: 18px; }
.sl-variant-group { margin-bottom: 14px; }
.sl-variant-label {
  display: block;
  font-size: 12px;
  color: var(--sl-muted, #6b7280);
  margin-bottom: 8px;
  letter-spacing: .3px;
}
.sl-variant-label strong { color: var(--sl-ink, #0a0a0a); font-weight: 700; }
.sl-variant-options { display: flex; gap: 6px; flex-wrap: wrap; }
.sl-variant-btn {
  padding: 10px 18px;
  border: 2px solid var(--sl-border, #e4e6e8);
  border-radius: 10px;
  background: #ffffff;
  color: var(--sl-ink, #0a0a0a);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.sl-variant-btn:hover { border-color: #9aa0a6; }
.sl-variant-btn.active {
  border-color: var(--sl-ink, #0a0a0a);
  background: var(--sl-ink, #0a0a0a);
  color: #ffffff;
}

/* ---------- Quantity + Add to Cart ---------- */
.sl-add-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.sl-qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--sl-border, #e4e6e8);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.sl-qty-btn {
  width: 40px;
  height: 46px;
  border: none;
  background: none;
  color: var(--sl-ink, #0a0a0a);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sl-qty-btn:hover { background: var(--sl-mist, #f4f5f6); }
.sl-qty-num {
  width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--sl-ink, #0a0a0a);
}
.sl-atc-btn {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--sl-ink, #0a0a0a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .15s;
}
.sl-atc-btn:hover { background: #2c2f33; }
.sl-atc-btn:disabled { background: #c7cbd0; cursor: not-allowed; }

/* ---------- Bundle discount buttons ---------- */
.sl-bundles { margin-bottom: 18px; }
.sl-bundles-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--sl-muted, #6b7280);
  margin-bottom: 8px;
}
.sl-bundle-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sl-bundle-btn {
  flex: 1;
  min-width: 90px;
  padding: 10px 12px;
  border: 1px solid var(--sl-border, #e4e6e8);
  border-radius: 10px;
  background: #ffffff;
  color: var(--sl-ink, #0a0a0a);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.sl-bundle-btn:hover { border-color: var(--sl-ink, #0a0a0a); }
.sl-bundle-pct {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  margin-top: 2px;
}

/* ---------- Sold out ---------- */
.sl-sold-out-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sl-mist, #f4f5f6);
  border: 1px solid var(--sl-border, #e4e6e8);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #9aa0a6;
}
.sl-sold-out-notice .sl-ic { width: 18px; height: 18px; color: #9aa0a6; }

/* ---------- Low stock ---------- */
.sl-low-stock {
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  margin: 0 0 14px;
}

/* ---------- Trust strip ---------- */
.sl-trust-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--sl-border, #e4e6e8);
  border-bottom: 1px solid var(--sl-border, #e4e6e8);
  padding: 18px 0;
  margin: 18px 0;
}
.sl-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sl-muted, #6b7280);
}
.sl-trust-item .sl-ic { width: 16px; height: 16px; flex-shrink: 0; color: var(--sl-ink, #0a0a0a); }

/* ---------- Description ---------- */
.sl-product-full-desc { margin-top: 4px; }
.sl-desc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sl-ink, #0a0a0a);
  margin: 0 0 10px;
}
.sl-desc-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--sl-muted, #6b7280);
}
.sl-desc-body p { margin: 0 0 10px; }

/* ---------- Related products ---------- */
.sl-related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--sl-border, #e4e6e8);
}

/* ---------- SVG base (page-local, in case global not loaded) ---------- */
.sl-ic {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .sl-product-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .sl-product-gallery { position: sticky; top: 80px; }
  .sl-product-title { font-size: 32px; }
}
@media (min-width: 1000px) {
  .sl-product-inner { gap: 56px; }
}
