/* ── Kalakriti Creations — Product Details Page Styles ────────────────── */
.product-wrap {
  max-width: 1200px;
  margin: 105px auto 30px;
  padding: 0 22px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-main, #665F59);
  opacity: .85;
  margin-bottom: 14px;
  font-size: .92rem;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--accent, #B86445);
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 36px;
  padding: 26px;
  border: 1px solid rgba(89, 67, 56, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.95);
  box-shadow: 0 24px 70px rgba(64, 45, 35, 0.10);
}

.main-image-frame {
  height: 520px;
  border-radius: 22px;
  overflow: hidden;
  background: #F4EFEA;
  border: 1px solid rgba(89, 67, 56, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.main-image-frame img:hover {
  transform: scale(1.03);
}

.thumb-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 14px;
  scrollbar-width: thin;
}
.thumb {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  padding: 4px;
  border: 1.5px solid rgba(89, 67, 56, 0.14);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.thumb.active {
  border-color: var(--accent, #B86445);
  box-shadow: 0 0 0 3px rgba(184, 100, 69, 0.20);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  color: #8F442F;
  background: #F3E1D8;
  border: 1px solid #E8CABC;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-info h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin: 12px 0 8px;
  color: #2D2926;
  font-weight: 800;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #2D2926;
  letter-spacing: -0.02em;
}

.stock {
  margin-top: 6px;
  color: #2e7d32;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ── Star Rating Bar Under Title ── */
.product-rating-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.product-rating-bar .stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-rating-bar .stars-gold {
  color: #FFA41C;
  font-size: 1.15rem;
  letter-spacing: 1px;
}
.product-rating-bar .rating-num {
  font-weight: 800;
  font-size: 1rem;
  color: #2D2926;
}
.product-rating-bar .reviews-count {
  font-size: 0.9rem;
  color: #665F59;
}
.btn-product-rate-pill {
  background: rgba(184, 100, 69, 0.08);
  color: #B86445;
  border: 1.5px solid rgba(184, 100, 69, 0.28);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-product-rate-pill:hover {
  background: #B86445;
  color: #ffffff;
  border-color: #B86445;
}

.lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #554F49;
  margin: 12px 0;
}

.option-block {
  margin: 18px 0;
}
.option-block label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: #2D2926;
}
.color-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-chip {
  border: 1.5px solid rgba(89, 67, 56, 0.16);
  background: #FFFDFC;
  color: #3B342F;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.color-chip:hover {
  border-color: #B86445;
}
.color-chip.active {
  color: #8F442F;
  background: #F3E1D8;
  border-color: #B86445;
}
.selected-option {
  font-size: 0.88rem;
  color: #665F59;
  margin-top: 8px;
  font-weight: 500;
}

/* ── UNIFIED 3 ACTION BUTTONS (ADD TO CART, BUY NOW, WHATSAPP) ── */
.product-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 12px;
}

.product-actions #addBtn,
.product-actions #buyBtn,
.product-actions .btn-whatsapp {
  height: 50px !important;
  min-height: 50px !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* 1. ADD TO CART Button — Rich Terracotta */
.product-actions #addBtn,
.product-actions .btn-primary {
  background: #B86445 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(184, 100, 69, 0.28) !important;
}
.product-actions #addBtn:hover,
.product-actions .btn-primary:hover {
  background: #9E4E32 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 100, 69, 0.38) !important;
}

/* 2. BUY NOW Button — Rich Terracotta Accent (Same design/fill, high contrast) */
.product-actions #buyBtn,
.product-actions .btn-secondary {
  background: #B86445 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(184, 100, 69, 0.28) !important;
}
.product-actions #buyBtn:hover,
.product-actions .btn-secondary:hover {
  background: #9E4E32 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 100, 69, 0.38) !important;
}

/* 3. WHATSAPP Button — Official Emerald Green with identical dimensions & typography */
.product-actions .btn-whatsapp {
  background: #25D366 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28) !important;
}
.product-actions .btn-whatsapp:hover {
  background: #1EBE5D !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38) !important;
}

/* ── Full Width Rate & Review Button below Action Row ── */
.btn-product-write-review-full {
  width: 100%;
  margin-top: 10px;
  height: 48px;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2D2926;
  background: #ffffff;
  border: 1.5px solid #FFA41C;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 164, 28, 0.15);
}
.btn-product-write-review-full:hover {
  background: #FFF8E7;
  border-color: #E68A00;
  color: #B86445;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 164, 28, 0.25);
}

/* ── Specs Grid ── */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.spec-grid div {
  padding: 14px 16px;
  border: 1px solid rgba(89, 67, 56, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 250, 0.72);
}
.spec-grid span {
  display: block;
  font-size: 0.8rem;
  color: #7A726B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.spec-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  color: #2D2926;
}

.product-id {
  font-size: 0.82rem;
  color: #8C847D;
  margin-top: 14px;
  font-family: monospace;
}

/* ── Product Details Section ── */
.details-card {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(89, 67, 56, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.90);
  box-shadow: 0 16px 50px rgba(64, 45, 35, 0.06);
}
.details-card h2 {
  font-size: 1.5rem;
  color: #2D2926;
  margin-top: 0;
}
.details-card p {
  line-height: 1.75;
  color: #4A433D;
}
.details-card h3 {
  margin-top: 18px;
  font-size: 1.15rem;
  color: #2D2926;
}

/* ── Customer Reviews Section (Product Details Page) ── */
.product-reviews-section {
  margin-top: 24px;
  padding: 30px;
  border: 1px solid rgba(89, 67, 56, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.95);
  box-shadow: 0 16px 50px rgba(64, 45, 35, 0.08);
}
.reviews-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(89, 67, 56, 0.12);
}
.reviews-header-left h2 {
  font-size: 1.6rem;
  margin: 0 0 6px;
  color: #2D2926;
}
.reviews-score-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-write-review-cta {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  background: #B86445;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(184, 100, 69, 0.28);
}
.btn-write-review-cta:hover {
  background: #9E4E32;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 100, 69, 0.38);
}
.reviews-cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.prod-review-card {
  padding: 20px;
  background: #FFFDFC;
  border: 1px solid rgba(89, 67, 56, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(64, 45, 35, 0.05);
  transition: transform 0.2s ease;
}
.prod-review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(64, 45, 35, 0.10);
}
.review-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F0DED5;
  color: #B86445;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.review-user-meta strong {
  display: block;
  font-size: 0.92rem;
  color: #2D2926;
}
.review-user-meta span {
  font-size: 0.78rem;
  color: #7A726B;
}
.review-badge-verified {
  font-size: 0.75rem;
  font-weight: 700;
  color: #28a745;
  background: rgba(40, 167, 69, 0.10);
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.prod-review-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #3B342F;
  margin: 10px 0 0;
}

/* ── Responsive Rules ── */
@media (max-width: 850px) {
  .product-shell {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .main-image-frame {
    height: 400px;
  }
  .product-wrap {
    margin-top: 85px;
  }
  .product-info h1 {
    font-size: 2.1rem;
  }
  .product-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .product-actions {
    grid-template-columns: 1fr;
  }
  .main-image-frame {
    height: 320px;
  }
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}
