.product-main .container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff8f1;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(212,163,115,0.12);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}

/* Product Card Layout */
.product-card {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  min-height: 360px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(212,163,115,0.10);
  padding: 2.2rem 2.2rem;
}

@media (max-width: 900px) {
  .product-main .container {
    padding: 1.2rem 0.2rem;
  }
  .product-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.3rem 0.6rem;
    min-height: unset;
    width: 100%;
  }
}

/* Product Images Slider */
.product-images-slider {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7f4ef;
  border-radius: 13px;
  padding: 1rem 1.2rem;
  box-shadow: 0 0px 12px rgba(212,163,115,0.07);
  width: 360px;
  max-width: 100vw;
  box-sizing: border-box;
}

.slider {
  position: relative;
  width: 320px;
  height: 320px;
  overflow: hidden;
  border-radius: 13px;
  box-shadow: 0 2px 18px rgba(212,163,115,0.09);
  background: #fff;
  margin-bottom: 0.6rem;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.3s ease;
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  border-radius: 13px;
  background: #fff;
  transition: opacity 0.3s;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slider-img.active {
  display: block;
  opacity: 1;
  z-index: 2;
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff8f1;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #d4a373;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(212,163,115,0.13);
  transition: background 0.17s;
  z-index: 3;
}
.slider-btn:hover {
  background: #d4a373;
  color: #fff;
}
.slider-btn-left { left: 10px; }
.slider-btn-right { right: 10px; }

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 0.7rem;
  gap: 0.6rem;
}
.dot {
  width: 8px;
  height: 8px;
  background: #e7d8c0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s;
}
.dot.active {
  background: #b8926f;
}

/* Product Details */
.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 220px;
}

.product-name {
  font-size: 2rem;
  font-weight: 800;
  color: #b8926f;
  font-family: 'Inter', 'Times New Roman', serif;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.product-price {
  font-size: 1.18rem;
  font-weight: 700;
  color: #d4a373;
  margin-bottom: 0.9rem;
  background: linear-gradient(90deg,#f7f4ef 60%, #fff8f1 100%);
  border-radius: 6px;
  display: inline-block;
  padding: 0.16em 1em;
  box-shadow: 0 1px 6px rgba(212,163,115,0.09);
}

.product-desc {
  font-size: 1rem;
  color: #695a42;
  margin-bottom: 1.2rem;
  font-family: 'Inter', 'Georgia', serif;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-desc ul {
  margin: 0.6em 0 0.8em 1.2em;
  padding-left: 0.2em;
}
.product-desc ul li {
  margin-bottom: 0.32em;
  color: #a98467;
  font-weight: 500;
  font-size: 1.01em;
  font-family: 'Inter', 'Georgia', serif;
}

/* Add to Cart Button */
.product-add-btn {
  background: linear-gradient(90deg,#d4a373 80%, #b8926f 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  padding: 0.54em 1.7em;
  margin-top: 0.8em;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(212,163,115,0.13);
  transition: background 0.18s, box-shadow 0.18s;
}

.product-add-btn:hover,
.product-add-btn.added {
  background: linear-gradient(90deg,#a98467 80%, #d4a373 100%);
  box-shadow: 0 6px 24px rgba(212,163,115,0.18);
  animation: popAdded 0.8s;
}
@keyframes popAdded {
  0% { transform: scale(1);}
  30% { transform: scale(1.11);}
  60% { transform: scale(0.97);}
  100% { transform: scale(1);}
}

/* Similar Products Section */
.similar-products-section {
  background: #fff8f1;
  padding: 2.2rem 0 2.5rem 0;
  border-radius: 16px;
  margin-top: 2.4rem;
  box-shadow: 0 2px 16px rgba(212,163,115,0.10);
}
.similar-products-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #b8926f;
  margin-bottom: 1.2rem;
  text-align: center;
  font-family: 'Inter', 'Georgia', serif;
  letter-spacing: 0.03em;
}

.similar-products-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.similar-card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 12px rgba(212,163,115,0.09);
  width: 200px;
  padding: 1rem 1rem 1.2rem 1rem;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', 'Georgia', serif;
}

.similar-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

.similar-title {
  font-weight: 600;
  color: #b8926f;
  font-size: 1rem;
  margin-bottom: 0.18em;
  letter-spacing: 0.02em;
  font-family: 'Inter', 'Georgia', serif;
}

.similar-price {
  font-weight: 700;
  color: #d4a373;
  margin-bottom: 0.4em;
  font-size: 1.01rem;
}

.similar-add-btn {
  background: linear-gradient(90deg,#d4a373 80%, #b8926f 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.36em 1em;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s;
  box-shadow: 0 1px 9px rgba(212,163,115,0.10);
}
.similar-add-btn:hover,
.similar-add-btn.added {
  background: linear-gradient(90deg,#a98467 80%, #d4a373 100%);
  box-shadow: 0 5px 18px rgba(212,163,115,0.13);
  animation: popAdded 0.8s;
}

/* Responsive Enhancements */
@media (max-width: 900px) {
  .product-main .container {
    padding: 1.2rem 0.2rem;
  }
  .product-card {
    flex-direction: column;
    gap: 1.1rem;
    padding: 1rem 0.2rem;
    min-height: unset;
    width: 100%;
  }
  .product-images-slider {
    width: 95vw;
    min-width: 170px;
    max-width: 330px;
    padding: 0.5rem 0.2rem;
  }
  .slider {
    width: 75vw;
    max-width: 280px;
    height: 75vw;
    max-height: 280px;
    min-width: 170px;
    min-height: 170px;
    margin-bottom: 0.4rem;
  }
}

/* MOBILE FRIENDLY - CRITICAL BREAKPOINTS */
@media (max-width: 600px) {
  .product-main .container {
    padding: 0.6rem 0.1rem;
    border-radius: 9px;
  }
  .product-card {
    flex-direction: column;
    gap: 1rem;
    padding: 0.7rem 0.2rem;
    min-height: unset;
    width: 100%;
    border-radius: 9px;
  }
  .product-images-slider {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    padding: 0.1rem 0;
    border-radius: 9px;
    align-items: center;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .slider {
    width: 92vw;
    max-width: 360px;
    min-width: 120px;
    height: 92vw;
    max-height: 360px;
    min-height: 120px;
    margin-bottom: 0.3rem;
    border-radius: 9px;
    align-items: center;
    justify-content: center;
    display: flex;
    position: relative !important;
    transition: height 0.3s ease;
    overflow: hidden !important;
    background: #fff;
  }
  .slider-img {
    border-radius: 9px;
    object-fit: contain !important;
    background: #fff;
    width: 100% !important;
    height: auto !important;
    display: none !important;
    margin: 0 auto !important;
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100% !important;
    max-height: 100% !important;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .slider-img.active {
    display: block !important;
    opacity: 1 !important;
    z-index: 2;
  }
  .slider-btn {
    font-size: 1.1rem;
    width: 1.8rem;
    height: 1.8rem;
  }
  .slider-btn-left { left: 4px; }
  .slider-btn-right { right: 4px; }
  .slider-dots {
    gap: 0.3rem;
    margin-top: 0.4rem;
  }
  .dot {
    width: 7px;
    height: 7px;
  }
  .product-details {
    min-width: unset;
    padding: 0 0.2rem;
  }
  .product-name {
    font-size: 1.13rem;
    margin-bottom: 0.3rem;
  }
  .product-price {
    font-size: 0.99rem;
    padding: 0.16em 0.6em;
  }
  .product-desc {
    font-size: 0.91rem;
    margin-bottom: 0.8rem;
  }
  .product-desc ul,
  .product-desc ul li {
    font-size: 0.95em;
  }
  .product-add-btn {
    font-size: 0.97rem;
    padding: 0.4em 1.1em;
    margin-top: 0.45em;
    border-radius: 6px;
  }
  .similar-products-section {
    padding: 1rem 0 1.1rem 0;
    margin-top: 1.5rem;
    border-radius: 9px;
  }
  .similar-products-title {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }
  .similar-products-grid {
    gap: 0.8rem;
  }
  .similar-card {
    width: 97vw;
    max-width: 200px;
    min-width: 0;
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    border-radius: 7px;
  }
  .similar-image img {
    height: 70px;
    border-radius: 6px;
    margin-bottom: 0.32em;
  }
  .similar-title {
    font-size: 0.97rem;
    margin-bottom: 0.12em;
  }
  .similar-price {
    font-size: 0.97rem;
    margin-bottom: 0.22em;
  }
  .similar-add-btn {
    font-size: 0.95rem;
    padding: 0.32em 0.7em;
    border-radius: 6px;
  }
}

/* Ensure image stretches to fill area but keeps ratio and centered */
@media (max-width: 900px) {
  .slider-img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    background: #fff;
    display: block;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .product-images-slider {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    padding: 0.1rem 0;
    border-radius: 9px;
    box-sizing: border-box;
    align-items: center;
  }
  .slider {
    width: 92vw;
    min-width: 120px;
    max-width: 360px;
    height: 92vw;
    min-height: 120px;
    max-height: 360px;
  }
  .slider-img {
    object-fit: contain; /* revert to desktop behavior */
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 9px;
    display: none !important;
    margin: 0 auto;
  }
  .slider-img.active {
    display: block !important;
  }
}

/* Utility: Prevent horizontal scroll on mobile */
body, html {
  max-width: 100vw;
  overflow-x: hidden;
}