/* ==========================================================================
   GENERAL SECTION STYLING (FOR PRODUCT DETAILS PAGE)
   ========================================================================== */
.product-details-section, /* This is the top one, special handling below */
.product-description-section,
.color-coating-options-section,
.glass-options-section,
.panel-styles-section,
.hardware-options-section {
    background-color: #ffffff; /* Default section background */
    padding: 35px 25px; /* Consistent padding */
    border-radius: 8px; /* Consistent rounded corners */
    margin-top: 40px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef; /* Subtle border instead of shadow */
}

/* Specific override for the very first section (gallery + title) */
.product-details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 12vh; /* Space below fixed navbar */
    background-color: transparent; /* Usually matches page background */
    border: none;
    box-shadow: none;
    padding: 20px 0; /* Less vertical padding, container-lg handles side */
}

/* Section Headers (Common Style) */
.section-header-alt,
.section-header-simple,
.product-description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #212529; /* Primary text color for border */
}

.section-header-alt h2,
.section-header-simple h2,
.product-description-header h2 {
    font-size: 1.9em;
    color: #212529; /* Primary text */
    font-weight: 600;
    margin: 0;
}

.section-header-alt .header-logo {
    /* If logo is used in these headers */
    max-height: 40px;
    width: auto;
    opacity: 0.8;
}

/* ==========================================================================
   1. PRODUCT GALLERY & TITLE SECTION (.product-details-section)
   ========================================================================== */
.product-gallery-container {
    flex: 1 1 55%; /* Slightly more space for gallery */
    min-width: 300px;
}

.main-image-wrapper {
    position: relative;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0; /* Subtle border for main image */
    overflow: hidden;
    border-radius: 8px;
}

.main-product-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.35); /* Slightly less opaque */
    color: white;
    border: none;
    padding: 10px; /* Square-ish */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 50%; /* Fully rounded */
    transition: background-color 0.3s ease;
}
.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.55);
}
.gallery-nav.prev-main {
    left: 15px;
}
.gallery-nav.next-main {
    right: 15px;
}

.thumbnail-navigation-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumbnail-list-container {
    flex-grow: 1;
    overflow: hidden;
}

.thumbnail-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    /* transition: transform removed, JS uses scrollBy */
}

.thumbnail-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px; /* Slightly less rounded */
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.thumbnail-item img {
    display: block;
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.thumbnail-item.active {
    border-color: #e91e63; /* !!! YOUR ACCENT PINK/PURPLE !!! */
}

.thumb-nav {
    background-color: #f0f0f0; /* Light gray */
    color: #333333; /* Dark gray text */
    border: 1px solid #cccccc; /* Medium gray border */
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%; /* Fully rounded */
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.thumb-nav:hover {
    background-color: #e0e0e0;
    border-color: #bbbbbb;
}
.thumb-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.product-content-container {
    flex: 1 1 40%; /* Slightly less space for content */
    padding-left: 20px; /* Add some space if gallery is on left */
}

.product-title {
    font-size: 2em; /* Prominent title */
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #212529; /* Primary text */
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn {
    /* General button style for the page */
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 50px; /* Fully rounded buttons like homepage */
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease, opacity 0.2s ease,
        transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
}
.btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-inquiry,
.btn-testing {
    /* Primary button style */
    background-color: #3a2616; /* !!! YOUR DARK BROWN/PRIMARY BUTTON BG !!! */
    color: #ffffff; /* White text */
}

/* ==========================================================================
   2. PRODUCT DESCRIPTION SECTION
   ========================================================================== */
.product-description-section {
    background-color: #fdfaff; /* Light Pinkish Off-White - Alternate section BG */
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.product-specs-table tbody tr td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef; /* Light border */
    line-height: 1.5;
}

.product-specs-table tbody tr td:first-child {
    /* Label cell */
    font-weight: 500; /* Standard weight, not too bold */
    color: #212529; /* Primary text */
    width: 30%; /* Adjust as needed */
    background-color: transparent; /* Cleaner look */
    border-right: 1px solid #e9ecef; /* Light separator */
    padding-right: 15px;
}

.product-specs-table tbody tr td:last-child {
    /* Value cell */
    color: #495057; /* Secondary text */
    padding-left: 15px;
}

.product-specs-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   3. COLOR & COATING OPTIONS SECTION
   ========================================================================== */
/* .color-coating-options-section uses default section styles */

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.option-card {
    background-color: #ffffff; /* Card background */
    border-radius: 8px; /* Rounded corners */
    border: 1px solid #e9ecef; /* Light border */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.option-card-header {
    background-color: transparent; /* Cleaner header */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e9ecef; /* Light border */
}
.option-card-header h3 {
    font-size: 1.25em;
    color: #212529; /* Primary text */
    font-weight: 600;
    margin: 0;
}
.option-card-header i {
    /* Font Awesome icons */
    font-size: 1.3em;
    color: #e91e63; /* !!! YOUR ACCENT PINK/PURPLE !!! */
}

.option-card-body {
    padding: 20px;
    flex-grow: 1;
}
.option-card-body p {
    /* Intro text within card */
    font-size: 0.95em;
    line-height: 1.6;
    color: #495057; /* Secondary text */
    margin-bottom: 20px;
}
.option-card-body p:last-child {
    margin-bottom: 0;
}

.finish-swatches {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: flex-start; /* Align left or center */
}

.swatch-item {
    text-align: center;
}

.swatch-color {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #ced4da; /* Medium border for swatches */
    transition: transform 0.2s ease-in-out;
}
.swatch-color:hover {
    transform: scale(1.05);
}

.swatch-item span {
    /* Label for swatch */
    font-size: 0.85em;
    color: #444444; /* Darker gray for labels */
}

.ral-swatch-display img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #e9ecef; /* Light border */
}

.color-disclaimer {
    background-color: #fdfaff; /* Light Pinkish Off-White - Alternate section BG */
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #e91e63; /* !!! YOUR ACCENT PINK/PURPLE !!! */
    font-size: 0.85em;
    color: #495057; /* Secondary text */
    line-height: 1.5;
}
.color-disclaimer p {
    margin: 0;
}
.color-disclaimer p strong {
    color: #212529; /* Primary text */
}

/* ==========================================================================
   4. GLASS OPTIONS SECTION
   ========================================================================== */
.glass-options-section {
    background-color: #ffffff; /* Default section background */
}
.section-header-simple {
    /* Header specifically for glass, no logo space */
    justify-content: flex-start; /* Align title to the left */
}

.glass-intro {
    margin-bottom: 30px;
    text-align: left;
}
.glass-intro h3 {
    font-size: 1.3em;
    color: #212529; /* Primary text */
    margin-bottom: 10px;
    font-weight: 600;
}
.glass-intro p {
    font-size: 1em;
    line-height: 1.7;
    color: #495057; /* Secondary text */
    max-width: 800px;
}

.glass-samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.glass-sample-item {
    text-align: center;
    background-color: #f8f9fa; /* Light gray for item background */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef; /* Light border */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.glass-sample-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06); /* Subtle hover shadow */
}

.glass-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1; /* Square glass samples */
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #dcdcdc; /* Slightly stronger border for glass "pane" */
}

.base-car-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.glass-name {
    font-size: 0.9em;
    font-weight: 500;
    color: #212529; /* Primary text */
    margin-top: 5px;
}

/* CSS Glass Effects (same as previous, ensure colors match brand) */
.clear-effect {
    background-color: rgba(255, 255, 255, 0.02);
}
.obscure-effect {
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(5px) saturate(110%);
}
.satin-etched-effect {
    background-color: rgba(240, 240, 245, 0.75);
    backdrop-filter: blur(2px);
}
.white-laminated-effect {
    background-color: rgba(250, 250, 250, 0.9);
}
.gray-tinted-effect {
    background-color: rgba(80, 80, 80, 0.35);
} /* Darker gray tint */
.green-tinted-effect {
    background-color: rgba(40, 100, 40, 0.3);
} /* More desaturated green */
.bronze-tinted-effect {
    background-color: rgba(160, 100, 40, 0.35);
} /* Adjusted bronze */

.glass-outro {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef; /* Light separator */
}
.glass-outro p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #6c757d; /* Lighter text */
    text-align: center;
}

/* ==========================================================================
   5. PANEL STYLES SECTION
   ========================================================================== */
.panel-styles-section {
    background-color: #fdfaff; /* Light Pinkish Off-White - Alternate section BG */
}
/* .panel-intro styles same as .glass-intro */
.panel-styles-section .panel-intro h3 {
    font-size: 1.3em;
    color: #212529;
    margin-bottom: 10px;
    font-weight: 600;
}
.panel-styles-section .panel-intro p {
    font-size: 1em;
    line-height: 1.7;
    color: #495057;
    max-width: 850px;
}

.frame-category {
    margin-bottom: 35px;
}
.frame-category h4 {
    font-size: 1.2em;
    color: #212529; /* Primary text */
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0; /* Medium light border */
}

.frame-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}
.css-frames-grid .frame-option-item {
    /* Specific adjustments for CSS frames if needed */
    padding: 10px;
}

.frame-option-item {
    text-align: center;
    background-color: #ffffff; /* White card for frame drawing */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0; /* Medium light border */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.frame-option-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06); /* Subtle hover shadow */
}

.css-frame-drawing {
    /* Container for CSS drawn frame */
    width: 100%;
    aspect-ratio: 16 / 8; /* Adjust to better match door proportions */
    border: 2px solid #6c757d; /* Stronger gray for outer frame */
    background-color: #f8f9fa; /* Light gray for "glass" area */
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 4px; /* Slightly rounded outer frame */
}
.css-frame-drawing.double-wide {
    border-width: 3px; /* Slightly thicker */
    border-color: #495057; /* Darker for double wide */
}

.css-frame-row {
    display: flex;
    flex-grow: 1;
    box-sizing: border-box;
}
.css-frame-row:not(:last-child) {
    border-bottom: 1px solid #adb5bd;
} /* Medium gray for horizontal lines */

.css-frame-panel {
    flex-grow: 1;
    box-sizing: border-box;
}
.css-frame-panel:not(:last-child) {
    border-right: 1px solid #adb5bd;
} /* Medium gray for vertical lines */

.frame-option-item p {
    /* Label below frame drawing */
    font-size: 0.9em;
    color: #333333; /* Dark gray */
    font-weight: 500;
    margin: 0;
}

.panel-styles-disclaimer {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f4f8; /* Light blueish gray background */
    border-radius: 6px;
    border-left: 4px solid #e91e63; /* !!! YOUR ACCENT PINK/PURPLE !!! */
}
.panel-styles-disclaimer p:first-of-type {
    font-size: 1em;
    color: #212529;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}
.panel-styles-disclaimer ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}
.panel-styles-disclaimer ul li {
    font-size: 0.85em;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 8px;
}
.panel-styles-disclaimer ul li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   6. HARDWARE OPTIONS SECTION
   ========================================================================== */
.hardware-options-section {
    background-color: #ffffff; /* Default section background */
}
.hardware-categories {
    display: grid;
    grid-template-columns: 1fr; /* Stack categories by default */
    gap: 30px;
    margin-bottom: 30px;
}

.hardware-category-card {
    background-color: #ffffff; /* Card background */
    border-radius: 8px;
    border: 1px solid #e9ecef; /* Light border */
    overflow: hidden;
}
.hardware-card-header {
    background-color: transparent; /* Cleaner header */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e9ecef; /* Light border */
}
.hardware-card-header h3 {
    font-size: 1.25em;
    color: #212529;
    font-weight: 600;
    margin: 0;
}
.hardware-card-header i {
    font-size: 1.3em;
    color: #e91e63;
} /* !!! YOUR ACCENT PINK/PURPLE !!! */

.hardware-card-body {
    padding: 20px;
}
.hardware-card-body p:first-of-type {
    /* Intro text in card */
    font-size: 0.95em;
    line-height: 1.6;
    color: #495057;
    margin-top: 0;
    margin-bottom: 25px;
}

.hardware-items-grid {
    display: grid;
    grid-template-columns: repeat(
        6,
        1fr
    ); /* Adjust min width for hardware images */
    gap: 15px;
}

.hardware-item {
    text-align: center;
    background-color: #f8f9fa; /* Light gray for item background */
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0; /* Medium light border */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.hardware-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* Very subtle hover shadow */
}
.hardware-item img {
    max-width: 100%;
    height: 70px; /* Adjust default hardware image height */
    object-fit: contain;
    margin-bottom: 8px;
}
.hardware-item.large-item img {
    height: 110px;
} /* For larger opener images */
.hardware-item p {
    /* Label below hardware */
    font-size: 0.8em;
    color: #333333;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.high-end-accessories {
    margin-top: 30px;
    padding: 25px;
    background-color: #fdfaff; /* Light Pinkish Off-White - Alternate section BG */
    border-radius: 8px;
    border: 1px solid #e9ecef; /* Light border */
}
.accessories-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.accessories-header i {
    font-size: 1.3em;
    color: #e91e63;
} /* !!! YOUR ACCENT PINK/PURPLE !!! */
.accessories-header h3 {
    font-size: 1.25em;
    color: #212529;
    font-weight: 600;
    margin: 0;
}

.accessories-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    columns: 2;
    column-gap: 30px;
}
.accessories-list li {
    font-size: 0.9em;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}
.accessories-list li::before {
    content: "•";
    color: #e91e63; /* !!! YOUR ACCENT PINK/PURPLE !!! */
    position: absolute;
    left: 0;
    top: 1px;
}

/* Main container for the right-side content */
.product-info-column {
    display: flex;
    flex-direction: column;
}

/* --- Typography & Basic Info --- */
.product-breadcrumbs {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.product-category {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 1rem;
}
.product-category a {
    color: #e91e63; /* Accent Color (Pink/Purple) */
    text-decoration: none;
    font-weight: 500;
}
.product-category a:hover {
    text-decoration: underline;
}

.product-heading {
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    line-height: 1.25;
    color: #212529;
}

.product-summary {
    font-size: 1rem;
    line-height: 1.65;
    color: #495057;
    margin-bottom: 2rem;
}

/* --- Selections (Color/Size) --- */
.product-selections {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.selection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
}
.selection-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.selection-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db; /* Light gray */
    background-color: #ffffff;
    color: #374151; /* Darker gray */
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}
.selection-btn:hover {
    border-color: #9ca3af;
}
.selection-btn.active {
    border-color: #3a2616; /* Primary Color (Dark Brown) */
    background-color: #3a2616;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --- Quote Actions --- */
.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 5px;
}
.quantity-adjust {
    border: none;
    background-color: #f9fafb; /* Very light gray */
    color: #4b5563;
    font-size: 1.2rem;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.quantity-adjust:hover {
    background-color: #f3f4f6;
}
.quantity-adjust:first-child {
    border-radius: 4px 0 0 4px;
}
.quantity-adjust:last-child {
    border-radius: 0 4px 4px 0;
}

.quantity-value {
    width: 50px;
    height: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    font-size: 1rem;
    -moz-appearance: textfield;
}
.quantity-value::-webkit-outer-spin-button,
.quantity-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.btn-quote {
    flex-grow: 1;
    background-color: #e91e63; /* Accent Color (Pink/Purple) */
    color: #ffffff;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.btn-quote:hover {
    opacity: 0.9;
}

/* --- Meta Info & CTA --- */
.product-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}
.contact-prompt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #fdfaff; /* Light Pinkish Off-White */
    border-radius: 6px;
    border: 1px solid #f2eff3; /* Subtle purple border */
}
.contact-prompt i {
    font-size: 1.5rem;
    color: #3a2616; /* Primary Color (Dark Brown) */
}
.contact-prompt p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.4;
}
.contact-prompt p strong {
    color: #212529;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 992px) {
    /* Medium devices (tablets, less than 992px) */
    .product-details-section {
        grid-template-columns: 1fr;
    }
    .product-content-container {
        padding-left: 0; /* Reset padding when stacked */
        margin-top: 20px;
    }
    .panel-styles-section .frame-options-grid,
    .hardware-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .accessories-list {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .product-gallery-container {
        width: 100%;
        /* min-width: unset; */
    }
    /* Small devices (landscape phones, less than 768px) */
    .product-details-section,
    .product-description-section,
    .color-coating-options-section,
    .glass-options-section,
    .panel-styles-section,
    .hardware-options-section {
        padding: 25px 15px;
        margin-top: 10vh;
        margin-bottom: 10vh;
    }
    .section-header-alt h2,
    .section-header-simple h2,
    .product-description-header h2 {
        font-size: 1.7em;
    }
    .product-title {
        font-size: 1.6em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* Product Description Table Responsive */
    .product-description-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .product-specs-table tbody tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }
    .product-specs-table tbody tr td {
        width: 100% !important;
        border-bottom: none;
        padding: 8px 10px;
    }
    .product-specs-table tbody tr td:first-child {
        background-color: #f0f0f0;
        border-right: none;
        border-bottom: 1px solid #dcdcdc;
        padding-bottom: 8px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }
    .product-specs-table tbody tr td:last-child {
        padding-top: 8px;
        padding-left: 10px;
        border-bottom: 1px solid #dcdcdc;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    .product-specs-table tbody tr:last-child td:last-child {
        border-bottom: none;
    }

    /* Color Options */
    .options-grid {
        grid-template-columns: 1fr; /* Stack cards */
    } /* Stack color/coating cards */
    .swatch-color {
        width: 60px;
        height: 60px;
    }

    /* Glass Options */
    .glass-intro p {
        font-size: 0.95em;
    }
    .glass-samples-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    /* Panel Styles */
    .panel-styles-section .frame-options-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    .panel-styles-section .css-frame-drawing {
        aspect-ratio: 16 / 9;
    }

    /* Hardware */
    .hardware-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hardware-item img {
        height: 60px;
    }
    .hardware-item.large-item img {
        height: 90px;
    }
}

@media (max-width: 480px) {
    /* Extra small devices (portrait phones, less than 480px) */
    .product-title {
        font-size: 1.4em;
    }
    .thumbnail-item img {
        width: 55px;
        height: 40px;
    }
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .thumb-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .finish-swatches {
        flex-direction: column;
        align-items: center;
    } /* Stack standard color swatches */

    .glass-samples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    } /* Force 2 columns */
    .glass-sample-item {
        padding: 10px;
    }

    .panel-styles-section .frame-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .panel-styles-section .frame-option-item {
        padding: 10px;
    }

    .hardware-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .panel-styles-disclaimer ul li,
    .color-disclaimer p {
        font-size: 0.8em;
    }
}

/* patio */
/* ===============================================
   UNIFIED PRODUCT OPTIONS STYLES (FINAL)
   =============================================== */

/* Wrapper for each section to control vertical spacing */
.product-options-wrapper {
    margin-bottom: 2rem; /* This was on the original class */
}

/* This is the key class that applies your desired style */
.options-box {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 35px 25px;
}

/* Header style to match your screenshot */
.options-header {
    margin-bottom: 2.5rem; /* Space between header and content */
}

.options-header h2 {
    font-size: 1.75rem; /* Slightly smaller to fit the design */
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.options-header hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
}

/* Grid container for the content items */
.options-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default to two columns */
    gap: 2.5rem;
}

/* Individual item within the grid */
.option-item {
    display: flex;
    flex-direction: column; /* Stack image over text */
    gap: 1.5rem;
}

/* Special class for a single item to span the full width (like Hardware) */
.option-item.full-width {
    grid-column: 1 / -1; /* Makes this item span all columns */
}

.option-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.option-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.option-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #5a5a5a;
    margin: 0;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .options-content {
        grid-template-columns: 1fr; /* Stack to a single column on tablets and mobile */
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .options-box {
        padding: 25px 20px; /* Slightly reduce padding on mobile */
    }
}
