/* style.css - UPDATED AGAIN */

/* Basic Reset and Box Sizing for Responsiveness */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif; /* Classic, clear sans-serif */
    line-height: 1.6;
    color: #333; /* Dark grey for readability */
    background-color: #f4f4f4; /* Light grey background */
}

/* USA Govt Emergency Style Palette */
/* Dark Blue: #003366 */
/* White: #FFFFFF */
/* Light Grey: #F0F0F0 */
/* Text Black/Dark Grey: #333333 */
/* Subtle Red/Warning: #CC0000 (use sparingly) */


/* Header & Navigation */
header {
    background-color: #003366; /* Dark blue */
    color: #ffffff; /* White text */
    padding: 0.5rem 20px; /* Reduced vertical padding, added horizontal */
    position: sticky; /* Make header sticky */
    top: 0; /* Stick to the top */
    z-index: 1000; /* Ensure it's above other content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow */
}

.header-container {
    max-width: 1200px; /* Limit header content width */
    margin: 0 auto; /* Center header content */
    display: flex; /* Use flexbox for logo and nav */
    justify-content: space-between; /* Put logo on left, nav on right */
    align-items: center; /* Vertically align items */
    min-height: 60px; /* Minimum height for header */
}



.site-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 30px; /* Control the height of the logo */
    width: auto; /* Maintain aspect ratio */
}

/* Desktop Navigation */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Arrange menu items horizontally */
}

.main-nav ul li {
    margin-left: 20px; /* Space between menu items */
}

.main-nav a {
    color: #ffffff; /* White links */
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0; /* Padding for clickable area */
    display: inline-block;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #cccccc; /* Light grey on hover */
}

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none; /* Hide by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative; /* Needed for hamburger lines */
    z-index: 1100; /* Ensure toggle is above nav when active */
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff; /* White lines */
    margin: 5px 0;
    transition: background-color 0.3s ease;
}


/* Main Content Sections */
.content-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 20px auto;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.content-section h2 {
    color: #003366;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #003366;
    margin: 10px auto 0;
}

/* Product Catalog */
.product-list {
    display: grid;
    /* Default: 3 columns on larger screens, adjusting down */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    border: 1px solid #cccccc;
    padding: 15px;
    background-color: #f9f9f9;
    display: flex; /* Use flexbox for image and details */
    gap: 15px; /* Space between image and details */
    align-items: center; /* Vertically align image and text */
}

.product-image {
    display: block;
    width: 100px; /* Fixed width for image on desktop */
    height: 100px; /* Fixed height for image on desktop */
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    padding: 3px;
}

.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-details h3 {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.product-details .price {
    color: #CC0000;
    font-size: 1.4em;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.product-details p {
    margin: 0 0 10px 0;
    font-size: 0.95em;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto;
    align-self: flex-start; /* Align button to the left within flex column */
}

.whatsapp-button:hover {
    background-color: #1DA851;
}

/* Payment, Refund, Shipping */
.info-block h3 {
    color: #003366;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 5px;
}

.info-block p {
    margin-bottom: 15px;
}

/* Reviews Section */
.review-list {
    list-style: none;
    padding: 0;
}

.review-list li {
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 5px solid #003366;
}

.review-list li p {
    margin: 0;
    font-style: italic;
}

/* Footer / Contact Section */
footer {
    background-color: #333;
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

footer h2 {
     color: #ffffff;
     margin-bottom: 20px;
     font-size: 1.5em;
     position: relative;
}
footer h2::after {
     content: '';
     display: block;
     width: 40px;
     height: 2px;
     background-color: #ffffff;
     margin: 10px auto 0;
}


footer p {
    margin-bottom: 10px;
    font-size: 0.9em;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #ffffff;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

footer a:hover {
    color: #cccccc;
    border-bottom-color: #cccccc;
}

/* Responsive Adjustments */
@media (max-width: 768px) { /* Tablets and smaller */

    /* Mobile Header Layout */
    header {
        padding: 0.5rem 15px; /* Adjust padding for smaller screens */
    }

    .header-container {
         justify-content: space-between; /* Logo left, toggle right */
         min-height: 50px; /* Slightly smaller header on mobile */
    }

    .site-logo .logo-text {
        font-size: 1.3em; /* Smaller logo text */
    }

    /* Show the mobile menu toggle */
    .menu-toggle {
        display: block; /* Show the hamburger icon */
    }

    /* Mobile Navigation (Initially Hidden) */
    .main-nav {
        position: absolute; /* Position relative to header */
        top: 100%; /* Place below the header container */
        left: 0;
        width: 100%; /* Full width */
        background-color: #003366; /* Match header background */
        box-shadow: 0 5px 5px rgba(0,0,0,0.2);
        /* Hide by default */
        max-height: 0; /* Use max-height for transition */
        overflow: hidden; /* Hide content overflowing max-height */
        transition: max-height 0.3s ease-in-out; /* Smooth slide effect */
    }

    /* State when navigation is open */
    .main-nav.nav-open {
        max-height: 300px; /* Sufficient height to show all links */
    }

    .main-nav ul {
        flex-direction: column; /* Stack nav items vertically */
        align-items: center; /* Center stacked items */
        padding: 10px 0; /* Add padding inside the menu */
    }

    .main-nav ul li {
        margin: 10px 0; /* Space between stacked items */
    }

    .main-nav a {
         padding: 5px 0; /* Padding for stacked links */
    }


    .content-section {
        padding: 20px 15px;
        margin: 15px auto;
    }

    .content-section h2 {
        font-size: 1.6em;
        margin-bottom: 25px;
    }

    /* Mobile Product Grid - Two columns */
    .product-list {
        /* Adjusted minmax to better fit two columns with a larger image */
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    /* Mobile Product Item Layout - Still Stacked (as per previous update) */
    .product-item {
        flex-direction: column; /* Stack image and details vertically */
        align-items: center; /* Center content within the item */
        gap: 10px;
        padding: 10px;
         text-align: center; /* Center text when stacked */
    }

     /* Larger image on Mobile */
     .product-image {
        width: 120px; /* Increased width for mobile */
        height: 120px; /* Increased height for mobile */
        margin-bottom: 8px; /* Space below image */
     }

     .product-details {
        align-items: center; /* Center text and button */
     }

    .product-details h3 {
        font-size: 1.1em;
        margin-bottom: 3px;
    }

    .product-details .price {
         font-size: 1.2em;
         margin-bottom: 8px;
    }

    .product-details p {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .whatsapp-button {
        width: auto; /* Auto width */
        padding: 6px 12px;
        align-self: center; /* Center button */
    }


    footer {
        padding: 20px 15px;
    }

    footer h2 {
        font-size: 1.4em;
    }
     footer p {
         font-size: 0.85em;
     }
}

@media (max-width: 480px) { /* Extra small screens */
     .site-logo .logo-text {
        font-size: 1.1em;
     }

    .content-section h2 {
        font-size: 1.4em;
    }

    /* On very small screens, revert to one column */
    .product-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-item {
         padding: 10px;
    }
    /* Keep mobile image size for very small screens too, or adjust slightly */
    .product-image {
        width: 100px;
        height: 100px;
    }
    .product-details h3 {
        font-size: 1em;
    }
     .product-details .price {
         font-size: 1.1em;
     }
     .product-details p {
         font-size: 0.85em;
     }
     .whatsapp-button {
         padding: 5px 10px;
         font-size: 0.9em;
     }

    footer h2 {
        font-size: 1.2em;
    }
    footer p {
        font-size: 0.8em;
    }
}