/* =========================
   Buttons (scoped to product)
   ========================= */
.page-product .btn-luxury {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--primary-dark);
  color: var(--primary-dark);
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 600;
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}

.page-product .btn-luxury:hover {
  background: var(--primary-dark);
  color: #fff;
}

.page-product .btn-luxury.light {
  border-color: #fff;
  color: #fff;
}

.page-product .btn-luxury.light:hover {
  background: #fff;
  color: var(--primary-dark);
}

/* Helper: buttons with icon */
.page-product .btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-product .btn-luxury.btn-with-icon .btn-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.9;
  transform: translateX(0);
  transition: var(--transition);
}

.page-product .btn-luxury.btn-with-icon:hover .btn-icon {
  transform: translateX(-4px);
  opacity: 1;
}

/* =========================
   Product shell layout
   ========================= */
.page-product .product-shell {
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 24px;
  overflow: hidden;
  align-items: stretch;
}

/* Image column */
.page-product .product-shell .carousel {
  height: auto;
  overflow: hidden;
  align-self: stretch;
}

.page-product .product-shell .carousel,
.page-product .product-shell .product-content {
  flex: 1 1 0;
}

/* Image fills container */
.page-product .product-shell .carousel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.page-product .product-shell .carousel:hover > img {
  transform: scale(1.1);
}

/* Mobile stacking */
@media (max-width: 640px) {
  .page-product .product-shell {
    flex-direction: column;
  }

  .page-product .product-shell .carousel {
    min-height: 320px;
  }

  .page-product .product-content {
    padding: 2rem;
  }
}

/* =========================
   Carousel helpers
   ========================= */
.page-product .carousel {
  position: relative;
  min-height: 560px;
  background: #f0f0f0;
}

.page-product .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.page-product .carousel-slide.active {
  opacity: 1;
}

.page-product .carousel-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.page-product .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.page-product .carousel-arrow:hover {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}

.page-product .carousel-prev {
  left: 20px;
}

.page-product .carousel-next {
  right: 20px;
}

.page-product .carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
}

.page-product .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  cursor: pointer;
  transition: 0.3s;
}

.page-product .dot.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* =========================
   Product content block
   ========================= */
.page-product .product-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-product .product-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.page-product .product-title {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.page-product .product-desc {
  font-size: 0.98rem;
  color: #666;
  line-height: 1.95;
  margin-bottom: 1.25rem;
}

/* =========================
   Specs toggle + table
   ========================= */
.page-product .spec-toggle {
  width: max-content;
  padding: 0.85rem 1.4rem;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: 0.25s;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--primary-dark);
}

.page-product .spec-toggle:hover {
  border-color: var(--primary-dark);
}

.page-product .chev {
  transition: transform 0.25s ease;
  display: inline-block;
}

.page-product .spec-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

/* Expandable specs table */
.page-product .specs-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s ease,
    margin 0.4s ease;
  margin-top: 0;
}

.page-product .specs-wrap.open {
  max-height: 420px;
  opacity: 1;
  margin-top: 1.2rem;
}

.page-product table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.92rem;
}

.page-product th,
.page-product td {
  text-align: left;
  padding: 0.95rem 0.9rem;
  border-bottom: 1px solid #eee;
}

.page-product th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-weight: 600;
  background: #fafafa;
}

.page-product td {
  color: #666;
}

/* =========================
   Accessories grid
   ========================= */
.page-product .extras {
  padding: 3.5rem var(--container-padding);
}

.page-product .extras h2 {
  font-size: 2.2rem;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.page-product .extras p {
  max-width: 850px;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 300;
}

.page-product .accessories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.page-product .acc-card {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 14px 40px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.page-product .acc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(0,0,0,0.08);
}

.page-product .acc-img {
  height: 150px;
  background: #f0f0f0;
  overflow: hidden;
}

.page-product .acc-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.page-product .acc-body {
  padding: 1.1rem 1.1rem 1.3rem;
}

.page-product .acc-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.page-product .acc-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  font-weight: 300;
}

/* =========================
   Lightbox
   ========================= */
.page-product .lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 6000;
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-product .lightbox.active {
  display: block;
  opacity: 1;
}

.page-product .lightbox-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-product .lightbox-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-product .lightbox-slide.active {
  opacity: 1;
}

.page-product .lightbox-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-product .lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.page-product .lb-arrow:hover {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}

.page-product .lb-prev {
  left: 24px;
}

.page-product .lb-next {
  right: 24px;
}

.page-product .lb-arrow svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.page-product .lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  transition: all 0.25s ease;
  font-size: 20px;
  line-height: 1;
}

.page-product .lb-close:hover {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}

/* =========================
   Base animations / responsive
   ========================= */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .page-product .carousel {
    min-height: 420px;
  }

  .page-product .product-content {
    padding: 2rem;
  }

  .page-product .accessories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-product .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 640px) {
  .page-product .accessories-grid {
    grid-template-columns: 1fr;
  }

  .page-product .icon-only-mobile .btn-text {
    display: none;
  }

  .page-product .icon-only-mobile {
    padding: 0.9rem 1rem;
    width: auto;
    min-width: 48px;
    justify-content: center;
    gap: 0;
  }

  .page-product .icon-only-mobile .btn-icon {
    width: 18px;
    height: 18px;
  }
}

/* =========================================================
   New: product body v2
   ========================================================= */
.page-product .product-body-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-product .product-row {
  display: flex;
  gap: 22px;
  align-items: stretch;
}

.page-product .product-row.reverse {
  flex-direction: row-reverse;
}

.page-product .product-col {
  flex: 1 1 0;
  min-width: 0;
}

.page-product .media-card {
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}

.page-product .media-card img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.page-product .single-note {
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1.6rem 2rem;
}

.page-product .single-note h2 {
  font-size: 1.65rem;
  font-style: italic;
  margin-bottom: 0.6rem;
}

.page-product .single-note p {
  color: #666;
  font-size: 0.98rem;
  line-height: 1.95;
}

/* ===== Buttons row: equal width ===== */
.page-product .product-actions {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

/* column wrapper */
.page-product .product-actions .action-item {
  min-width: 0;
}

/* all buttons inside product-actions fill column */
.page-product .product-actions .btn-luxury,
.page-product .product-actions .spec-toggle {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

/* mobile: stack actions */
@media (max-width: 640px) {
  .page-product .product-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Colours panel */
.page-product .colours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 0.6rem;
}

.page-product .colour-chip {
  border: 1px solid #eee;
  background: #fff;
  padding: 0.9rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-product .colour-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  flex: 0 0 auto;
}

.page-product .colours-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 0.75rem;
}

.page-product .colour-tile {
  border: 1px solid #eee;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 10px;
}

.page-product .colour-tile .swatch {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.18);
}

.page-product .colour-tile .name {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-dark);
  text-align: center;
}

/* Keep 3 columns on most phones; 2 on very small */
@media (max-width: 360px) {
  .page-product .colours-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive for new layout */
@media (max-width: 1024px) {
  .page-product .product-row,
  .page-product .product-row.reverse {
    flex-direction: column;
  }

  .page-product .media-card img {
    min-height: 420px;
  }

  .page-product .colours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-product .colours-grid {
    grid-template-columns: 1fr;
  }
}

/* Misc */
.page-product .iti {
  width: 100%;
}
