/* ============================================================
   WEAR6ixMEN - store.css
   ADDITIVE to home.css. The storefront reuses the full original
   landing design (base.css + home.css); this file only adds the
   shop-specific pieces: nav cart, sold-out states, the shop grid,
   and the product detail page. Same tokens, same language.
   ============================================================ */

/* ---------- NAV: cart + right cluster ---------- */
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-cart { position: relative; color: var(--silver); display: inline-flex; align-items: center; transition: color .3s; }
.nav-cart:hover { color: var(--white); }
.nav-cart-count {
  position: absolute; top: -7px; right: -9px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--blue); color: var(--white);
  font-family: var(--fd); font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}

/* Clear the fixed nav on pages without a full-height hero. */
.inner-top { padding-top: 150px; }

/* ---------- PRODUCT CARD: data-driven additions ---------- */
/* Cards are links now (the original markup was a div). */
.prod-card { cursor: pointer; }
.prod-meta { font-family: var(--fd); font-weight: 800; font-size: 21px; color: var(--white); letter-spacing: .5px; }
.prod-noimg {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; font-family: var(--fd); font-weight: 900; font-size: 46px;
  letter-spacing: 2px; color: rgba(184,200,220,.12);
}
.prod-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(37,99,235,.14); border: 1px solid rgba(37,99,235,.42);
  font-family: var(--fd); font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: #7aa0ff; padding: 6px 11px; backdrop-filter: blur(4px);
}
.prod-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(5,9,15,.85); border: 1px solid rgba(184,200,220,.22);
  font-family: var(--fd); font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--silver); padding: 6px 11px; backdrop-filter: blur(4px);
}
.prod-out .prod-media img { opacity: .42; }
.prod-out .prod-media:hover { background: transparent; }

/* Sale badge (card) + struck original price */
.prod-sale {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(229,84,63,.16); border: 1px solid rgba(229,84,63,.5);
  font-family: var(--fd); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #ff8a7a; padding: 6px 11px; backdrop-filter: blur(4px);
}
.prod-was { color: rgba(184,200,220,.5); text-decoration: line-through; margin-right: 2px; font-weight: 500; font-size: 15px; }

/* Touch devices: card shows the rotation when in view (set by store.js) */
.prod-media.is-playing img { opacity: 0; }
.prod-media.is-playing video { opacity: 1; }

/* ---------- SHOP (all products) GRID ---------- */
/* A wrapping responsive grid, distinct from the home lineup carousel. */
/* Catalog pages (shop + "you may also like") - clean shared layout, no
   dependency on the home lineup's #products carousel rules. */
.catalog { padding-left: 24px; padding-right: 24px; padding-bottom: 72px; }
.catalog-hdr { max-width: 1400px; margin: 0 auto 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.catalog-note { font-family: var(--fb); font-size: 14px; color: rgba(184,200,220,.5); max-width: 280px; }
.empty { color: var(--silver); font-size: 15px; padding: 30px 0; max-width: 1400px; margin: 0 auto; }

/* minmax(0, 1fr) lets columns shrink below their content's min-content, so a
   wide item can't blow out the grid (fixes mobile horizontal overflow). */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1400px; margin: 0 auto; }
.related-sec { padding-top: 24px; }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .catalog { padding-left: 56px; padding-right: 56px; padding-bottom: 110px; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; row-gap: 76px; }
  .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Touch devices: re-enable the card video (home.css hides it ≤767 for the
   original desktop-only behaviour; here it autoplays in view). */
@media (max-width: 767px) { .prod-media video { display: block; } }

/* ---------- PRODUCT DETAIL ---------- */
.pd {
  max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; padding-bottom: 90px;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
.pd-gallery { position: relative; }
.pd-main {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: rgba(255,255,255,.02); border: 1px solid rgba(184,200,220,.06);
}
.pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; filter: drop-shadow(0 24px 48px rgba(0,0,0,.5)); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumb { width: 64px; height: 64px; padding: 5px; background: transparent; border: 1px solid rgba(184,200,220,.12); cursor: pointer; transition: border-color .3s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--silver); }

.pd-back { display: inline-block; font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(184,200,220,.5); text-decoration: none; margin-bottom: 18px; transition: color .3s; }
.pd-back:hover { color: var(--white); }
.pd-name { font-family: var(--fd); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 9vw, 60px); line-height: .95; color: var(--white); letter-spacing: -1px; }
.pd-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 14px 0 24px; }
#pd-price { font-family: var(--fd); font-weight: 700; font-size: 24px; color: var(--silver); }
.pd-was { font-family: var(--fb); font-size: 17px; color: rgba(184,200,220,.4); text-decoration: line-through; }
.pd-sale-badge { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #ff8a7a; background: rgba(229,84,63,.14); border: 1px solid rgba(229,84,63,.45); padding: 4px 10px; }
.pd-desc { color: var(--silver); line-height: 1.85; font-size: 15px; max-width: 480px; margin-bottom: 32px; }

.pd .sec-label { margin-top: 6px; }
.pd-field { margin-bottom: 24px; }
.pd-field-label { display: block; font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(184,200,220,.6); margin-bottom: 12px; }
.pd-colors, .pd-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-color, .pd-size {
  font-family: var(--fd); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px;
  color: var(--silver); background: transparent; border: 1px solid rgba(184,200,220,.25);
  padding: 12px 18px; min-width: 48px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.pd-color:hover:not(:disabled), .pd-size:hover:not(:disabled) { border-color: var(--silver); color: var(--white); }
.pd-color.selected, .pd-size.selected { background: var(--silver); color: var(--deep); border-color: var(--silver); }
.pd-color:disabled, .pd-size:disabled { opacity: .28; cursor: not-allowed; text-decoration: line-through; }

.pd-stock { font-family: var(--fd); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; min-height: 16px; margin: 8px 0 20px; color: rgba(184,200,220,.6); }
.pd-stock.in { color: #2dcfb8; }
.pd-stock.low { color: #e0a23b; }
.pd-stock.out { color: #d9534f; }

.pd-qty-row { display: flex; align-items: center; gap: 14px; }
.pd-qty { display: inline-flex; align-items: stretch; border: 1px solid rgba(184,200,220,.25); }
.pd-qty-btn {
  font-family: var(--fd); font-size: 20px; font-weight: 700; line-height: 1;
  color: var(--silver); background: transparent; border: none; width: 46px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.pd-qty-btn:hover:not(:disabled) { background: rgba(184,200,220,.1); color: var(--white); }
.pd-qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.pd-qty-input {
  width: 60px; text-align: center; background: transparent;
  border: none; border-left: 1px solid rgba(184,200,220,.25); border-right: 1px solid rgba(184,200,220,.25);
  color: var(--white); font-family: var(--fd); font-weight: 700; font-size: 16px; padding: 12px 0;
  -moz-appearance: textfield; appearance: textfield;
}
.pd-qty-input:focus { outline: none; }
.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-qty-max { font-family: var(--fd); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(184,200,220,.55); }

.pd-add { width: 100%; max-width: 380px; border: none; }
.pd-add:disabled { opacity: .4; cursor: not-allowed; }
.pd-note { font-size: 12px; color: rgba(184,200,220,.4); margin-top: 14px; letter-spacing: .3px; max-width: 380px; }

@media (min-width: 900px) {
  .pd { gap: 64px; padding-bottom: 120px; grid-template-columns: 1fr 1fr; align-items: start; }
  .pd-info { position: sticky; top: 150px; }
  .inner-top { padding-top: 210px; }
}

/* ---------- CART ---------- */
.cart-clear { background: none; border: none; cursor: pointer; font-family: var(--fd); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(184,200,220,.4); transition: color .3s; }
.cart-clear:hover { color: #d9534f; }

.cart-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1400px; margin: 0 auto; }

.cart-lines { display: flex; flex-direction: column; }
.ci { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(184,200,220,.08); }
.ci:first-child { border-top: 1px solid rgba(184,200,220,.08); }
.ci-media { flex: 0 0 84px; width: 84px; height: 84px; display: block; overflow: hidden; background: rgba(255,255,255,.02); border: 1px solid rgba(184,200,220,.06); }
.ci-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ci-info { display: flex; flex-direction: column; gap: 5px; }
.ci-name { font-family: var(--fd); font-weight: 900; text-transform: uppercase; font-size: 16px; letter-spacing: .5px; color: var(--white); text-decoration: none; }
.ci-name:hover { color: var(--silver); }
.ci-variant { font-family: var(--fd); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(184,200,220,.5); }
.ci-price { font-family: var(--fd); font-weight: 700; font-size: 14px; color: var(--silver); }
.ci-note { font-family: var(--fd); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.ci-note.out { color: #d9534f; }
.ci-note.adj { color: #e0a23b; }
.ci-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ci-qty { display: inline-flex; align-items: center; border: 1px solid rgba(184,200,220,.2); }
.qty-btn { width: 34px; height: 34px; background: none; border: none; cursor: pointer; color: var(--silver); font-size: 18px; line-height: 1; transition: color .2s, background .2s; }
.qty-btn:hover:not(:disabled) { color: var(--white); background: rgba(184,200,220,.06); }
.qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.qty-val { min-width: 36px; text-align: center; font-family: var(--fd); font-weight: 700; color: var(--white); }
.ci-total { font-family: var(--fd); font-weight: 700; font-size: 15px; color: var(--white); margin-left: auto; }
.ci-remove-form { margin-left: 4px; }
.ci-remove { background: none; border: none; cursor: pointer; font-family: var(--fd); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(184,200,220,.4); transition: color .3s; }
.ci-remove:hover { color: #d9534f; }
.ci-unavailable .ci-media img, .ci-unavailable .ci-name { opacity: .5; }

.cart-summary { border: 1px solid rgba(184,200,220,.1); background: var(--navy); padding: 28px 24px; }
.cs-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--fd); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--white); font-size: 18px; margin-bottom: 14px; }
.cs-note { font-size: 12px; color: rgba(184,200,220,.45); line-height: 1.6; margin-bottom: 22px; }
.cs-checkout { display: block; width: 100%; text-align: center; margin-bottom: 16px; }
.cs-continue { display: inline-block; font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--silver); text-decoration: none; transition: color .3s; }
.cs-continue:hover { color: var(--white); }

.cart-empty { text-align: center; padding: 50px 0 90px; }
.cart-empty-txt { font-family: var(--fd); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 7vw, 48px); color: var(--white); margin-bottom: 26px; }

@media (min-width: 900px) {
  .cart-wrap { grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
  .cart-summary { position: sticky; top: 150px; }
}

/* ---------- CHECKOUT ---------- */
.co-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1400px; margin: 0 auto; }
.co-form { display: flex; flex-direction: column; gap: 18px; }
.co-errors { border: 1px solid rgba(217,83,79,.5); background: rgba(217,83,79,.08); color: #ff8a7a; padding: 12px 14px; font-size: 13px; }
.co-field { display: flex; flex-direction: column; gap: 7px; }
.co-row.two { display: grid; grid-template-columns: 1fr; gap: 18px; }
.co-label, .co-field label { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(184,200,220,.6); }
.co-form input[type="text"], .co-form input[type="email"], .co-form input, .co-form textarea, .co-form select {
  width: 100%; background: rgba(255,255,255,.02); border: 1px solid rgba(184,200,220,.18);
  color: var(--white); font-family: var(--fb); font-size: 15px; padding: 13px 14px; transition: border-color .25s;
}
.co-form input:focus, .co-form textarea:focus, .co-form select:focus { outline: none; border-color: var(--silver); }
.co-form textarea { resize: vertical; }
.co-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8c8dc' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.co-form select option { background: #0b0f17; color: var(--white); }
.co-eta { font-family: var(--fb); font-size: 13px; color: #2dcfb8; margin-top: 8px; letter-spacing: .3px; }
.co-field .errorlist { list-style: none; color: #ff8a7a; font-size: 12px; font-family: var(--fd); letter-spacing: 1px; text-transform: uppercase; }

.co-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-opt { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border: 1px solid rgba(184,200,220,.2); cursor: pointer; font-family: var(--fd); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; color: var(--silver); transition: border-color .25s, background .25s, color .25s; }
.co-opt input { position: absolute; opacity: 0; pointer-events: none; }
.co-opt:hover { border-color: var(--silver); }
.co-opt:has(input:checked) { background: var(--silver); color: var(--deep); border-color: var(--silver); }

.co-pickup { border: 1px solid rgba(184,200,220,.14); background: rgba(37,99,235,.05); padding: 16px 18px; display: none; flex-direction: column; gap: 8px; }
.co-pickup-txt { font-size: 14px; color: var(--silver); line-height: 1.7; }

.co-summary { border: 1px solid rgba(184,200,220,.1); background: var(--navy); padding: 26px 24px; height: fit-content; }
.co-sum-title { font-family: var(--fd); font-weight: 900; text-transform: uppercase; font-size: 18px; color: var(--white); margin-bottom: 18px; }
.co-lines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(184,200,220,.1); }
.co-line { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: baseline; font-size: 14px; color: var(--silver); }
.co-line-q { font-family: var(--fd); font-weight: 700; color: rgba(184,200,220,.55); }
.co-line-n { color: var(--white); }
.co-line-n small { display: block; font-size: 11px; color: rgba(184,200,220,.5); letter-spacing: 1px; text-transform: uppercase; }
.co-line-t { font-family: var(--fd); font-weight: 700; white-space: nowrap; }
.co-sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--silver); margin-bottom: 10px; }
.co-sum-row.total { font-family: var(--fd); font-weight: 900; text-transform: uppercase; font-size: 18px; color: var(--white); border-top: 1px solid rgba(184,200,220,.12); padding-top: 14px; margin-top: 6px; }
.co-submit { width: 100%; text-align: center; margin: 18px 0 14px; }

/* ---------- ORDER CONFIRMATION ---------- */
.od-head { max-width: 1400px; margin: 0 auto 28px; }
.od-status { display: inline-block; margin-top: 12px; font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; padding: 7px 14px; border: 1px solid rgba(224,162,59,.5); color: #e0a23b; background: rgba(224,162,59,.08); }
.od-status.od-paid, .od-status.od-fulfilled, .od-status.od-shipped { border-color: rgba(45,207,184,.5); color: #2dcfb8; background: rgba(45,207,184,.08); }
.od-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1400px; margin: 0 auto; }
.od-sub { font-family: var(--fd); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; color: var(--blue); margin: 20px 0 12px; }
.od-sub:first-child { margin-top: 0; }
.od-lines { display: flex; flex-direction: column; gap: 12px; }
.od-line { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid rgba(184,200,220,.08); }
.od-q { font-family: var(--fd); font-weight: 700; color: rgba(184,200,220,.55); }
.od-n { color: var(--white); font-family: var(--fd); font-weight: 700; text-transform: uppercase; font-size: 15px; }
.od-n small { display: block; font-family: var(--fb); font-weight: 400; text-transform: none; font-size: 12px; color: rgba(184,200,220,.5); letter-spacing: 1px; }
.od-t { font-family: var(--fd); font-weight: 700; color: var(--silver); white-space: nowrap; }
.od-info { color: var(--silver); line-height: 1.8; font-size: 15px; }
.od-pickup { color: var(--silver); line-height: 1.7; font-size: 14px; margin-top: 8px; background: rgba(37,99,235,.05); border: 1px solid rgba(184,200,220,.12); padding: 14px 16px; }
.od-note { font-style: italic; color: rgba(184,200,220,.6); margin-top: 14px; }
.od-summary { border: 1px solid rgba(184,200,220,.1); background: var(--navy); padding: 26px 24px; height: fit-content; }
.od-pay-note { font-family: var(--fd); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #e0a23b; margin: 16px 0 12px; }
.od-pay { display: block; width: 100%; text-align: center; margin-bottom: 14px; }
.od-emailed { text-align: center; color: rgba(184,200,220,.45); font-size: 13px; margin-top: 36px; }

/* ---------- PAYMENT PAGE ---------- */
.pay { display: flex; justify-content: center; }
.pay-box { max-width: 520px; width: 100%; text-align: center; padding: 20px 0 80px; }
.pay-order { color: rgba(184,200,220,.6); font-size: 14px; margin: 12px 0 22px; letter-spacing: 1px; }
.pay-summary { border: 1px solid rgba(184,200,220,.12); background: var(--navy); padding: 20px 22px; text-align: left; margin-bottom: 26px; }
.pay-box form { display: flex; justify-content: center; }
.pay-btn { display: inline-block; width: 100%; max-width: 360px; text-align: center; }
.pay-crypto { margin-top: 6px; }
.pay-sub { font-size: 13px; color: rgba(184,200,220,.5); margin: 12px 0 20px; letter-spacing: .5px; }
.pay-error { color: #ff8a7a; font-family: var(--fd); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }

/* ---------- ORDER PAYMENT BANNERS ---------- */
.od-banner { max-width: 1400px; margin: 0 auto 26px; padding: 14px 18px; font-family: var(--fd); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border: 1px solid; }
.od-banner.paid { color: #2dcfb8; border-color: rgba(45,207,184,.45); background: rgba(45,207,184,.08); }
.od-banner.confirm { color: #e0a23b; border-color: rgba(224,162,59,.45); background: rgba(224,162,59,.08); }
.od-banner.fail { color: #ff8a7a; border-color: rgba(229,84,63,.45); background: rgba(229,84,63,.08); }
.od-wa { display: inline-block; margin-bottom: 14px; font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--silver); text-decoration: none; }
.od-wa:hover { color: var(--white); }

@media (min-width: 768px) {
  .co-row.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .co-wrap { grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
  .co-summary { position: sticky; top: 150px; }
  .od-wrap { grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
  .od-summary { position: sticky; top: 150px; }
  .ps-actions { flex-direction: row; justify-content: center; }
}

/* ---------- small phones: tighten the cart spacing ---------- */
@media (max-width: 480px) {
  .nav-right { gap: 14px; }
}
