/* =======================================================
   KamalaTreats Product Detail Stylesheet: Individual Product Page
   ======================================================= */

/* =======================================================
   Product Detail Page - LUXURY EXPERIENCE (From components.css)
   ======================================================= */
.product-detail {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
grid-template-columns: 500px 1fr; /* Fixed image width */
  gap: 50px;
  align-items: start;
  max-width: var(--max-width);
  margin: 60px auto;
  padding: 0 20px;
  position: relative;
}

/* .product-detail::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
} */


.product-detail img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Enforce square shape */
 
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(26, 29, 58, 0.2);
  border: 3px solid rgba(212, 175, 55, 0.3);
  transition: all 0.4s ease;
}

.product-detail img:hover {
  transform: scale(1.02);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 20px 50px rgba(26, 29, 58, 0.3);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-info h1 {
  font-size: 42px;
  color: var(--deep-emerald);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(45deg, var(--deep-emerald), var(--rich-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(16px, 2vw, 42px);
  word-wrap: break-word;
}

.product-info .price {
  font-size: 32px;
  color: transparent;
  font-weight: bold;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.product-info p {
  font-size: 30px;
  line-height: 1.7;
  color: var(--dark-charcoal);
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 0.3px;
  font-size: clamp(16px, 2vw, 42px);
  word-wrap: break-word;
}

/* Luxury Cart Button - For Product Detail Page */
.cart {
  background: linear-gradient(90deg, #d4af37 0%, #ffea70 50%, #d4af37 100%);
  color: var(--deep-emerald) !important;
  padding: 18px 40px;
  border-radius: 35px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  transition: all 0.4s ease;
  display: inline-block;
  border: 2px solid transparent;
  cursor: pointer;
  max-width: 250px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.cart::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.6s ease;
}

.cart:hover {
  background: var(--deep-emerald);
  color: var(--premium-gold) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
  border-color: var(--premium-gold);
}

.cart:hover::before {
  left: 100%;
}

/* =======================================================
   MOBILE ADJUSTMENTS (Product Detail)
   ======================================================= */
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px auto;
    padding: 0 15px;
  }
  
  .product-detail img {
    height: 100%;
    width: 100%;
  }
  
  .product-info h1 {
    font-size: 32px;
  }
  
  .product-info .price {
    font-size: 28px;
  }
  
  .product-info p {
    font-size: 16px;
  }
  
  .cart {
    padding: 16px 32px;
    font-size: 16px;
    max-width: 100%;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .product-detail {
    gap: 25px;
    margin: 30px auto;
  }
  
  .product-detail img {
    height: 100%;
    width: 100%;
  }
  
  .product-info h1 {
    font-size: 28px;
  }
  
  .product-info .price {
    font-size: 24px;
  }
  
  .cart {
    padding: 14px 28px;
    font-size: 15px;
  }
}
