/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #FF1E1E;
    --text-color: #333;
    --bg-dark: #0A2E38;
    --footer-bg: #0c101b;
    /* Dark Blue/Black */
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --nav-bg: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: #ffffff;
    color: var(--text-color);
    padding-bottom: 70px;
    /* Space for mobile nav */
    margin: 0;
}

/* Header */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
}

.sub-brand {
    font-size: 10px;
    color: black;
    font-weight: 600;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-left: 60px;
    margin-right: auto;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.search-bar {
    background: #f8f9fa;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    width: 380px;
    position: relative;
    border: 1px solid #f0f0f0;
    margin-right: 40px;
}

.search-bar input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
}

.search-bar input:focus {
    background: #fff;
    border-radius: 8px;
}

.search-bar .search-icons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar i {
    color: #999;
    font-size: 14px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons a {
    color: #333;
    font-size: 18px;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.profile-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px;
    min-width: 180px;
    display: none;
    z-index: 1000;
    margin-top: 10px;
}

.profile-dropdown a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

.profile-dropdown a:hover {
    color: var(--primary-color);
}

.user-menu:hover .profile-dropdown {
    display: block;
}

/* Mobile Search Bar Style */
.mobile-search {
    display: none;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 12px 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.search-wrapper .search-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-wrapper:focus-within {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 30, 30, 0.08);
}

.search-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding-right: 15px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    outline: none;
}

.clear-search {
    font-size: 15px;
    color: #ccc;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.clear-search.active {
    opacity: 1;
    visibility: visible;
}

.clear-search:hover {
    color: var(--primary-color);
}

.search-wrapper i.fa-magnifying-glass {
    color: #999;
    font-size: 15px;
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.red-line {
    width: 5px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
}

/* Categories */
/* Categories */
.category-carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    padding: 0 50px;
    /* Space for buttons */
}

.category-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 10px 0;
    -ms-overflow-style: none;
    /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.category-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

.category-card {
    flex: 0 0 calc((100% - 30px) / 2);
    /* 2 cards per view on desktop */
    min-width: calc((100% - 30px) / 2);
    scroll-snap-align: start;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cat-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cat-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

.cat-content h3 {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 24px;
    text-align: center;
    color: #000;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 30, 30, 0.2);
}

.carousel-nav-btn.prev-btn {
    left: 0;
}

.carousel-nav-btn.next-btn {
    right: 0;
}

@media (max-width: 768px) {
    .category-carousel-container {
        padding: 0 40px;
    }

    .category-card {
        flex: 0 0 100%;
        /* 1 card per view on mobile */
        min-width: 100%;
        height: 300px;
    }

    .cat-content h3 {
        font-size: 20px;
    }

    .carousel-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Hero */
/* Hero */
.hero {
    /* Background image is now in HTML */
    padding: 4rem 5%;
    display: flex;
    align-items: center;
    min-height: 600px;
    text-align: left;
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    /* Optional: Add a subtle text shadow or background for readability if needed */
    margin-top: -50px;
    margin-left: -20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #111;
}

.hero p {
    color: #333;
    font-size: 20px;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.btn-shop-now {
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 30, 30, 0.3);
    transition: transform 0.2s, background 0.3s;
    position: absolute;
    right: 10%;
    bottom: 20%;
    z-index: 10;
}

.btn-shop-now:hover {
    transform: translateY(-2px);
    background: #d00000;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.2s;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-image {
    height: 200px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain to ensure whole product is visible */
    background: transparent;
    /* Removed placeholder background */
    border-radius: 4px;
}

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 40px;
    /* Limit height */
    overflow: hidden;
}

.price {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.current-price {
    color: var(--primary-color);
    font-weight: 700;
}

.discount {
    font-size: 12px;
    color: var(--primary-color);
    background: #ffebeb;
    padding: 2px 6px;
    border-radius: 2px;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 4rem 1rem;
    background: #fcfcfc;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: #333;
    /* Dark gray outline/bg as in image */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
}

.icon-circle i {
    color: #f2ce5c;
    /* Gold/Yellow for icons */
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 12px;
    color: #666;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 4rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 18px;
}

.footer-col a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col p {
    color: #ccc;
    font-size: 14px;
    margin-top: 10px;
}

.contact-info {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 14px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
}

/* Mobile Bottom Navbar (FIXED & RESPONSIVE) */
.mobile-bottom-nav {
    display: none !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    justify-content: space-around;
    padding: 12px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    gap: 5px;
    flex: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 22px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content {
        position: relative;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
        padding: 0 1rem;
    }

    .btn-shop-now {
        position: absolute;
        right: 5%;
        bottom: 5%;
        transform: none;
        padding: 12px 25px;
        font-size: 14px;
    }

    .btn-shop-now:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 992px) {

    .header-icons,
    nav,
    .search-bar {
        display: none !important;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .features {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    /* Show search and bottom nav on mobile/tablets */
    .mobile-bottom-nav {
        display: flex !important;
    }

    .mobile-search {
        display: block;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
        padding: 2rem 5%;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 1.5rem;
    }

    .btn-shop-now {
        padding: 10px 20px;
        font-size: 13px;
        bottom: 10px;
        right: 15px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}







/* Base Toast Style */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;

    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

/* Show Animation */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Success */
.toast-success {
    background-color: #28a745;
}

/* Error */
.toast-error {
    background-color: #dc3545;
}
.toast {
    min-width: 250px;
    max-width: 350px;
}





/* Wishlist button on shop product cards */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: #aaa;
    transition: color 0.25s, transform 0.2s, box-shadow 0.2s;
    z-index: 2;
}

.wishlist-btn:hover {
    color: #FF1E1E;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(255, 30, 30, 0.18);
}

.wishlist-btn.active {
    color: #FF1E1E;
}
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 1;
    visibility: visible;
}









.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color, #FF0000);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}