/* 1. HERO CONTRAST FIX */
#product-hero {
    width: 100%; /* Force full screen width */
    background-color: var(--navy);
    padding: 8rem 0 6rem; /* Standardized for mobile */
    text-align: center;
    position: relative;
    left: 0;
    margin: 0;
}

#product-hero .inner-content {
    /* Ensures text stays in the middle even if the background is 1000 miles wide */
    max-width: var(--inner-width);
    margin: 0 auto;
    padding: 0 1.5rem; 
}


.white-faded {
    font-size: 1.25rem;
    max-width: 45rem;
    margin: 2rem auto 0;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 5;
}

/* THE HERO WATERMARK: 'SOLUTIONS' or 'PRECISION' */
#product-hero::before {
    content: 'SOLUTIONS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: 1;
}

.product-hero-title {
    font-family: "Montserrat", sans-serif;
    font-size: 4.5rem; /* 72px */
    color: #FFFFFF;
    position: relative;
    z-index: 5;
    text-shadow: 0 0 1.5rem rgba(255, 255, 255, 0.1);
}

/* 2. CATEGORY NAV REFINEMENT */
#category-nav {
    display: flex;
    justify-content: center;
    top: 5.5rem; /* Adjust this to match your main navbar's height */
    background: #FFFFFF;
    border-bottom: 1px solid #EEEEEE;
    z-index: 1000;
    padding: 1.25rem 0;
}

.cat-link {
    font-weight: 700;
    font-size: 0.8125rem; /* 13px */
    color: var(--grey-label);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    margin: 0 2rem;
    position: relative;
}

.cat-link:hover { color: var(--red); }

/* THE ACTIVE ANCHOR: CEO'S Precision */
.cat-link.active {
    color: var(--navy) !important; /* Force the Brand Navy highlight */
    font-weight: 800;
}

/* THE RED DOT: Visible and Calibrated */
.cat-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem; /* Precise distance from text */
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--red);
    border-radius: 50%;
    display: block !important; /* Ensure it stays visible */
}

/* 3. PRODUCT PILLAR LAYOUT */
.product-pillar {
    padding: 6rem 0;
}

.pillar-grid-alt {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

/* 4. PLACEHOLDER REFINEMENT */
.blueprint-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: #FDFDFD;
    border: 1px dashed #DDDDDD; /* Thinner line for a cleaner look */
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.placeholder-label {
    font-size: 0.75rem;
    color: #BBBBBB;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.pillar-visual {
    position: relative; /* Essential for the premium overlays */
    width: 100%;
    max-width: 45rem;
    aspect-ratio: 16 / 10;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--navy); /* Acts as the "Deep" layer */
    
    /* 1. THE DEPTH: Triple-stacked shadow for a 3D effect */
    box-shadow: 
        0 0.5rem 1rem rgba(0, 0, 0, 0.1),    /* Sharp contact */
        0 2rem 4rem rgba(18, 26, 51, 0.12),  /* Brand Navy deep shadow */
        0 4rem 8rem rgba(0, 0, 0, 0.05);    /* Ambient soft room air */
    
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 2. THE STUDIO LIGHTING: Vignette & Inner Bezel */
/* This pseudo-element sits ON TOP of the image to refine the lighting */
.pillar-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 
       A radial gradient creates a 'Vignette' that darkens 
       the edges and pulls the eye to the center chair/machine.
    */
    background: radial-gradient(
        circle, 
        transparent 40%, 
        rgba(18, 26, 51, 0.15) 100%
    );
    
    /* THE INNER BEZEL: A tiny white highlight at the top edge */
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
    
    z-index: 5;
    pointer-events: none; /* Allows user to still interact with the image underneath */
}

.product-feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* 3. COLOR GRADING: Surgical Cleanliness */
    /* We add a tiny bit of brightness and desaturate to keep it 'Clinical' */
    filter: brightness(1.02) contrast(1.05) saturate(0.95);
    
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4. THE INTERACTION: High-End Focal Shift */
.pillar-visual:hover .product-feature-image {
    transform: scale(1.05);
    /* Image gets slightly more vibrant on hover */
    filter: brightness(1.05) contrast(1.1) saturate(1);
}

/* 5. TEXT COLUMN STYLING */
.pillar-info .label-red {
    display: block;
    margin-bottom: 0.5rem;
}

.pillar-info h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.description-text {
    color: var(--grey-label);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* 4. THE SPEC LIST: Surgical Precision */
.spec-list {
    padding-left: 0;
    margin-top: 3rem;
}

.spec-list li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    font-size: 1.125rem;
}

.spec-list li i, .spec-list li svg {
    color: var(--red) !important;
    stroke: var(--red) !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    stroke-width: 3px;
    flex-shrink: 0;
}

/* 5. CONSUMABLES BENTO GRID: Visual Depth */
.consumables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

.c-card {
    background: #fff;
    padding: 4rem 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    /* VERTICAL OFFSET SHADOW */
    box-shadow: 0 1.25rem 3.5rem rgba(18, 26, 51, 0.05);
    border-top: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-card:hover {
    transform: translateY(-0.75rem);
    box-shadow: 0 2rem 5rem rgba(18, 26, 51, 0.1);
    border-top-color: var(--red);
}

.c-card i {
    width: 3rem;
    height: 3rem;
    color: var(--red);
    margin-bottom: 2rem;
    stroke-width: 1.5px;
}

.c-card h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

/* --- THE SURGICAL MOBILE CALIBRATION (PRODUCTS PAGE) --- */

@media (max-width: 64rem) { /* 1024px - Tablets */
    .about-page main {
        padding-top: 7rem;
    }

    .pillar-grid-alt {
        grid-template-columns: 1fr; /* Stack visual and text */
        gap: 4rem;
        text-align: center;
    }

    .spec-list {
        align-items: center; /* Center the list on tablet */
    }

    .consumables-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
    }
}

@media (max-width: 48rem) { /* 768px - Mobile Phones */
    /* 1. HERO REFINEMENT */
    #product-hero {
        padding: 5rem 0 4rem;
    }

    .product-hero-title {
        font-size: 2.5rem !important; /* 40px */
        line-height: 1.1;
    }

    /* WATERMARK CAP: Prevent horizontal overflow */
    #product-hero::before {
        font-size: 18vw;
        bottom: -2rem;
    }

    /* 2. CATEGORY NAV: Horizontal Scroll Hub */
    #category-nav {
        top: 5rem; 
        /* THE FIX: Changed from flex-start to center */
        justify-content: center; 
        
        /* 
           Keep overflow-x: auto just in case the screen is 
           extremely narrow (like an older iPhone), 
           but the content will now start in the middle.
        */
        overflow-x: auto; 
        padding: 1.25rem 0;
    }

    .cat-flex {
        display: flex;
        justify-content: center; /* Centers the actual links */
        width: 100%;
        gap: 1rem; /* Tighter gap for mobile centering */
    }

    .cat-link {
        margin: 0 0.75rem; /* Balanced margins */
        font-size: 0.7rem;
        flex-shrink: 0;
        /* Remove the absolute left padding if any */
        padding: 0 0 0.5rem 0; 
    }
    
    /* Ensure the active indicator dot is also centered */
    .cat-link.active::after {
        bottom: -0.5rem;
    }

    /* 3. PRODUCT PILLAR: Sequential Logic */
    .product-pillar {
        padding: 4rem 0;
    }

    .pillar-info h2 {
        font-size: 1.75rem !important; /* 28px */
        margin-bottom: 1rem;
    }

    .spec-list {
        /* THE FIX: Turn the list into a centered block */
        display: inline-flex; 
        flex-direction: column;
        align-items: flex-start; /* Keeps icons locked to the left of the text */
        
        /* THE FIX: Centers the entire 'Island' of text horizontally */
        margin: 2.5rem auto 0; 
        padding-left: 0;
        
        /* Ensures the list takes up only the width of its content */
        width: fit-content; 
        text-align: left;
    }

    .spec-list li {
        justify-content: flex-start;
        margin-bottom: 1.25rem;
        font-size: 1rem;
    }

    /* 4. BLUEPRINT BOX: Scaling for the pocket */
    .blueprint-placeholder {
        aspect-ratio: 16/9; /* Wider on mobile for better thumb-scrolling */
        border-radius: 1rem;
        max-width: 100%;
    }

    /* 5. CONSUMABLES GRID: The Single Column Stack */
    .consumables-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .center-heading {
        /* THE FIX: Force everything in this container to the vertical center */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        
        margin-bottom: 3.5rem; /* Generous space before the 3 cards */
        width: 100%;
    }

    .center-heading .label-red {
        /* Standardizing the 'INVENTORY' label */
        margin-left: 0; 
        margin-bottom: 0.75rem;
        letter-spacing: 0.2rem;
        font-size: 0.75rem;
    }

    .center-heading h2 {
        /* THE FIX: Scale and Center the 'Supplies and Consumables' title */
        font-size: 1.85rem !important; /* 30px */
        line-height: 1.2;
        max-width: 20rem; /* Keeps the heading punchy and not too wide for mobile */
    }

    /* THE STRIPED BG REFINEMENT */
    /* Ensure the padding-top here doesn't crowd our newly centered title */
    .striped-bg-blend-top {
        padding-top: 5rem;
    }

    .c-card {
        padding: 2.5rem 2rem !important; /* Standard Card Padding */
        text-align: center;
    }

    .c-card h4 {
        font-size: 1.25rem;
    }

    .c-card p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* FOOTER MOBILE RECALIBRATION */
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .f-col-brand {
        grid-column: 1 / span 2;
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 64rem) { /* Target iPad / Tablet size */
    
    #category-nav {
        display: flex;
        /* THE FIX: Allow centering when there's room, 
           but switch to scrolling when it gets tight */
        justify-content: flex-start; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
        padding: 1.25rem 1.5rem; /* Side padding for finger-swiping room */
    }

    /* Hide scrollbar to keep it 'Neat' as requested */
    #category-nav::-webkit-scrollbar { display: none; }

    .cat-flex {
        display: flex;
        justify-content: center; /* Tries to center content */
        margin: 0 auto; /* Keeps it centered if width allows */
        gap: 2rem; /* Reduced gap for smaller screens */
    }

    .cat-link {
        /* THE CRITICAL FIX: Forces text to stay on one single line */
        white-space: nowrap; 
        
        font-size: 0.75rem; /* 12px for technical density */
        letter-spacing: 0.1rem;
        flex-shrink: 0; /* Prevents the text from being squeezed */
        margin: 0;
    }
}

/* Specific Tweak for standard iPhone/Narrow mobile */
@media (max-width: 30rem) {
    .cat-flex {
        gap: 1rem;
    }
    .cat-link {
        font-size: 0.7rem;
    }
}

@media (max-width: 48rem) {
    /* THE FIX: Forces side-by-side elements to stack on ALL phones */
    .pillar-grid-alt, 
    .grid-50-50 {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
        width: 100% !important;
    }

    .pillar-visual, 
    .pillar-info {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    /* THE IMAGE: Ensure the 45rem max-width doesn't break small screens */
    .pillar-visual {
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 10;
        margin: 0 auto;
    }

    .product-feature-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}