.product-page-wrapper {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: #666;
  margin-bottom: 25px;
}

.breadcrumbs a {
  color: #999;
  margin-right: 5px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.product-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

/* Left Side: Gallery */
.product-gallery {
  position: sticky;
  top: 20px;
}

.main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2dcd7;
  background: #fff;
  margin-bottom: 15px;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.45s ease, opacity 0.3s ease;
  transform-origin: center center;
}

.main-image-container:hover img {
  transform: scale(1.06);
}

/* ── Arrow buttons ── */
.gallery-arrow,
.material-carousel-btn {
  padding: 0;
  margin: 0;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #fff;
  border: 1.5px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  color: #555;
  font-family: Arial, sans-serif;
}

.gallery-arrow:hover,
.material-carousel-btn:hover {
  background: #fff8fb;
  border-color: #d63384;
  color: #d63384;
  box-shadow: 0 4px 14px rgba(214, 51, 132, 0.2);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.gallery-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.gallery-arrow.prev {
  left: 12px;
}

.gallery-arrow.next {
  right: 12px;
}

.thumbnail-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.thumbnail-strip img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid #e2dcd7;
  transition: all 0.2s;
}

.thumbnail-strip img:hover {
  border-color: #999;
}

.thumbnail-strip img.active {
  border-color: #111;
  border-width: 1.5px;
}

/* Right Side: Details */
.sku-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-details h1 {
  font-size: 26px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.2;
}

.product-price-box {
  font-size: 18px;
  font-weight: 500;
  color: #111;
  margin-bottom: 10px;
}

.product-price-box .price-val {
  font-weight: 600;
}

/* Custom Material Carousel */
.material-section {
  margin-bottom: 25px;
}

.material-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}

.material-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.material-carousel-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 15px;
  width: 100%;
}

.material-carousel-container::-webkit-scrollbar {
  display: none;
}

.material-carousel-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #e2dcd7;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  color: #333;
  top: 50%;
  transform: translateY(-50%);
}

.material-carousel-btn:hover {
  background: #fff;
  border-color: #d63384;
  color: #d63384;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.12);
}

.material-carousel-btn.prev {
  left: -12px;
}

.material-carousel-btn.next {
  right: -12px;
}

.material-card {
  flex: 0 0 calc((100% - 36px) / 4);
  border: 1.5px solid #e2dcd7;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
  background: #fff;
  transition: all 0.25s ease;
}

.material-card:hover {
  border-color: #d63384;
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.15);
  transform: translateY(-2px);
}

.material-card.selected {
  border-color: #d63384;
  background: #fff8fb;
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.2);
}

.material-card .price-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #e91e63;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  z-index: 2;
  white-space: nowrap;
}

.material-card .material-thumb {
  width: 50px;
  height: 50px;
  margin: 0 auto 8px auto;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
  overflow: hidden;
}

.material-card:hover .material-thumb {
  transform: scale(1.5);
}

.material-card h4 {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

/* Size Inputs */
.size-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.size-input-item label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-bottom: 6px;
}

.spinner-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.spinner-input-wrapper input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
  text-align: center;
  width: 100%;
}

.unit-badge {
  background: #666;
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Add To Cart */
.add-to-cart-container {
  margin-bottom: 20px;
}

.btn-add-cart {
  width: 100%;
  background: #111 !important;
  color: #fff !important;
  border: none;
  height: 40px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.btn-add-cart:hover {
  background: #333 !important;
}

/* Instructions Box */
.whatsapp-instruction-box {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 30px;
}

.whatsapp-instruction-box p {
  margin-bottom: 12px;
}

.whatsapp-instruction-box ol {
  padding-left: 20px;
}

.whatsapp-instruction-box li {
  margin-bottom: 6px;
}

/* Collapsible Accordion Tabs */
.collapsible-tab {
  border-bottom: 1px solid #e2dcd7;
}

.collapsible-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  user-select: none;
}

.collapsible-tab-header::after {
  content: '\25BC';
  font-size: 10px;
  color: #666;
  transition: transform 0.2s;
}

.collapsible-tab.active .collapsible-tab-header::after {
  transform: rotate(180deg);
}

.collapsible-tab-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.collapsible-tab.active .collapsible-tab-content {
  max-height: 500px;
  padding-bottom: 15px;
}

/* Related Products & Recently Viewed */
.related-products-section,
.recently-viewed-section {
  margin-top: 50px;
  border-top: 1px solid #eee;
  padding-top: 40px;
}

.related-title,
.recently-viewed-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-grid,
.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-content: center;
}

.related-card,
.recently-viewed-card {
  text-align: center;
  background: #fff;
  border: 1px solid #f0ece8;
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.2s;
}

.related-card:hover,
.recently-viewed-card:hover {
  transform: translateY(-4px);
}

.related-card img,
.recently-viewed-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.related-card h4,
.recently-viewed-card h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #111;
  text-align: left;
}

.related-card p,
.recently-viewed-card p {
  font-size: 13px;
  color: #666;
  text-align: left;
}

/* Customer Reviews */
.reviews-overview-section {
  margin-top: 50px;
  border-top: 1px solid #eee;
  padding-top: 40px;
  text-align: center;
}

.reviews-overview-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}

.stars-display {
  color: #e2dcd7;
  font-size: 20px;
  margin-bottom: 15px;
}

.btn-write-review {
  display: inline-block;
  background: #b12a7e;
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-bottom: 30px;
}

.btn-write-review:hover {
  background: #8e4719;
}

/* Testimonials Carousel */
.testimonials-speak-section {
  background: #faf6f4;
  padding: 50px 20px;
  margin-top: 50px;
  text-align: center;
}

.testimonials-speak-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonials-speak-section .stars {
  color: #dfa536;
  font-size: 16px;
  margin-bottom: 6px;
}

.testimonials-speak-section .sub-info {
  font-size: 13px;
  color: #666;
  margin-bottom: 30px;
}

.testimonial-cards-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.testimonial-card .t-stars {
  color: #dfa536;
  font-size: 14px;
  margin-bottom: 10px;
}

.testimonial-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.testimonial-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
}

.testimonial-card .t-author {
  font-size: 12px;
  font-weight: 600;
  color: #999;
}

.testimonial-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 15px;
}

@media (max-width: 900px) {
  .product-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .product-details h1 {
    font-size: 24px;
  }

  .product-gallery {
    position: static;
  }

  .related-grid,
  .recently-viewed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-cards-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-page-wrapper {
    padding: 0 12px;
  }
  
  .related-title,
  .recently-viewed-title {
    font-size: 20px;
}
  
  .product-details h1 {
    font-size: 20px;
  }

  .product-details {
    min-width: 0;
  }

  .related-grid,
  .recently-viewed-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .material-carousel-container {
    width: 100%;
    padding: 8px 5px;
  }

  .material-card {
    flex: 0 0 calc((100% - 24px) / 3);
  }

  .size-inputs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .testimonial-card {
    padding: 15px;
  }
}