/* CSS Root Variables */
:root {
    --primary-color: #006400;
    --secondary-color: #FF8C00;
    --dark-green: #2d5016;
    --light-green: #e8f5e8;
    --white: #ffffff;
    --black: #000000;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.logo i {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 2px;
    transition: var(--transition);
}

.logo:hover i {
    color: var(--dark-green);
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-green);
    line-height: 1;
    transition: var(--transition);
}

.logo:hover span {
    color: var(--primary-color);
}

.logo small {
    display: none;
}

.nav-center ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-center li {
    position: relative;
}

.nav-center li:not(:last-child)::after {
    content: '|';
    color: var(--gray);
    margin: 0 15px;
    font-weight: normal;
}

.nav-center a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.nav-center a:hover {
    color: var(--primary-color);
}

.play-store-btn {
    background-color: var(--black);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.play-store-btn:hover {
    background-color: #333;
}

/* Second Navigation */
.second-nav {
    padding: 15px 0;
}

.second-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.browse-categories-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.browse-categories-btn:hover {
    background-color: var(--dark-green);
}

/* Categories Dropdown Styles */
.categories-dropdown {
    position: relative;
}

.categories-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 350px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 12px 0;
}

.categories-menu.active {
    display: block;
}

.category-item-wrapper {
    position: relative;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-link:hover {
    background-color: var(--light-green);
    color: var(--primary-color);
}

.category-link i {
    font-size: 12px;
    color: var(--gray);
    transition: var(--transition);
}

.category-item-wrapper:hover .category-link i {
    color: var(--primary-color);
    transform: translateX(3px);
}

.sub-categories-menu {
    display: none;
    background-color: #f8f9fa;
    padding: 8px 0;
    border-left: 3px solid var(--primary-color);
    margin-left: 20px;
}

.category-item-wrapper:hover .sub-categories-menu {
    display: block;
}

.sub-category-link {
    display: block;
    padding: 10px 20px 10px 35px;
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.sub-category-link::before {
    content: '→';
    position: absolute;
    left: 20px;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.sub-category-link:hover {
    background-color: var(--white);
    color: var(--primary-color);
    padding-left: 40px;
}

.sub-category-link:hover::before {
    opacity: 1;
}

.no-categories {
    padding: 20px;
    text-align: center;
    color: var(--gray);
}

.no-categories p {
    margin: 0;
}

/* Scrollbar styling for categories menu */
.categories-menu::-webkit-scrollbar {
    width: 6px;
}

.categories-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.categories-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.categories-menu::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

.offer-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    transition: var(--transition);
}

.offer-btn:hover {
    background-color: #b83900;
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--dark-green);
}

.login-btn {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    background-color: var(--light-gray);
    color: var(--black);
    text-decoration: none;
}

.cart {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

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

.cart i {
    font-size: 20px;
}

.cart-count {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* Customer Profile Dropdown */
.customer-profile-dropdown {
    position: relative;
    margin-right: 15px;
}

.profile-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

.profile-toggle-btn:hover {
    background-color: var(--light-gray);
    border-color: var(--primary-color);
}

.profile-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.profile-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.profile-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-toggle-btn i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.profile-toggle-btn.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
}

.profile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.dropdown-item.text-danger {
    color: #dc3545;
}

.dropdown-item.text-danger:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

@media (max-width: 768px) {
    .profile-name {
        display: none;
    }

    .profile-toggle-btn {
        padding: 8px 12px;
    }

    .profile-dropdown-menu {
        right: 0;
        min-width: 180px;
    }
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-color));
    border-radius: var(--border-radius);
    padding: 30px;
    color: var(--white);
    display: flex;
    align-items: center;
}

.banner-content {
    text-align: center;
}

.logo-section {
    margin-bottom: 20px;
}

.logo-section i {
    font-size: 40px;
    color: var(--white);
    margin-bottom: 10px;
}

.logo-section h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.logo-section p {
    font-size: 14px;
    opacity: 0.9;
}

.banner-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.order-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 15px;
}

.order-btn:hover {
    background-color: #b83900;
}

.delivery-info {
    font-size: 14px;
    opacity: 0.9;
}

/* Product Categories */
.product-categories {
    background-color: var(--white);
}

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

.category-item {
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}

.category-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.category-item h4 {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    background-color: var(--white);
    color: var(--dark-green);
    margin: 0;
}

.no-categories-message {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: var(--gray);
}

.no-categories-message p {
    margin: 0;
    font-size: 16px;
}

/* Referral Banner */
.referral-banner {
    background-color: var(--light-green);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
}

.referral-content .logo-section {
    margin-bottom: 20px;
}

.referral-content .logo-section i {
    color: var(--primary-color);
    font-size: 30px;
}

.referral-content .logo-section h2 {
    color: var(--dark-green);
    font-size: 24px;
}

.referral-content .logo-section p {
    color: var(--gray);
    font-size: 12px;
}

.referral-content h3 {
    color: var(--dark-green);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.reward-section {
    margin-bottom: 15px;
}

.reward-amount {
    font-size: 48px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.reward-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reward-text span {
    color: var(--dark-green);
    font-weight: 500;
}

.referral-note {
    color: var(--gray);
    font-size: 14px;
}

/* Bottom Section */
.bottom-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Company Information */
.company-info {
    position: relative;
}

.company-banner {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
}

.company-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    color: var(--white);
}

.banner-overlay .logo-section i {
    color: var(--primary-color);
    font-size: 30px;
}

.banner-overlay .logo-section h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.banner-overlay .logo-section p {
    font-size: 12px;
    opacity: 0.9;
}

.spreading-purity {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: underline;
    margin-top: 20px;
}

.achievements {
    background-color: var(--dark-green);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--white);
}

.achievement-badge {
    background-color: var(--primary-color);
    color: var(--dark-green);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

/* App Promotion */
.app-promotion {
    display: flex;
    align-items: center;
    justify-content: center;
}

.referral-graphic {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.phone-1, .phone-2 {
    width: 80px;
    height: 120px;
    background-color: var(--dark-green);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 30px;
}

.money-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-weight: bold;
}

.money-flow i {
    font-size: 24px;
}

.money-flow span {
    font-size: 18px;
}

/* Product Section */
.product-section {
    padding: 40px 0;
    background-color: var(--light-gray);
}

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

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

.section-header h2 {
    font-size: 32px;
    color: var(--dark-green);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #ffd700;
}

.view-more-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: var(--transition);
    text-decoration: none;
}

.view-more-btn:hover {
    background-color: var(--dark-green);
    color: var(--white);
    text-decoration: none;
}

.products-grid {
    display: grid;
    grid-template-columns: 350px repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.featured-product {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 350px;
    height: 450px;
}

.featured-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.brand-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: bold;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.product-card h4 {
    font-size: 16px;
    color: var(--dark-green);
    margin-bottom: 15px;
    line-height: 1.3;
}

.variation-section {
    margin-bottom: 10px;
}

.variation-section .form-control-sm {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--dark-green);
    transition: var(--transition);
}

.variation-section .form-control-sm:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 100, 0, 0.1);
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-green);
}

.unit {
    background-color: var(--light-green);
    color: var(--dark-green);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.add-to-cart-btn {
    background-color: var(--dark-green);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background-color: var(--primary-color);
}

.buy-now-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.buy-now-btn:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.chat-icon:hover {
    background-color: var(--dark-green);
    transform: scale(1.1);
}

.chat-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 300px;
    padding: 20px;
    display: none;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: var(--dark-green);
    font-weight: 500;
}

.close-chat {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
}

.close-chat:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .featured-product {
        width: 100%;
        height: auto;
        max-height: 400px;
        grid-column: 1 / -1;
    }
    
    .featured-product img {
        height: auto;
        min-height: 300px;
    }
    
    .bottom-section {
        grid-template-columns: 1fr;
    }
    
    .promo-banner {
        padding: 25px 20px;
    }
    
    .banner-content h3 {
        font-size: 16px;
    }
    
    .order-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .referral-banner {
        padding: 25px 20px;
    }
}

/* Mobile Logo - Hidden by default */
.mobile-logo {
    display: none;
}

/* Button text visibility - Desktop shows full text */
.browse-categories-btn .btn-text-full {
    display: inline;
}

.browse-categories-btn .btn-text-short {
    display: none;
}

.login-btn .login-text-full {
    display: inline;
}

.login-btn .login-text-short {
    display: none;
}

@media (max-width: 768px) {
    /* Fixed header bar with browse categories and cart */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: var(--white);
    }
    
    /* Hide top nav completely on mobile */
    .top-nav {
        display: none;
    }
    
    /* Second nav - fixed row with logo, browse categories and cart side by side */
    .second-nav {
        padding: 0;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 999;
        margin: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .second-nav .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        flex-wrap: nowrap;
        margin: 0;
    }
    
    /* Show mobile logo in sticky header */
    .mobile-logo {
        display: block !important;
        flex: 0 0 auto;
        order: 0;
        min-width: 0;
        margin: 0;
        padding: 0;
    }
    
    .mobile-logo .logo {
        font-size: 12px;
        white-space: nowrap;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .mobile-logo .logo i {
        font-size: 14px;
        flex-shrink: 0;
        margin: 0;
    }
    
    .mobile-logo .logo span {
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100px;
    }
    
    /* Browse categories button - always visible */
    .second-nav .nav-left {
        flex: 1;
        min-width: 0;
        order: 1;
        display: flex !important;
        margin: 0;
        padding: 0;
    }
    
    .categories-dropdown {
        width: 100%;
    }
    
    .browse-categories-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 10px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex !important;
        margin: 0;
    }
    
    .browse-categories-btn .btn-text-full {
        display: none;
    }
    
    .browse-categories-btn .btn-text-short {
        display: inline;
    }
    
    .browse-categories-btn i:first-child {
        margin-right: 4px;
    }
    
    .browse-categories-btn i:last-child {
        margin-left: 4px;
    }
    
    /* Hide other elements */
    .second-nav .nav-center {
        display: none !important;
    }
    
    .search-container {
        display: none !important;
    }
    
    /* Hide login/profile in sticky header - target the first nav-right container */
    .second-nav .container > .nav-right:first-of-type,
    .second-nav .nav-right:first-of-type {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }
    
    /* Hide login button specifically */
    .second-nav .login-btn,
    .second-nav .container .login-btn {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Hide customer profile dropdown specifically */
    .second-nav .customer-profile-dropdown,
    .second-nav .container .customer-profile-dropdown {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Hide profile toggle button */
    .second-nav .profile-toggle-btn,
    .second-nav .container .profile-toggle-btn {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Show cart - always visible */
    .second-nav .container > .nav-right:last-of-type,
    .second-nav .nav-right:last-of-type {
        display: flex !important;
        visibility: visible !important;
        flex: 0 0 auto;
        order: 2;
        gap: 0;
        margin: 0;
        padding: 0;
    }
    
    .cart,
    .second-nav .cart,
    .second-nav .container .cart {
        padding: 8px 10px;
        flex-shrink: 0;
        gap: 4px;
        display: flex !important;
        visibility: visible !important;
        align-items: center;
        min-width: fit-content;
        margin: 0;
    }
    
    .cart-icon-wrapper {
        display: flex;
        align-items: center;
        position: relative;
    }
    
    .cart-icon-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .cart-icon-wrapper i {
        font-size: 18px;
        color: var(--primary-color);
        margin: 0;
    }
    
    .cart-count-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        background: #dc3545;
        color: #fff;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        font-weight: bold;
        border: 2px solid #fff;
        z-index: 10;
        margin: 0;
        padding: 0;
    }
    
    .cart-total {
        font-size: 11px;
        white-space: nowrap;
        font-weight: bold;
        color: var(--primary-color);
        margin: 0;
        padding: 0;
    }
    
    /* Adjust body padding to account for fixed header */
    body {
        padding-top: 50px;
    }
    
    /* Ensure main content doesn't overlap with fixed header */
    .main-content {
        padding-top: 15px;
    }
    
    /* Ensure sections have proper spacing */
    section {
        padding-top: 15px;
    }
    
    /* Breadcrumbs section spacing */
    .breadcrumbs-section {
        margin-top: 0;
    }
    
    /* Adjust toast container position to account for fixed header */
    .toast-container {
        top: 60px !important;
    }
    
    /* Remove any extra padding/margin from header elements */
    .header {
        margin: 0;
        padding: 0;
    }
    
    .second-nav .nav-left,
    .second-nav .nav-center,
    .second-nav .nav-right {
        margin: 0;
    }
    
    /* Additional responsive adjustments for smaller screens within 768px */
    
    .offer-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Content Grid Mobile */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    /* Promo Banner Mobile */
    .promo-banner {
        padding: 20px 15px;
    }
    
    .logo-section i {
        font-size: 30px;
    }
    
    .logo-section h2 {
        font-size: 22px;
    }
    
    .banner-content h3 {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .order-btn {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 100%;
    }
    
    .delivery-info {
        font-size: 12px;
    }
    
    /* Referral Banner Mobile */
    .referral-banner {
        padding: 20px 15px;
    }
    
    .referral-content .logo-section i {
        font-size: 25px;
    }
    
    .referral-content .logo-section h2 {
        font-size: 20px;
    }
    
    .referral-content h3 {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .reward-amount {
        font-size: 36px;
    }
    
    /* Category Grid Mobile */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-item h4 {
        font-size: 12px;
        padding: 8px;
    }
    
    /* Products Grid Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .featured-product {
        width: 100%;
        height: auto;
        max-height: 300px;
        grid-column: 1 / -1;
    }
    
    .featured-product img {
        height: auto;
        min-height: 250px;
    }
    
    /* Product Card Mobile */
    .product-card {
        padding: 15px;
    }
    
    .product-card img {
        height: 150px;
        margin-bottom: 10px;
    }
    
    .product-card h4 {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.3;
        min-height: 32px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .price {
        font-size: 16px;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        padding: 10px;
        font-size: 11px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .buy-now-btn {
        font-size: 10px;
    }
    
    .buy-now-btn i {
        font-size: 10px;
    }
    
    /* Ensure product card buttons stack on mobile */
    .product-card-form .d-flex {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-card-form .d-flex .add-to-cart-btn,
    .product-card-form .d-flex .buy-now-btn {
        width: 100%;
    }
    
    /* Section Header Mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .view-more-btn {
        width: 45px;
        height: 45px;
    }
    
    /* Bottom Section Mobile */
    .bottom-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-banner {
        height: 250px;
    }
    
    .spreading-purity {
        font-size: 24px;
    }
    
    .achievements {
        padding: 15px;
    }
    
    .achievement-item {
        margin-bottom: 12px;
        font-size: 13px;
    }
    
    /* Categories dropdown mobile styles */
    .categories-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 60vh;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }
    
    .categories-dropdown {
        width: 100%;
    }
    
    .profile-dropdown-menu {
        right: 0;
        left: 0;
        min-width: auto;
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

/* Modern Footer Styles */
.footer-menu {
    background: linear-gradient(135deg, #1a3d0f 0%, var(--dark-green) 50%, #2d5016 100%);
    color: var(--white);
    padding: 80px 0 50px;
    position: relative;
    overflow: hidden;
}

/* Ensure all footer icons are white */
.footer-menu i,
.footer-menu .fas,
.footer-menu .fab,
.footer-copyright i,
.footer-copyright .fas,
.footer-copyright .fab {
    color: var(--white) !important;
}

/* Category Sidebar Styles */
.single-widget .list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-widget .list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.single-widget .list li a {
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
}

.single-widget .list li a:hover,
.single-widget .list li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.single-widget .list li span {
    color: var(--gray);
    font-size: 14px;
}

.footer-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer-section {
    position: relative;
}

.footer-section h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-logo {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo i {
    color: var(--white);
    font-size: 35px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.footer-logo h3 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-logo p {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 0;
    font-weight: 500;
}

.footer-description {
    color: #e8f5e8;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), #008000);
    color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
    border: 2px solid transparent;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--secondary-color), #ff6600);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

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

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

.footer-links li::before {
    content: '→';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 8px;
    transition: var(--transition);
}

.footer-links a {
    color: #e8f5e8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(0, 100, 0, 0.5);
}

.footer-links li:hover::before {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-left-color: var(--secondary-color);
}

.contact-item i {
    color: var(--white);
    font-size: 18px;
    margin-top: 3px;
    min-width: 18px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.contact-item strong {
    color: var(--white);
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-item p {
    color: #e8f5e8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* Modern Footer Copyright Section */
.footer-copyright {
    background: linear-gradient(135deg, #0f2a08 0%, #1a3d0f 100%);
    padding: 25px 0;
    border-top: 1px solid rgba(0, 100, 0, 0.3);
    position: relative;
}

.footer-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.copyright p {
    color: #e8f5e8;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.payment-methods span {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.payment-icons i {
    color: var(--white);
    font-size: 26px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.payment-icons i:hover {
    color: var(--white);
    opacity: 0.8;
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.5));
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-menu {
        padding: 60px 0 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-menu {
        padding: 50px 0 35px;
    }
    
    .footer-section h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-logo {
        padding: 15px;
        text-align: center;
    }
    
    .footer-logo h3 {
        font-size: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 15px;
        padding: 15px 25px;
    }
    
    .contact-item {
        padding: 12px;
    }
    
    .social-links {
        justify-content: center;
        gap: 10px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .top-nav {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .logo i {
        font-size: 16px;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    .nav-center a {
        font-size: 11px;
    }
    
    .nav-center li:not(:last-child)::after {
        margin: 0 8px;
    }
    
    .second-nav {
        padding: 0;
        margin: 0;
    }
    
    .second-nav .container {
        padding: 6px 10px;
        margin: 0;
        gap: 6px;
    }
    
    .mobile-logo .logo {
        font-size: 11px;
        gap: 3px;
    }
    
    .mobile-logo .logo i {
        font-size: 13px;
    }
    
    .mobile-logo .logo span {
        font-size: 11px;
        max-width: 80px;
    }
    
    .browse-categories-btn {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .cart {
        padding: 6px 8px;
        gap: 3px;
    }
    
    .cart-icon-wrapper i {
        font-size: 16px;
    }
    
    .cart-total {
        font-size: 10px;
    }
    
    /* Adjust body padding for smallest screens */
    body {
        padding-top: 45px;
    }
    
    .main-content {
        padding-top: 10px;
    }
    
    section {
        padding-top: 10px;
    }
    
    .toast-container {
        top: 55px !important;
    }
    
    .browse-categories-btn,
    .offer-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Hide login/profile in sticky header on smallest screens */
    .second-nav .container > .nav-right:first-of-type,
    .second-nav .nav-right:first-of-type,
    .second-nav .login-btn,
    .second-nav .customer-profile-dropdown,
    .second-nav .profile-toggle-btn {
        display: none !important;
        visibility: hidden !important;
    }
    
    .search-input {
        padding: 10px 45px 10px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 6px 10px;
    }
    
    .profile-toggle-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .profile-avatar-img,
    .profile-avatar-placeholder {
        width: 28px;
        height: 28px;
    }
    
    .cart {
        padding: 8px 10px;
    }
    
    .cart-icon-wrapper i {
        font-size: 18px;
    }
    
    .cart-total {
        font-size: 12px;
    }
    
    /* Content Grid - Single Column */
    .content-grid {
        gap: 15px;
    }
    
    .main-content {
        padding: 15px 0;
    }
    
    /* Promo Banner - Smaller */
    .promo-banner {
        padding: 15px 12px;
    }
    
    .logo-section i {
        font-size: 25px;
    }
    
    .logo-section h2 {
        font-size: 18px;
    }
    
    .banner-content h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .order-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    /* Referral Banner - Smaller */
    .referral-banner {
        padding: 15px 12px;
    }
    
    .referral-content .logo-section i {
        font-size: 22px;
    }
    
    .referral-content .logo-section h2 {
        font-size: 18px;
    }
    
    .referral-content h3 {
        font-size: 13px;
    }
    
    .reward-amount {
        font-size: 32px;
    }
    
    /* Category Grid - Single Column */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .category-item h4 {
        font-size: 11px;
        padding: 6px;
    }
    
    /* Products Grid - Single Column */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-product {
        width: 100%;
        height: auto;
        max-height: 250px;
    }
    
    .featured-product img {
        height: auto;
        min-height: 200px;
    }
    
    /* Product Card - Smaller */
    .product-card {
        padding: 12px;
    }
    
    .product-card img {
        height: 140px;
        margin-bottom: 8px;
    }
    
    .product-card h4 {
        font-size: 12px;
        margin-bottom: 8px;
        min-height: 28px;
    }
    
    .price {
        font-size: 15px;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        padding: 9px;
        font-size: 10px;
    }
    
    .buy-now-btn {
        font-size: 9px;
    }
    
    /* Section Header - Smaller */
    .section-header h2 {
        font-size: 18px;
    }
    
    .view-more-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Company Banner - Smaller */
    .company-banner {
        height: 200px;
    }
    
    .spreading-purity {
        font-size: 20px;
    }
    
    .achievements {
        padding: 12px;
    }
    
    .achievement-item {
        margin-bottom: 10px;
        font-size: 12px;
    }
    
    /* Chat Widget */
    .chat-popup {
        width: calc(100% - 20px);
        max-width: 300px;
    }
    
    .chat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    /* Price Section Mobile */
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* Form Elements Mobile - Stack buttons vertically */
    .product-card-form .d-flex.gap-2 {
        flex-direction: column;
        gap: 8px !important;
    }
    
    .product-card-form .d-flex.gap-2 .add-to-cart-btn,
    .product-card-form .d-flex.gap-2 .buy-now-btn {
        width: 100%;
        flex: 1;
    }
    
    /* Ensure buttons are touch-friendly */
    .add-to-cart-btn,
    .buy-now-btn,
    .order-btn,
    .browse-categories-btn,
    .login-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better text wrapping */
    .container {
        overflow-x: hidden;
    }
    
    /* Product section spacing */
    .product-section {
        padding: 30px 0;
    }
    
    .footer-menu {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-logo {
        padding: 12px;
    }
    
    .footer-logo h3 {
        font-size: 22px;
    }
    
    .footer-logo i {
        font-size: 28px;
    }
    
    .footer-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .contact-item {
        padding: 10px;
        gap: 12px;
    }
    
    .contact-item i {
        font-size: 16px;
    }
    
    .contact-item strong {
        font-size: 14px;
    }
    
    .contact-item p {
        font-size: 13px;
    }
    
    .copyright p {
        font-size: 13px;
    }
    
    .payment-methods {
        padding: 12px 20px;
    }
    
    .payment-methods span {
        font-size: 12px;
    }
    
    .payment-icons i {
        font-size: 22px;
    }
}
