:root {
    --primary-purple: #7B2FF7;
    --secondary-purple: #A64DFF;
    --dark-purple: #5B21B6;
    --purple-gradient: linear-gradient(90deg, #7B2FF7 0%, #A64DFF 100%);
    --text-dark: #111827;
    --text-secondary: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F7;
    --border-gray: #E5E7EB;
    --yellow-accent: #FFC107;
    --success-green: #22C55E;
    --light-purple-bg: #F3E8FF;
    --footer-bg: #111111;
    --soft-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

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

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Top Info Bar */
.top-bar {
    background-color: var(--footer-bg);
    color: var(--bg-white);
    padding: 0 5%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
}

.top-bar i {
    color: var(--yellow-accent);
    margin-right: 8px;
    width: 14px;
    text-align: center;
}

.get-quote-compact {
    background: var(--purple-gradient);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}

/* Main Header */
header {
    background: var(--bg-white);
    height: 90px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mobile-header-top {
    display: contents; /* Allow logo to be a direct flex child of header */
}

.mobile-home-btn, .mobile-spacer {
    display: none;
}

.nav-links-header {
    list-style: none;
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links-header a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links-header a:hover {
    color: var(--primary-purple);
}

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

.search-container {
    width: 200px;
    position: relative;
    display: flex;
}

.search-container input {
    width: 100%;
    padding: 8px 35px 8px 15px;
    border: 1.5px solid var(--border-gray);
    border-radius: 30px;
    outline: none;
    font-size: 13px;
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: var(--text-secondary);
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
}

.logo img {
    height: 45px;
}

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

.header-actions a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-actions i {
    font-size: 18px;
    color: var(--primary-purple);
}

/* Navigation */
nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-gray);
    padding: 0 5%;
    display: flex;
    align-items: center;
}

.all-categories-btn {
    background: var(--purple-gradient);
    color: white;
    padding: 15px 25px;
    width: 260px;
    height: 55px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 0;
    cursor: pointer;
    transition: 0.3s;
}

.all-categories-btn i {
    width: 20px;
    text-align: center;
}

.all-categories-btn:hover {
    background: var(--dark-purple);
}

/* Hero Section Container */
.hero-section-container {
    display: flex;
    padding: 0 0 0 5%;
    background: #fff;
    gap: 0;
    align-items: flex-start;
}

.sidebar-wrapper {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.banner-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Sidebar Styling */
.sidebar {
    width: 100%;
    border: 1px solid var(--border-gray);
    border-top: none;
    background: #fff;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 8px 20px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.category-list li a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.category-list li a i:first-child {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--primary-purple);
}

.category-list li i.fa-chevron-right {
    font-size: 10px;
    color: #ccc;
    margin-left: auto;
}

.category-list li:hover {
    background-color: var(--light-purple-bg);
    color: var(--primary-purple);
}

.category-list li:hover i.fa-chevron-right {
    color: var(--primary-purple);
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    height: 600px;
    padding: 60px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

/* Darker overlay for better text contrast */
.hero-banner::before {
    content: none;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.hero-text h2 {
    font-size: 20px;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 450px;
}

.btn {
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--purple-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(123, 47, 247, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(123, 47, 247, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    background: white;
}

.btn-outline:hover {
    background: var(--light-purple-bg);
}

/* Trust Stats Bar */
.trust-bar {
    background: var(--purple-gradient);
    color: white;
    padding: 25px 0;
    display: flex;
    justify-content: space-around;
    border-radius: 0;
    margin: 0;
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.stat-item i {
    font-size: 24px;
}

/* Full Width Sections */
.full-width-container {
    padding: 60px 4%;
    width: 100%;
    max-width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.section-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
}

.section-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: var(--purple-gradient);
    border-radius: 10px;
}

.view-all {
    text-decoration: none;
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.view-all:hover {
    gap: 15px;
}

/* Dynamic Section Backgrounds */
.bg-light {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--bg-white);
}

/* Product Card Enhancements */
.product-card {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 45px;
    margin-bottom: 5px;
}

.tag-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-category-section {
    border-bottom: 1px solid var(--border-gray);
}

.featured-section {
    background: linear-gradient(135deg, #F3E8FF 0%, #FFFFFF 100%);
}

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

.grid-item {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

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

.price-box {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.price {
    font-weight: 700;
    color: var(--primary-purple);
    font-size: 18px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 14px;
}

.add-to-cart-btn {
    background: var(--purple-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.add-to-cart-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(123, 47, 247, 0.3);
}

.item-img {
    background: var(--bg-light);
    height: 180px; /* Increased height for images */
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure images don't overflow */
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Professional crop for product images */
    transition: 0.5s;
}

.grid-item:hover .item-img img {
    transform: scale(1.1); /* Subtle zoom on hover */
}

.grid-item p {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #FFFFFF;
    padding: 80px 5% 20px;
    margin-top: 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background: var(--purple-gradient);
}

.footer-col ul {
    list-style: none;
    margin-top: 20px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    color: #BBB;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul a:hover {
    color: var(--secondary-purple);
    padding-left: 5px;
}

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

.contact-info i {
    color: var(--yellow-accent);
    width: 20px;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: #222;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--purple-gradient);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 13px;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-icons img {
    height: 22px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.payment-icons img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Mobile Category Tabs */
.mobile-category-tabs {
    display: none;
    padding: 15px 5%;
    gap: 15px;
    background: #fff;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 0 0 calc(25% - 12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.tab-icon {
    width: 60px;
    height: 60px;
    background: var(--light-purple-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-size: 24px;
    transition: 0.3s;
    box-shadow: var(--soft-shadow);
}

.category-tab span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.category-tab.active .tab-icon {
    background: var(--purple-gradient);
    color: white;
    transform: scale(1.05);
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #fff;
    display: none; /* Hidden by default, shown in media query */
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    gap: 4px;
    transition: 0.3s;
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

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

.nav-item.active i {
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .top-bar, nav, .sidebar, .header-actions, .footer-top, .nav-links-header {
        display: none !important;
    }

    header {
        height: auto;
        padding: 5px 15px; /* Reduced padding to fix top gap */
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .header-right {
        flex: 1;
        gap: 10px;
    }

    .logo {
        flex: 0 0 100px;
    }

    .logo img {
        height: 30px;
        width: auto;
    }

    .search-container {
        flex: 1;
        margin: 0;
        min-width: 0;
        width: auto;
    }

    .search-container input {
        padding: 8px 12px;
        padding-right: 35px; /* Fixed: Added padding to prevent overlap with search button */
        font-size: 12px;
        border-radius: 20px;
    }

    .search-btn {
        padding: 0;
        font-size: 14px;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
    }

    .mobile-category-tabs {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 5px; /* Reduced vertical padding */
        justify-content: flex-start;
        overflow-x: visible;
        gap: 10px 0; /* Reduced gap between rows */
    }

    .category-tab {
        flex: 0 0 33.33%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 5px;
    }

    .tab-icon {
        width: 85px; /* Increased size */
        height: 85px; /* Increased size */
        font-size: 30px; /* Larger icons */
        border-radius: 20px;
        background: #f8f5ff;
        border: 1px solid #eee;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    }

    .category-tab span {
        font-size: 11px;
        margin-top: 6px;
        font-weight: 600;
        color: #333;
        white-space: normal;
        line-height: 1.1;
    }

    .bottom-nav {
        display: flex !important;
    }

    .hero-section-container {
        display: block;
        padding: 0;
    }

    .sidebar-wrapper {
        display: none;
    }

    .hero-banner {
        min-height: 150px; /* Reduced height to half of 300px */
        height: auto;
        padding: 20px;
        background-size: cover;
        background-position: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-radius: 0;
        margin-top: 0;
    }

    .hero-text {
        margin-top: 0;
        text-align: center;
        max-width: 100%;
        margin-right: 0;
    }

    /* Hide text from banner as requested */
    .hero-text h1, .hero-text h2, .hero-text p {
        display: none !important;
    }

    .hero-btns {
        justify-content: center;
        display: flex;
        gap: 10px;
        margin-top: 0;
    }

    .btn-outline {
        border-color: white;
        color: white;
        background: transparent;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .trust-bar {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px 20px;
        gap: 25px;
    }

    .stat-item {
        flex: 0 0 auto;
        font-size: 12px;
    }

    .full-width-container {
        padding: 40px 20px 100px;
    }

    .section-header h3 {
        font-size: 24px;
    }

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

    .item-img {
        height: 100px;
    }

    .grid-item p {
        font-size: 13px;
    }

    footer {
        padding: 40px 20px 100px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
        padding: 0 15px;
    }
    .logo img {
        height: 35px;
    }
    .search-container {
        display: none; /* Hide search on mobile header to save space */
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 400px;
        padding: 30px;
    }
    .hero-text h1 {
        font-size: 32px;
    }
    .hero-text h2 {
        font-size: 16px;
    }
    .hero-btns {
        margin-top: 250px;
        flex-direction: column;
        gap: 10px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Product Detail Page Styles */

@media (max-width: 992px) {
    .nav-links-header {
        display: none;
    }
}
