/* =========================================
   HYPE & HUES – PREMIUM PDP
========================================= */

body {
background: linear-gradient(
  to bottom right,
  #FDF8F6,
  #FAF0EE,
  #F5E6E0
);
min-height: 100vh;
}

/* PAGE WRAPPER (CENTERS CONTENT) */
.pdp-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* MAIN GRID */
.pdp-container {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 80px;
  align-items: start;
}


/* =========================================
   PDP GALLERY – LEFT THUMBS STYLE
========================================= */

.pdp-gallery {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 25px;
  background: #efe7e4;
  padding: 30px;
  border-radius: 30px;
}

/* THUMBS COLUMN */
.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.25s ease;
}

.gallery-thumb:hover {
  transform: scale(1.05);
}

.gallery-thumb.active {
  border-color: #b76e79;
}

/* MAIN IMAGE */
.pdp-main-image {
  background: #fff;
  border-radius: 25px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-main-image img {
  max-height: 480px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.pdp-main-image img {
  transition: opacity 0.25s ease;
}

.img-fade-out {
  opacity: 0;
}
/* =========================================
   RIGHT DETAILS
========================================= */

/*  RATING + PURCHASE SEAL */

.hh-meta {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 15px;
}

/* STARS */

.stars {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars-row {
  display: flex;
  gap: 4px;
}

.star-wrap {
  position: relative;
  width: 20px;
  height: 20px;
}

.star-outline {
  color: #e5e5e5;
  position: absolute;
}

.star-fill {
  color: #d4a017;
  position: absolute;
  clip-path: inset(0 100% 0 0);
}

.rating-num {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* PURCHASE SEAL */

.purchase-seal {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #efe7e4;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.seal-tick {
  color: #b76e79;
}

.pdp-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  margin-bottom: 20px;
}

.pdp-price-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.main-price {
  font-size: 32px;
  font-weight: 700;
}

.mrp {
  text-decoration: line-through;
  color: #999;
}

.discount {
  color: #c2410c;
  font-weight: 600;
}

/* ======================================
   STOCK STATUS
====================================== */

.pdp-stock {
  margin-top: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* In Stock */
.stock-available {
  color: #2e7d32;
}

/* Low Stock */
.stock-low {
  color: #d35400;
  animation: pulseStock 1.5s infinite;
}

/* Out of Stock */
.stock-out {
  color: #c0392b;
}

/* Optional subtle pulse for low stock */
@keyframes pulseStock {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* =========================================
   SHADE
========================================= */

.shade-section {
  margin-bottom: 30px;
}

.shade-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.shade-options {
  display: flex;
  gap: 12px;
}

.shade-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.shade-circle.active {
  transform: scale(1.15);
  border-color: #b76e79;
}

.shade-circle.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  position: relative;
}

.shade-circle.disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
}

.shade-circle.disabled::before {
  content: "✕";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  font-weight: bold;
}

/* =========================================
   QUANTITY
========================================= */

.qty-box {
  margin-bottom: 25px;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-selector button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.qty-selector input {
  width: 40px;
  text-align: center;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px;
}

/* =========================================
   BUTTONS
========================================= */

.action-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.btn-primary {
  background: #b76e79;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  padding: 14px 40px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  color: #b76e79;
  border: 2px solid #b76e79;
  background: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid #b76e79;
  color: #b76e79;
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline:hover {
  background: #b76e79;
  color: #fff;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ======================================
   WISHLIST BUTTON
====================================== */

.wishlist-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid #eee;
}

.wishlist-circle:hover {
  transform: scale(1.08);
}

.heart-svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:#555;
  stroke-width:1.5;
  transition:0.3s ease;
}

.wishlist-circle.active .heart-svg{
  fill:#e63946;
  stroke:#e63946;
  transform: scale(1.1);
  animation: popHeart 0.25s ease;
}

@keyframes popHeart {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1.1); }
}

/* =========================================
   INFO CARD
========================================= */

.info-card {
  margin-top: 30px;
  background: #e9e1dd;
  padding: 22px;
  border-radius: 20px;
  display: flex;
  gap: 50px;
}

.info-item strong {
  display: block;
  font-size: 15px;
}

.info-item span {
  font-size: 13px;
  color: #777;
}

/* =========================================
   DESCRIPTION
========================================= */

.pdp-description {
  margin-right: 20%;
  margin-left: 20%;
  margin-top: 80px;
  background: #e9e1dd;
  padding: 20px;
  border-radius: 25px;
}

/* =========================================
   REVIEW SECTION - PREMIUM STYLING
========================================= */

.review-section{
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 20px;
}

/* ===== Summary Card ===== */

.review-summary{
  background: #f8f5f4;
  padding: 40px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  max-width:850px;
  margin:0 auto;
  gap: 60px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.review-left{
  min-width: 200px;
}

.stars {
  display:flex;
  gap:4px;
}

.star-wrap {
  position:relative;
  width:20px;
  height:20px;
}

.star-outline {
  position:absolute;
  color:#ddd;
}

.star-fill {
  position:absolute;
  color:#f4b400;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s ease;
}

.avg-rating{
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  color: #111;
}

.avg-stars{
  margin: 8px 0;
}

.avg-stars .star{
  font-size: 20px;
}

.based-on{
  color: #777;
  font-size: 14px;
}

/* ===== Breakdown ===== */

.review-breakdown{
  flex: 1;
}

.break-row{
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 14px;
}

.bar{
  flex: 1;
  height: 10px;
  background: #e9e6e4;
  border-radius: 50px;
  overflow: hidden;
}

.bar .fill{
  height: 100%;
  background: linear-gradient(90deg,#b76e79,#d99898);
  border-radius: 50px;
  transition: width 0.4s ease;
  animation: growBar 0.6s ease forwards;
}

@keyframes growBar{
  from{ width:0; }
}

/* ===== CTA ===== */

.review-cta{
  margin-top: 40px;
  background: #f8f5f4;
  padding: 25px 30px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-cta strong{
  font-size: 16px;
}

.review-cta p{
  font-size: 14px;
  color: #777;
  margin-top: 4px;
}

/* ===== Review Form ===== */

.review-form-wrapper{
  overflow:hidden;
  max-height:0;
  opacity:0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  pointer-events:none;
}

.review-form-wrapper.active{
  max-height:900px;
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
  margin-top:25px;
}

.review-form-wrapper h3{
  margin-bottom: 15px;
}

.rating-star{
  font-size: 28px;
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rating-star:hover{
  transform: scale(1.2);
}

.rating-star.active{
  color: #f4b400;
}

.review-form-wrapper textarea{
  width: 100%;
  min-height: 120px;
  margin-top: 15px;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #eee;
  font-family: inherit;
  resize: none;
}

.review-actions{
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

/* ===== Review List ===== */

.review-list{
  margin-top: 40px;
}

.review-card{
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
  transition: transform 0.2s ease;
}

.review-card:hover{
  transform: translateY(-3px);
}

.review-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.review-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.review-user{
  display:flex;
  align-items:center;
  gap:12px;
}

.avatar{
  width:45px;
  height:45px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  color:#fff;
  background: linear-gradient(135deg,#b76e79,#e8a6a6);
  font-size:16px;
}

.user-meta strong{
  display:block;
  font-size:14px;
}

.verified-badge{
  display:inline-block;
  margin-top:4px;
  font-size:11px;
  padding:4px 10px;
  border-radius:20px;
  background:#e6f7ec;
  color:#2e7d32;
}

.review-head strong{
  font-size: 15px;
}

.review-card p{
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}

.upload-section{
  margin-top:15px;
}

.upload-btn{
  display:inline-block;
  padding:8px 16px;
  border:1px dashed #b76e79;
  border-radius:30px;
  cursor:pointer;
  color:#b76e79;
  font-size:13px;
  transition:0.3s;
}

.upload-btn:hover{
  background:#b76e79;
  color:#fff;
}

.preview-images{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.preview-images img{
  width:70px;
  height:70px;
  object-fit:cover;
  border-radius:10px;
}

/* ===== Verified Badge ===== */

.verified{
  background: #e6f7ec;
  color: #2e7d32;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 12px;
  margin-left: 10px;
  font-weight: 500;
}

/* ===== Review Images ===== */

.review-images{
  margin-top: 15px;
  display: flex;
  gap: 12px;
}

.review-images img{
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.review-images img:hover{
  transform: scale(1.05);
}

/* ===== Load More Button ===== */

#loadMoreReviews{
  margin-top: 20px;
  padding: 10px 25px;
  font-family: 'Poppins', sans-serif;
  border-radius: 12px;
  border: 1px solid #b76e79;
  background: transparent;
  color: #b76e79;
  cursor: pointer;
  transition: all 0.3s ease;
}

#loadMoreReviews:hover{
  background: #b76e79;
  color: #fff;
}

.image-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.9);
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.image-modal img{
  max-width:85%;
  max-height:85%;
  border-radius:16px;
}

#closeModal{
  position:absolute;
  top:30px;
  right:40px;
  font-size:40px;
  color:#fff;
  cursor:pointer;
}

#mainProductImage{
  cursor: zoom-in;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1000px){

.pdp-wrapper{
padding:40px 24px;
}

.pdp-gallery{
grid-template-columns:70px 1fr;
padding:22px;
gap:18px;
}

.gallery-thumb{
width:60px;
height:60px;
}

.pdp-main-image{
padding:24px;
}

.pdp-title{
font-size:32px;
}

.main-price{
font-size:28px;
}

.info-card{
gap:30px;
flex-wrap:wrap;
}

.pdp-description{
margin-left:8%;
margin-right:8%;
}

}

@media(max-width: 1000px){ 
    
    .pdp-container { 
        grid-template-columns: 1fr; 
        gap: 50px; 
        
    } 
    .pdp-main-image img { 
        max-height: 400px; 
        
    } 
    
}

@media(max-width:768px){

.pdp-wrapper{
padding:28px 18px;
}

.pdp-container{
gap:35px;
}

/* Gallery becomes vertical */

.pdp-gallery{
grid-template-columns:1fr;
padding:18px;
}

/* Thumbs become horizontal */

.pdp-thumbs{
flex-direction:row;
overflow-x:auto;
gap:10px;
padding-bottom:6px;
}

.gallery-thumb{
width:70px;
height:70px;
flex:0 0 auto;
}

/* Main image */

.pdp-main-image{
padding:18px;
}

.pdp-main-image img{
max-height:320px;
}

/* Product title */

.pdp-title{
font-size:26px;
}

/* Price block */

.main-price{
font-size:24px;
}

/* Shade selector */

.shade-options{
flex-wrap:wrap;
}

/* Info card */

.info-card{
flex-direction:column;
gap:14px;
}

/* Description */

.pdp-description{
margin-left:0;
margin-right:0;
margin-top:50px;
}

.review-summary{
flex-direction:column;
gap:30px;
padding:30px;
}

.review-left{
min-width:auto;
}

.review-cta{
flex-direction:column;
align-items:flex-start;
gap:14px;
}

.review-actions{
flex-direction:column;
}

}

@media(max-width:768px){

.wishlist-circle{
width:48px;
height:48px;
}

}

/* =========================================
   MOBILE FIXED ACTION BAR
========================================= */

@media (max-width: 768px){

  .action-buttons{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    gap: 12px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }

  .action-buttons button{
    flex: 1;
    height: 48px;
    font-size: 15px;
  }

  /* Prevent content hiding behind fixed bar */
  body{
    padding-bottom: 80px;
  }

}

@media(max-width:480px){

.pdp-title{
font-size:22px;
}

.main-price{
font-size:22px;
}

.pdp-main-image img{
max-height:260px;
}

.gallery-thumb{
width:60px;
height:60px;
}

.qty-selector button{
width:32px;
height:32px;
}

.qty-selector input{
width:36px;
}

.review-summary{
padding:22px;
}

.review-card{
padding:20px;
}

.review-images img{
width:70px;
height:70px;
}

}

@media(max-width:480px){

.action-buttons{
gap:10px;
padding:10px 12px calc(10px + env(safe-area-inset-bottom));
}

.action-buttons button{
flex:1;
font-size:13px;
padding:12px 14px;
white-space:nowrap;
}

}