/* =============================================
   PRODUCT PAGE STYLES - UPDATED UI/UX VERSION
   Features: Winter Sale, Discount Ribbon, Popup, 
   Trust Ribbon, Why Choose Us, FAQs
   ============================================= */

.product-page {
  padding-bottom: 40px;
}

.product-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =============================================
   PRODUCT LAYOUT
   ============================================= */
.product-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .product-layout {
    flex-direction: row;
    gap: 40px;
  }
  
  .product-gallery-section {
    flex: 1;
    max-width: 50%;
  }
  
  .product-details-section {
    flex: 1;
    max-width: 50%;
  }
}

/* =============================================
   PRODUCT GALLERY WITH DISCOUNT RIBBON
   ============================================= */
.product-gallery-section {
  width: 100%;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Discount Ribbon - Top Left Diagonal */
.discount-ribbon {
  position: absolute;
  top: 20px;
  left: -35px;
  width: 140px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  text-align: center;
  padding: 8px 0;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transform: rotate(-45deg);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
  z-index: 20;
}

.discount-ribbon::before,
.discount-ribbon::after {
  content: '';
  position: absolute;
  bottom: -5px;
  border: 5px solid transparent;
  border-top-color: #990000;
}

.discount-ribbon::before {
  left: 0;
  border-left-color: #990000;
}

.discount-ribbon::after {
  right: 0;
  border-right-color: #990000;
}

.gallery-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Gallery Navigation */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-nav.prev {
  left: 12px;
}

.gallery-nav.next {
  right: 12px;
}

.gallery-nav svg {
  width: 24px;
  height: 24px;
}

/* Fullscreen Button */
.gallery-fullscreen {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.gallery-fullscreen svg {
  width: 18px;
  height: 18px;
}

/* Gallery Counter */
.gallery-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* Thumbnails */
.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  background: rgba(255, 255, 255, 0.03);
}

.gallery-thumb.active {
  border-color: var(--accent-gold, #D4AF37);
  opacity: 1;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   PRODUCT DETAILS
   ============================================= */
.product-details-section {
  width: 100%;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--accent-gold, #D4AF37);
  margin: 0 0 8px;
  line-height: 1.3;
}

.product-category {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

/* =============================================
   WINTER SALE BANNER - Frosted Glass + Snowflakes
   ============================================= */
.winter-sale-banner {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(100, 150, 200, 0.3) 0%, 
    rgba(150, 200, 255, 0.2) 50%, 
    rgba(100, 150, 200, 0.3) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 
    0 4px 30px rgba(100, 150, 200, 0.2),
    inset 0 0 60px rgba(255, 255, 255, 0.1);
}

.winter-sale-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    transparent 50%);
  pointer-events: none;
}

.winter-sale-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.winter-icon {
  font-size: 1.5rem;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.winter-text {
  text-align: center;
}

.winter-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 3px;
}

.winter-subtitle {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

/* Snowflakes Animation */
.snowflakes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.snowflake {
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  animation: snowfall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; font-size: 0.8rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1s; font-size: 1.2rem; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 10s; animation-delay: 2s; font-size: 0.9rem; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1rem; }
.snowflake:nth-child(5) { left: 55%; animation-duration: 9s; animation-delay: 3s; font-size: 0.7rem; }
.snowflake:nth-child(6) { left: 70%; animation-duration: 11s; animation-delay: 1.5s; font-size: 1.1rem; }
.snowflake:nth-child(7) { left: 85%; animation-duration: 13s; animation-delay: 2.5s; font-size: 0.8rem; }
.snowflake:nth-child(8) { left: 95%; animation-duration: 10s; animation-delay: 0.8s; font-size: 1rem; }

@keyframes snowfall {
  0% {
    top: -10%;
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    top: 110%;
    transform: translateX(20px) rotate(360deg);
    opacity: 0.3;
  }
}

/* =============================================
   URGENCY BLOCK - Live Viewers
   ============================================= */
.urgency-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.live-viewers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #fff;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.stock-status {
  color: #22c55e;
  font-weight: 500;
}

/* =============================================
   PRODUCT TRUST RIBBON (Before WhatsApp)
   ============================================= */
.product-trust-ribbon {
  margin-bottom: 20px;
}

.product-trust-ribbon .trust-ribbon-section {
  position: relative;
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.product-trust-ribbon .ribbon-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  padding-left: 20px;
}

.product-trust-ribbon .ribbon-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 40px;
  opacity: 0.8;
}

.product-trust-ribbon .ribbon-item.highlight {
  opacity: 1;
}

.product-trust-ribbon .ribbon-item.highlight .ribbon-text {
  color: var(--accent-gold, #D4AF37);
  font-weight: 600;
}

.product-trust-ribbon .ribbon-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
}

/* =============================================
   WHATSAPP CTA
   ============================================= */
.whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-cta:active {
  transform: translateY(0);
}

.whatsapp-cta svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* =============================================
   PAYMENT SECTION
   ============================================= */
.payment-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.payment-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-icon {
  width: 50px;
  height: 34px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.payment-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.payment-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =============================================
   WHY CHOOSE US SECTION
   ============================================= */
.why-choose-us {
  margin-bottom: 32px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--accent-gold, #D4AF37);
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold, #D4AF37), transparent);
  margin: 12px auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, 
    rgba(212, 175, 55, 0.2) 0%, 
    rgba(212, 175, 55, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold, #D4AF37);
}

.feature-card h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section {
  margin-bottom: 32px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.faq-item.open {
  border-color: var(--accent-gold, #D4AF37);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-toggle {
  color: var(--accent-gold, #D4AF37);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
  line-height: 1;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 20px 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* =============================================
   RECENTLY PURCHASED POPUP
   ============================================= */
.recent-purchase-popup {
  position: fixed;
  bottom: 100px;
  left: 20px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(-120%);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.recent-purchase-popup.show {
  opacity: 1;
  transform: translateX(0);
}

.popup-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  max-width: 320px;
  position: relative;
}

.popup-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.popup-info {
  flex: 1;
  min-width: 0;
}

.popup-title {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.popup-product {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.popup-location {
  font-size: 0.8rem;
  color: var(--accent-gold, #D4AF37);
}

.popup-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.popup-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.popup-close:hover {
  color: #fff;
}

/* =============================================
   RELATED PRODUCTS
   ============================================= */
.related-products {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-products h2 {
  font-family: 'Playfair Display', serif;
  color: var(--accent-gold, #D4AF37);
  font-size: 1.5rem;
  margin: 0 0 24px;
  text-align: center;
}

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

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-products .product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.related-products .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
}

.related-products .product-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.related-products .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-products .product-info {
  padding: 12px;
}

.related-products .product-info h3 {
  color: #fff;
  font-size: 0.85rem;
  margin: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* =============================================
   IMAGE ZOOM MODAL
   ============================================= */
.image-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.zoom-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.zoom-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.zoom-nav svg {
  width: 24px;
  height: 24px;
}

.zoom-prev {
  left: 16px;
}

.zoom-next {
  right: 16px;
}

.zoom-image-container {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-image-container img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.zoom-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
}

/* =============================================
   LOADING & NO IMAGES
   ============================================= */
.loading-placeholder,
.no-images {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* =============================================
   MOBILE ADJUSTMENTS
   ============================================= */
@media (max-width: 480px) {
  .product-title {
    font-size: 1.25rem;
  }
  
  .gallery-thumb {
    width: 60px;
    height: 60px;
  }
  
  .gallery-nav {
    width: 36px;
    height: 36px;
  }
  
  .gallery-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .payment-icon {
    width: 44px;
    height: 30px;
    padding: 5px;
  }
  
  .winter-title {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
  
  .winter-subtitle {
    font-size: 0.8rem;
  }
  
  .winter-icon {
    font-size: 1.2rem;
  }
  
  .feature-card {
    padding: 20px 12px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-card h4 {
    font-size: 0.9rem;
  }
  
  .feature-card p {
    font-size: 0.8rem;
  }
  
  .recent-purchase-popup {
    left: 10px;
    right: 10px;
    bottom: 90px;
  }
  
  .popup-content {
    max-width: 100%;
  }
  
  .discount-ribbon {
    font-size: 0.75rem;
    padding: 6px 0;
    width: 120px;
    left: -30px;
    top: 15px;
  }
}

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs {
  padding: 14px 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  margin-bottom: 16px;
}

.breadcrumbs::-webkit-scrollbar {
  display: none;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent-gold, #D4AF37);
}

.breadcrumbs .separator {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumbs .current {
  color: var(--accent-gold, #D4AF37);
  font-size: 0.85rem;
}