/* =========================
      PRODUCT PAGE LAYOUT
========================= */

.product-container {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 30px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.25);

  position: relative;
  overflow: visible;
  isolation: isolate;
}

/* GOLDEN GLOW */
.product-container::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 20px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.25) 0%,
    rgba(212, 175, 55, 0.08) 20%,
    rgba(212, 175, 55, 0) 50%
  );
  filter: blur(8px);
  z-index: -1;
}

/* GOLD VERTICAL DIVIDER */
.product-container::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 1px;

  background: linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.55) 20%,
      rgba(255,255,255,0.55) 40%,
      rgba(255,255,255,0) 50%
  );

  backdrop-filter: blur(2px);
 /* opacity: 0.9;*/
  pointer-events: none;
}

@media (max-width: 850px) {
  .product-container {
    grid-template-columns: 1fr;
  }
  .product-container::after {
    display: none;
  }
}

/* =========================
      GALLERY (LEFT COLUMN)
========================= */

.gallery-wrapper {
  width: 420px;
  margin: 20px auto;
  position: relative;
  text-align: center;
  height: 600px;
}

.main-image {
 /* max-height: 520px;
  max-width: 520px;*/
  width: 90%;
  height: 90%;
/*  border-radius: 8px;
  object-fit: contain;*/
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
  object-fit: contain;
}

.thumbs img.active,
.thumbs img:hover {
  opacity: 1;
  border: 2px solid #333;
}

.arrow {
  position: absolute;
  top: 45%;
  font-size: 32px;
  cursor: pointer;
  padding: 5px 10px;
  background: rgba(255,255,255,0.8);
  border-radius: 6px;
  user-select: none;
}

.arrow.left { left: -40px; }
.arrow.right { right: -40px; }

/* =========================
      RIGHT COLUMN DETAILS
========================= */

.product-title,
.product-tagline {
  text-align: center;
}

.product-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--deep-plum);
  margin-bottom: 10px;
}

.product-tagline {
  font-style: italic;
  font-size: 15px;
  margin-bottom: 20px;
  color: var(--deep-plum);
}

.product-specs {
 display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--deep-plum);
font-style: italic;
}

.product-specs span {
  color: var(--deep-plum);
  font-weight: 600;
font-style: italic;
}

.price {
  font-size: 22px;
  font-weight: 500;
  color: var(--deep-plum);
  margin: 20px 0;
}

/* PRICE LABEL + VALUE */
.price-label {
    font-weight: 400;
    font-size: 22px;
    opacity: 0.8;
}

.price-value {
    font-weight: 500;
    font-size: 24px;
}

/* BUTTON */
.enquire-btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--deep-plum);
  color: var(--cream);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(212,175,55,0.4);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px; /* ensures perfect alignment */
  +padding: 0 22px;
}

.enquire-btn:hover {
  opacity: 0.85;
}

/* INFO SECTIONS */
.info-section {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.info-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--deep-plum);
  margin-bottom: 10px;
}

.info-section p {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  color: var(--deep-plum);
}

.product-specs-grid .spec-item {
    display: flex;
    gap: 6px;
    align-items: center;
}

.product-specs-grid .spec-item span {
    font-weight: 600;
}

/* =========================
      COLUMN STRUCTURE
========================= */

.left-column {
  flex: 1;
  max-width: 500px;
}

.right-column {
  flex: 1;
}

.product-page {
  display: contents;
  gap: 40px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
}

.info-section:first-of-type {
    margin-top: 0;
}

.product-info {
    margin-top: 0;
}

/* FINAL OVERRIDE — FORCE 2×2 GRID */
.product-specs-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 20px !important;
    margin: 20px 0 !important;
     font-family: "Montserrat", sans-serif;
}

.product-specs-grid .spec-item {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
     font-family: "Montserrat", sans-serif;
}

.product-specs-grid .spec-item span {
    font-weight: 600 !important;
     font-family: "Montserrat", sans-serif;
}

@media (max-width: 850px) {

    /* Make product page single-column */
    .product-container {
        display: flex;
        flex-direction: column;   /* IMAGE FIRST, INFO BELOW */
        gap: 30px;
        padding: 20px;
    }

       /* Force product page into a vertical layout */
    .product-page {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    /* Remove the vertical divider */
    .product-container::after {
        display: none;
    }

    /* Make gallery full-width */
    .gallery-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        height: auto;             /* remove fixed height */
    }

    .main-image {
        width: 100%;
        height: auto;
        object-fit: contain;      /* clean scaling */
    }

    /* Thumbnails spacing */
    .thumbs {
        gap: 8px;
        margin-top: 10px;
    }
    /* Move certification box to the bottom */
    .bliing-box {
        order: 2; /* pushes it below everything */
        margin-top: 30px;
    }
          /* Gallery stays at top */
    .gallery-wrapper {
        order: 0;
    }
    /* Make product info full-width */
    .right-column {
        width: 100%;
          order: 1;
    }

          /* Move gallery to the top */
    .left-column {
        display: contents;
    }
      
/* Full-width gallery */
    .left-column,
    .gallery-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    /* Center title + tagline on mobile */
    .product-title,
    .product-tagline {
        text-align: center;
    }

    /* Make specs stack vertically */
    .product-specs-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Reduce spacing for info sections */
    .info-section {
        margin-top: 20px;
        padding-top: 15px;
    }

    /* Fix enquire button alignment */
    .enquire-btn {
        width: 100%;
        justify-content: center;
    }

    /* Fix arrows so they don't overflow */
    .arrow.left { left: 10px; }
    .arrow.right { right: 10px; }
}

