/* ══════════════════════════════════════════════
   FLEXI PRO — PDP Stylesheet
   Loaded after style.css (reuses all base vars)
══════════════════════════════════════════════ */

/* ── PDP HERO ────────────────────────────────── */

.pdp-hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 60px;
}

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Left: shoe */
.pdp-shoe-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.pdp-shoe-col .shoe-glow {
  width: 300px;
  height: 300px;
}

.pdp-shoe-col .shoe-img {
  max-width: 280px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 52px rgba(0,0,0,.7));
}

/* Right: info */
.pdp-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdp-tag {
  display: inline-block;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 5px 14px;
  align-self: flex-start;
}

.pdp-name {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: .95;
  letter-spacing: -2px;
}

.pdp-subtitle {
  color: #888;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -4px;
}

.pdp-desc {
  color: #bbb;
  line-height: 1.8;
  font-size: 1.2rem;
  max-width: 480px;
}

/* Mini specs row */
.pdp-mini-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0;
}

.mini-spec {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 14px;
  font-size: .8rem;
}

.mini-spec .ms-icon     { font-size: 1rem; }
.mini-spec .ms-icon-img { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.mini-spec .ms-value    { font-weight: 500; }

/* CTA row */
.pdp-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-outline-red {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}

.btn-outline-red:hover {
  background: var(--red);
  color: #fff;
}

/* ── SPECS SECTION ───────────────────────────── */

.pdp-specs-section {
  background: #1a1616;
  padding: 90px 0;
}

.pdp-specs-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 40px;
}

/* 3×N grid */
.pdp-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top:  3px solid #fff;
  border-left: 3px solid #fff;
}

.pdp-spec-cell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 28px;
  border-right:  3px solid #fff;
  border-bottom: 3px solid #fff;
}

.sc-icon-wrap {
  display: flex;
  align-items: flex-start;
}

.sc-icon-wrap img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.sc-icon-only {
  padding: 5px 20px;
  gap: 0;
}

.sc-icon-only .sc-icon-wrap img {
  width: 112px;
  height: 112px;
}

.sc-body { display: flex; flex-direction: column; gap: 6px; }

.sc-title {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff;
}

.sc-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.7;
  margin: 0;
}

/* mobile: 1 col */
@media (max-width: 599px) {
  .pdp-specs-grid { grid-template-columns: 1fr; }
}

/* ── CROSS-SELL ──────────────────────────────── */

.cross-sell {
  background: var(--dark);
  padding: 80px 0 0;
}

.cross-sell--hombre { background: var(--red, #a72526); }
.cross-sell--mujer  { background: #8EC5C5; }

.cross-sell--hombre h2,
.cross-sell--mujer  h2 { color: #fff; }

.cross-sell--hombre p,
.cross-sell--mujer  p  { color: rgba(255,255,255,.7); }

.cross-sell--hombre .cross-card:hover { border-top-color: #fff; }
.cross-sell--mujer  .cross-card:hover { border-top-color: #fff; }

.cross-sell--hombre .cross-btn:hover,
.cross-sell--mujer  .cross-btn:hover  { color: rgba(255,255,255,.6); }

.cross-sell--mujer  .cross-dots .dot.active { background: #fff; }
.cross-sell--hombre .cross-dots .dot.active { background: #fff; }

.cross-sell .cs-header {
  padding-bottom: 40px;
}

.cross-sell h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.cross-sell p {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
}
/* ── Carousel ── */
.cross-carousel {
  display: flex;
  align-items: center;
}

.cross-overflow {
  flex: 1;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.cross-overflow:active { cursor: grabbing; }

.cross-track {
  display: flex;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}

.cross-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 12px;
  transition: color .2s;
  flex-shrink: 0;
}
.cross-btn:hover { color: var(--red); }

.cross-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 24px 0 60px;
}

.cross-card {
  flex: 0 0 80%;
  background: #1a1616;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-top: 2px solid transparent;
  transition: border-color .3s, background .3s;
}

.cross-card:hover {
  background: #221d1d;
  border-top-color: var(--red);
}

.cross-card-img {
  padding: 30px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  min-height: 180px;
}

.cross-card-img img {
  max-width: 160px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.18));
  transition: transform .4s ease;
}

.cross-card:hover .cross-card-img img {
  transform: translateY(-6px) scale(1.04);
}

.cross-card-body {
  padding: 18px 22px 24px;
}

.cross-gender {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}

.cross-card-body h3 {
  font-size: 1.1rem;
  font-weight: 900;
  font-style: italic;
  margin-bottom: 12px;
}

.cross-link {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  letter-spacing: .5px;
  transition: color .25s;
}

.cross-card:hover .cross-link { color: #fff; }

/* ── DESKTOP ≥ 900px ─────────────────────────── */

@media (min-width: 900px) {

  .pdp-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
  }

  .pdp-shoe-col .shoe-glow  { width: 460px; height: 460px; }
  .pdp-shoe-col .shoe-img   { max-width: 480px; }

  .cross-card { flex: 0 0 25%; }
}

@media (min-width: 1200px) {
  .pdp-shoe-col .shoe-img { max-width: 560px; }
}

/* ── NOTIFY MODAL ─────────────────────────────── */

.notify-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
}

.notify-backdrop.open { display: block; }

.notify-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 94vw);
  max-height: 90svh;
  overflow-y: auto;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 0;
  padding: 40px 36px 36px;
  z-index: 1001;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
}

.notify-modal.open { display: block; }

.notify-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.notify-close:hover { color: #111; }

.notify-modal h3 {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.notify-sub {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 28px;
}

.notify-form { display: flex; flex-direction: column; gap: 16px; }

.nf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nf-field { display: flex; flex-direction: column; gap: 6px; }

.nf-field label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #444;
}

.nf-field input {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 10px 12px;
  font-size: .9rem;
  color: #111;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.nf-field input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,.15);
}

.nf-error {
  font-size: .82rem;
  color: var(--red, #a72526);
  margin: 0;
}

.nf-submit { margin-top: 8px; width: 100%; }

.notify-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0 8px;
  text-align: center;
}

/* Ensure the HTML [hidden] attribute is respected even when CSS sets display */
.notify-success[hidden],
.notify-form[hidden] { display: none !important; }

.ns-check {
  font-size: 2.4rem;
  color: #2a9d5c;
}

@media (max-width: 480px) {
  .notify-modal { padding: 32px 20px 24px; }
  .nf-row { grid-template-columns: 1fr; }
}

/* ── 360° Viewer ── */
.viewer360 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-drag: none;
}

.viewer360__img { pointer-events: none; }

.viewer360__hint {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  transition: opacity .4s;
}
