@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --primary-red: #e42529; /* Deep Red, similar to Reliance Digital / Eleczo */
    --hover-red: #c51d20;
    --dark-bg: #1c2024;
    --darker-bg: #111418;
    --light-bg: #f5f7f9;
    --text-main: #333333;
    --text-muted: #666666;
    --border-light: #e0e0e0;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* ================== Top Strip ================== */
.top-strip {
    background-color: var(--darker-bg);
    color: var(--white);
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-strip a {
    color: var(--white);
    text-decoration: none;
    margin-right: 20px;
    opacity: 0.8;
    transition: var(--transition);
}

.top-strip a:hover {
    opacity: 1;
    color: var(--primary-red);
}

/* ================== Main Header ================== */
.main-header {
    background-color: var(--primary-red);
    padding: 15px 0;
    color: var(--white);
}

.header-logo {
    color: var(--white);
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 1px;
}

.header-logo span {
    font-weight: 300;
}

/* Search Bar Complex */
.search-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
}

.search-category-select {
    border: none;
    background: #f1f1f1;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    border-right: 1px solid var(--border-light);
    cursor: pointer;
}

.search-input {
    border: none;
    padding: 10px 15px;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

.search-btn {
    background: var(--dark-bg);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--darker-bg);
}

/* Header Icons */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.action-item {
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
    position: relative;
    transition: var(--transition);
}

.action-item span {
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 500;
}

.action-item:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* ================== Mega Menu Navbar ================== */
.mega-menu-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    padding: 15px 20px !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red);
}

/* Mega Menu Dropdown */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.mega-dropdown-menu {
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    border-radius: 0;
    border: none;
    border-top: 2px solid var(--primary-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

.mega-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.mega-list {
    list-style: none;
    padding: 0;
}

.mega-list li {
    margin-bottom: 10px;
}

.mega-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.mega-list a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

/* ================== Swiper Hero Carousel ================== */
.hero-swiper {
    position: relative;
}

.hero-slide-img {
    width: 100%;
    height: 75vh;
    min-height: 500px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-slide-img {
        height: 50vh;
        min-height: 250px;
        /* For mobile, if the image has text, contain might be better, 
           but cover is standard. We will use cover with top alignment 
           if needed, or just center. */
        object-position: center;
    }
}

.hero-slide-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 600px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 100%);
    z-index: 5;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--white) !important;
    background: rgba(0,0,0,0.5);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 20px !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-red) !important;
}

/* ================== USPs Strip ================== */
.usps-strip {
    background-color: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
}

.usp-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.usp-box i {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.usp-text h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.usp-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ================== Section Headers ================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
}

.view-all-btn {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-btn:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* ================== Category Circle Cards ================== */
.category-circle-swiper {
    padding-bottom: 40px !important;
}

.cat-circle-card {
    text-align: center;
    display: block;
    text-decoration: none;
}

.cat-img-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-img-wrapper img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    transition: var(--transition);
}

.cat-circle-card:hover .cat-img-wrapper {
    border-color: var(--primary-red);
    box-shadow: 0 10px 25px rgba(228, 37, 41, 0.2);
}

.cat-circle-card:hover .cat-img-wrapper img {
    transform: scale(1.1);
}

.cat-circle-card h3 {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
    margin: 0;
}

/* ================== Premium Product Card ================== */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.badge-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--dark-bg);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-brand {
    font-size: 0.8rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-top: 1px dashed var(--border-light);
    padding-top: 15px;
}

.product-features li {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: #4CAF50;
    margin-right: 8px;
}

.btn-details {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-details:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* ================== Brands Carousel ================== */
.brand-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition);
}

.brand-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--dark-bg);
}

.brand-item h4 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    color: var(--text-muted);
    letter-spacing: 1px;
    transition: var(--transition);
}

.brand-item:hover h4 {
    color: var(--dark-bg);
}

/* ================== Footer ================== */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--border-light);
    padding: 70px 0 0 0;
    margin-top: 50px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.newsletter-box {
    display: flex;
    margin-top: 20px;
}

.newsletter-box input {
    flex-grow: 1;
    padding: 12px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
}

.newsletter-box button {
    background: var(--primary-red);
    border: none;
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-box button:hover {
    background: var(--hover-red);
}

.footer-link-item {
    color: #aaaaaa;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link-item:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background-color: var(--primary-red);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: var(--darker-bg);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* Utilities */
.bg-light-grey {
    background-color: #eef1f5;
}

/* ================== Offcanvas Sidebar ================== */
.custom-sidebar {
    width: 320px !important;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-red);
}

.sidebar-menu a i {
    width: 25px;
    text-align: center;
}

.sidebar-heading {
    letter-spacing: 1px;
    font-size: 0.8rem;
    padding-left: 15px;
}

/* ================== Products Page Filters ================== */
.category-filter-list li {
    margin-bottom: 5px;
}

.category-filter-list a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.category-filter-list a:hover,
.category-filter-list a.active {
    background-color: var(--light-bg);
    color: var(--primary-red);
    font-weight: 600;
}

.category-filter-list a span {
    font-size: 0.8rem;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 20px;
    color: #6c757d;
}

.brand-filter-list .form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
}
.brand-filter-list .form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

/* Base Fixes for Mobile Responsiveness */
@media (max-width: 991px) {
    .search-container {
        border: 1px solid var(--border-light);
    }
    .header-logo {
        font-size: 1.15rem;
        white-space: nowrap;
    }
    .header-logo img {
        height: 30px !important;
    }
    .hero-slide-img {
        height: 50vh;
        min-height: 250px;
    }
}

/* ================== Ticker & Secondary Nav ================== */
.ticker-container {
    height: 100%;
}
.ticker-container::before, .ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.ticker-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255,255,255,0));
}
.ticker-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255,255,255,0));
}
.ticker-wrapper {
    display: flex;
    width: max-content;
    animation: ticker 35s linear infinite;
}
.secondary-nav:hover .ticker-wrapper {
    animation-play-state: paused;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    flex-shrink: 0; /* CRITICAL FIX: prevents the track from squishing */
}
.ticker-track .nav-link {
    transition: color 0.3s;
    white-space: nowrap;
}
.ticker-track .nav-link:hover {
    color: var(--primary-red);
}
.static-links-menu {
    gap: 10px;
}
.static-links-menu .nav-link {
    transition: color 0.3s;
}
.static-links-menu .nav-link:hover {
    color: var(--primary-red);
}
