/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-orange: #FF6600;
    --primary-green: #009F4D;
    /* Dakar Green */
    --primary-hover: #e55c00;
    --background-gray: #F2F3F7;
    --text-dark: #333;
    --text-gray: #666;
    --border-color: #ddd;
    --white: #fff;
    --blue-link: #1686cc;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    /* Background Image */
    background-image: url('../img/customer_bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    /* Wide Alibaba style */
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #eee;
    font-size: 12px;
    padding: 8px 0;
    color: var(--text-gray);
    backdrop-filter: blur(5px);
}

.top-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-links a:hover {
    color: var(--primary-orange);
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    cursor: pointer;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    color: var(--primary-orange);
    font-size: 32px;
}

.highlight {
    color: var(--primary-orange);
}

/* Search Bar */
.search-container {
    flex: 1;
}

.search-box {
    display: flex;
    border: 2px solid var(--primary-green);
    border-radius: 24px;
    /* Pill shape like modern search bars */
    overflow: hidden;
    height: 44px;
}

.search-category {
    border: none;
    background: #f5f5f5;
    padding: 0 15px;
    color: var(--text-dark);
    border-right: 1px solid #ddd;
    outline: none;
    cursor: pointer;
    font-size: 13px;
    max-width: 150px;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #007a3d;
    /* Darker Green */
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 25px;
    min-width: 250px;
    justify-content: flex-end;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text-gray);
    cursor: pointer;
    gap: 4px;
}

.action-item i {
    font-size: 20px;
    color: var(--text-dark);
}

.action-item:hover {
    color: var(--primary-orange);
}

.action-item:hover i {
    color: var(--primary-orange);
}

/* Nav */
.main-nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
    padding-bottom: 50px;
}

/* Sidebar */
.sidebar {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.sidebar-header {
    background: #f7f7f7;
    padding: 15px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.category-list {
    padding: 10px 0;
}

.cat-header {
    padding: 15px 15px 5px;
    font-size: 12px;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
}

.cat-item {
    padding: 8px 15px;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

/* Main Nav Dropdown */
.nav-item-dropdown {
    position: relative;
    cursor: pointer;
}

.nav-link-dropdown {
    display: flex !important;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 8px 20px !important;
    white-space: nowrap;
    color: #333;
    font-size: 13px !important;
    border-bottom: none !important;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
    color: var(--primary-orange);
}

/* Sidebar Nested Items */
.cat-group {
    /* Container for parent + children */
}

.cat-parent {
    font-weight: 600;
    justify-content: space-between;
}

.cat-children {
    padding-left: 15px;
    display: none;
    /* Hidden by default, or use JS to toggle */
}

.cat-group.active .cat-children,
.cat-group:hover .cat-children {
    display: block;
    /* Show on active class or hover */
}

.cat-child {
    font-size: 13px;
    padding: 6px 15px;
    border-left: 2px solid #eee;
}

.cat-child:hover,
.cat-child.active {
    border-left-color: var(--primary-orange);
    background: #f9f9f9;
}

.cat-item.active {
    background: #f0f0f0;
    color: var(--primary-orange);
    font-weight: 600;
}

/* Mobile Sidebar Fixes */
@media (max-width: 768px) {
    .cat-group {
        display: inline-block;
        /* For horizontal scroll view */
    }

    .cat-children {
        display: none !important;
        /* Hide children in top horizontal bar to keep it clean */
    }
}

/* Hero Layout with Widget */
.hero-section-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-banner {
    flex: 3;
    height: 320px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(255, 102, 0, 0.4)), url('https://images.unsplash.com/photo-1556656793-02715d8dd6f8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero-banner:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-banner h1 {
    position: relative;
    z-index: 1;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner p {
    position: relative;
    z-index: 1;
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.user-widget {
    flex: 1;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.user-welcome {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    background: #FFEDD5;
    /* Light orange */
    color: var(--primary-orange);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-signin {
    flex: 1;
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
}

.btn-join {
    flex: 1;
    background: white;
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    padding: 8px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
}

.pro-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pro-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}

.pro-item i {
    color: var(--primary-orange);
    width: 20px;
}

.pro-item:hover {
    color: var(--primary-orange);
}

/* Trust Bar */
.trust-bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 245, 0.95) 100%);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 159, 77, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    border-right: 2px solid rgba(0, 0, 0, 0.08);
    padding: 0 20px;
    transition: transform 0.3s ease;
    position: relative;
}

.trust-item:hover {
    transform: translateY(-2px);
}

.trust-item:last-child {
    border-right: none;
}

.trust-item i {
    font-size: 36px;
    color: var(--primary-green);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, rgba(0, 159, 77, 0.1) 0%, rgba(0, 159, 77, 0.05) 100%);
    padding: 12px;
    border-radius: 10px;
}

.trust-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.trust-item h4 {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.trust-item p {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* Deals Section */
.deals-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 245, 0.95) 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 102, 0, 0.15);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.deals-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.deals-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.deals-header h3 i {
    color: var(--primary-orange);
    font-size: 20px;
}

.countdown {
    display: flex;
    gap: 8px;
    align-items: center;
}

.countdown span {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e55c00 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 102, 0, 0.2);
    animation: countdown 1s infinite;
}

@keyframes countdown {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.deals-grid {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1;
    overflow-x: auto;
    padding-bottom: 10px;
}

.deal-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 150px;
    background: white;
    border: 2px solid rgba(255, 102, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.deal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--primary-green) 100%);
    border-radius: 10px 10px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary-orange);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.2);
}

.deal-card:hover::after {
    transform: scaleX(1);
}

.deal-img {
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.deal-card:hover .deal-img {
    transform: scale(1.1);
}

.deal-title {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
    height: 26px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.deal-price {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5c5c 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.deal-badge {
    background: linear-gradient(135deg, var(--primary-green) 0%, #007a3a 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 159, 77, 0.2);
}

/* Responsive Update */
@media (max-width: 900px) {
    .hero-section-layout {
        flex-direction: column;
    }

    .user-widget,
    .trust-bar,
    .deals-section {
        display: none;
        /* Simplify on mobile */
    }
}

/* Hero Banner */
.banner-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e55c00 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta:active {
    transform: translateY(0) scale(0.98);
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.toolbar h2 {
    font-size: 18px;
    margin: 0;
}

.sort-options {
    font-size: 13px;
    color: var(--text-gray);
}

.sort-options select {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
    margin-left: 5px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* ===== PRODUCT CARD - ENHANCED DESIGN ===== */
.product-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
    border: 1px solid rgba(255, 102, 0, 0.1);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.product-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 12px 24px rgba(255, 102, 0, 0.15), 
                0 0 0 1px rgba(255, 102, 0, 0.05);
    transform: translateY(-4px) scale(1.02);
}

.product-card:hover::before {
    left: 100%;
}

.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #007a3a 100%);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 159, 77, 0.3);
    animation: badgePulse 2s infinite;
}

.badge-deal {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF6600 0%, #e55c00 100%);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3);
    animation: dealPulse 1.5s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes dealPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.product-img-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.product-card:hover .product-img-container {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.product-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
    transition: color 0.2s ease;
}

.product-card:hover .product-title {
    color: var(--primary-orange);
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.product-moq {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    background: #f5f5f5;
    padding: 4px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #ffb400;
    margin: 8px 0;
}

.product-rating i {
    font-size: 12px;
}

.rating-count {
    color: #999;
    font-size: 11px;
}

.action-btn {
    width: 100%;
    margin-top: auto;
    border: 2px solid var(--primary-orange);
    background: white;
    color: var(--primary-orange);
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-orange);
    transition: left 0.3s ease;
    z-index: -1;
}

.action-btn:hover {
    color: white;
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    transform: scale(1.02);
}

.action-btn:hover::before {
    left: 0;
}
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.product-card:hover .action-btn {
    background: var(--primary-orange);
    color: white;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #eee;
    padding: 60px 0 20px;
    margin-top: 40px;
    backdrop-filter: blur(5px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: var(--text-gray);
    cursor: pointer;
}

.footer-col ul li:hover {
    color: var(--primary-orange);
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 20px;
    color: var(--text-gray);
}

.footer-bottom {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.4s ease forwards;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {

    /* Top Bar - Hide on mobile to save space */
    .top-bar {
        display: none;
    }

    /* Header Compact */
    .main-header {
        padding: 10px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        width: 100%;
        justify-content: center;
        font-size: 24px;
    }

    .search-container {
        width: 100%;
        padding: 0 10px;
    }

    .search-box {
        height: 40px;
    }

    .search-btn {
        padding: 0 15px;
    }

    /* Hide User Actions in Header on Mobile (Move to Bottom Bar) */
    .user-actions {
        display: none;
    }

    /* Main Nav - Horizontal Scroll */
    .main-nav {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
        /* Hide scrollbar if needed */
    }

    .main-nav ul {
        padding: 0 10px;
        gap: 15px;
    }

    .main-nav a {
        padding: 10px 5px;
        font-size: 13px;
    }

    /* Sidebar - Turn into Horizontal Category Chips */
    .main-layout {
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        display: block;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 15px;
        overflow: hidden;
        /* Clear floats/containment */
    }

    .sidebar-header {
        display: none;
    }

    .category-list {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        padding: 5px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .category-list::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .cat-item {
        flex: 0 0 auto;
        background: white;
        border: 1px solid #ddd;
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 13px;
        color: #333;
    }

    .cat-item.active,
    .cat-item:hover {
        background: var(--primary-orange);
        color: white;
        border-color: var(--primary-orange);
    }

    .cat-header {
        display: none;
        /* Hide headers like "Marques" in chip view */
    }

    /* End of mobile sidebar styles */


    .cat-item.active {
        background: var(--primary-orange);
        color: white;
        border-color: var(--primary-orange);
    }

    .cat-item i {
        margin-right: 5px;
    }

    .cat-item span:last-child {
        display: none;
        /* Hide arrows */
    }

    /* Product Grid Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        padding: 8px;
    }

    .product-img-container {
        height: 140px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 16px;
    }

    .action-btn {
        padding: 4px;
        font-size: 12px;
    }

    /* Bottom Navigation Bar */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid #eee;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 1001;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 10px;
        color: #666;
        gap: 4px;
        position: relative;
    }

    .bottom-nav-item i {
        font-size: 20px;
    }

    .bottom-nav-item.active {
        color: var(--primary-orange);
    }

    /* Adjust main content padding for bottom nav */
    body {
        padding-bottom: 60px;
    }

    /* Better form handling on mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents auto-zoom on iOS */
    }
}

/* Desktop: Hide Bottom Nav */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-gallery img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 4px;
}

.modal-info h2 {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
}

.verified-badge {
    color: var(--primary-green);
    /* Alibaba secure green */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #e6f6ec;
    padding: 2px 8px;
    border-radius: 4px;
}

.rating-badge {
    color: #ffb400;
    font-weight: 700;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-orange);
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary-green);
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-details-list p {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.modal-details-list strong {
    color: #333;
    width: 80px;
    display: inline-block;
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.btn-primary-action {
    flex: 1;
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.btn-secondary-action {
    flex: 1;
    background: white;
    color: var(--primary-orange);
    border: 1px solid var(--primary-orange);
    padding: 12px;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    /* Cart Sidebar */
    .cart-sidebar {
        position: fixed;
        top: 0;
        right: -400px;
        width: 350px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 3000;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .cart-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2900;
        display: none;
    }

    .cart-overlay.active {
        display: block;
    }

    .cart-header {
        padding: 20px;
        background: var(--primary-orange);
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .close-cart {
        font-size: 24px;
        cursor: pointer;
    }

    .cart-items {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }

    .cart-item {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .cart-item-img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
    }

    .cart-item-info {
        flex: 1;
    }

    .cart-item-title {
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cart-item-price {
        color: var(--primary-orange);
        font-weight: 700;
        font-size: 14px;
    }

    .cart-item-remove {
        color: #999;
        font-size: 18px;
        cursor: pointer;
        align-self: center;
    }

    .cart-footer {
        padding: 20px;
        border-top: 1px solid #eee;
        background: #f9f9f9;
    }

    .cart-total {
        display: flex;
        justify-content: space-between;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .btn-checkout {
        width: 100%;
        padding: 12px;
        background: #25D366;
        /* WhatsApp Green */
        color: white;
        border: none;
        border-radius: 4px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 16px;
    }

    .btn-checkout:hover {
        background: #128C7E;
    }

    .cart-badge-icon {
        position: absolute;
        top: -5px;
        right: 15px;
        background: var(--primary-orange);
        color: white;
        font-size: 10px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    .user-actions .action-item {
        position: relative;
    }
}

/* --- Enterprise Forms & Checkout --- */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-form h2,
.order-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    /* Ensure font matches */
    font-size: 14px;
    -webkit-appearance: none;
    /* Remove iOS shadows/rounding */
    -moz-appearance: none;
    appearance: none;
    resize: vertical;
    /* Allow vertical resize only */
}

.order-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-total {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    color: var(--primary-orange);
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}

.payment-method.active {
    border-color: var(--primary-orange);
    background: #fff5eb;
    color: var(--primary-orange);
    font-weight: 700;
}

/* Profile Page */
.profile-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.profile-sidebar {
    width: 250px;
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.profile-menu {
    list-style: none;
}

.profile-menu li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.profile-menu li:hover,
.profile-menu li.active {
    color: var(--primary-orange);
    font-weight: 500;
}

.profile-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.order-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

@media (max-width: 768px) {

    .checkout-grid,
    .profile-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

/* --- Global Toast --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-message {
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.toast-message.success {
    border-left: 4px solid var(--primary-green);
}

.toast-message.error {
    border-left: 4px solid #e74c3c;
}

.toast-message.info {
    border-left: 4px solid #3498db;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* --- Custom Confirm Modal --- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.2s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.custom-modal-overlay.active .custom-modal-box {
    transform: scale(1);
}

/* --- Profile Page Mobile Optimization --- */
@media (max-width: 768px) {

    /* Reduce container padding on profile page to maximize width */
    .profile-page .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    .profile-layout {
        gap: 15px;
        margin-top: 10px;
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
        padding: 5px 0;
        /* Minimal vertical padding, full width */
        background: transparent;
        box-shadow: none;
        margin-bottom: 0;
    }

    /* Transform Sidebar Menu to Horizontal Chips */
    .profile-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0;
    }

    .profile-menu::-webkit-scrollbar {
        display: none;
    }

    .profile-menu li {
        flex: 0 0 auto;
        border: 1px solid #ddd;
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 14px;
        background: white;
        font-weight: 500;
        margin-top: 0 !important;
        border-top: 1px solid #ddd !important;
    }

    .profile-menu li.active {
        background: var(--primary-orange);
        color: white;
        border-color: var(--primary-orange);
    }

    .profile-menu li i {
        margin-right: 5px;
    }

    .profile-content {
        padding: 10px 5px;
        /* Minimal padding to use full width */
        margin-bottom: 20px;
    }

    .profile-content h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* Form Improvements */
    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .form-group input {
        font-size: 16px;
        padding: 10px;
        height: 44px;
    }

    #updateProfileForm button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        font-weight: bold;
        margin-top: 10px;
    }

    /* Orders List Optimization */
    .order-card {
        padding: 10px;
        margin: 0 -5px 10px -5px;
        /* Negative margin to go edge-to-edge if needed, or just small margin */
        border-radius: 4px;
    }

    .order-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
        font-size: 14px;
    }

    .order-card>div:last-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .status-badge {
        margin-bottom: 5px;
        display: inline-block;
    }
}

.custom-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.custom-modal-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.custom-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-confirm {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
}

.btn-cancel {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
}

/* --- Validation Styles --- */
/* Error State for Inputs */
.input-error {
    border-color: var(--danger) !important;
    background-color: #fff8f8 !important;
    animation: shake 0.4s ease-in-out;
}

.input-error:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.25) !important;
}

/* Error Message Text */
.error-hint {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.error-hint::before {
    content: '\f06a'; /* FontAwesome Exclamation Circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    animation: slideIn 0.3s forwards ease-out;
    border-left: 4px solid var(--primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.toast-message.success { border-left-color: var(--secondary); }
.toast-message.error { border-left-color: var(--danger); }
.toast-message.info { border-left-color: var(--primary); }

.toast-message i { font-size: 18px; }
.toast-message.success i { color: var(--secondary); }
.toast-message.error i { color: var(--danger); }
.toast-message.info i { color: var(--primary); }

@keyframes slideIn {
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* ===== ENHANCED RESPONSIVE DESIGN ===== */

/* EXTRA SMALL DEVICES (Mobile phones: 320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }

    /* Header */
    .main-header {
        padding: 10px 0;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo img {
        max-height: 30px;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-category,
    .search-box input,
    .search-btn {
        width: 100% !important;
        margin: 5px 0;
    }

    .user-actions {
        width: 100%;
        justify-content: space-around;
        margin-top: 10px;
    }

    /* Main Layout */
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
        max-height: 200px;
        overflow-y: auto;
    }

    /* Hero Section */
    .hero-section-layout {
        flex-direction: column;
        gap: 15px;
    }

    .hero-banner {
        height: 200px;
        padding: 20px;
    }

    .hero-banner h1 {
        font-size: 20px;
    }

    .hero-banner p {
        font-size: 12px;
    }

    .user-widget {
        padding: 15px;
    }

    /* Product Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-price {
        font-size: 13px;
    }

    /* Buttons */
    .btn-cta,
    .btn-primary,
    button {
        padding: 10px 15px;
        font-size: 13px;
    }

    /* Modals */
    .modal-content,
    .modal-overlay .modal-body {
        width: 95%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* SMALL DEVICES (Mobile phones: 480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        gap: 10px;
    }

    .search-box {
        gap: 8px;
    }

    .search-category,
    .search-box input,
    .search-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
    }

    .hero-banner {
        height: 250px;
    }

    .hero-banner h1 {
        font-size: 22px;
    }

    .user-widget {
        display: none; /* Hide on very small screens */
    }

    /* Promo Banner */
    .promo-banner {
        padding: 30px 20px !important;
    }

    .promo-banner h2 {
        font-size: 20px !important;
    }

    .promo-banner p {
        font-size: 14px !important;
    }
}

/* TABLETS (Medium: 768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    .main-layout {
        gap: 15px;
    }

    .sidebar {
        width: 200px;
        flex-shrink: 0;
    }

    .content-area {
        flex: 1;
        min-width: 0;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }

    .hero-section-layout {
        flex-direction: column;
    }

    .hero-banner {
        flex: 1;
        height: 280px;
    }

    .user-widget {
        flex: 1;
        width: 100%;
    }

    /* Modal */
    .modal-body {
        flex-direction: column;
    }

    .modal-gallery {
        width: 100%;
        margin-bottom: 20px;
    }

    .modal-info {
        width: 100%;
    }

    /* Checkout */
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* LARGE TABLETS & SMALL DESKTOPS (1025px - 1365px) */
@media (min-width: 1025px) and (max-width: 1365px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .main-layout {
        gap: 20px;
    }

    .sidebar {
        width: 220px;
    }
}

/* LARGE DESKTOPS (1366px and above) */
@media (min-width: 1366px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }

    .main-layout {
        gap: 25px;
    }

    .sidebar {
        width: 250px;
    }

    .container {
        max-width: 1400px;
    }
}

/* LANDSCAPE ORIENTATION (Mobile/Tablet) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-banner {
        height: 150px;
    }

    .hero-banner h1 {
        font-size: 18px;
    }

    .main-header {
        padding: 8px 0;
    }

    .top-bar {
        display: none; /* Hide top bar in landscape to save space */
    }
}

/* PORTRAIT ORIENTATION */
@media (orientation: portrait) and (max-width: 1024px) {
    .hero-section-layout {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .main-nav,
    .user-actions,
    .bottom-nav,
    .search-container {
        display: none !important;
    }

    body {
        background: white;
        font-size: 12px;
    }

    .container {
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
