/* ══════════════════════════════════════════════════
   TBD Single Product Page — layout + component CSS
   ══════════════════════════════════════════════════ */

/* ── Hide default WooCommerce single product wrappers ── */
.woocommerce-notices-wrapper,
.woocommerce-breadcrumb          { display: none; }

/* ── Product section grid ──────────────────────────────── */
.tbdn-product .tbdn-product-grid {
  align-items: flex-start;
  gap: 3rem;
  padding-block: 4rem;
}

/* ── LEFT: Carousel ────────────────────────────────────── */
.tbd2-carousel {
  position: relative;
}

.tbd2-carousel-track {
  overflow: hidden;
  border-radius: 1rem;
}

.tbd2-slide {
  display: none;
  margin: 0;
}
.tbd2-slide.is-active {
  display: block;
}
.tbd2-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

/* Dot navigation */
.tbd2-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tbd2-carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s, background 0.2s;
}
.tbd2-carousel-dots button.is-active {
  background: currentColor;
  opacity: 1;
}

/* ── RIGHT: Product panel ──────────────────────────────── */
.tbdn-product-panel {
  padding-block-start: 0.5rem;
}

/* Kicker */
.tbdn-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-block-end: 0.5rem;
  opacity: 0.6;
}

/* Title */
.tbdn-product-panel h1.wp-block-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin-block-end: 1.25rem;
}

/* ── Shell option pills ────────────────────────────────── */
.tbd2-shell-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 1.5rem;
}
.tbd2-shell-options strong {
  display: block;
  width: 100%;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-block-end: 0.35rem;
}
.tbd2-shell-option {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  opacity: 0.7;
}
.tbd2-shell-option:hover {
  opacity: 1;
}
.tbd2-shell-option.is-active {
  background: var(--wp--preset--color--foreground, #111);
  color: var(--wp--preset--color--background, #fff);
  border-color: var(--wp--preset--color--foreground, #111);
  opacity: 1;
}

/* ── Highlights pills ──────────────────────────────────── */
.tbdn-product-panel h3.wp-block-heading {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-block-end: 0.6rem;
}
.tbdn-highlight-pills {
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block-end: 1.5rem;
}
.tbdn-highlight-pills p {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  margin: 0;
  white-space: nowrap;
}

/* ── Price + add-to-cart row ───────────────────────────── */
.tbd2-purchase-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block-end: 1.5rem;
}
.tbd2-price .woocommerce-Price-amount {
  font-size: 1.4rem;
  font-weight: 700;
}
.tbd2-add-to-cart-trigger {
  flex: 1;
  min-width: 160px;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.tbd2-add-to-cart-trigger.tbd2-needs-selection {
  animation: tbd-shake 0.4s ease;
}
@keyframes tbd-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* ── Accordion details ─────────────────────────────────── */
.tbdn-product-detail {
  border-top: 1px solid rgba(0,0,0,0.12);
  padding-block: 0.85rem;
}
.tbdn-product-detail:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.tbdn-product-detail summary {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tbdn-product-detail summary::after {
  content: '↓';
  font-size: 0.9rem;
  transition: transform 0.2s;
}
.tbdn-product-detail[open] summary::after {
  transform: rotate(180deg);
}
.tbdn-product-detail p {
  margin-block-start: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* ── Hide the variation form (it's just a data source) ─── */
.tbd2-variation-form { display: none !important; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .tbdn-product .tbdn-product-grid {
    flex-direction: column;
  }
  .tbdn-product-visuals,
  .tbdn-product-panel {
    flex-basis: 100% !important;
  }
}

/* ── Carousel arrows ────────────────────────────────────── */
.tbd2-carousel {
  position: relative;
}

.tbd2-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
  opacity: 0;
  padding: 0;
}

/* Show arrows on carousel hover */
.tbd2-carousel:hover .tbd2-carousel-arrow {
  opacity: 1;
}

.tbd2-carousel-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.tbd2-carousel-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tbd2-carousel-prev {
  left: 14px;
}

.tbd2-carousel-next {
  right: 14px;
}

/* On mobile: always visible (no hover state) */
@media (max-width: 768px) {
  .tbd2-carousel-arrow {
    opacity: 1;
    width: 36px;
    height: 36px;
  }
  .tbd2-carousel-prev { left: 8px; }
  .tbd2-carousel-next { right: 8px; }
}