/* product-styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #E8DCC6;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  width: 100%;
  color: #243447;
}

/* ===== NAVIGATION ===== */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: #3f5439;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navigation-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #E8DCC6;
  font-family: 'Georgia', serif;
}

.navigation-links {
  display: flex;
  gap: 30px;
}

.navigation-links a {
  color: #E8DCC6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s;
}

.navigation-links a:hover {
  color: #8A9A5B;
}

.navigation-links a.active-page {
  font-weight: 500;
  border-bottom: 2px solid #D4A352;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  margin-top: 80px;
  padding: 60px 60px 80px;
}

.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  color: #A66B4A;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #9E3B2F;
}

/* ===== GALLERY ===== */
.product-gallery {
  margin-bottom: 50px;
}

.gallery-main {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background-color: #C9A27E;
  box-shadow: 0 10px 40px rgba(26, 34, 48, 0.15);
  border: 1px solid #A66B4A;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ===== ARROW UNDERNEATH ===== */
.gallery-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 24px auto 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #A66B4A;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s, transform 0.2s;
  padding: 8px 20px;
}

.gallery-arrow:hover {
  color: #9E3B2F;
  transform: translateY(4px);
}

.arrow-icon {
  font-size: 1.6rem;
  line-height: 1;
  animation: bounceArrow 2s ease-in-out infinite;
}

.arrow-text {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== DOTS ===== */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #A66B4A;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  padding: 0;
}

.dot:hover {
  transform: scale(1.2);
  border-color: #9E3B2F;
}

.dot.active {
  background-color: #9E3B2F;
  border-color: #9E3B2F;
}

/* ===== PRODUCT INFO ===== */
.product-detail-info {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.product-detail-tag {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #A66B4A;
  display: block;
  margin-bottom: 16px;
}

.product-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  color: #243447;
  margin-bottom: 12px;
}

.product-detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #A66B4A;
  margin-bottom: 36px;
}

.product-detail-meta {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 36px;
  padding: 24px 0;
  border-top: 1px solid #C9A27E;
  border-bottom: 1px solid #C9A27E;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6B6F3D;
}

.meta-value {
  font-size: 1rem;
  font-weight: 500;
  color: #243447;
}

.product-detail-description {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #3F5566;
  margin-bottom: 40px;
}

.buy-button {
  display: inline-block;
  background-color: #2E3A2B;
  color: #E8DCC6;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 56px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.buy-button:hover {
  background-color: #4F5D3A;
  transform: translateY(-2px);
}

.buy-note {
  font-size: 0.8rem;
  color: #6B7F8F;
  margin-top: 16px;
  font-style: italic;
}

/* ===== FOOTER ===== */
.about-footer {
  background-color: #2E3A2B;
  padding: 24px 40px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #E8DCC6;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.footer-brand {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #D4A352;
}

.footer-copy {
  font-weight: 300;
  color: #6B7F8F;
}

/* ===== FLOATING CART BUTTON ===== */
.cart-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: #2E3A2B;
  color: #E8DCC6;
  border: 1px solid #D4A352;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  box-shadow: 0 8px 24px rgba(26, 34, 48, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cart-fab:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: #4F5D3A;
}

.cart-fab-icon {
  width: 26px;
  height: 26px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: #C45A2B;
  color: #E8DCC6;
  font-size: 0.72rem;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #E8DCC6;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 34, 48, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1400;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 380px;
  max-width: 90vw;
  background-color: #E8DCC6;
  color: #243447;
  z-index: 1600;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #C9A27E;
  background-color: #E8DCC6;
}

.cart-drawer-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #243447;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #243447;
  cursor: pointer;
  padding: 0 6px;
}

.cart-close:hover {
  color: #9E3B2F;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-empty {
  color: #6B7F8F;
  font-style: italic;
  text-align: center;
  margin-top: 40px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #C9A27E;
  position: relative;
}

.cart-item-image {
  flex: 0 0 70px;
  width: 70px;
  height: 90px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  background-color: #C9A27E;
}

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

.cart-item-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #243447;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: #6B6F3D;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cart-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: #A66B4A;
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #3F5566;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  color: #3F5566;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.qty-btn:hover {
  background-color: #3F5566;
  color: #E8DCC6;
}

.cart-item-remove {
  position: absolute;
  top: 14px;
  right: 0;
  background: none;
  border: none;
  color: #6B7F8F;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}

.cart-item-remove:hover {
  color: #6B1F26;
}

.cart-drawer-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid #C9A27E;
  background-color: #C9A27E;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #243447;
}

.cart-checkout {
  width: 100%;
  background-color: #2E3A2B;
  color: #E8DCC6;
  border: none;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cart-checkout:hover {
  background-color: #4F5D3A;
}

.cart-clear {
  width: 100%;
  background: none;
  border: none;
  color: #3F5566;
  font-size: 0.8rem;
  margin-top: 10px;
  cursor: pointer;
  letter-spacing: 1px;
}

.cart-clear:hover {
  color: #9E3B2F;
}

/* ============================================
   ===== PRODUCT IMAGE CLASSES (1–30) =========
   ============================================ */
.product-image-1  { background-image: url('https://i.pinimg.com/1200x/33/58/f2/3358f254758327d1a35bad0cd2daa04d.jpg'); }
.product-image-2  { background-image: url('https://i.pinimg.com/736x/44/e3/cd/44e3cd4e00ee9da731a4fc9c01695208.jpg'); }
.product-image-3  { background-image: url('https://i.pinimg.com/736x/8c/d5/1a/8cd51abbafc28362697138876049999a.jpg'); }
.product-image-4  { background-image: url('https://i.pinimg.com/1200x/33/58/f2/3358f254758327d1a35bad0cd2daa04d.jpg'); }
.product-image-5  { background-image: url('https://i.pinimg.com/736x/44/e3/cd/44e3cd4e00ee9da731a4fc9c01695208.jpg'); }
.product-image-6  { background-image: url('https://i.pinimg.com/736x/8c/d5/1a/8cd51abbafc28362697138876049999a.jpg'); }
.product-image-7  { background-image: url('https://i.pinimg.com/1200x/33/58/f2/3358f254758327d1a35bad0cd2daa04d.jpg'); }
.product-image-8  { background-image: url('https://i.pinimg.com/736x/44/e3/cd/44e3cd4e00ee9da731a4fc9c01695208.jpg'); }
.product-image-9  { background-image: url('https://i.pinimg.com/736x/8c/d5/1a/8cd51abbafc28362697138876049999a.jpg'); }
.product-image-10 { background-image: url('https://i.pinimg.com/1200x/33/58/f2/3358f254758327d1a35bad0cd2daa04d.jpg'); }
.product-image-11 { background-image: url('https://i.pinimg.com/736x/44/e3/cd/44e3cd4e00ee9da731a4fc9c01695208.jpg'); }
.product-image-12 { background-image: url('https://i.pinimg.com/736x/8c/d5/1a/8cd51abbafc28362697138876049999a.jpg'); }
.product-image-13 { background-image: url('https://i.pinimg.com/1200x/33/58/f2/3358f254758327d1a35bad0cd2daa04d.jpg'); }
.product-image-14 { background-image: url('https://i.pinimg.com/736x/44/e3/cd/44e3cd4e00ee9da731a4fc9c01695208.jpg'); }
.product-image-15 { background-image: url('https://i.pinimg.com/736x/8c/d5/1a/8cd51abbafc28362697138876049999a.jpg'); }
.product-image-16 { background-image: url('https://i.pinimg.com/1200x/33/58/f2/3358f254758327d1a35bad0cd2daa04d.jpg'); }
.product-image-17 { background-image: url('https://i.pinimg.com/736x/44/e3/cd/44e3cd4e00ee9da731a4fc9c01695208.jpg'); }
.product-image-18 { background-image: url('https://i.pinimg.com/736x/8c/d5/1a/8cd51abbafc28362697138876049999a.jpg'); }
.product-image-19 { background-image: url('https://i.pinimg.com/1200x/33/58/f2/3358f254758327d1a35bad0cd2daa04d.jpg'); }
.product-image-20 { background-image: url('https://i.pinimg.com/736x/44/e3/cd/44e3cd4e00ee9da731a4fc9c01695208.jpg'); }
.product-image-21 { background-image: url('https://i.pinimg.com/736x/8c/d5/1a/8cd51abbafc28362697138876049999a.jpg'); }
.product-image-22 { background-image: url('https://i.pinimg.com/1200x/33/58/f2/3358f254758327d1a35bad0cd2daa04d.jpg'); }
.product-image-23 { background-image: url('https://i.pinimg.com/736x/44/e3/cd/44e3cd4e00ee9da731a4fc9c01695208.jpg'); }
.product-image-24 { background-image: url('https://i.pinimg.com/736x/8c/d5/1a/8cd51abbafc28362697138876049999a.jpg'); }
.product-image-25 { background-image: url('https://i.pinimg.com/1200x/33/58/f2/3358f254758327d1a35bad0cd2daa04d.jpg'); }
.product-image-26 { background-image: url('https://i.pinimg.com/736x/44/e3/cd/44e3cd4e00ee9da731a4fc9c01695208.jpg'); }
.product-image-27 { background-image: url('https://i.pinimg.com/736x/8c/d5/1a/8cd51abbafc28362697138876049999a.jpg'); }
.product-image-28 { background-image: url('https://i.pinimg.com/1200x/33/58/f2/3358f254758327d1a35bad0cd2daa04d.jpg'); }
.product-image-29 { background-image: url('https://i.pinimg.com/736x/44/e3/cd/44e3cd4e00ee9da731a4fc9c01695208.jpg'); }
.product-image-30 { background-image: url('https://i.pinimg.com/736x/8c/d5/1a/8cd51abbafc28362697138876049999a.jpg'); }

/* ============================================
   ===== RESPONSIVE =====
   ============================================ */
@media (max-width: 1024px) {
  .main-navigation { padding: 0 30px; }
  .product-detail { padding: 50px 30px 60px; }
  .product-detail-title { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .main-navigation { padding: 0 20px; height: 70px; }
  .brand-logo { font-size: 1.4rem; }
  .navigation-links { gap: 20px; }
  .navigation-links a { font-size: 0.85rem; }
  .product-detail { margin-top: 70px; padding: 40px 20px 50px; }
  .product-detail-title { font-size: 2rem; }
  .product-detail-price { font-size: 1.5rem; }
  .product-detail-meta { gap: 30px; }
  .product-detail-description { font-size: 1rem; }
  .gallery-main { aspect-ratio: 3 / 4; }
}

@media (max-width: 480px) {
  .main-navigation { padding: 0 15px; height: 60px; }
  .brand-logo { font-size: 1.1rem; }
  .navigation-links { gap: 12px; }
  .navigation-links a { font-size: 0.75rem; }
  .product-detail { margin-top: 60px; padding: 30px 16px 40px; }
  .product-detail-title { font-size: 1.7rem; }
  .product-detail-meta { flex-direction: column; gap: 16px; align-items: center; }
  .buy-button { width: 100%; padding: 16px 20px; }
  .footer-content { flex-direction: column; gap: 8px; text-align: center; }
  .cart-fab { bottom: 20px; right: 20px; width: 56px; height: 56px; }
  .cart-fab-icon { width: 22px; height: 22px; }
}