/* =========================================================
   BASE STYLES
========================================================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.skiptocontent {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #333;
    color: #fff;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skiptocontent:focus {
    top: 0;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    max-width: 400px;
    height: auto;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-right: 1rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 2rem;
    margin: 4rem;
}

.hero {
    background-color: #0073e6;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.hero h1 {
    margin: 0 0 1rem;
}

.hero p {
    margin: 0 0 2rem;
}

.cta-button {
    background-color: #573800;
    color: #FFFFFF;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin-right: 1rem;
}

.feature:last-child {
    margin-right: 0;
}

.products {
    margin-top: 2rem;
}

.product-list {
    display: flex;
    justify-content: space-between;
    
}

.product {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin-right: 1rem;
    text-align: center;
}

.product:last-child {
    margin-right: 0;
}

.product img {
    max-width: 100%;
    height: auto;
}

.product h2 {
    margin: 1rem 0;
}

.product-link {
    background-color: #0073e6;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.product-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-detail img {
    max-width: 300px;
    height: auto;
}

.product-detail .price {
    font-size: 1.5rem;
    color: #0073e6;
    margin: 1rem 0;
}

.product-detail .description {
    text-align: center;
    margin: 1rem 0;
}

.add-to-cart {
    background-color: #ff6600;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}

.cart {
    margin-top: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.cart-item img {
    max-width: 100px;
    height: auto;
}

.remove-from-cart {
    background-color: #8A0000;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}

.cart-total {
    text-align: right;
    margin-top: 1rem;
}

.checkout {
    background-color: #0073e6;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}

.contact {
    margin-top: 2rem;
}

/* form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
} */
.sr-only {
    display:none;
}
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}


.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    
    border: 1px solid #ccc;
    border-radius: 5px;
}

button[type="submit"] {
    background-color: #0073e6;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* For mobile */

/* Hide checkbox */
.menu-toggle {
    display: none;
}

/* Hamburger button */
.hamburger {
    display: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.product-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Voice search */
#voice-search {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #d3d0d0;
}

/* Listening state */
#voice-search.listening {
    color: #ff6600;
    animation: mic-blink 1s infinite;
}

/* Processing state */
#voice-search.processing {
    color: #0073e6;
    animation: none;
}

/* Error state */
#voice-search.error {
    color: #8A0000;
}

@keyframes mic-blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.voice-feedback {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #e7e6e6;
    min-height: 1.2em;
}


/* MOBILE LAYOUT */
@media (max-width: 768px) {

    /* Show hamburger */
    .hamburger {
        display: block;
    }

    header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Hide nav by default */
    nav.nav-menu {
        display: none;
        width: 100%;
        background-color: #222;
        padding: 1rem 0;
        
    }

    /* Show nav when checkbox is checked */
    .menu-toggle:checked + .hamburger + .nav-menu {
        display: block;
    }

    /* Vertical menu items */
    nav.nav-menu ul {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    nav.nav-menu ul li {
        margin: 0;
    }

    /* Main spacing */
    main {
        margin: 0.5rem;
        padding: 1rem;
    }

    /* Features stack vertically */
    .features {
        flex-direction: column;
        gap: 1rem;
    }

    .feature {
        width: 100%;
        margin-right: 0;
    }

    /* Products stack vertically */
    .product-list {
        flex-direction: column;
        gap: 1rem;
    }

    .product {
        width: 100%;
        margin-right: 0;
    }

    /* Search bar responsive */
    .product-search {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: stretch;
       
    }

    .product-search input {
        width: 100%;
        max-width: 100%;
    }

    /* Footer static */
    footer {
        position: static;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}
