/* Product detail & checkout */

.product-page-wrap { padding: 2rem 0 4rem; }

.product-detail__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
.product-detail__title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15; margin: .35rem 0 .75rem;
}
.product-detail__price { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; }
.product-detail__highlights {
  list-style: none; padding: 0; margin: 0 0 1.25rem;
}
.product-detail__highlights li {
  padding: .45rem 0 .45rem 1.4rem; position: relative;
}
.product-detail__highlights li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700;
}

.gallery {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.gallery__main { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); cursor: pointer; font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.gallery__nav--prev { left: .75rem; }
.gallery__nav--next { right: .75rem; }
.gallery__thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery__thumb {
  border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden;
  width: 64px; height: 64px; cursor: pointer; background: none;
}
.gallery__thumb.is-active { border-color: var(--primary); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-order-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.qty-row { margin-bottom: 1rem; }
.qty-row label { display: block; font-weight: 600; margin-bottom: .35rem; }
.qty-control {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.qty-control button {
  width: 2.5rem; height: 2.5rem; border: 0; background: var(--bg); cursor: pointer; font-size: 1.1rem;
}
.qty-control input {
  width: 3rem; border: 0; text-align: center; font: inherit; background: transparent;
}
.bundle-check {
  display: flex; gap: .65rem; align-items: flex-start; margin-bottom: 1rem;
  padding: .85rem; background: var(--bg); border-radius: var(--radius-sm); cursor: pointer;
}
.live-total { margin: 0 0 1rem; }
.secure-note { font-size: .85rem; color: var(--muted); margin: .75rem 0 0; }
.form-errors {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  border-radius: var(--radius-sm); padding: .75rem; margin-bottom: 1rem;
}

.product-detail__info {
  margin-top: 3rem; display: grid; gap: 2rem;
}
.product-detail__info section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.spec-list { display: grid; gap: .75rem; }
.spec-list div { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; }
.spec-list dt { font-weight: 600; margin: 0; }
.spec-list dd { margin: 0; color: var(--muted); }
.product-reviews { display: grid; gap: 1rem; }
.product-review {
  margin: 0; padding: 1rem; background: var(--bg); border-radius: var(--radius-sm);
}
.product-review footer { margin-top: .5rem; font-size: .9rem; color: var(--muted); }

/* Checkout */
.checkout-layout {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; padding: 2rem 0 4rem;
}
.checkout-layout__intro h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.checkout-trust { list-style: none; padding: 0; }
.checkout-trust li { padding: .35rem 0 .35rem 1.3rem; position: relative; }
.checkout-trust li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700;
}
.checkout-fields, .checkout-order-review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.woocommerce-checkout .form-row { margin-bottom: .85rem; }
.woocommerce-checkout input, .woocommerce-checkout select, .woocommerce-checkout textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit;
}
#place_order { width: 100%; margin-top: 1rem; }

/* Thank you */
.thankyou { padding: 2rem 0 4rem; }
.thankyou__card {
  max-width: 720px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow);
}
.thankyou__hero h1 { font-family: var(--font-display); margin-top: 0; }
.thankyou__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0;
}
.thankyou__steps article {
  background: var(--bg); border-radius: var(--radius-sm); padding: 1rem;
}
.thankyou__line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line);
}
.thankyou__line--total { font-weight: 700; font-size: 1.1rem; border-bottom: 0; padding-top: 1rem; }
.thankyou__upsell {
  margin-top: 1.5rem; padding: 1rem; background: var(--bg); border-radius: var(--radius-sm);
}
.thankyou__actions { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .product-detail__grid, .checkout-layout, .thankyou__steps {
    grid-template-columns: 1fr;
  }
}
