/* A.Z TRADERS — storefront styles */

.page-product {
  --orbit-cap-height: 0px;
}

.page-product .a57-orbit-cap {
  display: none;
}

.page-product .page-main {
  --af57-pd-syne: "Syne", var(--display);
  --af57-pd-teal: #0B5E5E;
  --af57-pd-coral: #FF5E3A;
  --af57-pd-gold: #E8C547;
  --af57-pd-glass: rgba(255, 255, 255, 0.76);
  --af57-pd-glass-edge: rgba(255, 255, 255, 0.48);
  --af57-pd-ink: #0a1818;
  --af57-pd-muted: #5a7474;
  background:
    radial-gradient(ellipse 75% 50% at 0% 0%, rgba(11, 94, 94, 0.1), transparent 50%),
    radial-gradient(ellipse 55% 40% at 100% 10%, rgba(232, 197, 71, 0.08), transparent 45%),
    var(--linen);
  padding: 0 !important;
  min-height: calc(100vh - var(--dock-h));
}

.af57-pd-atelier {
  padding: clamp(1.25rem, 3vw, 2rem) var(--space-container) clamp(3rem, 7vw, 5rem);
  max-width: calc(1180px + var(--space-container) * 2);
  margin-inline: auto;
  animation: af57-pd-rise 0.55s var(--ease-smooth) both;
}

@keyframes af57-pd-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Breadcrumb */
.af57-pd-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: var(--af57-pd-muted);
}

.af57-pd-crumb a {
  color: var(--af57-pd-teal);
  font-weight: 600;
  text-decoration: none;
}

.af57-pd-crumb a:hover {
  color: var(--af57-pd-coral);
}

.af57-pd-crumb span[aria-current="page"] {
  color: var(--af57-pd-ink);
  font-weight: 600;
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Split: sticky gallery + scroll column ── */
.af57-pd-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* Sticky gallery */
.af57-pd-gallery-wrap {
  position: sticky;
  top: 0.75rem;
}

.af57-pd-gallery {
  position: relative;
  padding: 0.75rem;
  border-radius: 28px;
  background: var(--af57-pd-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--af57-pd-glass-edge);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 64px rgba(4, 47, 47, 0.12);
  overflow: hidden;
  cursor: zoom-in;
}

.af57-pd-gallery-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 94, 58, 0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(11, 94, 94, 0.12), transparent 45%);
  pointer-events: none;
  animation: af57-pd-glow-drift 8s ease-in-out infinite alternate;
}

@keyframes af57-pd-glow-drift {
  from { transform: translate(-2%, -1%) rotate(0deg); }
  to { transform: translate(2%, 2%) rotate(5deg); }
}

.af57-pd-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.af57-pd-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-smooth);
  will-change: transform;
}

.af57-pd-figure img.is-zoomed {
  transform: scale(1.5);
}

.af57-pd-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  color: var(--af57-pd-muted);
  opacity: 0.35;
}

.af57-pd-price-float {
  position: absolute;
  z-index: 2;
  bottom: 1.15rem;
  left: 1.15rem;
  padding: 0.6rem 0.95rem;
  border-radius: 16px;
  background: rgba(4, 47, 47, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
  box-shadow: 0 8px 24px rgba(4, 47, 47, 0.25);
}

.af57-pd-price-float strong {
  display: block;
  font-family: var(--af57-pd-syne);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--af57-pd-gold);
  line-height: 1;
}

.af57-pd-price-float span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.65);
}

.af57-pd-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.af57-pd-trust span {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 94, 94, 0.1);
  color: var(--af57-pd-muted);
}

/* Scroll column */
.af57-pd-scroll {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.af57-pd-intro {
  padding-bottom: 0.25rem;
}

.af57-pd-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 94, 58, 0.12);
  border: 1px solid rgba(255, 94, 58, 0.28);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c0391a;
}

.af57-pd-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--af57-pd-coral);
}

.af57-pd-intro h1 {
  margin: 0 0 0.35rem;
  font-family: var(--af57-pd-syne);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--af57-pd-ink);
}

.af57-pd-sku {
  margin: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--af57-pd-muted);
}

/* Tabs with glider */
.af57-pd-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
}

.af57-pd-tabs button {
  position: relative;
  z-index: 1;
  padding: 0.7rem 0.85rem;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--af57-pd-muted);
  font: inherit;
  font-family: var(--af57-pd-syne);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.28s;
}

.af57-pd-tabs button.is-active {
  color: var(--on-dark);
}

.af57-pd-tab-glider {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: calc((100% - 0.8rem) / 3);
  height: calc(100% - 0.8rem);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--af57-pd-teal), #0a6868);
  box-shadow: 0 6px 22px var(--meridian-glow);
  transition: transform 0.42s var(--ease-spring);
  pointer-events: none;
}

.af57-pd-tabs[data-active="specs"] .af57-pd-tab-glider { transform: translateX(100%); }
.af57-pd-tabs[data-active="notes"] .af57-pd-tab-glider { transform: translateX(200%); }

/* Tab panels */
.af57-pd-panels {
  position: relative;
  min-height: 200px;
}

.af57-pd-panel {
  display: none;
}

.af57-pd-panel.is-active {
  display: block;
  animation: af57-pd-panel-in 0.42s var(--ease-smooth) both;
}

@keyframes af57-pd-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.af57-pd-panel-title {
  margin: 0 0 1rem;
  font-family: var(--af57-pd-syne);
  font-size: 1rem;
  font-weight: 800;
  color: var(--af57-pd-ink);
}

.af57-pd-desc-card {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  border-radius: 22px;
  background: var(--af57-pd-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--af57-pd-glass-edge);
  box-shadow: 0 12px 36px rgba(4, 47, 47, 0.07);
}

.af57-pd-desc-card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--af57-pd-syne);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--af57-pd-teal);
}

.af57-pd-desc-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--af57-pd-muted);
}

/* Bento mini grid */
.af57-pd-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.af57-pd-bento-cell {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.af57-pd-bento-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11, 94, 94, 0.1);
}

.af57-pd-bento-wide {
  grid-column: 1 / -1;
}

.af57-pd-bento-cell span {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--af57-pd-muted);
  margin-bottom: 0.25rem;
}

.af57-pd-bento-cell strong {
  font-family: var(--af57-pd-syne);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--af57-pd-ink);
}

/* Spec grid */
.af57-pd-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0;
}

.af57-pd-spec-grid > div {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.af57-pd-spec-wide {
  grid-column: 1 / -1;
}

.af57-pd-spec-grid dt {
  margin: 0 0 0.15rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--af57-pd-muted);
}

.af57-pd-spec-grid dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--af57-pd-ink);
}

/* Notes list */
.af57-pd-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.af57-pd-notes-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: border-color 0.25s, transform 0.25s var(--ease-spring);
}

.af57-pd-notes-list li:hover {
  border-color: rgba(11, 94, 94, 0.2);
  transform: translateX(4px);
}

.af57-pd-notes-list strong {
  font-family: var(--af57-pd-syne);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--af57-pd-teal);
}

.af57-pd-notes-list span {
  font-size: 0.8125rem;
  color: var(--af57-pd-muted);
  line-height: 1.45;
}

/* Buy dock */
.af57-pd-buy-dock {
  position: sticky;
  bottom: calc(var(--dock-h, 0px) + 0.75rem);
  z-index: 10;
  padding: 0.85rem 1rem;
  border-radius: 22px;
  background: rgba(4, 47, 47, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(4, 47, 47, 0.28);
}

.af57-pd-buy-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.af57-pd-qty {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.af57-pd-qty label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
}

.af57-pd-stepper {
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.af57-pd-step-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.25s var(--ease-spring);
}

.af57-pd-step-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

.af57-pd-stepper input {
  width: 40px;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
  font-family: var(--af57-pd-syne);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--on-dark);
  -moz-appearance: textfield;
  transition: transform 0.28s var(--ease-spring);
}

.af57-pd-stepper input.is-pop {
  animation: af57-pd-pop 0.35s var(--ease-spring);
}

@keyframes af57-pd-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); color: var(--af57-pd-gold); }
  100% { transform: scale(1); }
}

.af57-pd-stepper input::-webkit-outer-spin-button,
.af57-pd-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.af57-pd-buy-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 80px;
}

.af57-pd-buy-meta span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
}

.af57-pd-buy-meta strong {
  font-family: var(--af57-pd-syne);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--af57-pd-gold);
  transition: transform 0.3s var(--ease-spring);
}

.af57-pd-buy-meta strong.is-tick {
  animation: af57-pd-pop 0.4s var(--ease-spring);
}

.af57-pd-add {
  flex: 1;
  min-width: 140px;
}

.af57-pd-add svg {
  width: 18px;
  height: 18px;
}

/* Buttons */
.af57-pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border: none;
  border-radius: var(--radius-full);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}

.af57-pd-btn-fill {
  background: linear-gradient(135deg, var(--af57-pd-coral), #e04a28);
  color: var(--on-dark);
  box-shadow: 0 8px 24px rgba(255, 94, 58, 0.35);
}

.af57-pd-btn-fill:hover {
  transform: translateY(-2px);
  color: var(--on-dark);
}

.af57-pd-btn-line {
  background: transparent;
  color: var(--af57-pd-teal);
  border: 2px solid rgba(11, 94, 94, 0.22);
}

.af57-pd-btn-line:hover {
  border-color: var(--af57-pd-teal);
}

/* Related horizontal track */
.af57-pd-related {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(11, 94, 94, 0.1);
}

.af57-pd-related header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.af57-pd-related header h2 {
  margin: 0;
  font-family: var(--af57-pd-syne);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
}

.af57-pd-related header a {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--af57-pd-teal);
}

.af57-pd-related header a:hover {
  color: var(--af57-pd-coral);
}

.af57-pd-related-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.35rem;
}

.af57-pd-related-track::-webkit-scrollbar { display: none; }

.af57-pd-rel {
  flex: 0 0 min(240px, 72vw);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--af57-pd-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--af57-pd-glass-edge);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
  animation: af57-pd-rise 0.45s calc(var(--rel-i, 0) * 0.06s) var(--ease-smooth) both;
}

.af57-pd-rel:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 94, 94, 0.12);
}

.af57-pd-rel-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.af57-pd-rel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-smooth);
}

.af57-pd-rel:hover .af57-pd-rel-media img {
  transform: scale(1.08);
}

.af57-pd-rel-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(4, 47, 47, 0.82);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af57-pd-gold);
}

.af57-pd-rel-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.af57-pd-rel-body > span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af57-pd-muted);
}

.af57-pd-rel-body h3 {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  flex: 1;
}

.af57-pd-rel-body h3 a {
  color: var(--af57-pd-ink);
  text-decoration: none;
}

.af57-pd-rel-body h3 a:hover {
  color: var(--af57-pd-coral);
}

.af57-pd-rel-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(11, 94, 94, 0.12);
}

.af57-pd-rel-foot strong {
  font-family: var(--af57-pd-syne);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--af57-pd-teal);
}

.af57-pd-rel-foot em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af57-pd-muted);
}

/* 404 */
.af57-pd-miss {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--dock-h) - 4rem);
  padding: 2rem var(--space-container);
}

.af57-pd-miss-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 28px;
  background: var(--af57-pd-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--af57-pd-glass-edge);
  box-shadow: 0 24px 56px rgba(4, 47, 47, 0.1);
}

.af57-pd-miss-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: rgba(11, 94, 94, 0.1);
  font-family: var(--af57-pd-syne);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--af57-pd-muted);
}

.af57-pd-miss-card h1 {
  margin: 0 0 0.5rem;
  font-family: var(--af57-pd-syne);
  font-size: 1.5rem;
  font-weight: 800;
}

.af57-pd-miss-card p {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--af57-pd-muted);
}

.af57-pd-miss-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .af57-pd-split {
    grid-template-columns: 1fr;
  }

  .af57-pd-atelier {
    padding-bottom: calc(clamp(3rem, 7vw, 5rem) + var(--dock-h));
  }

  .af57-pd-gallery-wrap {
    position: static;
  }

  .af57-pd-buy-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--dock-h);
    z-index: 30;
    border-radius: 22px 22px 0 0;
    margin: 0;
    box-shadow: 0 -12px 40px rgba(4, 47, 47, 0.28);
  }

  .af57-pd-scroll {
    padding-bottom: calc(var(--dock-h) + 6rem);
  }

  .af57-pd-spec-grid,
  .af57-pd-bento {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .af57-pd-crumb span[aria-current="page"] {
    max-width: 100%;
    white-space: normal;
  }

  .af57-pd-buy-form {
    flex-direction: column;
    align-items: stretch;
  }

  .af57-pd-add {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af57-pd-atelier,
  .af57-pd-panel.is-active,
  .af57-pd-rel,
  .af57-pd-gallery-glow,
  .af57-pd-stepper input.is-pop,
  .af57-pd-buy-meta strong.is-tick,
  .af57-pd-figure img {
    animation: none;
    transition: none;
  }
}
