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

:root {
  --brand: #3a4ee5;
  --brand-dark: #2535c8;
  --brand-light: #eef0fd;
  --brand-mid: #6577ea;
  --text: #111827;
  --text-soft: #6b7280;
  --text-xs: #9ca3af;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --success: #16a34a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-lg: 0 8px 32px rgba(58,78,229,.12);
}

/* BREADCRUMB */
.spd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.spd-breadcrumb a { color: var(--brand); text-decoration: none; }
.spd-breadcrumb span { color: var(--text-xs); }

/* MAIN GRID */
.spd-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

/* GALLERY */
.spd-cover {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.spd-cover:hover { border-color: var(--brand-mid); }
.spd-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.spd-cover:hover img { transform: scale(1.04); }

.spd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.spd-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
}
.spd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.spd-thumb.active { border-color: var(--brand); }
.spd-thumb:not(.active):hover { border-color: var(--brand-mid); }

/* PRODUCT INFO */
.spd-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.spd-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}
.spd-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spd-rating-num { font-size: 13px; font-weight: 600; color: var(--text); }
.spd-rating-count { font-size: 13px; color: var(--text-soft); text-decoration: none; }
.spd-rating-dot { color: var(--border); }

/* PRICE */
.spd-price-box {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid rgba(58,78,229,.15);
}
.spd-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.spd-price-final {
  font-size: 30px;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -.01em;
}
.spd-price-pct {
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.spd-price-original {
  font-size: 13px;
  color: var(--text-soft);
}
.spd-price-original s { color: var(--text-xs); }
.spd-price-save {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: #f0fdf4;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* VARIATION LABEL */
.spd-var-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.spd-var-label span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* SIZES */
.spd-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.spd-size-btn {
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .18s;
  text-transform: uppercase;
}
.spd-size-btn.active,
.spd-size-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}
.spd-size-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* COLORS */
.spd-colors { display: flex; gap: 10px; align-items: center; }
.spd-color-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 2px;
  cursor: pointer;
  transition: outline-color .18s;
  flex-shrink: 0;
}
.spd-color-btn.active { outline-color: var(--brand); }

/* QUANTITY */
.spd-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.spd-qty-label { font-size: 13px; font-weight: 600; color: var(--text); }
.spd-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.spd-qty-btn {
  width: 40px;
  height: 42px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-soft);
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spd-qty-btn:hover { background: var(--brand-light); color: var(--brand); }
.spd-qty-val {
  width: 72px;
  height: 42px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: transparent;
  outline: none;
}
.spd-stock-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
}
.spd-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
}
.spd-stock-num { font-weight: 700; color: var(--danger); }

/* CTA BUTTONS */
.spd-cta {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 8px;
}
.spd-btn {
  height: 50px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.spd-btn-wish {
  width: 48px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-soft);
  border-radius: var(--radius-sm);
}
.spd-btn-wish:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.spd-btn-cart {
  background: var(--brand-light);
  border: 1.5px solid var(--brand);
  color: var(--brand);
}
.spd-btn-cart:hover { background: var(--brand); color: #fff; }
.spd-btn-buy {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.spd-btn-buy:hover { background: var(--brand-dark); transform: translateY(-1px); }
.spd-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* TRUST SECTION */
.spd-trust {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.spd-trust-item {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.spd-trust-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spd-trust-text { font-size: 12px; color: var(--text-soft); line-height: 1.4; }
.spd-trust-text strong { display: block; font-size: 13px; color: var(--text); font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .spd-main { grid-template-columns: 1fr; }
  .spd-trust { flex-direction: column; }
  .spd-cta { grid-template-columns: 48px 1fr 1fr; }
}