/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
  background-color: #faf9f7;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ========== NAVBAR ========== */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  background: linear-gradient(135deg, #c9a46b, #b38b5a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #b38b5a;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.3s;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #c9a46b;
  transition: width 0.3s ease;
}

.nav-menu li a:hover {
  color: #b38b5a;
}

.nav-menu li a:hover::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.5rem;
  color: #2c2c2c;
  transition: color 0.3s;
}

.cart-icon:hover {
  color: #c9a46b;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #b38b5a;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== CART PANEL ========== */
.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  padding: 2rem 1.5rem;
  transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(201, 164, 107, 0.2);
}

.cart-panel.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.cart-header h3 {
  font-size: 1.5rem;
  color: #b38b5a;
}

.close-cart {
  font-size: 1.8rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.close-cart:hover {
  color: #b38b5a;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.empty-cart {
  text-align: center;
  color: #aaa;
  padding: 2rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed #f0e9e0;
}

.cart-item-img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cart-item-price {
  color: #b38b5a;
  font-weight: 500;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  background: #f0f0f0;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #b38b5a;
  color: white;
}

.remove-item {
  background: none;
  border: none;
  color: #b38b5a;
  cursor: pointer;
  margin-left: auto;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.2rem;
  border-top: 1px solid #e0d6cc;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.checkout-btn {
  background: #b38b5a;
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 40px;
  font-weight: 600;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.checkout-btn:hover {
  background: #9e6f42;
  transform: scale(1.02);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(3px);
  z-index: 1050;
  display: none;
}

.overlay.show {
  display: block;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  z-index: 10;
}

.hero-content {
  max-width: 900px;
  padding: 2rem;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: 5rem;
  font-weight: 700;
  text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.btn-gold {
  display: inline-block;
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.9rem 2.8rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: all 0.4s;
  border-radius: 40px;
  backdrop-filter: blur(5px);
}

.btn-gold:hover {
  background: #c9a46b;
  border-color: #c9a46b;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -10px rgba(201, 164, 107, 0.4);
}

/* ========== PRODUCT GRID ========== */
.products {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2.5rem;
}

.products h2 {
  text-align: center;
  font-size: 3rem;
  color: #1e1e1e;
  margin-bottom: 1rem;
}

.section-sub {
  text-align: center;
  color: #b38b5a;
  letter-spacing: 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.product-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(201, 164, 107, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 45px -10px rgba(179, 139, 90, 0.2);
  border-color: rgba(201, 164, 107, 0.3);
}

.product-link {
  text-decoration: none;
  color: inherit;
}

.product-image {
  height: 280px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-info {
  padding: 1.5rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.description {
  color: #777;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  flex: 1;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.original {
  text-decoration: line-through;
  color: #aaa;
  font-size: 0.9rem;
}

.discounted, .regular {
  font-weight: 600;
  color: #b38b5a;
  font-size: 1.2rem;
}

.add-to-cart-btn {
  width: 100%;
  background: #faf6f0;
  border: 1px solid #e5d9cc;
  color: #b38b5a;
  font-weight: 600;
  padding: 0.7rem 0;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-top: auto;
}

.add-to-cart-btn:hover {
  background: #b38b5a;
  color: white;
  border-color: #b38b5a;
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.gallery {
  display: flex;
  flex-direction: column;
}

.main-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 28px;
  margin-bottom: 1rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.thumbnail-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
}

.thumbnail-grid img:hover {
  border-color: #b38b5a;
  transform: scale(1.02);
}

.detail-info h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.full-description {
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.detail-info .price-row {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-selector button:hover {
  background: #b38b5a;
  color: white;
  border-color: #b38b5a;
}

.quantity-selector span {
  font-size: 1.3rem;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.add-to-cart-detail {
  width: 100%;
  padding: 1rem;
  background: #b38b5a;
  color: white;
  border: none;
  border-radius: 40px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.add-to-cart-detail:hover {
  background: #9e6f42;
}

/* ========== ABOUT & FOOTER ========== */
.about {
  background: #f5efe8;
  padding: 5rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

.about h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #4a4a4a;
  font-weight: 300;
}

footer {
  background: #1e1e1e;
  color: #ddd;
  text-align: center;
  padding: 2.5rem;
  font-size: 0.95rem;
}

footer p:first-child {
  color: #c9a46b;
  font-size: 1.1rem;
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: white;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  z-index: 2000;
  padding: 2rem;
}

.modal-content {
  position: relative;
}

.close-modal {
  position: absolute;
  top: -10px;
  right: 0;
  font-size: 2rem;
  cursor: pointer;
  color: #aaa;
}

.close-modal:hover {
  color: #b38b5a;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    transition: left 0.4s ease;
    box-shadow: 0 20px 30px rgba(0,0,0,0.05);
    gap: 1.5rem;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .product-image {
    height: 200px;
  }

  .detail-container {
    grid-template-columns: 1fr;
  }

  .main-image {
    height: 350px;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cart-panel {
    width: 320px;
  }
}

/* Fade-in animation for cards */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Lightbox Gallery – fully responsive */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  text-align: center;
  touch-action: manipulation; /* prevents zoom on double-tap */
}

.lightbox-content {
  max-width: 95%;
  max-height: 80vh;
  margin: 5vh auto 0;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 3rem; /* larger for mobile */
  cursor: pointer;
  transition: color 0.3s;
  z-index: 3001;
  padding: 10px; /* bigger tap area */
  line-height: 1;
}

.lightbox-close:hover {
  color: #b38b5a;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem; /* larger for mobile */
  cursor: pointer;
  padding: 15px; /* bigger tap area */
  transition: color 0.3s;
  z-index: 3001;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #b38b5a;
  background: rgba(0,0,0,0.5);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .lightbox-content {
    max-height: 70vh;
    margin-top: 15vh;
  }
  
  .lightbox-prev,
  .lightbox-next {
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
  }
  
  .lightbox-close {
    font-size: 2.8rem;
    top: 5px;
    right: 15px;
  }
}

/* Optional: prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}