/* ============================================
   UADepot Sneaker Product Detail Page
   ============================================ */
.snk-pdp {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #161616;
}
.snk-pdp * { box-sizing: border-box; }

.snk-breadcrumb { font-size: 13px; color: #7A7A7A; margin-bottom: 24px; }
.snk-breadcrumb a { color: #00438B; text-decoration: none; }
.snk-breadcrumb span { margin: 0 6px; color: #bbb; }

.snk-pdp-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Gallery ---------- */
.snk-gallery { display: grid; grid-template-columns: 76px 1fr; gap: 16px; }
.snk-gallery-thumbs { display: flex; flex-direction: column; gap: 12px; }
.snk-thumb {
  flex: 0 0 auto; width: 76px; height: 76px; box-sizing: border-box;
  border: 2px solid #eaebed; border-radius: 10px;
  background: #f7f7f8; padding: 4px; cursor: pointer; overflow: hidden; transition: border-color .15s;
}
.snk-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.snk-thumb.active, .snk-thumb:hover { border-color: #00438B; }
.snk-gallery-main {
  background: #f7f7f8; border-radius: 16px; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.snk-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; transition: opacity .2s; }
.snk-gallery-video { margin-top: 12px; }
.snk-gallery-video video { width: 100%; border-radius: 16px; background: #000; display: block; max-height: 520px; }

/* ---------- Info ---------- */
.snk-title { font-family: 'Manrope', sans-serif; font-size: 30px; font-weight: 800; margin: 0 0 14px; line-height: 1.2; }
.snk-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.snk-price { font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 800; color: #00438B; }
.snk-price-was { font-size: 18px; color: #9aa0a6; text-decoration: line-through; }
.snk-price-badge { background: #E60B09; color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.snk-tagline { color: #555; font-size: 15px; line-height: 1.6; margin-bottom: 24px; }

.snk-opt { margin-bottom: 24px; }
.snk-opt-label { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #161616; margin-bottom: 10px; }

/* size header: label (left) + unit toggle + guide link (right) */
.snk-size-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.snk-size-head .snk-opt-label { margin-bottom: 0; }
.snk-size-tools { display: flex; align-items: center; gap: 16px; }

/* segmented US | EU toggle — hard reset so theme button CSS can't leak in */
.snk-unit-toggle { display: inline-flex; background: #eef0f3; border-radius: 999px; padding: 3px; }
.snk-unit {
  -webkit-appearance: none; appearance: none; margin: 0 !important; min-width: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  padding: 5px 14px !important; border-radius: 999px !important; line-height: 1 !important;
  font: 600 12px/1 'Poppins', sans-serif !important; letter-spacing: .02em; color: #6b7280 !important;
  cursor: pointer; transition: background .15s, color .15s; text-transform: none !important;
}
.snk-unit.active { background: #00438B !important; color: #fff !important; }

.snk-sizeguide-link {
  -webkit-appearance: none; appearance: none; margin: 0 !important; border: 0 !important;
  background: none !important; box-shadow: none !important; padding: 0 !important;
  display: inline-flex; align-items: center; gap: 6px; color: #00438B !important;
  font: 600 13px/1 'Poppins', sans-serif !important; cursor: pointer; text-transform: none !important;
}
.snk-sizeguide-link:hover { text-decoration: underline; }
.snk-sizeguide-link i { font-size: 13px; }

.snk-size-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.snk-size {
  -webkit-appearance: none; appearance: none; margin: 0 !important; box-shadow: none !important;
  min-width: 60px; padding: 11px 16px !important; border: 1.5px solid #d8d9dd !important; border-radius: 10px !important;
  background: #fff !important; color: #161616 !important; cursor: pointer; transition: all .15s;
  font: 600 14px/1 'Poppins', sans-serif !important; text-align: center; text-transform: none !important;
}
.snk-size:hover { border-color: #161616 !important; }
.snk-size.active { border-color: #00438B !important; background: #00438B !important; color: #fff !important; }

/* size guide modal */
.snk-sizeguide { position: fixed; inset: 0; z-index: 99999; display: none; }
.snk-sizeguide.open { display: block; }
.snk-sizeguide-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.snk-sizeguide-box {
  position: relative; max-width: 520px; width: calc(100% - 32px); max-height: 86vh; overflow-y: auto;
  margin: 6vh auto 0; background: #fff; border-radius: 14px; padding: 28px 26px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.snk-sizeguide-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 30px; line-height: 1; color: #888; cursor: pointer; }
.snk-sizeguide-title { font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800; margin: 0 0 16px; }
.snk-sizeguide-measure h4 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.snk-sizeguide-measure ol { margin: 0 0 22px; padding-left: 18px; color: #444; font-size: 13.5px; line-height: 1.7; }
.snk-sizeguide-tablewrap { overflow-x: auto; }
.snk-sizeguide-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.snk-sizeguide-table th, .snk-sizeguide-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #eaebed; white-space: nowrap; }
.snk-sizeguide-table th { font-weight: 700; color: #161616; background: #f7f7f8; }
.snk-sizeguide-table tbody tr:hover { background: #f7f9fc; }
.snk-sizeguide-note { font-size: 12px; color: #9aa0a6; margin: 14px 0 0; }

/* ---------- Rating stars ---------- */
.snk-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.snk-stars { display: inline-flex; font-size: 16px; letter-spacing: 1px; line-height: 1; }
.snk-stars .snk-star { color: #d8d9dd; position: relative; }
.snk-stars .snk-star.filled { color: #f5a623; }
.snk-stars .snk-star.half { color: #d8d9dd; }
.snk-stars .snk-star.half::before { content: '\2605'; color: #f5a623; position: absolute; left: 0; width: 50%; overflow: hidden; }
.snk-stars--lg { font-size: 24px; }
.snk-rating-text { font-size: 13px; color: #7A7A7A; }

/* ---------- Color swatches ---------- */
.snk-opt-selected { font-weight: 500; color: #555; text-transform: capitalize; }
.snk-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.snk-swatch {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid #d8d9dd; padding: 3px;
  background: #fff; cursor: pointer; transition: border-color .15s, transform .15s;
}
.snk-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.snk-swatch:hover { transform: translateY(-1px); }
.snk-swatch.active { border-color: #00438B; }
/* swatch colour fills by name */
.snk-swatch[data-swatch="black"] span { background:#1a1a1a; }
.snk-swatch[data-swatch="white"] span { background:#f4f4f4; }
.snk-swatch[data-swatch="blue"] span { background:#1e54c7; }
.snk-swatch[data-swatch="red"] span { background:#d8242c; }
.snk-swatch[data-swatch="green"] span { background:#2e9e4f; }
.snk-swatch[data-swatch="pink"] span { background:#ec5b9c; }
.snk-swatch[data-swatch="grey"] span,.snk-swatch[data-swatch="gray"] span { background:#9aa0a6; }
.snk-swatch[data-swatch="yellow"] span { background:#f5c518; }
.snk-swatch[data-swatch="orange"] span { background:#f2792b; }
.snk-swatch[data-swatch="purple"] span { background:#7b3fb5; }
.snk-swatch[data-swatch="brown"] span { background:#7a5230; }

.snk-actions { margin: 8px 0 24px; }
.snk-addcart {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: #00438B; color: #fff; border: none; border-radius: 10px;
  padding: 16px 28px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s;
  font-family: inherit;
}
.snk-addcart:hover { background: #003a78; transform: translateY(-1px); }
.snk-loader { text-align: center; margin-top: 12px; color: #00438B; }

.snk-trust { list-style: none; padding: 0; margin: 0; border-top: 1px solid #eaebed; padding-top: 20px; }
.snk-trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #444; margin-bottom: 12px; }
.snk-trust svg { width: 18px; height: 18px; color: #00438B; flex-shrink: 0; }

/* ---------- Tabs ---------- */
.snk-tabs { margin-top: 56px; border-top: 1px solid #eaebed; padding-top: 8px; }
.snk-tab-nav { display: flex; gap: 8px; border-bottom: 1px solid #eaebed; margin-bottom: 24px; }
.snk-tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent; padding: 16px 20px;
  font-size: 15px; font-weight: 600; color: #7A7A7A; cursor: pointer; font-family: inherit; margin-bottom: -1px;
}
.snk-tab-btn.active { color: #00438B; border-bottom-color: #00438B; }
.snk-tab-panel { display: none; line-height: 1.7; color: #333; }
.snk-tab-panel.active { display: block; }
.snk-tab-panel img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.snk-info-table { width: 100%; border-collapse: collapse; }
.snk-info-table th, .snk-info-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #eaebed; font-size: 14px; }
.snk-info-table th { width: 200px; font-weight: 600; color: #161616; }
.snk-info-table td { color: #555; }

/* hide any laptop PDP body that the description may carry */
.snk-tab-panel .ua-pdp-gallery { display: none; }

/* ---------- Reviews ---------- */
.snk-reviews-summary { margin-bottom: 24px; }
.snk-reviews-score { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.snk-reviews-num { font-family: 'Manrope', sans-serif; font-size: 40px; font-weight: 800; color: #161616; }
.snk-reviews-count { font-size: 13px; color: #7A7A7A; }
.snk-reviews-list { display: flex; flex-direction: column; gap: 20px; }
.snk-review { border-top: 1px solid #eaebed; padding-top: 16px; }
.snk-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.snk-review-head .snk-stars { color: #f5a623; font-size: 14px; }
.snk-review-verified { font-size: 11px; color: #2e9e4f; background: #e9f7ee; padding: 2px 8px; border-radius: 12px; font-weight: 600; }
.snk-review p { color: #444; margin: 0; }

/* ---------- Q&A ---------- */
.snk-qa { display: flex; flex-direction: column; gap: 18px; }
.snk-qa-item { border-top: 1px solid #eaebed; padding-top: 14px; }
.snk-qa-q { margin: 0 0 6px; color: #161616; }
.snk-qa-a { margin: 0; color: #555; }

/* ---------- Gallery zoom / lightbox ---------- */
.snk-gallery-main { cursor: zoom-in; }
.snk-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 99999;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.snk-lightbox.open { display: flex; }
.snk-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.snk-lightbox-close {
  position: absolute; top: 20px; right: 28px; color: #fff; font-size: 40px;
  background: none; border: none; cursor: pointer; line-height: 1;
}
.snk-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15);
  color: #fff; border: none; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer;
}
.snk-lightbox-nav:hover { background: rgba(255,255,255,.28); }
.snk-lightbox-prev { left: 24px; }
.snk-lightbox-next { right: 24px; }

@media (max-width: 880px) {
  .snk-pdp-main { grid-template-columns: 1fr; gap: 28px; }
  .snk-gallery { grid-template-columns: 64px 1fr; }
  .snk-thumb { width: 64px; height: 64px; }
  .snk-title { font-size: 24px; }
  /* tabs: let them scroll horizontally instead of overflowing the page */
  .snk-tab-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 4px; }
  .snk-tab-btn { padding: 14px 14px; white-space: nowrap; flex: 0 0 auto; font-size: 14px; }
  /* additional-info table: drop the fixed label column */
  .snk-info-table th { width: auto; }
}
@media (max-width: 600px) {
  /* prevent horizontal overflow that pushed "Add to cart" off-screen (clip is sticky-header safe) */
  html, body { overflow-x: clip; max-width: 100%; }
  .snk-pdp { overflow-x: clip; }
  .snk-pdp-main, .snk-gallery, .snk-info, .snk-pdp-main > * { min-width: 0; max-width: 100%; }
  .snk-addcart, .snk-size-grid, .snk-tabs { max-width: 100%; }
  .snk-tab-panel { overflow-wrap: anywhere; word-break: break-word; }
  .snk-tab-panel img, .snk-tab-panel table { max-width: 100% !important; height: auto; }
  .snk-gallery { display: block; }
  .snk-gallery-main { width: 100%; aspect-ratio: auto; height: 42vh; max-height: 340px; border-radius: 12px; }
  /* fill the frame on mobile: shoe centered & large, no empty side bars (portrait src is never cut horizontally) */
  .snk-gallery-main img { object-fit: cover; object-position: center; padding: 0; }
  .snk-gallery-thumbs { flex-direction: row; overflow-x: auto; gap: 8px; margin-top: 12px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .snk-thumb { width: 60px; height: 60px; }
}
@media (max-width: 480px) {
  .snk-pdp { padding: 16px 16px 48px; }
  .snk-gallery-main { height: 38vh; max-height: 300px; }
  .snk-title { font-size: 21px; }
  .snk-price { font-size: 24px; }
  /* stack the additional-info table label above value so nothing is cramped */
  .snk-info-table, .snk-info-table tbody, .snk-info-table tr, .snk-info-table th, .snk-info-table td { display: block; width: 100%; }
  .snk-info-table th { border-bottom: none; padding-bottom: 0; }
  .snk-info-table td { padding-top: 4px; }
}

/* ===== Recommendations ("You may also like") ===== */
.snk-recs { max-width: 1200px; margin: 48px auto 8px; padding: 0 24px; }
.snk-recs-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #1d1d1f; margin: 0 0 18px; }
.snk-recs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.snk-rec-card { display: block; text-decoration: none; color: inherit; border: 1px solid #ececed; border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.snk-rec-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,.10); transform: translateY(-3px); }
.snk-rec-img { aspect-ratio: 1/1; background: #f7f7f8; }
.snk-rec-img img { width: 100%; height: 100%; object-fit: cover; }
.snk-rec-name { font-size: 13px; font-weight: 600; color: #1d1d1f; padding: 10px 12px 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.snk-rec-price { font-size: 14px; font-weight: 700; color: #00438B; padding: 0 12px 12px; }
@media (max-width: 1080px) { .snk-recs-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .snk-recs-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Spec list (in Description tab) ===== */
.snk-tab-panel .ua-specs { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid #eaebed; max-width: 520px; }
.snk-tab-panel .ua-specs li { padding: 9px 0; border-bottom: 1px solid #f0f1f3; font-size: 14px; color: #333; display: flex; gap: 10px; }
.snk-tab-panel .ua-specs li strong { color: #161616; min-width: 110px; font-weight: 600; }
