/* ===== ARCANE — PRODUCT DETAIL PAGE STYLES ===== */

/* ── Hero split ── */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-height));
  border-bottom: 1px solid var(--gray-dark);
}

.detail-hero-img {
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
}
.detail-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
  transition: transform 0.6s ease;
}
.detail-hero-img:hover img {
  transform: scale(1.03);
}

.detail-hero-info {
  background: var(--black);
  display: flex;
  align-items: center;
  overflow-y: auto;
}
.detail-hero-inner {
  padding: 64px 64px;
  max-width: 560px;
}

.back-link {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.25s;
  display: inline-block;
}
.back-link:hover { color: var(--white); }

.detail-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 8px 0 16px;
}

.detail-tagline {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: var(--purple-light);
  margin-bottom: 28px;
}

.detail-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-mid), transparent);
  margin-bottom: 28px;
}

.detail-intro {
  color: var(--white-muted);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 40px;
}

/* ── Signature series label ── */
.split-label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}

/* ── Back link bar ── */
.back-link-bar {
  display: flex;
  justify-content: flex-end;
  padding: 14px 28px;
  border-bottom: 1px solid var(--gray-dark);
}

.detail-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.detail-price {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}

.detail-price-note {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.detail-note {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── Features section ── */
.detail-section {
  border-bottom: 1px solid var(--gray-dark);
}
.detail-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}

.detail-section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  margin: 12px 0 20px;
  line-height: 1.2;
}
.detail-section-title.gradient-text {
  background: linear-gradient(90deg, var(--purple-light), var(--blue-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.detail-section-body {
  color: var(--white-muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.detail-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(55,58,54,0.5);
}
.detail-feature:first-child { padding-top: 0; }
.detail-feature:last-child  { border-bottom: none; }

.detail-feature-title {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.detail-feature-text {
  font-size: 0.85rem;
  color: var(--white-muted);
  line-height: 1.75;
}

/* ── Size guide ── */
.detail-size-section {
  border-bottom: 1px solid var(--gray-dark);
  background: var(--black-soft);
}
.size-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.size-section-header {
  margin-bottom: 56px;
}
.size-section-header .detail-section-title {
  margin-bottom: 0;
}

.size-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

/* How to measure */
.how-to-measure h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.measure-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.measure-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.measure-step-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--purple-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: var(--purple-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.measure-step-body {}
.measure-step-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.measure-step-text {
  font-size: 0.82rem;
  color: var(--white-muted);
  line-height: 1.7;
}
.size-tip {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 2px solid var(--purple-mid);
  background: rgba(80,7,120,0.07);
}
.size-tip p {
  font-size: 0.8rem;
  color: var(--white-muted);
  line-height: 1.65;
}
.size-tip strong {
  color: var(--purple-light);
  font-weight: 600;
}

/* Size table */
.size-table-wrap {
  border: 1px solid var(--gray-dark);
  overflow: hidden;
}
.size-table {
  width: 100%;
  border-collapse: collapse;
}
.size-table thead tr {
  background: rgba(80,7,120,0.12);
}
.size-table th {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--purple-light);
  padding: 18px 28px;
  text-align: left;
  border-bottom: 1px solid var(--gray-dark);
  font-weight: 400;
}
.size-table td {
  padding: 22px 28px;
  color: var(--white-muted);
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(55,58,54,0.45);
  vertical-align: middle;
}
.size-table tbody tr:last-child td { border-bottom: none; }
.size-table td:first-child {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--white);
}
.size-table tbody tr {
  transition: background 0.2s;
  cursor: default;
}
.size-table tbody tr:hover {
  background: rgba(80,7,120,0.1);
}
.size-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gray-dark);
  border-radius: 50%;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  color: var(--white);
  margin-right: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.size-table tbody tr:hover .size-badge {
  border-color: var(--purple-mid);
  background: rgba(80,7,120,0.2);
  color: var(--purple-light);
}
.size-measurement {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.size-measurement-value {
  font-size: 0.9rem;
  color: var(--white);
}
.size-measurement-unit {
  font-size: 0.68rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}

/* ── Also available ── */
.also-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.also-inner { }

.also-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 32px;
}

.also-card {
  display: flex;
  flex-direction: column;
  background: var(--black-card);
  overflow: hidden;
  transition: background 0.3s;
  cursor: pointer;
}
.also-card:hover { background: #120020; }

.also-img {
  height: 260px;
  background: var(--black) !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.also-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.5s ease;
}
.also-card:hover .also-img img { transform: scale(1.04); }

.also-label {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--purple-light);
  padding: 20px 24px 4px;
}
.also-name {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  padding: 0 24px 24px;
}

/* ── Size picker modal ── */
.size-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.size-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.size-modal {
  background: var(--black-soft);
  border: 1px solid var(--gray-dark);
  padding: 48px 40px;
  max-width: 400px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateY(14px);
  transition: transform 0.22s;
}
.size-modal-overlay.open .size-modal {
  transform: translateY(0);
}
.size-modal-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 6px;
  display: block;
  text-align: center;
}
.size-modal-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-align: center;
}
.size-modal-btns {
  display: flex;
  gap: 12px;
}
.size-pick-btn {
  flex: 1;
  background: none;
  border: 1px solid var(--gray-dark);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  padding: 20px 0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.size-pick-btn:hover {
  border-color: var(--purple-mid);
  background: rgba(80, 7, 120, 0.18);
  color: var(--purple-light);
}
.size-modal-cancel {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  padding: 0;
  transition: color 0.2s;
  font-family: 'Cinzel', serif;
}
.size-modal-cancel:hover { color: var(--white); }

/* Make <button> render like <a> for .btn */
button.btn {
  cursor: pointer;
  border: 1px solid var(--gray-dark);
  width: auto;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .detail-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .detail-hero-img {
    position: relative;
    top: 0;
    height: 72vw;
    min-height: 300px;
  }
  .detail-hero-inner {
    padding: 48px 24px;
  }
  .detail-section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px;
  }
  .size-section-inner { padding: 60px 24px; }
  .size-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .also-section { padding: 60px 24px; }
}

@media (max-width: 600px) {
  .detail-hero-inner { padding: 36px 20px; }
  .detail-name { font-size: 2.8rem; }
  .also-grid { grid-template-columns: 1fr; }
  .also-img { height: 52vw; }
  .size-section-inner { padding: 48px 20px; }
  .size-table th,
  .size-table td { padding: 16px 18px; }
}
