:root {
    --primary: #2C3E50;
    --secondary: #34495E;
    --accent: #E67E22;
    --bg-color: #fff;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --border-color: #ECF0F1;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 4px rgba(0,0,0,0.05);
    --radius: 0.5rem;
    --max-width-mobile: 100vw;
    --max-width-tablet: 64rem;
    --max-width-desktop: 80rem;
}

/* Force light mode while preserving original colors */
html {
    color-scheme: light only;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-y: scroll;
}

/* Override any system dark mode preferences */
@media (prefers-color-scheme: dark) {
    html, body, * {
        color-scheme: light only !important;
    }
    
    body {
        background: var(--bg-color) !important;
        color: var(--text-primary) !important;
    }
    
    .section, .product-section {
        background: var(--bg-color) !important;
        color: var(--text-primary) !important;
    }
    
    .section-header {
        background: var(--bg-color) !important;
        color: var(--text-primary) !important;
    }
    
    .section-content {
        background: var(--bg-color) !important;
        color: var(--text-primary) !important;
    }
}

/* Container and Layout */
.container {
    width: 100vw;
    max-width: var(--max-width-mobile);
    margin: 0;
    padding: 0;
}

/* Sections - Base Styles */
.section, .product-section {
    background: none !important;
    border-radius: 0;
    margin: 0;
    padding: 0.15rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
    max-width: 100%;
}

.section:first-child, .product-section:first-child { 
    border-top: none; 
}

/* Section Headers */
.section {
    position: relative;
    margin: 0;
    cursor: pointer;
    background: var(--bg-color) !important;
    box-shadow: var(--shadow-sm);
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    max-width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.toggle-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Hidden checkbox for CSS-only accordion */
.section-toggle {
    position: absolute;
    height: 88px;
    width: 100%;
    opacity: 0;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.section-header {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    user-select: none;
    position: relative;
    height: 64px;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

/* Section Content */
.section-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, 
                opacity 0.25s ease-out;
}

/* When checkbox is checked, expand content */
.section-toggle:checked ~ .section-content {
    max-height: 1000px;
    opacity: 1;
}

/* When checkbox is checked, rotate chevron */
.section-toggle:checked ~ .section-header .toggle-icon {
    transform: translateY(-50%) rotate(180deg);
}

.section-content-inner {
    padding: 0.15rem 0.5rem;
    max-width: 100%;
}

/* Scrollable Cards */
.materials-scroll, .desc-care-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-padding: 0.5rem;
    max-width: 100%;
}

.material-card, .desc-care-card {
    width: 100%;
    min-width: 80vw;
    max-width: 340px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    flex: 0 0 auto;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}

/* Supply Chain Steps */
.supply-chain-steps-vertical { 
    display: flex; 
    flex-direction: column; 
    gap: 0.25rem; 
    margin: 0; 
    max-width: 100%;
}

.supply-chain-step-vertical { 
    display: flex; 
    align-items: center; 
    background: #f8f9fa; 
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1); 
    border-radius: 12px; 
    padding: 0.75rem; 
    gap: 0.75rem; 
    margin: 0; 
    border: 1px solid #e9ecef; 
    min-height: 60px;
    box-sizing: border-box;
}

.supply-chain-step-vertical .detail-label { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    flex: 1;
    line-height: 1;
}

.supply-chain-step-vertical .detail-label img {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.supply-chain-step-vertical .detail-label span {
    line-height: 1;
    display: flex;
    align-items: center;
    font-weight: 400;
    justify-content: flex-start;
}

.supply-chain-step-vertical .detail-value { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end;
    text-align: right;
    line-height: 1;
}

/* Map Container */
.map-container { 
    height: 300px; 
    border-radius: var(--radius); 
    margin: 1rem 0; 
    border: 1px solid var(--border-color); 
    position: relative;
    cursor: pointer;
    max-width: 100%;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: var(--radius);
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.map-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-overlay::after {
    content: "Tap to interact";
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
}

/* Product Section Specific */
.product-section .product-info {
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
    max-width: 100%;
}

.product-section .product-title { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

.product-image-container { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 1rem; 
    padding: 0.15rem 0.5rem;
    max-width: 100%;
}

.product-image { 
    align-self: flex-start; 
    width: 100%; 
    max-width: 400px; 
    height: auto; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
}

.product-details-inline { 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    margin-top: 1rem; 
    width: 100%; 
}

.product-certifications { 
    margin: 0.25rem 0 0 0; 
    justify-content: center; 
}

/* Icons and Links */
.inline-icons-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    height: 60px;
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
}

.inline-icons-row img {
    height: 60px;
    width: auto;
    max-width: 100px;
    max-height: 60px;
    flex: 0 0 auto;
    object-fit: contain;
}

.inline-icons-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.certification-squares a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cert-link { 
    text-align: center; 
    margin: 0.5rem 0 0.25rem 0; 
}

.cert-link a { 
    display: inline-block; 
    background: #f8f9fa; 
    border: 1px solid #e9ecef; 
    border-radius: 12px; 
    padding: 0.375rem 0.5rem; 
    text-decoration: none; 
    color: var(--text-primary); 
    font-weight: 500; 
    font-size: 0.75rem; 
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Typography */
.detail-value { 
    color: var(--text-primary); 
    font-weight: 400; 
}

.desc-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
    color: var(--text-primary);
    text-align: left;
}

.desc-text {
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
}

/* Tablet Styles (768px+) */
@media (min-width: 768px) {
    .container {
        max-width: var(--max-width-tablet);
        margin: 0 auto;
        padding: 1rem;
    }
    
    .section, .product-section {
        border-radius: var(--radius);
        margin: initial;
        padding: 0.5rem;
        background: var(--bg-color);
        border: 1px solid var(--border-color);
        max-width: var(--max-width-tablet);
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-content-inner, .product-section .product-info, .product-section .product-image-container {
        padding: 1rem 1.5rem;
    }
    
    .section-header {
        padding: 1rem 1.5rem;
        margin: 0.75rem 0;
    }
    
    .section-header {
        max-width: var(--max-width-tablet);
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-content-inner {
        max-width: var(--max-width-tablet);
        margin-left: auto;
        margin-right: auto;
    }
    
    .materials-scroll, .desc-care-scroll {
        max-width: var(--max-width-tablet);
        margin-left: auto;
        margin-right: auto;
    }
    
    .supply-chain-steps-vertical {
        max-width: var(--max-width-tablet);
        margin-left: auto;
        margin-right: auto;
    }
    
    .map-container {
        max-width: var(--max-width-tablet);
        margin-left: auto;
        margin-right: auto;
    }
    
    .inline-icons-row {
        max-width: var(--max-width-tablet);
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-image-container {
        align-items: center !important;
    }
    
    .product-image {
        align-self: center !important;
    }
    
    .product-image-container > div {
        text-align: center !important;
    }
    
    .product-certifications {
        justify-content: center !important;
    }
}

/* Desktop Styles (900px+) */
@media (min-width: 900px) {
    .container {
        max-width: var(--max-width-desktop);
    }
    
    .section, .product-section {
        max-width: var(--max-width-desktop);
    }
    
    .section-header {
        max-width: var(--max-width-desktop);
    }
    
    .section-content-inner {
        max-width: var(--max-width-desktop);
    }
    
    .materials-scroll, .desc-care-scroll {
        max-width: var(--max-width-desktop);
    }
    
    .supply-chain-steps-vertical {
        max-width: var(--max-width-desktop);
    }
    
    .map-container {
        max-width: var(--max-width-desktop);
    }
    
    .inline-icons-row {
        max-width: var(--max-width-desktop);
        height: 64px;
    }
    
    .inline-icons-row img {
        height: 64px;
        max-width: 108px;
        max-height: 64px;
    }
    
    .product-image {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-image-container {
        flex-direction: row !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    
    .product-image {
        flex: 0 0 auto;
        margin: 0 !important;
    }
    
    .product-image-container > div {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .material-card, .desc-care-card {
        min-width: 320px;
        max-width: 340px;
    }
}

/* Mobile Card Adjustments */
@media (min-width: 600px) {
    .material-card, .desc-care-card {
        min-width: 320px;
        max-width: 340px;
    }
}
