body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

/* Navbar styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent; /* Slightly transparent */
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Logo */
.logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

/* Navigation links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 8px 12px;
    transition: 0.3s;
    border-radius: 5px;
}

.snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 16px;
    position: fixed;
    z-index: 1002;
    left: 50%;
    bottom: 30px;
    font-size: 14px;
    transition: visibility 0.3s, opacity 0.3s;
    opacity: 0;
}

.snackbar.success {
    background-color: #4114e4;
}

.snackbar.error {
    background-color: #f44336;
}

.snackbar.show {
    visibility: visible;
    opacity: 1;
}

/* Hover & Active Effects */
.nav-links a:hover,
.nav-links a.active {
    background-color: #ff6600;
    color: white;
}

/* Mobile menu button */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #0c0e14;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: #ffffff;
        text-decoration: none;
        padding: 10px 0;
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    /* Show menu when active */
    .nav-links.active {
        display: flex;
    }
}

.hero {
    background: url('img/tbm.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 2rem;
    margin: 0;
}

.hero p {
    font-size: 1.2rem;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    margin: 30px 0 10px;
}

.promo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    background-color: #fafafa;
    font-family: 'Poppins', sans-serif;
}

.promo-content {
    max-width: 50%;
}

.promo-content h4 {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.promo-content h1 {
    font-size: 48px;
    font-family: 'Poppins', sans-serif;
    color: #000;
    margin-bottom: 20px;
}

.shop-now-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f23e3e;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    border-radius: 5px;
}

.promo-image img {
    max-width: 60%;
    height: auto;
}

.promo-features {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    background-color: #fff;
}

.feature-item {
    text-align: center;
    max-width: 20%;
}

.feature-item img {
    max-width: 50px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.feature-item span {
    font-size: 16px;
    color: #888;
    font-family: 'Poppins', sans-serif;
}

/* NEW: Product Category Sections */
.product-category {
    margin: 40px 0;
    padding: 0 20px;
}

.category-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #ff6600;
}

/* NEW: Horizontal scrollable product container */
.products {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar styling */
.products::-webkit-scrollbar {
    height: 8px;
}

.products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 10px;
}

.products::-webkit-scrollbar-thumb:hover {
    background: #ff8533;
}

/* Modified product card for horizontal layout */
.product {
    background: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
    max-width: 250px;
    flex-shrink: 0; /* Prevent shrinking */
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.product p {
    font-size: 1rem;
    margin: 10px 0;
    color: #333;
}

.product span {
    font-weight: bold;
    color: #000;
}

/* Hover effect for product cards */
.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product:hover img {
    transform: scale(1.05);
}

.product:hover p, 
.product:hover span {
    color: #007bff;
}

/* Scroll navigation buttons (optional) */
.scroll-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.scroll-btn {
    background: #ff6600;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.scroll-btn:hover {
    background: #ff8533;
}

.scroll-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .product {
        min-width: 200px;
        max-width: 200px;
    }
    
    .product img {
        height: 150px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .product-category {
        padding: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .product {
        min-width: 180px;
        max-width: 180px;
    }
    
    .products {
        gap: 15px;
    }
}

/* New styles for cart functionality */
.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff6600;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 1001;
    padding: 20px;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 20px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-selector button {
    background: #eee;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.purchase-btn {
    background: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    width: 50%;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
}

.purchase-btn:hover {
    background: #ff8533;
}

.add-to-cart-btn {
    background: #ff6600;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    width: 120px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}    

.add-to-cart-btn:hover {
    background: #ff8533;
}