/* ===================== PRODUCT CATEGORY PAGE ===================== */

.product-page {
  max-width: 100%;
  margin: 0 auto;
  padding: 30px 70px;
}
/* ===================== BREADCRUMB ===================== */
/* BREADCRUMB */
.breadcrumb-wrap {
  background: #f5f6f8;
  padding: 10px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.breadcrumb .separator {
  color: #9aa0a6;
  font-size: 0.8rem;
}

.breadcrumb .current {
  color: #6c7480;
  font-weight: 600;
  cursor: default;
}


/* ===================== HEADER ===================== */
.product-header {
  margin-bottom: 30px;
}

.product-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary);
}

.product-header p {
  color: #555;
  font-size: 1rem;
}

/* ===================== MAIN LAYOUT ===================== */
.product-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* ===================== IMAGE GALLERY ===================== */
.product-gallery {
  width: 800px;
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
}

/* ===================== MAIN IMAGE SLIDER ===================== */
.main-image-slider {
  position: relative;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.product-gallery img#mainImage {
  width: 100%;
  height: 350px;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
  margin: 20px;
}

.product-gallery img#mainImage.fade {
  opacity: 0;
}

/* Arrow buttons */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--primary, #0b1220);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-arrow--prev {
  left: 10px;
}

.slider-arrow--next {
  right: 10px;
}

.slider-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Dot indicators */
.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot.active {
  background: var(--secondary, #d4a017);
  transform: scale(1.25);
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.thumbnail-row img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--muted);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.thumbnail-row img:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

/* ===================== OPTIONS PANEL ===================== */
.product-options {
  width: 450px;
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
}

#optionsContainer{
  min-height: 375px;
}

.variant-options-list,
.variant-options-grid {
  display: grid;
  gap: 14px;
}

.variant-options-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.variant-option-field {
  min-width: 0;
}

.variant-option-field .form-label {
  margin-top: 0;
}

.variant-color-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.variant-color-control .form-select {
  flex: 1 1 auto;
}

.variant-color-control .form-control-color {
  flex: 0 0 42px;
}

.variant-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--muted);
  border-radius: 999px;
  overflow: hidden;
  background: #f5f6f8;
}

.variant-toggle__button {
  border: none;
  background: transparent;
  color: #555;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.variant-toggle__button:hover {
  background: rgba(0, 0, 0, 0.04);
}

.variant-toggle__button.is-active {
  background: var(--secondary);
  color: var(--text);
}

.variant-weight-hint {
  display: block;
  margin-top: 6px;
  color: #6c7480;
  line-height: 1.4;
}

.product-options h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.product-options label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 12px;
}

.product-options select {
  width: 100%;
  font-size: 0.9rem;
  padding: 8px 10px;
}

.enquire-btn {
  margin-top: 22px;
  width: 100%;
  background: var(--secondary);
  color: var(--text);
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.enquire-btn:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}

/* ===================== FEATURE ICONS ===================== */
.product-features {
  display: flex;
  gap: 25px;
  justify-content: flex-start;
  margin: 30px 0;
  flex-wrap: wrap;
}

.product-features .feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* ===================== SPECIFICATIONS ===================== */
.specifications {
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 50px;
}

.specifications h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.specifications table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specifications th {
  text-align: left;
  width: 35%;
  color: #444;
  font-weight: 600;
  padding: 10px 12px;
  background: #f8f9fb;
}

.specifications td {
  padding: 10px 12px;
  color: #555;
}

.specifications tr:not(:last-child) {
  border-bottom: 1px solid var(--muted);
}

/* ===================== RELATED PRODUCTS ===================== */
.related-products h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.25s ease;
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
}

.related-card p {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(13,27,42,0.12);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .product-main {
    grid-template-columns: 1fr;
  }

  .product-gallery img#mainImage {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .product-header h1 {
    font-size: 1.7rem;
  }

  .thumbnail-row img {
    width: 65px;
    height: 65px;
  }

  .variant-options-grid {
    grid-template-columns: 1fr;
  }
}
