/* ══════════════════════════════════════════════
   PRODUCT PAGE STYLES
   ══════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.product-breadcrumb {
  padding: 7rem 5rem 0;
  max-width: 1400px; margin: 0 auto;
}
.product-breadcrumb nav {
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-light); display: flex; align-items: center; gap: .6rem;
}
.product-breadcrumb a { color: var(--text-light); text-decoration: none; transition: color .3s; }
.product-breadcrumb a:hover { color: var(--pink); }
.product-breadcrumb .sep { color: var(--pink); font-size: .55rem; }

/* ── Product Hero ── */
.product-hero {
  padding: 2.5rem 5rem 5rem;
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem;
  align-items: start;
}

/* Gallery */
.gallery { position: sticky; top: 100px; }
.gallery-main {
  width: 100%; aspect-ratio: 1/0.85; background: var(--cream-dark);
  border: 1px solid var(--border-soft); overflow: hidden; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.gallery-thumbs { display: flex; gap: .75rem; }
.gallery-thumb {
  width: 80px; height: 68px; background: var(--cream-dark);
  border: 2px solid transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s; overflow: hidden;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--pink); }

/* Product Info */
.product-info { padding-top: 1rem; }
.product-cat {
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pink); font-weight: 600; margin-bottom: .75rem;
  display: inline-block; padding: .3rem .7rem;
  background: rgba(240,63,122,0.06); border: 1px solid var(--border);
}
.product-title {
  font-family: var(--font-display); font-size: clamp(2rem,3.5vw,2.8rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.03em;
  color: var(--ink); margin-bottom: 1.2rem;
}
.product-desc {
  font-size: .88rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 2rem; max-width: 480px;
}
.product-price-row {
  display: flex; align-items: baseline; gap: .75rem;
  margin-bottom: .3rem;
}
.product-price {
  font-size: 2rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-body);
}
.product-price-unit { font-size: .85rem; color: var(--text-muted); font-weight: 400; }
.product-price-gst { font-size: .65rem; color: var(--text-light); margin-bottom: 2.5rem; letter-spacing: .05em; }

/* Size Selector */
.product-option-label {
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .6rem; font-weight: 500;
}

/* ── Size / Variation Pills ── */
.pc-variation-group { margin-bottom: 1.5rem; }
.pc-size-pills {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem;
}
.pc-size-pill {
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  line-height: 1;
}
.pc-size-pill:hover {
  border-color: var(--pink);
  background: rgba(240,63,122,0.06);
  color: var(--pink);
}
.pc-size-pill.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.pc-variation-select { display: none; }

/* WC variation price injection */
.woocommerce-variation-price { margin-bottom: .5rem; }
.woocommerce-variation-price .price {
  font-size: 1.6rem; font-weight: 700; color: var(--pink);
  font-family: var(--font-body);
}
.woocommerce-variation-price .price del { font-size: 1rem; color: var(--text-light); margin-right: .5rem; }

/* Disabled add-to-cart state */
.add-to-cart-btn.disabled,
.single_add_to_cart_button.disabled {
  background: var(--border); color: var(--text-light);
  cursor: not-allowed; pointer-events: none;
}

/* Quantity - override WC defaults */
.quantity-row { display: flex; align-items: center; gap: 1.5rem; margin-bottom: .6rem; }
.quantity-wrap { display: flex; align-items: center; border: 1.5px solid var(--border-soft); }
.quantity .qty,
.qty-input {
  width: 60px; height: 44px; border: none;
  text-align: center; font-family: var(--font-body); font-size: .85rem;
  color: var(--ink); outline: none; background: #fff;
  -moz-appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; }

.moq-notice {
  font-size: .65rem; color: var(--text-light); letter-spacing: .05em;
  margin-bottom: 2rem;
}
.moq-notice strong { color: var(--pink); font-weight: 600; }

/* Add to Cart */
.add-to-cart-btn,
.single_add_to_cart_button {
  width: 100%; padding: 1.1rem 2rem; background: var(--pink); color: #fff;
  font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; border: none;
  cursor: pointer; transition: background .3s, transform .15s;
  margin-bottom: 1rem; position: relative; overflow: hidden;
}
.add-to-cart-btn:hover,
.single_add_to_cart_button:hover { background: var(--pink-dark); }

.custom-print-link {
  display: block; text-align: center; font-size: .72rem;
  color: var(--text-muted); text-decoration: none; letter-spacing: .08em;
  transition: color .3s; padding: .5rem 0;
}
.custom-print-link:hover { color: var(--pink); }
.custom-print-link span { border-bottom: 1px solid var(--border); padding-bottom: 2px; }

/* ── Specs Section ── */
.specs-section {
  padding: 5rem 5rem;
  max-width: 1400px; margin: 0 auto;
  border-top: 1px solid var(--border-soft);
}
.specs-label {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pink); margin-bottom: .75rem; font-weight: 500;
}
.specs-title {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--ink); margin-bottom: 2.5rem; letter-spacing: -.02em;
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border-soft); }
.specs-table tr:nth-child(even) { background: var(--cream-dark); }
.specs-table td {
  padding: 1.1rem 1.5rem; font-size: .82rem; vertical-align: top;
}
.specs-table td:first-child {
  font-weight: 600; color: var(--ink); width: 240px;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.specs-table td:last-child { color: var(--text-muted); line-height: 1.6; }

/* ── Description Section ── */
.description-section {
  padding: 5rem 5rem;
  max-width: 1400px; margin: 0 auto;
  border-top: 1px solid var(--border-soft);
}
.desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.desc-label {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pink); margin-bottom: .75rem; font-weight: 500;
}
.desc-title {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--ink); margin-bottom: 2rem; letter-spacing: -.02em;
}
.desc-text p {
  font-size: .85rem; color: var(--text-muted); line-height: 1.9;
  margin-bottom: 1.5rem;
}
.desc-text p:last-child { margin-bottom: 0; }
.desc-text strong { color: var(--ink); font-weight: 600; }

/* ── Related Products ── */
.related-section {
  padding: 5rem 5rem;
  max-width: 1400px; margin: 0 auto;
  border-top: 1px solid var(--border-soft);
}
.related-label {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pink); margin-bottom: .75rem; font-weight: 500;
}
.related-title {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--ink); margin-bottom: 3rem; letter-spacing: -.02em;
}
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* Product card styles (scoped to related section) */
.related-section .product-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  text-decoration: none; color: inherit; display: block;
}
.related-section .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  z-index: 2;
}
.related-section .product-card:hover .card-img-wrap svg { opacity: .65; transform: scale(1.06); }
.related-section .product-card:hover .card-quick-add { transform: translateY(0); opacity: 1; }

.related-section .card-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.related-section .card-img-wrap svg { transition: transform .4s ease, opacity .3s; }
.related-section .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.related-section .card-overlay {
  position: absolute; inset: 0;
  background: rgba(240,63,122,0.04);
  opacity: 0; transition: opacity .3s;
}
.related-section .card-quick-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .8rem 1rem;
  background: var(--pink); color: #fff;
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; font-family: var(--font-body); font-weight: 600;
  transform: translateY(100%); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  cursor: pointer; border: none; text-decoration: none; display: block;
}
.related-section .card-quick-add.quote-btn { background: var(--charcoal); }

.related-section .card-badge {
  position: absolute; top: .85rem; left: .85rem;
  font-size: .5rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .22rem .55rem; font-family: var(--font-body); font-weight: 700;
  border-radius: 3px; z-index: 2;
}
.related-section .card-badge.buy   { background: var(--pink); color: #fff; }
.related-section .card-badge.quote { background: var(--charcoal); color: #fff; }
.related-section .card-badge.new   { background: var(--mint); color: #111; }

.related-section .card-body { padding: 1.2rem 1.2rem 1.4rem; }
.related-section .card-cat  {
  font-size: .57rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--pink); margin-bottom: .35rem; font-weight: 500;
}
.related-section .card-name {
  font-family: var(--font-display); font-size: .98rem; font-weight: 600;
  line-height: 1.25; color: var(--ink); margin-bottom: .45rem;
}
.related-section .card-desc {
  font-size: .7rem; color: var(--text-muted); line-height: 1.65; margin-bottom: .9rem;
}
.related-section .card-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.related-section .card-price { font-size: .8rem; font-weight: 600; color: var(--ink); }
.related-section .card-price .from {
  font-size: .58rem; font-weight: 400; color: var(--text-muted);
  display: block; margin-bottom: .1rem;
}
.related-section .card-price .quote-label {
  font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); display: inline-block;
  padding: .2rem .6rem; border: 1px solid var(--border-soft); border-radius: 3px;
}

/* ── Sticky Bar ── */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: #111; backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: .9rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transform: translateY(100%); transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.35);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-info { display: flex; align-items: center; gap: 1.25rem; }
.sticky-bar-name {
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  color: #fff; letter-spacing: -.01em;
}
.sticky-bar-divider {
  width: 1px; height: 20px; background: rgba(255,255,255,0.15);
}
.sticky-bar-price { font-size: .9rem; font-weight: 600; color: var(--pink); }
.sticky-bar-actions { display: flex; align-items: center; gap: .75rem; }
.sticky-bar-qty-wrap {
  display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
  overflow: hidden;
}
.sticky-qty-btn {
  width: 36px; height: 38px;
  background: rgba(255,255,255,0.06); border: none;
  color: #fff; font-size: 1.1rem; line-height: 1;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sticky-qty-btn:hover { background: rgba(255,255,255,0.14); }
.sticky-bar-qty-wrap input {
  width: 52px; padding: .5rem .25rem;
  background: transparent; border: none; border-left: 1px solid rgba(255,255,255,0.1); border-right: 1px solid rgba(255,255,255,0.1);
  outline: none; color: #fff; font-size: .82rem;
  font-family: var(--font-body); text-align: center;
}
.sticky-bar-qty-wrap input::-webkit-inner-spin-button,
.sticky-bar-qty-wrap input::-webkit-outer-spin-button { display: none; }
.sticky-add-btn {
  padding: .7rem 2rem; background: var(--pink); color: #fff;
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; border: none;
  border-radius: 6px; cursor: pointer;
  transition: background .25s, transform .2s;
}
.sticky-add-btn:hover { background: var(--pink-dark); transform: translateY(-1px); }

/* ── Responsive ── */
.product-hero { grid-template-columns: 1fr; gap: 2rem; padding: 1rem 1rem 2.5rem; }
.gallery { position: static; }
.desc-grid { grid-template-columns: 1fr; gap: 3rem; }
.related-grid { grid-template-columns: 1fr; }
.product-breadcrumb { padding: 6.5rem 1.5rem 0; }
.specs-section, .description-section, .related-section { padding: 2.5rem 1rem; }
.gallery-thumbs { gap: .5rem; }
.gallery-thumb { width: 60px; height: 50px; }
.sticky-bar { flex-direction: column; gap: .7rem; padding: .8rem 1rem; }
.sticky-bar-actions { width: 100%; justify-content: space-between; }
.sticky-bar-qty-wrap { flex: 1; }
.sticky-add-btn { flex: 2; text-align: center; }
.sticky-bar-name { font-size: .88rem; }
.sticky-bar-price { font-size: .82rem; }

@media (min-width: 480px) {
  .product-hero { padding: 1.5rem 1.5rem 3rem; gap: 2rem; }
  .specs-section, .description-section, .related-section { padding: 3rem 1.5rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .sticky-bar-name { font-size: .95rem; }
  .sticky-bar-price { font-size: .9rem; }
}
@media (min-width: 600px) {
  .gallery-thumbs { gap: .75rem; }
  .gallery-thumb { width: 80px; height: 68px; }
  .sticky-bar { flex-direction: row; gap: 0; padding: .7rem 1.5rem; }
  .sticky-bar-actions { width: auto; justify-content: initial; }
  .sticky-bar-qty-wrap { flex: initial; }
  .sticky-add-btn { flex: initial; text-align: left; }
}
@media (min-width: 900px) {
  .product-breadcrumb { padding: 7rem 5rem 0; }
  .product-hero { padding: 2rem 3rem 4rem; gap: 3rem; }
  .specs-section, .description-section, .related-section { padding: 5rem 5rem; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .sticky-bar { padding: .9rem 3rem; }
}
@media (min-width: 1100px) {
  .product-hero { grid-template-columns: 1.1fr 1fr; gap: 5rem; padding: 2.5rem 5rem 5rem; }
  .gallery { position: sticky; }
  .related-grid { grid-template-columns: repeat(4, 1fr); }
}
