
/* anchor-wrapped product card — remove default link styles */
a.product-card {
  display: block; text-decoration: none; color: inherit;
}
a.product-card:hover { color: inherit; }
a.acc-card { display: block; text-decoration: none; color: inherit; }
a.acc-card:hover { color: inherit; }

/* Wrapper */
.sp-wrap {
  max-width: 1280px; margin: 24px auto 60px; padding: 0 20px;
}
.sp-breadcrumb {
  font-size: 12px; color: var(--muted); margin-bottom: 18px;
}
.sp-breadcrumb a { color: var(--muted); }
.sp-breadcrumb a:hover { color: var(--orange); }
.woocommerce-breadcrumb { font-size: 12px; color: var(--muted); }
.woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-breadcrumb a:hover { color: var(--orange); }

/* ── Main layout: gallery | info ── */
.sp-main {
  display: grid; grid-template-columns: 520px 1fr; gap: 40px;
  align-items: flex-start; margin-bottom: 40px;
}

/* ── Gallery ── */
.sp-gallery {
  display: flex; gap: 14px; align-items: flex-start;
  position: sticky; top: 80px;
}
.sp-thumbs {
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.sp-thumb {
  width: 72px; height: 72px; border: 2px solid var(--border);
  border-radius: 8px; overflow: hidden; cursor: pointer;
  transition: border-color .2s; background: #f8f8f8;
  display: flex; align-items: center; justify-content: center;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.sp-thumb.active { border-color: var(--orange); }
.sp-thumb:hover  { border-color: var(--orange); }

.sp-main-img-wrap {
  flex: 1; border-radius: 12px; overflow: hidden;
  background: #f8f8f8; position: relative;
  border: 1px solid var(--border); min-height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.sp-main-img {
  width: 100%; max-height: 460px;
  object-fit: contain; padding: 20px;
  transition: opacity .25s;
}
.sp-stock-badge {
  position: absolute; top: 12px; left: 12px;
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; z-index: 2;
}

/* ── Info panel ── */
.sp-info { display: flex; flex-direction: column; gap: 16px; }

.sp-brand {
  font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
}
.sp-title {
  font-size: 28px; font-weight: 900; color: #111; line-height: 1.15;
}
.sp-price-row {
  display: flex; align-items: baseline; gap: 8px;
  border-bottom: 1px solid var(--border); padding-bottom: 14px;
}
.sp-price-label {
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.sp-price { font-size: 22px; font-weight: 900; color: var(--orange); }
.sp-price .woocommerce-Price-amount { font-size: 22px; font-weight: 900; color: var(--orange); }
.sp-price del .woocommerce-Price-amount { font-size: 14px; color: var(--muted); font-weight: 400; }

/* Quick detail rows */
.sp-quick-details {
  display: flex; flex-direction: column; gap: 6px;
  background: #fafafa; border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px;
}
.sp-detail-row { display: flex; gap: 12px; font-size: 13px; }
.sp-detail-key {
  font-weight: 700; color: #444; min-width: 90px; flex-shrink: 0;
}
.sp-detail-val { color: #555; }

.sp-short-desc {
  font-size: 13px; color: #555; line-height: 1.7;
  border-left: 3px solid var(--orange); padding-left: 12px;
}

/* CTA buttons */
.sp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.sp-btn-buy {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: #fff;
  padding: 13px 32px; border-radius: 10px;
  font-size: 15px; font-weight: 700; transition: background .2s;
  text-decoration: none;
}
.sp-btn-buy:hover { background: var(--orange-dk); color: #fff; }

/* WooCommerce add-to-cart inside sp-cta-row */
.sp-cta-row .quantity { display: flex; align-items: center; gap: 6px; }
.sp-cta-row .quantity input {
  width: 60px; text-align: center; border: 1.5px solid var(--border);
  border-radius: 6px; padding: 10px 8px; font-size: 14px; font-weight: 700;
}
.sp-cta-row button.single_add_to_cart_button {
  background: var(--orange); color: #fff; border: none;
  padding: 12px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s;
}
.sp-cta-row button.single_add_to_cart_button:hover { background: var(--orange-dk); }

/* Trust badges */
.sp-trust {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.sp-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #555;
  background: #f8f8f8; border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px;
}
.sp-trust-item i { color: var(--orange); font-size: 13px; }

/* ── Specifications table ── */
.sp-specs-wrap {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; margin-bottom: 40px;
}
.sp-spec-group { border-bottom: 1px solid var(--border); }
.sp-spec-group:last-child { border-bottom: none; }
.sp-spec-group-title {
  font-size: 14px; font-weight: 800; color: #111;
  padding: 14px 20px; background: #fafafa;
  border-bottom: 1px solid var(--border);
}
.sp-spec-row {
  display: grid; grid-template-columns: 220px 1fr;
  border-bottom: 1px solid #f5f5f5; font-size: 13px;
}
.sp-spec-row:last-child { border-bottom: none; }
.sp-spec-label {
  padding: 10px 20px; font-weight: 600; color: #444;
  background: #fdfdfd; border-right: 1px solid #f0f0f0;
}
.sp-spec-label::before {
  content: '•'; color: var(--orange); margin-right: 7px; font-size: 14px;
}
.sp-spec-value {
  padding: 10px 20px; color: #555; line-height: 1.5;
}

.sp-full-desc {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin-bottom: 40px;
  font-size: 14px; color: #555; line-height: 1.8;
}

/* ── Related products ── */
.sp-related { margin-top: 48px; }
.sp-related-head { margin-bottom: 20px; }
.sp-related-title {
  font-size: 22px; font-weight: 900; color: #111;
  margin: 4px 0;
}
.sp-related-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.sp-rel-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.sp-rel-card:hover {
  border-color: var(--orange); box-shadow: 0 6px 20px rgba(242,101,34,.14);
  transform: translateY(-3px);
}
.sp-rel-img {
  aspect-ratio: 1/1; background: #f8f8f8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 10px;
}
.sp-rel-img img { width: 100%; height: 100%; object-fit: contain; }
.sp-rel-info { padding: 10px 12px 12px; }
.sp-rel-name {
  font-size: 12px; font-weight: 600; color: #111;
  margin-bottom: 5px; line-height: 1.4;
}
.sp-rel-price { font-size: 13px; font-weight: 800; color: var(--orange); }
.sp-rel-price .woocommerce-Price-amount { font-size: 13px; font-weight: 800; color: var(--orange); }
.sp-rel-price del .woocommerce-Price-amount { font-size: 11px; color: var(--muted); font-weight: 400; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sp-main { grid-template-columns: 1fr; }
  .sp-gallery { position: static; }
  .sp-related-grid { grid-template-columns: repeat(3, 1fr); }
  .sp-spec-row { grid-template-columns: 160px 1fr; }
}
@media (max-width: 640px) {
  .sp-gallery { flex-direction: column-reverse; }
  .sp-thumbs  { flex-direction: row; }
  .sp-thumb   { width: 60px; height: 60px; }
  .sp-title   { font-size: 22px; }
  .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-spec-row { grid-template-columns: 1fr; }
  .sp-spec-label { border-right: none; border-bottom: 1px solid #f0f0f0; }
  .sp-cta-row { flex-direction: column; }
  .sp-btn-buy { justify-content: center; }
  .sp-trust   { gap: 7px; }
  .sp-trust-item { font-size: 11px; padding: 4px 10px; }
}
