/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation keyframes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Apply animations */
.nav-panel.is-open {
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-overlay.is-visible {
    animation: fadeIn 0.3s ease;
}

.categories-submenu.expanded {
    animation: slideDown 0.4s ease;
}

.subcategories.expanded {
    animation: slideDown 0.3s ease;
}

/* Default link styling */
a {
    color: #016CC7;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #4DC435;
}

/* Common button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #c0392b;
    color: white;
}

.btn-primary {
    background: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #229954;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

/* Logo */
.logo a {
    display: block;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo img {
    height: 120px;
    width: auto;
    max-width: 500px;
    transition: opacity 0.3s;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav-item {
    position: relative;
}

.desktop-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}

.desktop-nav-link:hover {
    background: linear-gradient(135deg, #4DC435, #28a745);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 196, 53, 0.3);
}

.desktop-nav-link i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Desktop Categories Dropdown */
.desktop-categories-toggle {
    justify-content: space-between;
    min-width: 120px;
}

.desktop-expand-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
    font-size: 0.8rem;
}

.desktop-categories-toggle.expanded .desktop-expand-icon {
    transform: rotate(180deg);
}

.desktop-categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    margin-top: 0.5rem;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.desktop-categories-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-dropdown-content {
    padding: 0;
}

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

.desktop-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.desktop-category-link:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #4DC435;
    border-bottom-color: #4DC435;
}

.desktop-category-link i {
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.desktop-category-item:hover .desktop-category-link i {
    opacity: 1;
}

/* Desktop Subcategories Panel */
.desktop-subcategories {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: static;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin: 0;
    max-height: none;
    overflow: visible;
}

.desktop-subcategories-header {
    background: linear-gradient(135deg, #4DC435, #28a745);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.desktop-subcategories-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.desktop-subcategories-grid {
    padding: 1rem 0;
}

.desktop-view-all-sub {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #4DC435;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.desktop-view-all-sub:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #28a745;
}

.desktop-subcategory-link {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.desktop-subcategory-link:hover {
    background: #f8f9fa;
    color: #495057;
    transform: translateX(5px);
    border-left: 3px solid #4DC435;
}

/* Header Cart Button */
.header-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.header-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: white;
}

.header-cart-btn .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FACC03;
    color: #333;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hamburger Menu Button */
.hamburger-menu {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4DC435, #28a745);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(77, 196, 53, 0.3);
}

.hamburger-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(77, 196, 53, 0.4);
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.hamburger-box {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1.5px;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Hamburger Animation - Hide when menu is open */
body.menu-open .hamburger-menu {
    display: none !important;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Navigation Panel */
.nav-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.nav-panel.is-open {
    right: 0;
}

/* Navigation Panel Header */
.nav-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #4DC435, #28a745);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-panel-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-menu {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Navigation Panel Content */
.nav-panel-content {
    flex: 1;
    padding: 0 2rem 2rem 2rem;
}

/* Search Section - Hidden */
.nav-search,
.search-box,
[class*="search"] {
    display: none !important;
}

/* User Section */
.nav-user-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    border: 1px solid #dee2e6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #495057;
}

.user-info i {
    font-size: 1.5rem;
    color: #4DC435;
}

.user-actions,
.guest-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-actions a,
.guest-actions a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.user-actions a:hover,
.guest-actions a:hover {
    background: #4DC435;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 196, 53, 0.3);
}

.admin-link {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    border: none !important;
}

.admin-link:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
}

.login-btn {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    border: none !important;
}

.register-btn {
    background: linear-gradient(135deg, #4DC435, #28a745) !important;
    color: white !important;
    border: none !important;
}

/* Cart Section */
.nav-cart-section {
    margin-bottom: 2rem;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4DC435, #28a745);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(77, 196, 53, 0.3);
}

.cart-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 196, 53, 0.4);
    color: white;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.cart-icon-wrapper i {
    font-size: 1.25rem;
}

.cart-icon-wrapper .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.cart-text {
    display: flex;
    flex-direction: column;
}

.cart-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-items {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Main Navigation Menu */
.nav-main-menu {
    flex: 1;
}

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

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
}

.nav-link:hover {
    background: linear-gradient(135deg, #4DC435, #28a745);
    color: white;
    transform: translateX(8px);
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Navigation divider */
.nav-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 1rem 0;
    border: none;
}

/* Login and Register links in navigation */
.login-link:hover {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
}

.register-link:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
}

/* Categories Toggle */
.categories-toggle {
    justify-content: space-between;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expand-icon {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.categories-toggle.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Categories Submenu */
.categories-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0.5rem 0 0 0;
    padding: 0;
    list-style: none;
}

.categories-submenu.expanded {
    max-height: 600px;
}

.categories-submenu > li:first-child {
    margin-bottom: 1rem;
}

.all-categories {
    display: block;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #28a745, #20a039);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.all-categories:hover {
    background: linear-gradient(135deg, #20a039, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white !important;
}

/* Category Items */
.category-item {
    margin-bottom: 0.25rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.category-link:hover {
    background: #f8f9fa;
    border-color: #4DC435;
    color: #4DC435;
}

.category-item.has-children .category-link {
    font-weight: 500;
}

/* Subcategories */
.subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0.5rem 0 0 0;
    padding: 0;
    list-style: none;
}

.category-item.expanded .subcategories {
    max-height: 300px;
}

.subcategories li {
    margin-bottom: 0.25rem;
}

.subcategories a {
    display: block;
    padding: 0.5rem 1rem 0.5rem 2rem;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.subcategories a:hover {
    background: #e9ecef;
    color: #495057;
    border-left-color: #4DC435;
    transform: translateX(5px);
}

.view-all-sub {
    font-weight: 600 !important;
    background: linear-gradient(135deg, #e9ecef, #dee2e6) !important;
    color: #495057 !important;
}

/* Body modifications when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Hide desktop-only elements on smaller screens */
@media (max-width: 1024px) {
    .header-quick-actions {
        display: none;
    }
}

.category-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
    width: 100%;
}

.submenu a {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem !important;
    color: #666 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0 !important;
    margin: 0 !important;
    font-size: 0.9rem;
    font-weight: 400 !important;
    border: none !important;
    background: white !important;
    box-sizing: border-box;
}

.submenu a:hover {
    background: #f8f9fa !important;
    color: #333 !important;
    transform: none !important;
}

/* Main content */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Add blue accent to main headings */
h1, h2 {
    color: #016CC7;
}

/* Hero section */
.hero {
    background: #016CC7;
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #4DC435;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-secondary {
    background: #016CC7;
    border: 2px solid #016CC7;
    color: white;
}

.btn-secondary:hover {
    background: #0151a0;
    border-color: #0151a0;
    color: white;
}

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    border-top-color: #FACC03;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #016CC7;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4DC435;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Forms */
/* Add a blue accent border to form containers */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #016CC7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4DC435;
}

/* Cart */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.cart-item-details h4 {
    margin-bottom: 0.25rem;
    color: #016CC7;
}

.cart-item-details p {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: #e1e8ed;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls button:hover {
    background: #d1d9e0;
}

.quantity-controls input {
    width: 60px;
    text-align: center;
    border: 1px solid #e1e8ed;
    padding: 0.25rem;
    border-radius: 3px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1f2d1;
    color: #2d5a2d;
    border: 1px solid #4DC435;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff8cd;
    color: #856404;
    border: 1px solid #FACC03;
}

/* Footer */
.footer {
    background: #016CC7;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #FACC03;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ecf0f1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0151a0;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #4DC435;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #0151a0;
    color: #bdc3c7;
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-panel {
        width: 380px;
    }
    
    .desktop-nav-list {
        gap: 1rem;
    }
    
    .desktop-nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .desktop-categories-dropdown {
        min-width: 600px;
    }
}

/* Mobile breakpoint - Show hamburger, hide desktop nav */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .header-right {
        gap: 0.75rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Header adjustments */
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo img {
        height: 130px;
    }
    
    /* Ensure desktop nav is hidden on mobile */
    .desktop-nav {
        display: none !important;
    }
    
    /* Ensure hamburger is visible on mobile */
    .hamburger-menu {
        display: flex !important;
    }
    
    /* Header right section mobile */
    .header-right {
        gap: 0.75rem;
    }
    
    .header-cart-btn {
        width: 45px;
        height: 45px;
    }
    
    .header-cart-btn .cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
    
    /* Navigation panel mobile adjustments */
    .nav-panel {
        width: 100%;
        max-width: none;
        right: -100%;
    }
    
    .nav-panel-content {
        padding: 1.5rem;
    }
    
    .nav-search {
        margin-bottom: 1.5rem;
    }
    
    .nav-user-section {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .nav-cart-section {
        margin-bottom: 1.5rem;
    }
    
    .cart-link {
        padding: 1rem;
    }
    
    .cart-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    /* Navigation links mobile */
    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
    
    /* Categories mobile */
    .category-link {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    .subcategories a {
        padding: 0.5rem 0.875rem 0.5rem 1.75rem;
        font-size: 0.85rem;
    }
    
    /* User actions mobile */
    .user-actions a,
    .guest-actions a {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    /* Other mobile styles */
    .hero h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Forms mobile responsive */
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
        max-width: none;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Products page mobile responsive */
    .filters {
        padding: 1rem !important;
    }
    
    .filters form {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    .filters form > div {
        width: 100%;
    }
    
    .filters input[type="text"] {
        width: 100% !important;
        max-width: none !important;
        font-size: 16px;
    }
    
    .filters select {
        width: 100%;
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .filters .btn {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    /* Product details mobile responsive */
    .product-details {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .product-image-large {
        max-height: 300px;
    }
    
    .product-info-detailed {
        padding: 1rem;
    }
    
    /* Cart mobile responsive */
    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .cart-item {
        padding: 1rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-info {
        flex: 1;
    }
    
    .quantity-controls {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .quantity-controls button {
        min-width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .quantity-controls input {
        width: 60px;
        text-align: center;
    }
    
    /* Checkout mobile responsive */
    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .checkout-form {
        order: 2;
    }
    
    .order-summary {
        order: 1;
        position: static;
        top: auto;
    }
    
    /* Account/Profile mobile responsive */
    .account-layout,
    .account-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .account-sidebar {
        order: 1;
    }
    
    .account-content {
        order: 2;
    }
    
    .profile-section,
    .orders-section {
        margin-bottom: 1.5rem;
    }
    
    /* Tables mobile responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem !important;
    }
    
    /* Alerts mobile responsive */
    .alert {
        margin: 1rem;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Buttons mobile responsive */
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Pagination mobile responsive */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .pagination a,
    .pagination span {
        min-width: 40px;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* About page mobile responsive */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    /* Contact page mobile responsive */
    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .contact-info {
        order: 1;
        text-align: center;
    }
    
    .contact-form {
        order: 2;
    }
    
    /* Footer mobile responsive */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    /* Additional small mobile optimizations */
    .hero {
        padding: 2rem 0 !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    /* Product grid mobile spacing */
    .products-grid {
        gap: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-image {
        height: 200px !important;
    }
    
    .product-info {
        padding: 1rem !important;
    }
    
    /* Container mobile spacing */
    .container {
        padding: 0 15px !important;
    }
    
    /* Page titles mobile */
    h1 {
        font-size: 1.5rem !important;
        margin: 1rem 0 !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        width: 25px;
        height: 25px;
    }
    
    .mobile-menu-toggle span {
        height: 2px;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .product-price {
        font-size: 1.1rem !important;
    }
    
    .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .form-container {
        padding: 1rem !important;
    }
    
    .container {
        padding: 0 10px !important;
    }
}
