/* ===== Gaia Boutique: product detail page ===== */

#top {
  padding-top: 70px;
}

/* ===== breadcrumb ===== */
.breadcrumb {
  padding: 24px 40px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(0,0,0,.6);
}
.breadcrumb a {
  transition: opacity .2s var(--ease);
}
.breadcrumb a:hover {
  opacity: .6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb .crumb-sep {
  opacity: .4;
}
.breadcrumb .crumb-current {
  color: var(--black);
}

/* ===== layout ===== */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 40px 80px;
  align-items: start;
}

/* ===== gallery ===== */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-frame {
  width: 100%;
  /* Same 2:3 frame as the cards, and the whole garment inside it. */
  aspect-ratio: 2 / 3;
  height: auto;
  background: var(--ground);
}
/* The parallax rule in styles.css renders the image taller than its frame and
   slides it, which would clip a contained photograph back to a crop. Inside a
   product frame the image sits still and whole. Parallax is untouched
   everywhere else on the site. */
.product-frame .plx {
  height: 100%;
  margin-top: 0;
  transform: none;
  object-fit: contain;
}

/* ===== panel ===== */
.product-panel {
  position: sticky;
  top: 70px;
  padding: 24px 0 0 40px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: none;
}
.product-panel::-webkit-scrollbar {
  display: none;
}

.product-sku {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: .04em;
  margin: 0 0 10px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.15);
  margin-bottom: 18px;
}
.product-meta .product-price {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* ===== stats ===== */
.product-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.product-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-stat-value {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}
.product-stat-label {
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,.6);
}

/* ===== bullets ===== */
.product-bullets {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.product-bullets li {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.4;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,.15);
}
.product-bullets li:last-child {
  border-bottom: 1px solid rgba(0,0,0,.15);
}

/* ===== description ===== */
.product-description {
  margin-bottom: 16px;
}
.product-description p {
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 8px;
}
.read-more {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--black);
}

/* ===== size dropdown ===== */
.size-select {
  position: relative;
  margin-bottom: 10px;
}
.size-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  border: 1px solid var(--black);
  background: var(--white);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.size-btn:hover {
  background: var(--black);
  color: var(--white);
}
.size-list {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--black);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 5;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}
.size-select.open .size-list {
  display: block;
}
.size-option {
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.size-option:hover,
.size-option:focus {
  background: rgba(0,0,0,.06);
  outline: none;
}
.size-option[aria-selected="true"] {
  font-weight: 500;
}

/* ===== outline-dark button (outline on white background) ===== */
.btn-outline-dark {
  display: block;
  text-align: center;
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

.product-panel .btn {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 36px;
}

.product-preloved-note {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,.6);
  margin: 10px 0 0;
  text-align: center;
}

.product-contact-note {
  font-family: var(--font-serif);
  font-size: 14px;
  color: rgba(0,0,0,.55);
  margin: 8px 0 14px;
  text-align: center;
}

/* ===== accordion + next collectible row ===== */
.product-row-2col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.accordion {
  border-top: 1px solid rgba(0,0,0,.15);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: left;
}
.accordion-indicator {
  font-size: 15px;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.accordion-panel p {
  font-size: 17px;
  color: rgba(0,0,0,.7);
  padding-bottom: 16px;
  margin: 0;
}

.next-collectible {
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: opacity .2s var(--ease);
}
.next-collectible:hover {
  opacity: .6;
}

/* ===== category strip (current-product accordion state) ===== */
.cat-strip.has-current:not(:hover) .cat-card:nth-child(3):not(.is-current) {
  flex-basis: calc(13.3333% - 5px);
}
.cat-strip.has-current:not(:hover) .cat-card.is-current {
  flex-basis: calc(33.3333% - 5px);
}

/* Related pieces use the shared 2:3 card frame, like every other card. */

/* ===== responsive ===== */
@media (max-width: 1023px) {
  .product-panel {
    position: static;
    top: auto;
    padding: 0 40px;
    max-height: none;
    overflow: visible;
  }
  .product-layout {
    padding: 0 0 80px;
    gap: 24px;
  }
  .product-gallery {
    padding: 0 40px;
  }
}

@media (max-width: 767px) {
  .breadcrumb {
    padding: 16px 16px;
    flex-wrap: wrap;
  }
  .product-layout {
    display: block;
    padding: 0 0 48px;
  }
  .product-gallery {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .product-gallery::-webkit-scrollbar {
    display: none;
  }
  .product-frame {
    flex: 0 0 85vw;
    scroll-snap-align: start;
  }
  .product-panel {
    padding: 24px 16px 0;
  }
  .product-stats {
    gap: 8px;
  }
  .product-stat-value {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .accordion-panel {
    transition: none;
  }
}

/* Her writing about the maker, sitting under the piece description behind
   READ MORE. The heading keeps it clearly separate from the garment. */
.designer-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.1);
}
.designer-note .label {
  display: block;
  margin-bottom: 8px;
  opacity: .55;
}

/* A size she has sold out of: visible, so the shopper knows it exists, but
   not selectable. */
.size-option.is-gone {
  opacity: .4;
  cursor: default;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.size-gone {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.add-to-bag {
  width: 100%;
  text-align: center;
}

/* Shown when a link points at a piece that is no longer in the catalogue. */
.product-missing {
  padding: 140px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.product-missing-title {
  font-family: var(--font-serif);
  font-size: 26px;
}
.product-missing-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin-bottom: 12px;
}

/* Size chart, from the piece's measurements. Rendered only when there are any. */
.size-chart {
  margin: 0 0 16px;
  min-width: 0;
}
.size-chart .label {
  display: block;
  margin-bottom: 8px;
  color: rgba(0,0,0,.6);
}
.size-chart-scroll {
  overflow-x: auto;
}
.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-serif);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.size-chart-table th,
.size-chart-table td {
  padding: 6px 12px 6px 0;
  text-align: left;
  font-weight: 400;
  border-top: 1px solid rgba(0,0,0,.15);
  white-space: nowrap;
}
.size-chart-table tr:last-child th,
.size-chart-table tr:last-child td {
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.size-chart-table thead th {
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,.6);
  border-top: 0;
}
.size-chart-note {
  font-size: 16px;
  color: rgba(0,0,0,.7);
  margin: 10px 0 0;
}
