/* ─────────────────────────────────────────────────
   SPEED TRAILER SUPPLIES — Product Page (Simple)
   Clean, focused, conversion-first. No clutter.
───────────────────────────────────────────────── */

:root {
  --navy:      #0f172a;
  --blue:      #0044cc;
  --blue-dk:   #0033a0;
  --border:    #e2e8f0;
  --muted:     #64748b;
  --page:      #f8fafc;
  --green:     #059669;
  --gold:      #d97706;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ── TOP BAR ── */
.pdp-topbar {
  background: var(--navy);
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.2px;
}

/* ── HEADER ── */
.pdp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pdp-header__logo img {
  height: 38px;
  width: auto;
}

.pdp-header__search {
  flex: 1;
  max-width: 580px;
  display: flex;
  height: 40px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.pdp-header__search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 14px;
  color: var(--navy);
  background: transparent;
}

.pdp-header__search button {
  width: 44px;
  background: #f59e0b;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 120ms;
}

.pdp-header__search button:hover { background: #d97706; }

@media (max-width: 600px) {
  .pdp-header__search {
    display: none;
  }
}

.pdp-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pdp-currency {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.pdp-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff9900;
  color: #111111;
  border-radius: 6px;
  padding: 0 16px;
  height: 38px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pdp-cart-btn:hover {
  background: #f3a847;
  transform: scale(1.03);
}

/* ── PAGE WRAPPER ── */
.pdp-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── BREADCRUMB & GO BACK ── */
.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pdp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #232f3e;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pdp-back-btn:hover {
  background: #ff9900;
  color: #111111;
  border-color: #f3a847;
  transform: translateX(-3px);
}

.pdp-breadcrumb a { color: #475569; font-weight: 500; }
.pdp-breadcrumb a:hover { color: var(--blue); }
.pdp-breadcrumb__sep { color: #cbd5e1; }
.pdp-breadcrumb__cur { color: var(--navy); font-weight: 600; }

/* ── PRODUCT LAYOUT ── */
.pdp-product {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── IMAGE ── */
.pdp-image-wrap {
  position: sticky;
  top: 80px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.pdp-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 300ms ease;
}

.pdp-image-wrap:hover img { transform: scale(1.06); }

/* ── PRODUCT INFO ── */
.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdp-sku {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.4px;
}

.pdp-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: var(--navy);
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pdp-price {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.8px;
  color: var(--navy);
}

.pdp-currency-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.pdp-stock {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
}

.pdp-stock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ── DIVIDER ── */
.pdp-divider {
  height: 1px;
  background: var(--border);
  border: none;
}

/* ── DESCRIPTION ── */
.pdp-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.7;
}

/* ── QUANTITY ── */
.pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pdp-qty-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.pdp-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--navy);
  border-radius: 7px;
  overflow: hidden;
  height: 42px;
}

.pdp-qty-stepper button {
  width: 40px;
  height: 42px;
  background: var(--page);
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 100ms;
  user-select: none;
}

.pdp-qty-stepper button:hover { background: #e2e8f0; }

.pdp-qty-stepper input {
  width: 52px;
  height: 42px;
  border: none;
  border-left: 1.5px solid var(--navy);
  border-right: 1.5px solid var(--navy);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  background: white;
  color: var(--navy);
  font-family: inherit;
}

/* ── CTA BUTTONS ── */
.pdp-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-btn-cart {
  height: 50px;
  background: var(--blue);
  color: white;
  border-radius: 7px;
  font-size: 15.5px;
  font-weight: 800;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0,68,204,0.18);
  transition: background 120ms, transform 120ms, box-shadow 120ms;
}

.pdp-btn-cart:hover {
  background: var(--blue-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,68,204,0.26);
}

.pdp-btn-cart:active { transform: translateY(0); }

.pdp-btn-buy {
  height: 46px;
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fde68a;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 120ms;
}

.pdp-btn-buy:hover { background: #fef9c3; border-color: #fcd34d; }

/* ── MOBILE STICKY BAR ── */
.pdp-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1.5px solid var(--border);
  padding: 12px 16px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(15,23,42,0.1);
  gap: 10px;
}

/* ── CART MODAL ── */
.pdp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.65);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.pdp-modal-overlay.is-open { display: flex; }

.pdp-modal {
  background: white;
  border-radius: 12px;
  width: 720px;
  max-width: 94vw;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(15,23,42,0.18);
}

.pdp-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 120ms;
}

.pdp-modal__close:hover { background: #e2e8f0; color: var(--navy); }

.pdp-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

.pdp-modal__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.pdp-modal__total {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
}

.pdp-modal__checkout {
  background: var(--blue);
  color: white;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 800;
  transition: background 120ms;
}

.pdp-modal__checkout:hover { background: var(--blue-dk); }

/* ── LIGHTBOX ── */
.pdp-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.pdp-lightbox.is-open { display: flex; }
.pdp-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }

.pdp-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms;
}

.pdp-lightbox__close:hover { background: rgba(255,255,255,0.22); }

/* ── FOOTER ── */
.pdp-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 40px 32px 28px;
  border-top: 3px solid var(--blue);
  font-size: 13px;
}

.pdp-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.pdp-footer__col h4 {
  color: white;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.pdp-footer__col a,
.pdp-footer__col p {
  display: block;
  color: #94a3b8;
  line-height: 2;
  transition: color 120ms;
}

.pdp-footer__col a:hover { color: white; }

.pdp-footer__bottom {
  max-width: 960px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 12px;
  color: #475569;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .pdp-product { grid-template-columns: 1fr; gap: 28px; }
  .pdp-image-wrap { position: static; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 540px) {
  .pdp-page { padding: 20px 16px 140px; }
  .pdp-price { font-size: 28px; }
  .pdp-title { font-size: 20px; }
  .pdp-header { padding: 0 16px; }
  .pdp-topbar { display: none; }
}

@media (max-width: 768px) {
  .pdp-page { padding-bottom: 140px; }
  .pdp-mobile-bar { display: flex; }
  .sts-faq-container {
    bottom: 76px !important;
    right: 14px !important;
  }
}

/* ── HOMEPAGE IDENTICAL CART MODAL STYLES ── */
.cart-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 1000; display: none;
  justify-content: center; align-items: flex-start; overflow-y: auto; padding: 20px;
}

.cart-container {
  background: transparent; width: 100%; max-width: 1400px; margin: 20px auto;
  display: flex; gap: 20px; position: relative; font-family: Arial, sans-serif;
  border-radius: 16px !important;
}

.close-cart {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
  border-radius: 50%; background-color: #f0f2f2; color: #0f1111;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1px solid rgba(0,0,0,0.06); outline: none; z-index: 100;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 0; margin: 0;
}
.close-cart:hover { background-color: #e3e6e6; color: #000000; }
.close-cart:active { background-color: #d5d9d9; transform: scale(0.95); }
.close-cart svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.5; fill: none; pointer-events: none; }

.cart-left { flex: 1; background: #ffffff !important; padding: 25px; border-radius: 12px; position: relative; }

.cart-right { width: 320px; display: flex; flex-direction: column; gap: 20px; }

.cart-header { font-size: 28px; font-weight: normal; margin-bottom: 5px; color: #0f1111; }

.cart-divider { border-bottom: 1px solid #ddd; padding-bottom: 5px; display: flex; justify-content: space-between; margin-bottom: 10px; }

.cart-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #ddd; align-items: flex-start; }

.cart-item-checkbox { width: 16px; height: 16px; margin-top: 5px; cursor: pointer; }

.cart-item-img { width: 180px; height: 180px; object-fit: contain; cursor: pointer; }

.cart-item-details { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.cart-item-title { font-size: 18px; color: #0f1111; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }

.cart-item-stock { color: #007600; font-size: 12px; }

.cart-item-actions { display: flex; align-items: center; gap: 10px; margin-top: 15px; font-size: 12px; color: #007185; }

.qty-box { border: 1px solid #d5d9d9; border-radius: 8px; display: flex; align-items: center; background: #f0f2f2; box-shadow: 0 2px 5px rgba(15,17,17,.15); overflow: hidden; margin-right: 8px; }

.qty-btn { padding: 6px 12px; border: none; background: transparent; cursor: pointer; font-size: 14px; }

.qty-btn:hover { background: #e3e6e6; }

.qty-num { background: white; border-left: 1px solid #d5d9d9; border-right: 1px solid #d5d9d9; padding: 6px 15px; font-size: 14px; font-weight: bold; }

.action-link { cursor: pointer; color: #007185; }

.action-link:hover { text-decoration: underline; color: #c45500; }

.cart-item-price { font-size: 18px; font-weight: bold; width: 120px; text-align: right; }

.subtotal-box { background: #ffffff !important; padding: 20px; border-radius: 12px; }

.subtotal-text { font-size: 18px; margin-bottom: 15px; color: #0f1111; }

.checkout-btn {
  background: linear-gradient(to bottom, #ffd814, #f7ca00) !important;
  border: 1px solid #f2c200 !important;
  color: #0f1111 !important;
  border-radius: 24px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  padding: 12px 20px !important;
  box-shadow: 0 2px 5px rgba(213,217,217,.5) !important;
  width: 100%; cursor: pointer; font-size: 14px; margin-top: 15px;
}

.checkout-btn:hover {
  background: linear-gradient(to bottom, #f5c400, #e6b800) !important;
  border-color: #e6b800 !important;
  box-shadow: 0 4px 10px rgba(213,217,217,.8) !important;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cart-container {
    flex-direction: column;
    margin: 10px;
    width: calc(100% - 20px);
    max-width: 100%;
  }
  .cart-left, .cart-right { width: 100%; }
  .cart-item { flex-wrap: wrap; gap: 12px; }
  .cart-item-img { width: 90px; height: 90px; flex-shrink: 0; }
  .cart-item-price { width: auto; text-align: left; margin-left: auto; }
}
