:root {
    --primary-orange: #ff8800;
    --primary-blue: #0056b3;
    --dark-bg: #111111;
    --light-gray: #f4f4f4;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

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

body,
html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout Utility */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background for the top row to match the light grey in the image */
.container-fluid.border-bottom.py-2 {
    background-color: #ffffff;
}

/* Styling for the account/wishlist/cart icons */
.list-unstyled a {
    color: #495057 !important;
    /* Darker text for visibility */
}

.list-unstyled a:hover {
    color: #dc3545 !important;
    /* Red hover effect */
}

.list-unstyled small {
    font-size: 0.75rem;
    margin-top: 2px;
}

.list-unstyled i {
    font-size: 1rem !important;
    /* Make icons slightly bigger */
}

/* Customizing the search input group */
.header-search .input-group .form-control {
    border-right: 0;
}

.header-search .input-group .btn-outline-secondary {
    background-color: #fff;
    border-color: #ced4da;
    color: #6c757d;
}

.header-search .input-group .btn-outline-secondary:hover {
    background-color: #f1f1f1;
}

/* =================================
 * 3. Main Navigation Bar
 * ================================= */
#desktop-nav {
    background-color: #e9ecef !important;
    /* Light grey background for the navbar (matching the image) */
    border-bottom: 1px solid #dee2e6;
}

.header-logo {
    width: 200px;
}

/* Nav Link Styling */
#desktop-nav .nav-link {
    color: #495057;
    /* Default link color */
    padding: 1rem 1rem;
    font-weight: 500;
}

#desktop-nav .nav-item:first-child .nav-link {
    color: var(--primary-blue);
}

#desktop-nav .nav-link:hover {
    color: #0d6efd;
    /* Blue hover effect */
}

/* =================================
 * 4. Megamenu (Desktop Dropdown on Hover)
 * ================================= */
/* Only apply hover logic on screens larger than 992px (lg breakpoint) */
/* REMOVE MEGAMENU CUSTOM STYLES */
.navbar .has-megamenu {
    position: relative !important;
}

.megamenu {
    display: none !important;
}

.navbar-brand {
    width: 110px;
}

/* NORMAL DROPDOWN STYLE (optional) */
.dropdown-menu {
    border-radius: 6px;
    padding: 10px 0;
}

.dropdown-menu .dropdown-item {
    font-size: 15px;
    padding: 8px 20px;
    color: #444;
}

.dropdown-menu .dropdown-item:hover {
    background: #f1f1f1;
    color: #000;
}

/* =================================
 * 5. Mobile View Styles (< 992px)
 * ================================= */
@media all and (max-width: 991.98px) {
    /* Mobile header section containing logo and toggle */
    .d-lg-none.w-100.p-3 {
        background-color: #ffffff;
        /* White background for the very top bar */
    }

    /* Mobile icons group below the top bar */
    .mobile-icons-group {
        background-color: #ffffff;
    }

    /* Mobile offcanvas menu */
    .offcanvas-start {
        width: 75vw;
        /* Make offcanvas a bit wider on mobile */
    }

    /* Offcanvas Menu Link Styling */
    #offcanvasNavbar .nav-link {
        font-weight: 600;
        color: #343a40;
    }

    /* Adjustments for the mobile search bar */
    .mobile-icons-group .input-group .form-control {
        border-right: none;
    }
}

.navbar-toggler {
    padding: var(--bs-navbar-toggler-padding-y)
        var(--bs-navbar-toggler-padding-x);
    font-size: var(--bs-navbar-toggler-font-size);
    line-height: 1;
    color: rgb(255 255 255);
    background-color: transparent;
    border: var(--bs-border-width) solid rgb(255 255 255 / 15%);
    border-radius: var(--bs-navbar-toggler-border-radius);
    transition: var(--bs-navbar-toggler-transition);
}

/* MOBILE BOTTOM BAR */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    font-size: 22px;
    z-index: 999;
}

/* HERO BANNER */

/* --- EXISTING STYLES --- */
.hero-banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none; /* Important for dragging text */
}
.hero-slides {
    display: flex;
    transition: transform 0.4s ease-out;
    touch-action: pan-y; /* Allows vertical scroll, captures horizontal */
    cursor: grab; /* Shows user it is draggable */
}
.hero-slides:active {
    cursor: grabbing;
}
.hero-slide {
    flex: 0 0 100%;
    width: 100%;
}
.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none; /* Prevents image highlighting while dragging */
}

/* --- NEW CONTROLS STYLES --- */

/* ARROWS */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%; /* Optional: Makes them round */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}
.next {
    right: 20px;
}

/* PAGINATION DOTS */
.slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-orange);
    transform: scale(1.2);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Hide arrows on mobile/tablet where swipe is preferred */
    .slider-arrow {
        display: none;
    }
}

 /* BUTTON */
 .btn-primary {
     background: var(--primary-blue);
     color: white;
     padding: 14px 35px;
     border-radius: 5px;
     font-weight: 600;
     border: none;
     cursor: pointer;
     transition: 0.3s ease;
     text-transform: uppercase;
 }

 .btn-primary:hover {
     background: #e67e00;
     transform: translateY(-3px);
 }

.brandSwiper img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    transition: 0.3s;
}

.brandSwiper img:hover {
    opacity: 1;
}

.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
    border-bottom: 5px solid var(--primary-blue);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    background: linear-gradient(135deg, #007bff, #00c6ff);
}

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

.feature-card p {
    font-size: 13px;
    color: #666;
}

/* --- CATEGORIES --- */
/* Section Title Design */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 60px;
    background-color: #ff8800;
    border-radius: 2px;
}

.category-section {
    /* max-width: 1200px;
     margin: 0 auto; */
    position: relative;
}

.swiper-slide p {
    text-align: left;
    /* margin-top: 10px; */
}

/* -- Header Design -- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Custom Arrows */
.slider-arrows {
    display: flex;
    gap: 12px;
}

.custom-prev,
.custom-next {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-size: 14px;
}

.custom-prev:hover,
.custom-next:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* -- Swiper Container Tweaks -- */
.category-swiper {
    width: 100%;
    /* Mukkiyamana fix: Padding illana hover pannumbothu mela cut aagidum */
    padding-top: 20px;
    padding-bottom: 30px;
}

/* -- Card Design -- */
.cat-card {
    /* background: #fff; */
    border-radius: 16px;
    padding: 15px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    /* Height fulla eduthukkim */
    border: 1px solid transparent;
}

/* Hover Effect */
.cat-card:hover {
    transform: translateY(-8px);
    /* Mela thookum */
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); */
    /* border-color: #eee; */
}

.image-box {
    width: 100%;
    height: 100%;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.cat-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* --- CENTERED HEADING WITH BORDER --- */
.section-title-one {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    color: #111;
}

/* அந்த சின்ன கோடு (Border) டிசைன் */
.section-title-one::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ff8800;
    border-radius: 2px;
}

/* --- PRODUCT GRID (Best Sellers / New Arrivals) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    transition: 0.3s;
    background: white;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-blue);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #999;
    cursor: pointer;
}

.product-img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
}

.price-area {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.current-price {
    color: #00a65a;
    font-weight: 700;
    font-size: 16px;
}

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

.btn-cart {
    width: 100%;
    padding: 8px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-cart:hover {
    background: #004494;
}

/* --- BANNERS --- */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.promo-banner {
    padding: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner-yellow {
    color: #111;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-grey {
    color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-content {
    z-index: 2;
    max-width: 60%;
}

.banner-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.banner-img {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100%;
    transform: rotate(-10deg);
}

/* --- PINK PROMO STRIP --- */
.pink-strip {
    background: #ffebee;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.pink-text h2 {
    color: #e91e63;
    font-size: 32px;
    font-weight: 800;
    display: inline-block;
    margin-right: 15px;
}

.pink-text span {
    color: #c2185b;
    font-weight: 600;
}

/* --- HELP SECTION --- */
.help-section {
    background: #555;
    color: white;
    padding: 30px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.help-text h3 {
    font-size: 22px;
}

.help-text p {
    font-size: 12px;
    opacity: 0.8;
}

.help-btn {
    background: var(--primary-blue);
    padding: 10px 20px;
    color: white;
    border-radius: 4px;
}

.phone-num {
    font-size: 20px;
    font-weight: 700;
    margin-left: 20px;
}

@media (max-width: 425px) {
    .help-btn {
        font-size: 12px;
    }

    .phone-num {
        font-size: 12px;
    }
}

/* --- FEATURED HORIZONTAL PRODUCTS --- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.feat-card {
    display: flex;
    border: 1px solid #eee;
    padding: 15px;
    align-items: center;
    gap: 15px;
}

.feat-card img {
    width: 200px;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 425px) {
    .feat-card img {
        width: 120px;
    }
}

.feat-badge {
    background: var(--primary-blue);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* --- FOOTER --- */
footer {
    background: #0a1929;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col ul li:hover {
    color: white;
    cursor: pointer;
}

.social-icons i {
    margin-right: 10px;
    font-size: 18px;
    cursor: pointer;
}

.copyright {
    text-align: center;
    border-top: 1px solid #223;
    padding-top: 20px;
    font-size: 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero::before {
        width: 100%;
        clip-path: none;
        height: 50%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text {
        width: 100%;
        padding: 20px;
    }

    .hero-image {
        width: 100%;
        height: 250px;
    }

    .top-header {
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .pink-strip {
        text-align: center;
        justify-content: center;
        gap: 15px;
    }
}

.footer-list li {
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #ccc;
}

.footer-list li a {
    color: #ccc !important;
}

.footer-list li i {
    margin-right: 6px;
    color: #0dcaf0;
}

.footer-list li:hover {
    color: #fff;
}

.footer-contact-section {
    color: #ccc;
}
