

/* ===== RECOMMENDED FOR ===== */
.recommended-for {
    margin-top: 25px;
}

.recommended-for h4 {
    font-size: 18px;
    color: #0B1E4A;
    margin-bottom: 10px;
    border-bottom: 2px solid #d4b15c;
    display: inline-block;
    padding-bottom: 4px;
}

.recommended-for .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.recommended-for .tags span {
    background: #d9d9d9;
    color: #0b1e4a;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: default;
    transition: all 0.3s ease;
}

.recommended-for .tags span:hover {
    background: #b8912e;
    color: #fff;
}

/* ===== AVAILABLE DESIGN ===== */
.available-design {
    margin-top: 40px;
}

.available-design h4 {
    font-size: 18px;
    color: #0B1E4A;
    margin-bottom: 10px;
    border-bottom: 2px solid #d4b15c;
    display: inline-block;
    padding-bottom: 4px;
}

.design-gallery {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.design-thumb {
    width: 110px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.design-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.available-design .note {
    margin-top: 10px;
    font-size: 13px;
    color: #444;
}

/* ===== FULLSCREEN MODAL VIEW ===== */
#designModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

#designModal.active {
    display: flex;
}

#designModal img {
    height: 50vh;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

#designModal .close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: black;
    font-size: 32px;
    cursor: pointer;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .design-gallery {
        justify-content: center;
    }

    .design-thumb {
        width: 85px;
    }
}


/* Let info section span full width under image + text */
.product-item {
    gap: 60px;
}

.product-image {
    grid-column: 1;
}

.product-text {
    grid-column: 2;
}

.full-info {
    grid-column: 1 / span 2;
    margin-top: 40px;
    width: 100%;
}

.info-row {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

/* Ensure proper sizing */
.available-design,
.color-options {
    min-width: 260px;
}

.available-design .design-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.design-gallery img {
    width: 90px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.design-gallery img:hover {
    transform: scale(1.05);
}

/* ===== Responsive Fixes ===== */
@media (max-width: 1024px) {
    .product-item {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .full-info {
        grid-column: unset;
    }

    .info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .design-gallery {
        justify-content: center;
    }
}


/* ===== TECHNICAL DETAILS ===== */
.technical-details {
    margin-top: 40px;
    width: 100%;
}

.technical-details h4 {
    font-size: 20px;
    color: #0B1E4A;
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
}

.technical-details h4::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #b8912e;
    margin-top: 4px;
}

/* ===== Table Container (For Scrolling) ===== */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* smooth scroll on iOS */
    border-radius: 8px;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-track {
    background: #f7f7f7;
}

/* ===== Table Styling ===== */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    min-width: 650px;
    /* ensures scroll trigger */
    border: 1px solid #e5e5e5;
}

.tech-table th,
.tech-table td {
    padding: 14px 16px;
    text-align: center;
    border: 1px solid #e5e5e5;
    white-space: nowrap;
}

/* Main Header */
.tech-table .main-head th {
    background: #e5e1de;
    font-weight: 700;
    color: #2a2a2a;
    text-transform: uppercase;
    font-size: 14px;
}

/* Subheader */
.tech-table .sub-head th {
    background: #f3f3f3;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Table Body */
.tech-table tbody td {
    background: #fff;
    color: #444;
    font-weight: 400;
}

/* Responsive — Scroll instead of shrink */
@media (max-width: 768px) {
    .table-container {
        margin-top: 10px;
        border: 1px solid #eee;
        border-radius: 6px;
    }

    .recommended-for {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .info-row {
        gap: 5px;
    }

    .tech-table {
        min-width: 650px;
    }

    .tech-table th,
    .tech-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ================================= */
/* AVAILABLE FINISHES (PRODUCT PAGE) */
/* ================================= */

.color-options {
  margin-top: 24px;
}

.color-options h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #0A2540;
}

/* Each row of finishes */
.color-options .finish-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

/* Each finish item */
.color-options  .badge-item {
  display: flex;
  flex-direction: column;      /* image on top, text below */
  align-items: flex-start;
}

/* Finish image */
.color-options .finish-badges .badge-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Finish name below image */
.color-options .finish-badges .badge-item .finish-name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #6B7280;
}


@media (max-width: 768px) {
  .color-options .finish-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .color-options .finish-badges .badge-item img {
    height: 90px;
  }
}

/* =============================== */
/* AVAILABLE FINISHES – GRID FIX   */
/* =============================== */

/* Force grid even inside flex parents */
.color-options {
  width: 100%;
  display: block;
}

/* Each finishes row */
.color-options .finish-badges {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr); /* 👈 EXACT 3-column grid like image */
  gap: 28px;

  width: 100% !important;
  max-width: 100%;
  margin: 20px 0;
}

/* Each finish card */
.color-options  .badge-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Finish image */
.color-options .finish-badges .badge-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Finish name */
.color-options .finish-badges .badge-item .finish-name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #6B7280;
}

@media (max-width: 768px) {
  .color-options .finish-badges {
    grid-template-columns: repeat(4, 1fr);
  }

  .color-options .finish-badges .badge-item img {
    height: 90px;
  }
}

.color-options .finish-badges .badge-item img {
  width: 100%;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

/* =============================== */
/* FINISH HOVER ANIMATION          */
/* =============================== */

.color-options .finish-badges .badge-item {
  transition: transform 0.3s ease;
}

.color-options .finish-badges .badge-item img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover effect */
.color-options .finish-badges .badge-item:hover {
  transform: translateY(-6px);
}

.color-options .finish-badges .badge-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* Optional: text highlight on hover */
.color-options .finish-badges .badge-item:hover .finish-name {
  color: #0A58CA; /* brand blue */
}
