/* ============ PRODUCT DETAIL PAGE ============ */
.bastani-pdp {
  max-width: 1400px;
  margin: 0 auto;
}

/* Breadcrumb */
.pdp-breadcrumb {
  padding: 22px 64px 0;
  font-size: 12px;
  color: rgba(26,20,16,0.5);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdp-breadcrumb a {
  color: rgba(26,20,16,0.5);
  text-decoration: none;
}
.pdp-breadcrumb a:hover { color: var(--maroon); }

/* Main layout */
.pdp-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  padding: 30px 64px 80px;
}

/* Gallery */
.pdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.pdp-gallery-main {
  aspect-ratio: 1/1;
  background: var(--ivory-deep);
  position: relative;
  overflow: hidden;
}
.pdp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}
.pdp-gallery-main .wishlist-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
}
.pdp-gallery-main .wishlist-btn svg { width: 19px; height: 19px; }

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pdp-thumb {
  aspect-ratio: 1/1;
  background: var(--ivory-deep);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.pdp-thumb.active { border-color: var(--maroon); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Info panel */
.pdp-info .eyebrow { margin-bottom: 16px; }

.pdp-info h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  margin-bottom: 14px;
}

/* Rating */
.pdp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.pdp-rating .stars { display: flex; gap: 2px; color: var(--gold); }
.pdp-rating .stars .star { color: var(--gold); font-size: 14px; }
.pdp-rating span { font-size: 12.5px; color: rgba(26,20,16,0.5); }

/* WooCommerce star rating override */
.woocommerce-product-rating .star-rating {
  color: var(--gold);
  font-size: 14px;
}

/* Price */
.pdp-price {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  margin-bottom: 6px;
  color: var(--ink);
}
.pdp-price del { color: rgba(26,20,16,0.35); font-size: 17px; margin-right: 8px; }
.pdp-price ins { text-decoration: none; }
.pdp-tax-note { font-size: 12px; color: rgba(26,20,16,0.45); margin-bottom: 22px; }

/* Description */
.pdp-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(26,20,16,0.7);
  font-weight: 300;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* Swatches */
.pdp-swatches {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.pdp-swatches-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.pdp-swatches-head p { font-size: 13px; color: rgba(26,20,16,0.5); margin: 0; }
.selected-name { font-size: 13px; color: var(--ink); font-weight: 500; }
.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatch:hover { transform: translateY(-2px); }
.swatch.active { border-color: var(--maroon); }

/* Specs */
.pdp-specs {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.pdp-spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(26,20,16,0.06);
}
.pdp-spec-row p:first-child { color: rgba(26,20,16,0.5); margin: 0; }
.pdp-spec-row p:last-child { color: var(--ink); margin: 0; }

/* Purchase */
.pdp-purchase { margin-bottom: 24px; }
.pdp-qty-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}
.qty-stepper button {
  width: 40px;
  height: 46px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
  transition: background 0.2s;
}
.qty-stepper button:hover { background: var(--ivory-deep); }
.qty-stepper span {
  width: 44px;
  text-align: center;
  font-size: 14px;
  font-family: 'Jost', sans-serif;
}
.pdp-stock {
  font-size: 12.5px;
  color: var(--maroon-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pdp-stock .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--maroon-deep);
}
.pdp-stock.out { color: rgba(26,20,16,0.4); }

.pdp-cta-row { display: flex; gap: 12px; }

/* Override WooCommerce add to cart button */
.pdp-cta-row .single_add_to_cart_button,
.btn-add-cart {
  flex: 1;
  background: var(--ink) !important;
  color: var(--ivory) !important;
  border: none !important;
  padding: 17px 28px !important;
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
  font-family: 'Jost', sans-serif !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: auto !important;
}
.pdp-cta-row .single_add_to_cart_button:hover,
.btn-add-cart:hover {
  background: var(--maroon) !important;
}

.btn-pdp-wishlist {
  width: 54px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.btn-pdp-wishlist:hover { border-color: var(--maroon); }
.btn-pdp-wishlist svg {
  width: 19px;
  height: 19px;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: fill 0.2s, color 0.2s;
}
.btn-pdp-wishlist.active svg { fill: var(--maroon); color: var(--maroon); }

/* Accordion */
.pdp-accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 2px;
  cursor: pointer;
}
.acc-head h4 { font-size: 14px; font-weight: 500; margin: 0; letter-spacing: 0.02em; }
.acc-head .plus { width: 18px; height: 18px; position: relative; flex-shrink: 0; }
.acc-head .plus::before,
.acc-head .plus::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.acc-head .plus::before { width: 100%; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.acc-head .plus::after { width: 1.5px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.acc-item.open .acc-head .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-item.open .acc-body { max-height: 600px; }
.acc-body-inner { padding: 0 2px 20px; }
.acc-body-inner p { font-size: 14px; line-height: 1.75; color: rgba(26,20,16,0.65); font-weight: 300; margin-bottom: 10px; }

/* Reviews */
.pdp-reviews-wrap {
  padding: 70px 64px;
  border-top: 1px solid var(--line);
}
.woocommerce-Reviews-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 32px;
}
.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  border: 1px solid var(--line);
  padding: 12px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  width: 100%;
  background: var(--ivory);
  outline: none;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form-comment textarea:focus {
  border-color: var(--maroon);
}
#submit {
  background: var(--ink);
  color: var(--ivory);
  border: none;
  padding: 14px 28px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: background 0.3s;
}
#submit:hover { background: var(--maroon); }

/* Related products */
.pdp-related {
  padding: 70px 64px;
  border-top: 1px solid var(--line);
}
.pdp-related-head { margin-bottom: 40px; }
.pdp-related-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 12px;
}
.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Mobile */
@media (max-width: 900px) {
  .pdp-breadcrumb, .pdp-main, .pdp-reviews-wrap, .pdp-related {
    padding-left: 20px;
    padding-right: 20px;
  }
  .pdp-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 20px;
  }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); }
  .pdp-related-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-spec-row { grid-template-columns: 120px 1fr; }
}
