/* ===== CORE VARIABLES & RESETS ===== */
:root {
  --black: #000;
  --white: #fff;
  --gold: #D4AF37;
  --light-gray: #f5f5f5;
  --dark-gray: #222;
  --medium-gray: #888;
  --border-gray: #e0e0e0;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
}

/* ===== HEADER STYLES ===== */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  padding: var(--spacing-sm) 0;
  box-shadow: var(--shadow);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.logo img {
  height: 42px;
  width: auto;
  transition: var(--transition);
}

.logo:hover img {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  z-index: 1001;
  width: 30px;
  height: 30px;
  position: relative;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition);
}

.hamburger:before,
.hamburger:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--black);
  left: 0;
  transition: var(--transition);
}

.hamburger:before {
  top: -8px;
}

.hamburger:after {
  bottom: -8px;
}

/* Navigation */
.main-nav {
  transition: all 0.4s ease;
}

.nav-list {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  font-size: 1rem;
  padding: var(--spacing-xs) 0;
  position: relative;
  transition: var(--transition);
}

.nav-list a:hover {
  color: var(--gold);
}

.nav-list a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-list a:hover:after {
  width: 100%;
}

/* ===== PRODUCT CONTAINER ===== */
.product-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.product-gallery {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.product-media-container {
  position: relative;
  width: 100%;
  background: #f9f9f9;
}

.media-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 380px;
  padding: var(--spacing-md);
}

.media-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.media-item video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #000;
  border-radius: 8px;
}

/* Thumbnails */
.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: var(--spacing-sm);
  background: var(--white);
  border-top: 1px solid var(--border-gray);
  overflow-x: auto;
  scrollbar-width: thin;
  -ms-overflow-style: none;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 2px;
}

.thumbnail {
  width: 70px;
  height: 70px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition);
  flex-shrink: 0;
  background: #f5f5f5;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #000000dd, #333333dd);
  width: 100%;
  height: 100%;
  color: var(--white);
  font-size: 1.2rem;
}

/* Slider Navigation */
.slick-arrow {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.slick-arrow:hover {
  background: var(--white);
  box-shadow: var(--shadow-hover);
}

.slick-prev {
  left: 15px;
}

.slick-next {
  right: 15px;
}

.slick-prev:before,
.slick-next:before {
  display: none;
}

.slick-dots {
  bottom: 15px;
}

.slick-dots li button:before {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.slick-dots li.slick-active button:before {
  color: var(--gold);
}

/* ===== PRODUCT DETAILS ===== */
.product-details {
  background: var(--white);
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.product-price {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  font-size: 2rem;
  color: var(--gold);
  margin: var(--spacing-md) 0;
  font-weight: 700;
}

.original-price {
  text-decoration: line-through;
  color: var(--medium-gray);
  font-size: 1.5rem;
}

.discount-badge {
  background: #4CAF50;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-description {
  margin-bottom: var(--spacing-md);
  white-space: pre-line;
  line-height: 1.7;
  color: #444;
}

/* ===== PAYMENT SECTION ===== */
/* Payment Method Styles */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.payment-method {
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: var(--spacing-sm);
  transition: var(--transition);
  background: var(--white);
  cursor: pointer;
  position: relative;
}

.payment-method:hover:not(.disabled) {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.payment-method.disabled {
  opacity: 0.6;
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Hide the actual radio button but keep it accessible */
.payment-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.payment-method label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  margin: 0;
  width: 100%;
}

.payment-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
  color: var(--medium-gray);
  font-size: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
}

/* Selected state */
.payment-method input[type="radio"]:checked ~ label .payment-icon,
.payment-method.selected .payment-icon {
  background: var(--gold);
  color: var(--black);
}

.payment-method input[type="radio"]:checked,
.payment-method.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.payment-name {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.payment-description {
  display: block;
  font-size: 0.85rem;
  color: var(--medium-gray);
}

.payment-unavailable {
  color: #d32f2f;
  font-size: 0.8rem;
  display: block;
  margin-top: 5px;
}

/* Focus states for accessibility */
.payment-method input[type="radio"]:focus + label {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== ORDER FORM ===== */
.order-form {
  margin-top: var(--spacing-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
}

.form-group {
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  transition: var(--transition);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  outline: none;
}

.error-message {
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.error + .error-message {
  display: block;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  width: 100%;
  font-size: 1.05rem;
}

.btn:hover {
  background: #c9a227;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ===== SUGGESTED PRODUCTS ===== */
.suggested-products {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg) 0;
}

.suggested-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-md);
}

.suggested-card {
  background: var(--white);
  padding: var(--spacing-sm);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: var(--black);
  overflow: hidden;
}

.suggested-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.suggested-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--spacing-sm);
  transition: var(--transition);
}

.suggested-card:hover img {
  transform: scale(1.05);
}

.suggested-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  color: var(--dark-gray);
  font-weight: 600;
}

.suggested-card .price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.review-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.review-stats > div {
  padding: var(--spacing-md);
  background: #f9f9f9;
  border-radius: 8px;
}

.review-stats > div > div:first-child {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.review-stats > div > div:last-child {
  color: var(--medium-gray);
  font-weight: 500;
}

.star-rating {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 8px;
}

.star-rating label {
  color: #ddd;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.star-rating label.active {
  color: var(--gold);
}

.review-form {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-gray);
}

.review-form h4 {
  margin-bottom: var(--spacing-md);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  padding: var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: var(--transition);
}

.close:hover {
  color: var(--gold);
}

.lightbox-content-container {
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: var(--spacing-xl) 0;
}

.error-message p {
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
  color: #d32f2f;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }
  
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .menu-toggle.active .hamburger {
    background: transparent;
  }

  .menu-toggle.active .hamburger:before {
    transform: rotate(45deg);
    top: 0;
  }

  .menu-toggle.active .hamburger:after {
    transform: rotate(-45deg);
    bottom: 0;
  }

  .product-title {
    font-size: 1.8rem;
  }
  
  .media-item {
    height: 300px;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .payment-methods {
    grid-template-columns: 1fr;
  }
  
  .review-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

@media (min-width: 768px) {
  .product-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .suggested-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-gallery {
    position: sticky;
    top: 100px;
  }
}

@media (min-width: 992px) {
  .suggested-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .media-item {
    height: 450px;
  }
  
  .thumbnail {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.6rem;
  }
  
  .product-price {
    font-size: 1.7rem;
  }
  
  .media-item {
    height: 250px;
    padding: var(--spacing-sm);
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .gallery-thumbnails {
    padding: 10px;
    gap: 8px;
  }
}

/* Print styles */
@media print {
  .header, .suggested-products, .menu-toggle {
    display: none;
  }
  
  .product-price {
    color: black !important;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .product-container {
    display: block;
  }
}

/* Animation for page load */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-container {
  animation: fadeIn 0.6s ease-out;
}

.suggested-products {
  animation: fadeIn 0.8s ease-out;
}

.reviews-section {
  animation: fadeIn 1s ease-out;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}