/* Updated styles.css */
:root {
    --navy: #1a2a44;
    --light-blue: #007bff; 
    --orange: #ff6600;
    --white: #ffffff;
    --text-color: #333;
    --light-grey: #f4f4f4;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #07386d 0%, #007bff 100%);
    padding: 0;
}

.container {
    max-width: 950px;
    margin: 40px auto;
    background: var(--white);
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

header {
    background-color: var(--navy);
    color: var(--white);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-small {
    width: 20px;
    margin-right: 8px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9em;
}

/* Page Title Styling */
.page-content { padding: 30px 40px; }
h1 { font-size: 1.8em; color: var(--navy); margin-bottom: 20px; }

/* Filter Bar Styling */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
}
.filter-bar input, .filter-bar select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}
.filter-bar input { flex-grow: 1; max-width: 300px; }
.btn-orange {
    background-color: var(--orange);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    border: none; /* Ensure buttons don't look like inputs */
    cursor: pointer;
}

/* Product Grid & Card Styling */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden; /* Ensures image corners match card corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}
.product-img {
    width: 100%;
    height: auto;
    background-color: var(--light-grey); /* Placeholder background */
}
.product-info {
    padding: 15px;
}
.product-info h3 {
    font-size: 1em;
    margin: 0 0 5px;
    color: var(--text-color);
}
.product-info p {
    font-size: 0.8em;
    color: #999;
    margin: 0 0 10px;
}
.product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 15px;
    display: block;
}
.category-content {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #ff6600; /* Orange accent */
    margin-bottom: 30px;
}

.bundle-header h2 {
    color: #001f3f; /* Navy Blue */
    margin-bottom: 5px;
}

.bundle-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.bundle-section h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.bundle-section ul {
    list-style-type: none;
    padding-left: 0;
}

.bundle-section li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}
.upgrade-note {
    color: #ff6600;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 5px;
    text-transform: uppercase;
}

.category-content h2 {
    color: #001f3f;
    border-bottom: 2px solid #001f3f;
    padding-bottom: 10px;
}
/* Container for the mini tiles - Now horizontal */
.tile-grid {
    display: flex;
    /* Removed flex-wrap: wrap; to keep it a single horizontal line */
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto; /* Adds horizontal scrolling if items overflow */
    padding-bottom: 10px; /* Gives space for scrollbar on desktop */
}

/* Individual Tile Styling */
.product-tile {
    /* Removed flex basis calculation, use a fixed width for horizontal */
    flex-shrink: 0; /* Prevents tiles from shrinking too much */
    width: 140px; /* Fixed width for horizontal scrolling */
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Placeholder for your future images */
.tile-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}

.product-tile p {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.2;
}
.tile-img {
    width: 100%;
    aspect-ratio: 1 / 1;    /* Forces a perfect square */
    object-fit: contain;    /* Fits the whole image inside without cropping */
    background: #fff;       /* Adds white background if image is transparent */
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: block;
    height: 120px;     /* Set a fixed height */
}

/* Color Palette: Navy #001f3f | Orange #ff6600 */

.why-hero {
    background-color: #001f3f;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.why-hero h1 { font-size: 3rem; margin-bottom: 20px; }
.orange-text { color: #ff6600; }
.hero-subtext { max-width: 800px; margin: 0 auto 30px; font-size: 1.2rem; opacity: 0.9; }

.value-grid-section { padding: 80px 20px; background: #fff; }
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: transform 0.3s;
    text-align: center;
}

.value-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.value-card .icon { font-size: 2.5rem; margin-bottom: 15px; }

.brand-section { background: #f4f4f4; padding: 60px 20px; text-align: center; }
.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    opacity: 0.6;
    font-weight: bold;
    font-size: 1.2rem;
}

.cta-bottom {
    padding: 80px 20px;
    text-align: center;
    background-color: #001f3f;
    color: white;
}

.btn-orange {
    background-color: #ff6600;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-orange:hover { background-color: #e55b00; }
.principles-section {
    background: #f9f9f9; /* Very light gray */
    padding: 60px 20px;
    text-align: center;
}

.principles-section h2 {
    margin-bottom: 30px;
    color: #001f3f; /* Navy Blue */
}

.principles-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.principles-section li {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    flex: 1 1 200px; /* Responsive: min width 200px */
    font-size: 0.95rem;
    line-height: 1.4;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8em;
    color: var(--white);
    background-color: var(--navy);
}
/* Mobile Optimizations */
@media (max-width: 768px) {
    /* 1. Stack the "Why Us" grid vertically */
    .value-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* 2. Make Hero Text smaller so it doesn't wrap awkwardly */
    .why-hero h1 {
        font-size: 1.8rem;
    }

    /* 3. Ensure the Bundle Tiles allow for easy thumb-scrolling */
    .tile-grid {
        gap: 10px;
        padding-bottom: 20px; /* Space for the thumb */
    }

    .product-tile {
        width: 130px; /* Slightly narrower for smaller screens */
    }

    /* 4. Fix Product Grid to 2 columns instead of 3 or 4 */
    .product-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* 5. Make the Filter Bar stack vertically */
    .filter-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

