/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   PROMO BAR
========================= */
.promo-bar {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* =========================
   HEADER
========================= */
header {
    background: #fff;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 90px;
}

/* NAVIGATION */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 90px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2000;
}

.nav-links a, .dropbtn {
    color: #333;
    font-weight: 500;
    position: relative;
    cursor: pointer;
}

.nav-links a:hover, .dropbtn:hover {
    color: #c62828;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 180px;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    margin-top: 5px;
    z-index: 1000;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: #333;
}

.dropdown-content a:hover {
    background: #f2f2f2;
}

/* Desktop hover dropdown */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: flex;
    }
}

/* Hamburger menu */
.nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Mobile right-side menu */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100%;
        background: #fff;
        flex-direction: column;
        padding-top: 100px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    /* Mobile dropdown inside menu */
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
    }
    .dropdown.active .dropdown-content {
        display: flex;
        flex-direction: column;
    }
    .dropdown .dropbtn::after {
        content: " ▾";
        float: right;
    }
}

/* =========================
   HAMBURGER MENU
========================= */
.nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
}

/* =========================
   MOBILE MENU - RIGHT SIDE SLIDE
========================= */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -260px;
        height: 100%;
        width: 260px;
        background-color: #fff;
        flex-direction: column;
        padding-top: 100px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    /* Overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1500;
    }

    /* Mobile dropdown */
    .dropdown-content {
        position: static;
        box-shadow: none;
        margin-top: 0;
    }

    .dropdown .dropbtn::after {
        content: " ▾";
        float: right;
    }

    .dropdown.active .dropdown-content {
        display: flex;
        flex-direction: column;
    }
}

/* =========================
   HERO SECTION
========================= */
.hero-slider {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.slides {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 30px 40px;
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-primary {
    background: #e63946;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   SEARCH SECTION
========================= */
.search-section {
    padding: 50px 0;
    text-align: center;
    background: #fff;
}

.search-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.search-form input {
    padding: 12px;
    width: 320px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-form button {
    padding: 12px 20px;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-form button:hover {
    background: #333;
}

/* =========================
   CATEGORY & PRODUCT CARDS
========================= */
.categories, .product-slider-section {
    padding: 60px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 25px;
}

.category-card-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    color: #fff;
}

.category-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.4s ease;
}

.category-card-img:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    width: 100%;
    padding: 15px;
    text-align: center;
}

.category-overlay h3 {
    font-size: 18px;
}

.product-card, .product-slide {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.product-card:hover, .product-slide:hover {
    transform: translateY(-6px);
}

.product-card img, .product-slide img {
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
}

.product-card h3, .product-slide h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-card p, .price {
    font-weight: bold;
    margin-bottom: 10px;
    color: #e63946;
}

.product-card a, .add-cart-btn {
    padding: 8px 15px;
    background: #000;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.product-card a:hover, .add-cart-btn:hover {
    background: #e63946;
}

.product-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.product-slider::-webkit-scrollbar {
    height: 8px;
}

.product-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* =========================
   NEWSLETTER
========================= */
.newsletter-section {
    background: linear-gradient(135deg, #c62828, #8e0000);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.newsletter-container h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter-container p {
    margin-bottom: 30px;
    font-size: 18px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.newsletter-form input {
    padding: 14px;
    width: 320px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.newsletter-form button {
    padding: 14px 25px;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #222;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #111;
    color: #fff;
}

.site-footer {
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 40px;
}

.footer-col h3 {
    margin-bottom: 15px;
}

.footer-col p {
    margin-bottom: 8px;
    color: #ccc;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
========================= */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .hero {
        height: 450px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .search-form input {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    .search-form button {
        width: 100%;
        border-radius: 5px;
    }
}

/* =========================
   ADJUST SPACING BETWEEN SECTIONS
========================= */

/* Add space below hero slider */
.hero-slider {
    margin-bottom: 60px; /* pushes Welcome section down */
}

/* Welcome section spacing */
.welcome-section {
    padding: 80px 0; /* top and bottom padding */
}

/* Search section spacing */
.search-section {
    padding: 80px 0; /* top and bottom padding */
}

/* Reviews section spacing */
.reviews-section {
    padding: 100px 0 80px; /* top and bottom spacing */
}

/* Newsletter spacing */
.newsletter-section {
    padding: 100px 20px;
}

/* =========================
   WELCOME SECTION STYLING
========================= */
.welcome-section h1 {
    color: #e63946; /* red color */
    margin-bottom: 20px; /* space between heading and paragraph */
}

.welcome-section p {
    line-height: 1.8; /* optional: makes paragraph more readable */
}

.categories-section{
    padding:40px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.category-card{
    background:#fff;
    padding:20px;
    text-align:center;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    transition:0.3s;
}

.category-card:hover{
    transform:translateY(-5px);
}



/* Ensure header and dropdown are on top of other content */
header {
    position: sticky; /* keep it fixed at top */
    top: 0;
    z-index: 9999; /* very high so it sits above everything */
}

.dropdown-content {
    z-index: 10000; /* higher than header just to be safe */
}