:root {
    --primary: #004aad;
    --primary-dark: #003380;
    --secondary: #ffcc00;
    --secondary-hover: #e6b800;
    --text-main: #2c3e50;
    --text-light: #6c757d;
    --bg-body: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 80px; /* Space for floating cart */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo .highlight { color: var(--secondary); }

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.main-nav a:hover { color: var(--primary); }

.cart-link {
    background: var(--bg-body);
    padding: 8px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-count {
    background: var(--secondary);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Banner Carousel --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust height as needed */
    overflow: hidden;
    margin-bottom: 40px;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient placeholders for banners until user uploads images */
.slide-1 { background: linear-gradient(135deg, #004aad, #007bff); }
.slide-2 { background: linear-gradient(135deg, #1e293b, #334155); }

.slide-content {
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 20px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 74, 173, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary-dark);
    box-shadow: 0 4px 6px rgba(255, 204, 0, 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}

/* --- Sections --- */
.section { padding: 60px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    background: rgba(255, 204, 0, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
}

.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-main); }
.feature-card p { color: var(--text-light); font-size: 0.9rem; }

/* --- Product Cards --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    height: 200px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures image stays within bounds without cropping */
}

/* ... existing code ... */

/* Mobile adjustments for Product Details */
@media (max-width: 768px) {
    /* ... existing menu code ... */

    .product-detail {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    overflow: hidden; /* Prevent internal overflow */
}

.product-detail > div {
    flex: 1;
    min-width: 300px;
    max-width: 100%; /* Ensure content doesn't exceed container */
}

.product-detail img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-sm);
}

/* Mobile adjustments for Product Details */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column !important;
        padding: 15px !important; /* Reduce padding on mobile */
        gap: 20px !important;
    }
    
    .product-detail > div {
        width: 100% !important;
        min-width: 0 !important; 
    }

    .installation-option {
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .installation-option label {
        display: flex !important;
        flex-direction: row !important; /* Keep checkbox next to text but wrap if needed */
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .installation-option span {
        font-size: 0.85rem !important;
        word-break: break-word; /* Ensure text wraps */
    }
}
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.product-price {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.product-actions {
    margin-top: auto;
}

/* --- About & Guarantee --- */
.about-box, .guarantee-box {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}
.check-list li i { color: #28a745; }

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-col h3 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #999; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 5px; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        transition: var(--transition);
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    .main-nav.active { left: 0; }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .hero-slider { height: 300px; }
    .slide-content h2 { font-size: 1.8rem; }
}