/* products.css — PDP-only, scoped under .pdp */

/* ---------- Page gutters (never full-bleed) ---------- */
.pdp {
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
  padding-top: 24px;
  padding-bottom: 40px;
}

/* ---------- Grid: desktop = 2 columns, centered ---------- */
.pdp .pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;   /* image left, details right */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 !important; /* safety: block stray inline padding */
}

/* ---------- Media container ---------- */
.pdp .pdp-media {
  background: transparent !important; /* kill gray bg */
  box-shadow: none !important;        /* no shadows */
  padding: 0 !important;              /* no padding */
  border-radius: 12px;                /* optional rounded corners */
}

/* Image behavior */
.pdp .pdp-media img {
  display: block;
  width: 100%;
  max-height: 520px;        /* desktop ceiling */
  object-fit: contain;      /* show entire product */
  border-radius: 12px;
  margin: 0 auto;
}

/* ---------- Right column ---------- */
.pdp .pdp-aside {
  align-self: start;
  max-width: 560px; 
  position: sticky;   /* keep CTAs visible while scrolling */
  top: 96px;          /* clears header */
}

.pdp .product-title { margin: .35rem 0 .2rem; }
.pdp .product-desc  { margin: 0 0 .55rem; color: #444; }
.pdp .product-price { margin: .25rem 0 .8rem; font-weight: 700; }

/* CTAs: polished look */
.pdp .product-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 1rem 0 .85rem;
}

.pdp .product-ctas .buy-now,
.pdp .product-ctas .add-to-kit {
  min-height: 52px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.pdp .product-ctas .add-to-kit {
  box-shadow: none;
}

/* Proof line */
.pdp .product-microproof { margin: .5rem 0 1rem; }

/* Specs table */
.pdp .pdp-specs {
  width: 100%;
  border-collapse: collapse;
}
.pdp .pdp-specs td {
  padding: .5rem .25rem;
  border-bottom: 1px solid #eee;
}

/* Section headings */
.pdp .pdp-h3 { margin: 1.25rem 0 .5rem; }

/* --- Kill any lingering gray behind the product image --- */
.pdp #pdp-media,
.pdp #pdp-media * {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}

.pdp #pdp-media picture,
.pdp #pdp-media figure,
.pdp #pdp-media div {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 12px;
}

.pdp #pdp-media img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
}

/* ---------- Responsiveness ---------- */

/* Tablets: still 2 columns until it feels tight */
@media (max-width: 1024px) {
  .pdp .pdp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .pdp .pdp-media img { max-height: 440px; }
}

/* Phones / narrow tablets */
@media (max-width: 900px) {
  .pdp .pdp-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .pdp #pdp-media   { order: 0; }
  .pdp #pdp-details { order: 1; }

  .pdp .pdp-aside { 
    max-width: 680px; 
    position: static; /* stop stickiness on mobile */
  }

  .pdp .product-ctas {
    grid-template-columns: 1fr; /* stack buttons */
    gap: .6rem;
  }

  .pdp .pdp-media img { max-height: 360px; }
}

.pdp-variants { display:grid; gap:.75rem; margin:.5rem 0 1rem; }
.variant-group { display:grid; gap:.5rem; }
.variant-label { font-weight:600; font-size:.95rem; }
.variant-pills { display:flex; flex-wrap:wrap; gap:.5rem; }

/* ===========================
   Variant Pills — Active + Hover Styling
=========================== */
.variant-pill {
  border: 2px solid #e0e0e0; /* default neutral border */
  background: #fff;
  color: #0a1f44;
  font-weight: 600;
  border-radius: 999px;
  padding: .45rem .9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-pill:hover:not([disabled]) {
  border-color: #7c3aed; /* Purple hover outline */
  box-shadow: 0 0 0 2px rgba(124,58,237,.15);
}

.variant-pill[aria-checked="true"] {
  border-color: #7c3aed; /* Purple outline when selected */
  background: #fff;      /* Keep background white */
  color: #7c3aed;        /* Optional: make text purple too */
  box-shadow: 0 0 0 2px rgba(124,58,237,.2);
}

.variant-pill[disabled],
.variant-pill[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}


