@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap");
@import url("./root-color.css");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* breadcrumb */
.container {
  overflow: visible;
}

.container {
  padding: 0 20px;
}

.thumbnails-container {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.breadcrumb {
  /* font-size: 0.9rem; */
  gap: 0.5rem;
  margin-bottom: 35px;
  padding: 40px 0;
}

.breadcrumb a {
  color: var(--color-purple);
  font-weight: 600;
  font-size: 14px;
}

.breadcrumb i {
  font-size: 0.8rem;
  color: var(--color-orange);
  background-color: var(--color-light-orange-bg);
  border-radius: 50%;
  padding: 9px 8px;
}

.bread-a {
  color: var(--bread-color);
  cursor: pointer;
  border-bottom: 1px solid var(--bread-color);
  font-size: 14px;
  font-weight: 500;
}

.bread-border {
  border-bottom: 1px solid #adadad30;
}

/* Product Details */

.thumbnails {
  flex-direction: column;
  gap: 0.4rem;
  width: 80px;
  border-radius: 10px;
}

.thumbnails img {
  width: 100px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  cursor: pointer;
}

.thumbnails video {
  width: 100px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  cursor: pointer;
}

.main-image {
  width: 500px;
  height: 550px;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(166,140,109,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(120deg, #fffbe6 0%, #f8f5f1 100%);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* changed from contain to cover */
  border-radius: 18px;
  border: none; /* remove border for seamless look */
}

/* --- Product Details Section --- */
.product-details.container {
  background: linear-gradient(120deg, #f8f5f1 0%, #f3e9d2 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(166,140,109,0.12);
  padding: 40px 32px;
  margin-top: 32px;
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: flex-start;
  border: 1.5px solid #e7e4df;
}

.product-gallery {
  display: flex;
  flex-direction: row;
  gap: 100px;
  align-items: flex-start;
  flex: 1 1 0;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 90px;
  flex-wrap: nowrap;
  padding: 0;
}

.thumbnails img,
.thumbnails video {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #eee;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.thumbnails img.active,
.thumbnails video.active {
  border-color: #a68c6d;
}

.main-image {
  background: linear-gradient(120deg, #fffbe6 0%, #f8f5f1 100%);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(166,140,109,0.08);
  width: 361px;
  height: 480px;
  background: #f8f8f8;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-image img,
.main-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 2px solid #e7e4df;
}

/* --- Product Info --- */
.product-title-info {
  flex: 1 1 0;
  padding: 0 12px;
  max-width: 420px;
  background: linear-gradient(120deg, #fffbe6 0%, #f8f5f1 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(166,140,109,0.07);
  padding: 24px 18px;
}

.product-title-info h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #a68c6d;
  margin-bottom: 14px;
  font-family: "Philosopher", serif;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(191,161,106,0.08);
}

.shipping-info {
  color: #bfa16a;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
  background: #f3e9d2;
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-block;
}

.price-section {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}

.current-price {
  font-size: 1.7rem;
  font-weight: 800;
  color: #bfa16a;
  background: linear-gradient(90deg, #bfa16a 0%, #a68c6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.original-price {
  font-size: 1.15rem;
  color: #a8a08a;
  text-decoration: line-through;
  font-weight: 600;
}

.size-section {
  margin: 10px 0px;
}

.color-section {
  margin: 10px 0px;
}

.border {
  border-bottom: 1.5px solid #e7e4df;
  margin: 22px 0;
}

/* --- Size & Color --- */
.size-label {
  color: #a68c6d;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-label a {
  color: #bfa16a;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-btn {
  background: #f8f5f1;
  border: 1.5px solid #e7e4df;
  color: #a68c6d;
  font-weight: 600;
  min-width: 48px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.size-btn.active,
.size-btn:hover {
  border-color: #bfa16a;
  background: #f3e9d2;
  color: #bfa16a;
}

.color-label {
  color: #a68c6d;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-btn {
  border: 2px solid #e7e4df;
  background: #f8f5f1;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-btn.active,
.color-btn:hover {
  border-color: #bfa16a;
  background: #f3e9d2;
}

/* --- Action Buttons --- */
.action-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.add-to-cart,
.buy-now {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(191,161,106,0.10);
  font-family: "Philosopher", serif;
  letter-spacing: 0.5px;
}

.add-to-cart {
  background: linear-gradient(90deg, #bfa16a 0%, #a68c6d 100%);
  color: #fff;
}

.add-to-cart:hover {
  background: linear-gradient(90deg, #a68c6d 0%, #bfa16a 100%);
  color: #fff;
}

.buy-now {
  background: linear-gradient(90deg, #a68c6d 0%, #bfa16a 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(191,161,106,0.10);
}

.buy-now:hover {
  background: linear-gradient(90deg, #bfa16a 0%, #a68c6d 100%);
  color: #fff;
}

/* --- Product Details --- */
.product-details-info {
  background: #f8f5f1;
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 2px 8px rgba(191,161,106,0.07);
}

.product-details-info h3 {
  color: #bfa16a;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: "Philosopher", serif;
}

.product-details-info ul {
  list-style: none;
  padding-left: 0;
}

.product-details-info li {
  color: #a68c6d;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-details-info i {
  color: #bfa16a;
  font-size: 1rem;
}

/* --- You May Also Like Section --- */
.exclusive-offers {
  background: linear-gradient(120deg, #f8f5f1 0%, #f3e9d2 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(166,140,109,0.12);
  margin: 40px 0;
  padding: 40px 0;
  border: 1.5px solid #e7e4df;
}

.exclusive-offers h2 {
  color: #bfa16a;
  font-size: 2.1rem;
  font-weight: 800;
  font-family: "Philosopher", serif;
  margin-bottom: 36px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(191,161,106,0.08);
  display: flex;
  justify-content: center;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding: 0 24px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 15px rgba(166,140,109,0.10);
  margin-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(191,161,106,0.18);
  transform: translateY(-4px);
}

.product-image {
  background: #f8f5f1;
  border-radius: 14px 14px 0 0;
  position: relative;
  overflow: hidden;
  height: auto; /* Changed from fixed height */
  min-height: 280px;
  max-height: 350px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 320px;
  transition: transform 0.3s;
}

.product-image img:hover {
  transform: scale(1.04);
}

.wishlist-icon {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  z-index: 2;
}

.wishlist-icon i {
  color: #bfa16a;
  font-size: 22px;
}

.product-info {
  padding: 16px 14px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #FCF8F1;
}

.product-info h3 {
  color: #a68c6d;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: "Philosopher", serif;
}

.price {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.current,
.current-price {
  color: #bfa16a;
  font-weight: 700;
  font-size: 1.1rem;
}

.original {
  color: #a8a08a;
  text-decoration: line-through;
  font-size: 0.95rem;
  margin-left: 7px;
}

.shop-now-btn {
  background: linear-gradient(90deg, #bfa16a 0%, #a68c6d 100%);
  color: #fff;
  border-radius: 0 0 14px 14px;
  font-weight: 700;
  font-size: 1rem;
  font-family: "Philosopher", serif;
  letter-spacing: 0.5px;
  padding: 10px 0;
  border: none;
  transition: background 0.2s;
  text-align: center;
  margin-top: auto;
}

.shop-now-btn:hover {
  background: linear-gradient(90deg, #a68c6d 0%, #bfa16a 100%);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .product-details.container {
    flex-direction: column;
    gap: 32px;
    padding: 24px 16px;
    margin: 20px;
  }

  .product-gallery {
    flex-direction: row;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1;
  }

  .product-title-info {
    max-width: 100%;
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .product-gallery {
    gap: 16px;
  }

  .main-image {
    max-width: 350px;
  }

  .thumbnails {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 10px;
  }
  
  .thumbnails img,
  .thumbnails video {
    width: 60px;
    height: 60px;
  }
  
  .action-buttons {
    flex-direction: column; 
  }
  
  .add-to-cart,
  .buy-now {
    width: 100%;
    padding: 15px;
    text-align: center;
  }
  
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 16px;
  }
}

@media (max-width: 750px) {
  .product-details.container {
    flex-direction: column;
    align-items: center;
    padding: 16px;
    margin: 15px;
    gap: 24px;
  }
  
  .product-gallery {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
  }
  
  .main-image {
    width: 100%;
    max-width: 350px;
    height: 350px;
    margin: 0 auto;
  }
  
  .thumbnails {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 12px;
    padding: 0;
    order: 2;
  }
  
  .product-title-info {
    width: 100%;
    max-width: none;
    padding: 20px;
    margin-top: 20px;
    order: 3;
  }
  
  .product-details-info {
    width: 100%;
    margin-top: 20px;
    order: 4;
  }
  
  .action-buttons {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }
  
  .add-to-cart,
  .buy-now {
    flex: 1;
    padding: 12px;
  }
  
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 12px;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .action-buttons {
    flex-direction: column;
  }
  
  .add-to-cart,
  .buy-now {
    width: 100%;
  }
  
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Slider Styles */
.slider {
  position: relative;
  width: 450px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
}

.slides {
  width: 400%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 25%;
  height: 100%;
  display: flex;
  justify-content: center;
  /* align-items: center; */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hide radio buttons */
.slider input {
  display: none;
}

/* Navigation dots */
.navigation {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.nav-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.3s;
}

.nav-btn:hover {
  background: var(--white);
}

/* Slider functionality */
#slide1:checked~.slides {
  transform: translateX(0);
}

#slide2:checked~.slides {
  transform: translateX(-25%);
}

#slide3:checked~.slides {
  transform: translateX(-50%);
}

#slide4:checked~.slides {
  transform: translateX(-75%);
}

/* Active navigation dot */
#slide1:checked~.navigation label:nth-child(1),
#slide2:checked~.navigation label:nth-child(2),
#slide3:checked~.navigation label:nth-child(3),
#slide4:checked~.navigation label:nth-child(4) {
  background: var(--white);
  transform: scale(1.2);
}

/* Extra small devices */
@media (max-width: 576px) {
  .product-title-info {
    z-index: 11;
  }

  .offers-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
  }

  .product-image img {
    max-width: 100%;
    height: auto;
  }

  .slider {
    margin: 0;
    overflow: hidden;
  }

  .slide img {
    width: auto;
    max-width: 95vw;
    height: auto;
    max-height: 70vh;
  }

  .thumbnails {
    padding: 0 20px;
    gap: 20px;
  }
}

.size-chart-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.size-chart-content {
  background-color: #fff;
  margin: 18% auto;
  padding: 20px;
  width: 80%;
  max-width: 700px;
  position: relative;
  border-radius: 10px;
}

.size-chart-content img {
  width: 100%;
  height: auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}