:root {
  --sec-bg: #fcfaf8;
  --card-bg: #ffffff;
  --text-dark: #2c1e16;
  --text-muted: #6b5b53;
  --brand-accent: #9c5521;
  --brand-light: #fff0e5;
}

.products-listing-section {
  background-color: var(--sec-bg);
  padding: 80px 0 120px 0;
}

.video-prod-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px 20px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-prod-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(156, 85, 33, 0.08);
  border-color: rgba(156, 85, 33, 0.15);
}

.v-wish-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  z-index: 3;
  color: #777;
  transition: all 0.2s ease;
}
.v-wish-btn:hover {
  transform: scale(1.1);
  color: #e02020;
}

.v-img-box {
  height: 210px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f8f5f0;
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
}

/* 360 Degree Smooth Rotation Effect */
.v-img-box img {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-prod-card:hover .v-img-box img {
  transform: rotate(360deg) scale(1.1);
}

.v-rating {
  font-size: 0.75rem;
  color: #f39c12;
  margin-bottom: 6px;
  text-align: center;
}

.v-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  text-align: center;
  text-decoration: none;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v-title:hover {
  color: var(--brand-accent);
}

.v-weight {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 15px;
}

.v-bottom-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v-price {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
}

.v-action-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.v-btn-cart,
.v-btn-buy {
  flex: 1;
  padding: 10px 0;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #d2b48c;
}

.v-btn-cart {
  background: #ffffff;
  color: var(--text-dark);
}
.v-btn-cart:hover {
  background: #fdf4e6;
  border-color: var(--brand-accent);
}

.v-btn-buy {
  background: #5c2c16;
  color: #ffffff;
  border-color: #5c2c16;
}
.v-btn-buy:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  transform: translateY(-2px);
}

/* --- CIRCULAR PAGINATION (From Blog) --- */
.custom-pagination {
  margin-top: 60px;
  gap: 8px;
}
.custom-pagination .page-item .page-link {
  color: var(--text-dark);
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}
.custom-pagination .page-link:hover {
  background-color: var(--brand-light);
  color: var(--brand-accent);
  border-color: var(--brand-accent);
  transform: translateY(-2px);
}
.custom-pagination .page-item.active .page-link {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(156, 85, 33, 0.25);
}
.custom-pagination .page-item.disabled .page-link {
  color: #bdbdbd;
  background-color: #fafafa;
  border-color: rgba(0, 0, 0, 0.04);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ======================
PRODUCT DETAILS PAGE STYLING
=========================== */

:root {
  --brand-bg: #fcfaf8;
  --brand-dark: #2c1e16;
  --brand-muted: #6b5b53;
  --brand-accent: #9c5521;
  --brand-light: #fff0e5;
}

body {
  background-color: var(--brand-bg);
}
.product-detail-wrapper {
  padding: 50px 0 80px 0;
}

/* Sticky Left Column for Image */
.sticky-gallery {
  position: sticky;
  top: 100px; /* Header ke theek niche ruk jayega */
  z-index: 10;
}

.main-img-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
  position: relative;
}

.main-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.08));
  transition: transform 0.4s ease;
}
.main-img-box:hover img {
  transform: scale(1.05);
}

/* Thumbnails */
.thumb-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  justify-content: center;
}
.var-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #ffffff;
  padding: 8px;
  transition: all 0.3s ease;
  opacity: 0.6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.var-thumb:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.var-thumb.active-thumb {
  border-color: var(--brand-accent);
  opacity: 1;
  box-shadow: 0 8px 20px rgba(156, 85, 33, 0.15);
}

/* --- 2. RIGHT COLUMN: PRODUCT INFO --- */
.product-info-panel {
  padding-left: 20px;
}

.stock-badge {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.product-title {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.1;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.review-stars {
  font-size: 1.1rem;
  color: #f39c12;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.review-stars span {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--brand-muted);
  margin-left: 8px;
}

.price-wrap {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 25px;
  margin-bottom: 30px;
}
.current-price {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.total-price-hint {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  color: var(--brand-muted);
  font-weight: 600;
  margin-left: 10px;
}
.tax-inclusive {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #27ae60;
  font-weight: 600;
  display: block;
  margin-top: 5px;
}

/* Variations / Pack Size */
.section-label {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.variation-radio {
  display: none !important;
}
.variation-label {
  display: inline-block;
  cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  color: var(--brand-dark);
  background: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  margin-right: 8px;
}
.variation-label:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: var(--brand-light);
}
.variation-radio:checked + .variation-label {
  border-color: var(--brand-accent);
  background-color: var(--brand-accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(156, 85, 33, 0.25);
}

/* --- 3. ACTION BAR (QTY + ADD TO CART + BUY NOW) --- */
.action-bar {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-top: 30px;
}

.action-grid {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

/* Sleek Qty Selector */
.qty-control {
  display: flex;
  align-items: center;
  background: #f9f6f0;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 5px;
  width: 140px;
  justify-content: space-between;
}
.qty-btn {
  background: #ffffff;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--brand-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.qty-btn:hover {
  background: var(--brand-accent);
  color: #ffffff;
}
.qty-input {
  border: none;
  background: transparent;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  width: 40px;
  pointer-events: none;
}

/* The Missing Buttons */
.btn-action {
  flex: 1;
  padding: 16px 20px;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart {
  background: #ffffff;
  color: var(--brand-dark);
  border: 2px solid var(--brand-dark);
}
.btn-add-cart:hover {
  background: var(--brand-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-buy-now {
  background: var(--brand-accent);
  color: #ffffff;
  border: 2px solid var(--brand-accent);
}
.btn-buy-now:hover {
  background: #7a4219;
  border-color: #7a4219;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(156, 85, 33, 0.3);
}

/* Bulk Table */
.bulk-table-wrap {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}
.bulk-table-wrap table {
  font-family: "Inter", sans-serif;
}
.bulk-table-wrap th {
  background: #f9f6f0;
  color: var(--brand-dark);
  font-weight: 600;
  border: none;
  padding: 10px;
}
.bulk-table-wrap td {
  border-color: rgba(0, 0, 0, 0.05);
  padding: 12px;
  font-weight: 700;
  color: var(--brand-accent);
}

/* --- 4. DETAILED OVERVIEW (EDITORIAL STYLE) --- */
.editorial-desc {
  background: #ffffff;
  border-radius: 24px;
  padding: 60px;
  margin-top: 60px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.desc-heading {
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--brand-light);
}

.rich-content {
  font-family: "Inter", sans-serif;
  color: var(--brand-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}
.rich-content h1,
.rich-content h2,
.rich-content h3 {
  font-family: "Poppins", sans-serif;
  color: var(--brand-dark);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.rich-content h2 {
  font-size: 1.8rem;
}
.rich-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: none;
}
.rich-content ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
}
.rich-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: bold;
}
.rich-content p {
  margin-bottom: 1.5rem;
}

/* --- 5. EXACT INDEX PAGE PRODUCT CARD CSS FOR RELATED --- */
.video-prod-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 20px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.video-prod-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(156, 85, 33, 0.08);
  border-color: rgba(156, 85, 33, 0.15);
}
.v-wish-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  z-index: 3;
  color: #777;
  transition: all 0.2s ease;
}
.v-wish-btn:hover {
  transform: scale(1.1);
  color: #e02020;
}
.v-img-box {
  height: 210px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f8f5f0;
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
}
.v-img-box img {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-prod-card:hover .v-img-box img {
  transform: rotate(360deg) scale(1.1);
}
.v-rating {
  font-size: 0.75rem;
  color: #f39c12;
  margin-bottom: 6px;
  text-align: center;
}
.v-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
  text-align: center;
  text-decoration: none;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v-title:hover {
  color: var(--brand-accent);
}
.v-weight {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: var(--brand-muted);
  text-align: center;
  margin-bottom: 15px;
}
.v-bottom-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.v-price {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-align: center;
}
.v-action-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}
.v-btn-cart-sm,
.v-btn-buy-sm {
  flex: 1;
  padding: 10px 0;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #d2b48c;
}
.v-btn-cart-sm {
  background: #ffffff;
  color: var(--brand-dark);
}
.v-btn-cart-sm:hover {
  background: #fdf4e6;
  border-color: var(--brand-accent);
}
.v-btn-buy-sm {
  background: #5c2c16;
  color: #ffffff;
  border-color: #5c2c16;
}
.v-btn-buy-sm:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .sticky-gallery {
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }
  .product-info-panel {
    padding-left: 0;
  }
  .action-grid {
    flex-direction: column;
  }
  .qty-control {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .btn-action {
    width: 100%;
  }
  .editorial-desc {
    padding: 30px 20px;
  }
  .product-title {
    font-size: 2.2rem;
  }
}
