/* ══════════════════════════════════════════
   SHOE INDIVIDUAL PAGE STYLES
   shoe-page.css — loaded by all shoe-*.html pages
   ══════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.breadcrumb a:hover { color: #1a6ec0; }
.breadcrumb__sep {
  margin: 0 var(--space-2);
  opacity: 0.5;
}

/* ── Product Detail Layout ── */
.shoe-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: start;
}
.shoe-detail__info {
  padding-left: var(--space-4);
}
@media (max-width: 900px) {
  .shoe-detail__layout { grid-template-columns: 1fr; gap: var(--space-3); }
  .shoe-detail__info { padding-left: 0; }
}

/* ── Gallery ── */
.shoe-detail.section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-16);
}

.shoe-detail__gallery {
}
/* On mobile: static layout, dots flow naturally below photo */
@media (max-width: 900px) {
  .shoe-detail__gallery {
    position: static;
  }
  .img-gallery {
    position: static;
    top: 0;
    z-index: auto;
  }
}

/* On small mobile: break gallery out to full viewport width, hide thumbnails */
@media (max-width: 600px) {
  .shoe-detail__gallery {
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
  }
  .img-gallery {
    position: static;
    top: 0;
  }
  .gallery-thumbs {
    display: none !important;
  }
}
.img-gallery {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  /* Safari-compatible ~1:1 ratio — aspect-ratio alone fails on iOS Safari */
  padding-bottom: 85%;
  height: 0;
}
.img-gallery__track {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.img-gallery__slide {
  min-width: 100%;
  height: 100%;
  background: #ffffff;
  flex-shrink: 0;
}
.img-gallery__slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.img-gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8,15,26,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 10;
}
.img-gallery__btn:hover { background: #1a6ec0; }
.img-gallery__btn--prev { left: var(--space-3); }
.img-gallery__btn--next { right: var(--space-3); }
/* gallery-photo-wrap: relative container so dots can be absolutely placed over photo on desktop */
.gallery-photo-wrap {
  position: static; /* mobile default: normal flow */
}
.img-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-3) 0;
}
/* Mobile: no dots shown */
@media (max-width: 900px) {
  .shoe-detail__layout { gap: var(--space-6); }
  .dots-desktop-only { display: none !important; }
  .dots-mobile-only { display: none !important; }
}
/* Desktop only: overlay dots centered at bottom of photo */
@media (min-width: 901px) {
  .dots-mobile-only { display: none !important; }
  .gallery-photo-wrap {
    position: relative;
  }
  .dots-desktop-only {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 0;
    margin: 0;
    width: auto;
  }
}
.img-gallery__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  border: none;
  padding: 0;
}
.img-gallery__dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.gallery-thumb {
  flex: 1;
  height: 120px;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid #e0ddd6;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.18s;
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.18s;
}
.gallery-thumb:hover { border-color: #1a6ec0; }
.gallery-thumb.active { border-color: #1a6ec0; }
.gallery-thumb:not(.active) img { opacity: 0.65; }

/* ── Product Info ── */
.shoe-detail__name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #c9a84c;
  margin: 0 0 var(--space-2);
  line-height: 1.2;
  padding-top: 0;
  overflow: visible;
}

.shoe-detail__overline {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a9ee0;
  margin-bottom: var(--space-4);
}
[data-theme="light"] .shoe-detail__overline { color: #1a6ec0; }

.shoe-detail__divider {
  width: 48px;
  height: 2px;
  background: #c9a84c;
  margin-bottom: var(--space-6);
}

.shoe-detail__desc {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-5);
  max-width: 52ch;
}

.shoe-detail__price {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
}

/* ── Selectors ── */
.selector-block {
  margin-bottom: var(--space-5);
}
.selector-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.select-dropdown {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-right: var(--space-10);
  background: var(--color-surface);
  border: 1.5px solid #c9a84c;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 400;
  border-radius: 3px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23c9a84c' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  transition: border-color 0.18s;
}
.select-dropdown:focus {
  outline: none;
  border-color: #1a6ec0;
}

.color-desc {
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-2);
  line-height: 1.6;
  min-height: 1.2em;
}

/* ── Order Button ── */
.btn--order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-4) var(--space-8);
  background: #1a6ec0;
  color: #fff;
  border: none;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
  margin-bottom: var(--space-6);
}
.btn--order:hover { background: #155aa0; }
.btn--order:disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* ── Features ── */
/* Gallery-column copy: visible on desktop, hidden on mobile */
@media (max-width: 900px) {
  .shoe-detail__gallery .shoe-detail__features,
  .shoe-detail__gallery .shoe-guide-links { display: none; }
}
/* Info-column mobile copy: hidden on desktop, visible on mobile */
.shoe-detail__features.features-mobile-copy,
.shoe-guide-links.features-mobile-copy { display: none; }
@media (max-width: 900px) {
  .shoe-detail__features.features-mobile-copy { display: flex; }
  .shoe-guide-links.features-mobile-copy { display: flex; }
}
.shoe-detail__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.shoe-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
}
.shoe-feature__icon {
  color: #c9a84c;
  font-size: 10px;
  flex-shrink: 0;
}

/* ── Nunzio Teaser (on Francesco page) ── */
.nunzio-teaser {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid #1a6ec0;
  background: rgba(26,110,192,0.06);
  text-decoration: none;
  transition: background 0.2s;
  margin-top: var(--space-2);
}
.nunzio-teaser:hover { background: rgba(26,110,192,0.12); }
.nunzio-teaser__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #1a6ec0;
  flex-shrink: 0;
}
.nunzio-teaser__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a6ec0;
  margin-bottom: 2px;
}
.nunzio-teaser__sub {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 300;
}

/* ── Other Styles Section ── */
.other-styles { padding-top: var(--space-14); padding-bottom: var(--space-14); }
.other-styles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
@media (max-width: 700px) {
  .other-styles__grid { grid-template-columns: 1fr; }
}
.other-style-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: visible;
  position: relative;
  transition: border-color 0.25s, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.other-style-card:hover {
  border-color: #1a6ec0;
  transform: translateY(-3px);
}
.other-style-card__img {
  position: relative;
  padding-bottom: 75%; /* 4:3 Safari-safe */
  height: 0;
  overflow: hidden;
  background: #ffffff;
}
.other-style-card__img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.other-style-card:hover .other-style-card__img img { transform: scale(1.04); }
.other-style-card__name {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #c9a84c;
  padding: var(--space-5) var(--space-5) var(--space-1);
  text-align: center;
  line-height: 1.4;
  overflow: visible;
}
.other-style-card__style {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a9ee0;
  padding: var(--space-1) var(--space-5) var(--space-4);
  text-align: center;
}
[data-theme="light"] .other-style-card__style { color: #1a6ec0; }

/* ── Checkout Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,15,26,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-10);
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: var(--space-5); right: var(--space-5);
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: var(--color-text-muted); line-height: 1; padding: 4px 8px;
}
.modal__close:hover { color: var(--color-text); }
.modal__overline {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #1a6ec0; display: block; margin-bottom: var(--space-2);
}
.modal__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: 400;
  color: var(--color-text); margin: 0 0 var(--space-1);
}
.modal__summary { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 300; }
.modal__divider { border: none; border-top: 1px solid var(--color-border); margin: var(--space-5) 0; }
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-2);
}
.form-input {
  width: 100%; padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg); color: var(--color-text);
  font-size: var(--text-sm); font-weight: 300;
  border-radius: 3px; transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: #1a6ec0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.modal__order-summary {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  padding: var(--space-5); border-radius: 4px; margin-bottom: var(--space-6);
}
.modal__order-row {
  display: flex; justify-content: space-between;
  font-size: var(--text-sm); color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.modal__order-row:last-child { margin-bottom: 0; }
.modal__order-total {
  display: flex; justify-content: space-between;
  font-size: var(--text-base); font-weight: 600; color: var(--color-text);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3); margin-top: var(--space-3);
}
.btn--checkout {
  width: 100%; padding: var(--space-4) var(--space-8);
  background: #1a6ec0; color: #fff; border: none;
  font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; border-radius: 3px; transition: background 0.2s;
}
.btn--checkout:hover { background: #155aa0; }
.modal__success { text-align: center; padding: var(--space-8) 0; display: none; }
.modal__success.visible { display: block; }
.modal__success-icon { font-size: 3rem; margin-bottom: var(--space-4); }
.modal__success h3 {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 400; color: var(--color-text); margin-bottom: var(--space-3);
}
.modal__success p {
  font-size: var(--text-sm); font-weight: 300;
  color: var(--color-text-muted); line-height: 1.7;
}

/* ── Footer (shoe pages inherit footer styles from style.css) ── */

/* ── Dropdown Nav ── */
.nav__dropdown-parent { position: relative; }
.nav__dropdown-trigger { display: inline-flex; align-items: center; cursor: pointer; }

/* Invisible bridge fills the gap so mouse can travel from trigger to menu */
.nav__dropdown-parent::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 16px;
  background: transparent;
  z-index: 199;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  min-width: 230px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  list-style: none;
  padding: var(--space-2) 0;
  margin: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s, transform 0.18s;
}
.nav__dropdown-parent:hover .nav__dropdown,
.nav__dropdown-parent:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav__dropdown li a {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav__dropdown li a:hover { color: var(--color-text); background: rgba(255,255,255,0.04); }
[data-theme="light"] .nav__dropdown li a:hover { background: rgba(0,0,0,0.04); }
.nav__dropdown-divider {
  border-top: 1px solid var(--color-border);
  margin: var(--space-2) 0;
}
.nav__dropdown-signature a { color: #1a6ec0 !important; }
.nav__dropdown li.nav__dropdown-signature a:hover { color: #4a9ee0 !important; background: rgba(26,110,192,0.06) !important; }

/* ══════════════════════════════════════════
   LIGHTBOX / ZOOM
   ══════════════════════════════════════════ */
#shoe-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#shoe-lightbox.open {
  display: flex;
}
#lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
}
#lb-img-wrap {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  animation: lb-in 0.22s cubic-bezier(0.16,1,0.3,1);
  user-select: none;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
#lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}
#lb-close:hover { background: rgba(255,255,255,0.22); }
#lb-prev,
#lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}
#lb-prev { left: 20px; }
#lb-next { right: 20px; }
#lb-prev:hover,
#lb-next:hover { background: rgba(255,255,255,0.22); }
#lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-family: var(--font-body, sans-serif);
  letter-spacing: 0.1em;
}
/* Zoom cursor on gallery */
.img-gallery__track { cursor: zoom-in; }

/* ── Guide Links ── */
.shoe-guide-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.shoe-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.shoe-guide-link:hover {
  color: var(--color-primary);
}
.shoe-guide-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.shoe-guide-links__divider {
  color: var(--color-border);
  font-size: 1rem;
}

/* ══════════════════════════════════════
   MOBILE LAYOUT FIXES
   ══════════════════════════════════════ */

/* Desktop-only: push info column down to align with white image top */
@media (min-width: 901px) {
  .shoe-detail__info--desktop-offset {
    padding-top: 52px;
  }
}

/* Mobile: no dots at all */
@media (max-width: 900px) {
  .img-gallery__dots { display: none !important; }
}

/* Mobile: remove the desktop offset from info column */
@media (max-width: 900px) {
  .shoe-detail__info {
    padding-top: 0 !important;
  }
}

/* Mobile features copy: hidden by default, shown below cart on mobile */
.shoe-features-mobile {
  display: none;
}
@media (max-width: 900px) {
  .shoe-features-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
  }
  /* Also hide the gallery-column features on mobile */
  .shoe-detail__gallery .shoe-detail__features,
  .shoe-detail__gallery .shoe-guide-links {
    display: none !important;
  }
}
