/* =========================================================
   product.css — Product Detail Page Styles
   Maruti Creation CNC Craft
   ========================================================= */

/* ---- Breadcrumb Bar ---- */
.product-breadcrumb-bar {
  padding-top: calc(var(--nav-h) + 20px);
  padding-bottom: 0;
  background: var(--ivory);
}

.product-breadcrumb-bar .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--ash);
  letter-spacing: 0.06em;
}

.product-breadcrumb-bar .breadcrumb a {
  color: var(--copper);
  transition: color var(--transition);
}

.product-breadcrumb-bar .breadcrumb a:hover {
  color: var(--copper-light);
}

.breadcrumb-sep {
  color: var(--ivory-dark);
  font-size: 0.8rem;
}

/* ---- Product Page Wrapper ---- */
.product-page {
  background: var(--ivory);
}

/* ---- Product Main Layout ---- */
/* .product-main {
  padding-top: 32px;
} */

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---- Gallery ---- */
.product-gallery {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.product-main-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--ivory-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(44, 26, 14, 0.08);
}

.product-image-placeholder {
  font-size: 8rem;
  opacity: 0.25;
  user-select: none;
  transition: opacity 0.3s ease;
}

.product-main-image:hover .product-image-placeholder {
  opacity: 0.35;
}

.product-badge-new {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--copper);
  color: var(--white);
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.product-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(44, 26, 14, 0.7);
  color: var(--ivory);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  backdrop-filter: blur(4px);
}

.product-main-image:hover .product-zoom-btn {
  opacity: 1;
}

.product-zoom-btn:hover {
  transform: scale(1.1);
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.product-thumb {
  flex: 1;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 2px solid var(--ivory-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  overflow: hidden;
}

.product-thumb:hover {
  border-color: var(--copper-light);
  transform: translateY(-2px);
}

.product-thumb.active {
  border-color: var(--copper);
  box-shadow: 0 0 0 2px rgba(181, 98, 42, 0.2);
}

.thumb-placeholder {
  font-size: 1.6rem;
  opacity: 0.4;
  user-select: none;
}

/* ---- Product Info ---- */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-info-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-cat-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--copper);
  padding: 4px 10px;
  border-radius: 2px;
  width: fit-content;
}

.product-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--walnut);
}

/* ---- Rating ---- */
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-stars {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--ivory-dark);
  font-size: 1rem;
}

.star.filled {
  color: var(--gold);
}

.star.half {
  background: linear-gradient(90deg, var(--gold) 50%, var(--ivory-dark) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-rating-num {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--walnut);
}

.product-review-count {
  font-size: 0.82rem;
  color: var(--ash);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ---- Price Block ---- */
.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.product-price {
  font-family: var(--ff-body);
  /* font-size: 2.2rem; */
  font-weight: 900;
  color: var(--copper);
  line-height: 1;
}

.product-price-orig {
  font-size: 1.1rem;
  color: var(--ash);
  text-decoration: line-through;
}

.product-discount-badge {
  background: rgba(181, 98, 42, 0.12);
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--ff-mono);
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* ---- Short Description ---- */
.product-short-desc {
  color: var(--ash);
  font-size: 0.95rem;
  line-height: 1.75;
  border-left: 3px solid var(--copper);
  padding-left: 16px;
}

/* ---- Option Groups ---- */
.product-option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-option-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--walnut-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--ff-mono);
}

.product-option-hint {
  font-weight: 400;
  color: var(--ash);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--ff-body);
}

/* Size Buttons */
.product-size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  border: 1.5px solid var(--ivory-dark);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  min-width: 72px;
}

.size-btn:hover {
  border-color: var(--copper-light);
  transform: translateY(-2px);
}

.size-btn.active {
  border-color: var(--copper);
  background: rgba(181, 98, 42, 0.06);
  box-shadow: 0 0 0 2px rgba(181, 98, 42, 0.2);
}

.size-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--walnut);
}

.size-price {
  font-size: 0.72rem;
  color: var(--ash);
  margin-top: 2px;
  font-family: var(--ff-mono);
}

.size-btn.active .size-price {
  color: var(--copper);
}

/* Finish Buttons */
.product-finish-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.finish-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1.5px solid var(--ivory-dark);
  border-radius: 6px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--walnut);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.finish-btn:hover {
  border-color: var(--copper-light);
  transform: translateY(-1px);
}

.finish-btn.active {
  border-color: var(--copper);
  background: rgba(181, 98, 42, 0.06);
  box-shadow: 0 0 0 2px rgba(181, 98, 42, 0.2);
}

.finish-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.finish-natural { background: #D4B896; }
.finish-walnut  { background: #4A2C14; }
.finish-black   { background: #1A1A1A; }
.finish-white   { background: #F5EFE4; }

/* ---- Action Row ---- */
.product-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.maruti-cart-btn-detail{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 15px;
}

.product-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--ivory-dark);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  width: max-content;
}

.woocommerce a.added_to_cart{
  border: 1px solid var(--copper);
  border-radius: 4px;
  padding: 15px 24px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600 !important;
  letter-spacing: 0.04rem;
  color: var(--copper);
  transition: var(--transition);
      font-family: var(--ff-body) !important;
      /* display: none; */
}

.woocommerce a.added_to_cart:hover{
  transform: translateY(-2px);
  transition: var(--transition);
}

.woocommerce a.added_to_cart:hover{
  background-color: var(--copper);
  color: white;
}

.product-qty-control .qty-btn {
  width: 40px;
  height: 48px;
  background: var(--ivory-dark);
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--walnut);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.product-qty-control .qty-btn:hover {
  background: var(--copper);
  color: var(--white);
}

.product-qty-control .qty-val {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--walnut);
}

.product-add-btn {
  flex: 1;
  justify-content: center;
  padding: 15px 24px;
  font-size: 0.95rem;
}

/* ---- WhatsApp Button ---- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background: #25D366;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1fb558;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ---- Trust Strip ---- */
.product-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-radius: 8px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ash);
}

.trust-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* =========================================================
   Product Tabs Section
   ========================================================= */
.product-tabs-section {
  padding: 64px 0;
}

.product-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ivory-dark);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 14px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ash);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
  letter-spacing: 0.02em;
}

.tab-btn:hover { color: var(--walnut); }

.tab-btn.active {
  color: white;
  background-color: var(--copper);
  border-radius: 4px;
}

.tab-content {
  display: none;
  padding-top: 40px;
  animation: fadeIn 0.3s ease;
}

.tab-content.active { display: block; }

.tab-content-grid {
  display: grid;
  grid-template-columns: 1fr ;
  gap: 48px;
}

.tab-section-h {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--walnut);
  margin-bottom: 16px;
  margin-top: 28px;
}

.tab-section-h:first-child { margin-top: 0; }

.tab-body-text {
  /* color: var(--ash); */
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.tab-body-text p{
  margin-bottom: 10px;
}

.tab-body-text h2,
.tab-body-text h3,
.tab-body-text h4{
  margin-top: 15px;
  margin-bottom: 10px;
}

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.product-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ash);
  line-height: 1.55;
}

.product-features-list li::before {
  content: '✓';
  color: var(--copper);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Specs Table ---- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.specs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ivory-dark);
  vertical-align: top;
  line-height: 1.5;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--walnut-mid);
  width: 42%;
  white-space: nowrap;
}

.specs-table td:last-child { color: var(--ash); }

.specs-table tr:last-child td { border-bottom: none; }

.specs-table tr:nth-child(odd) td { background: rgba(245, 239, 228, 0.5); }

/* ---- Customize Tab ---- */
.customize-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.customize-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.customize-highlight-card {
  background: var(--walnut);
  color: var(--ivory);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chc-icon {
  font-size: 2.2rem;
}

.chc-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--copper-light);
}

.customize-highlight-card p {
  font-size: 0.88rem;
  color: rgba(245, 239, 228, 0.75);
  line-height: 1.65;
}

.customize-highlight-card .btn-outline {
  border-color: rgba(245, 239, 228, 0.4);
  color: var(--ivory);
  margin-top: 4px;
}

.customize-highlight-card .btn-outline:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--white);
}

/* ---- Reviews Tab ---- */
.reviews-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.reviews-summary {
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.reviews-avg {
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--walnut);
  line-height: 1;
}

.reviews-stars-big {
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin: 8px 0 4px;
}

.reviews-total {
  font-size: 0.8rem;
  color: var(--ash);
  margin-bottom: 20px;
}

.reviews-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ash);
}

.review-bar-row > span:first-child {
  min-width: 28px;
  text-align: right;
}

.review-bar-row > span:last-child {
  min-width: 20px;
  text-align: left;
}

.review-bar {
  flex: 1;
  height: 6px;
  background: var(--ivory-dark);
  border-radius: 99px;
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  width: var(--pct);
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.8s ease;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  border-radius: 8px;
  padding: 24px;
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--walnut);
  color: var(--ivory);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--walnut);
}

.review-date {
  font-size: 0.75rem;
  color: var(--ash);
  margin-top: 2px;
}

.review-stars {
  margin-left: auto;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--ash);
  line-height: 1.7;
}

/* =========================================================
   Related Products
   ========================================================= */
.related-header {
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 80vw;
  max-height: 90vh;
}

.lightbox-image {
  width: min(600px, 80vw);
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-placeholder {
  font-size: 10rem;
  opacity: 0.4;
}

.lightbox-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lightbox-prev,
.lightbox-next {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--copper);
  border-color: var(--copper);
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  min-width: 48px;
  text-align: center;
}

/* =========================================================
   Cart Nav Button fix
   ========================================================= */
.cart-nav-btn {
  border: none;
  cursor: pointer;
  background: var(--copper);
}

/* =========================================================
   Responsive — Product Page
   ========================================================= */
@media (max-width: 1100px) {
  .product-layout {
    gap: 40px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-gallery {
    position: static;
  }

  .product-main-image {
    max-width: 560px;
    margin-inline: auto;
  }

  .tab-content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .customize-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .reviews-summary {
    position: static;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .product-trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .product-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .product-qty-control {
    justify-content: center;
  }

  .product-add-btn {
    width: 100%;
    justify-content: center;
  }

  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-size-options {
    gap: 6px;
  }

  .size-btn {
    min-width: 60px;
    padding: 8px 10px;
  }

  .product-finish-options {
    gap: 6px;
  }

  .finish-btn {
    font-size: 0.76rem;
    padding: 8px 10px;
  }

  .tabs-nav {
    gap: 0;
  }

  .tab-btn {
    padding: 12px 14px;
    font-size: 0.8rem;
  }

  .product-price {
    font-size: 1.8rem;
  }

  .review-card-top {
    flex-wrap: wrap;
  }

  .review-stars {
    margin-left: 0;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .customize-cta-row {
    flex-direction: column;
  }

  .customize-cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .product-trust-strip {
    grid-template-columns: 1fr;
  }
}

.btn-buynow{
  border-radius: var(--radius) !important;
  background-color: var(--copper) !important;
}

.btn-buynow.disabled, .btn-buynow[disabled]{
  background-color: #ccc !important;
}

.mc-cart-toast{
  background-color: var(--copper) !important;
}