/* Pharma B2B Platform - Professional Medical Styling */

:root {
    /* Color Palette Theme - Medical & Pharmaceutical */
    --primary-color: #0066CC; /* Professional medical blue */
    --primary-dark: #0052A3; /* Darker medical blue */
    --primary-light: #E6F2FF; /* Light medical blue background */
    --secondary-color: #00A86B; /* Pharmaceutical green (trust, health) */
    --secondary-dark: #008055; /* Darker green */
    --accent-color: #F0F8FF; /* Very light blue (medical white) */
    --success-color: #28A745; /* Success green */
    --danger-color: #DC3545; /* Medical red (warnings) */
    --warning-color: #FFC107; /* Warning amber */
    --info-color: #17A2B8; /* Info teal */
    --dark-color: #1A365D; /* Dark navy for text/footer */
    --light-color: #F8F9FA; /* Clean white background */
    --border-color: #DEE2E6; /* Light gray border */
    --text-color: #1A365D; /* Dark navy for text */
    --text-light: #6C757D; /* Muted gray for light text */
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(26, 54, 93, 0.1), 0 1px 2px 0 rgba(26, 54, 93, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(26, 54, 93, 0.1), 0 2px 4px -1px rgba(26, 54, 93, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(26, 54, 93, 0.1), 0 4px 6px -2px rgba(26, 54, 93, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.main-content {
    min-height: calc(100vh - 200px);
    width: 100%;
    overflow-x: hidden;
}

/* Navigation */
/* ============================================
   NAVBAR - Complete Redesign
   ============================================ */

.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 70px;
}

/* Brand/Logo */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.brand-link:hover {
    transform: scale(1.02);
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Mobile Menu Toggle - Hamburger Icon */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-menu-toggle:hover span {
    background: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary-color);
}

/* Navigation Menu */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
}

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

.nav-menu li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle i.fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down,
.dropdown.active .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    min-width: 220px;
    padding: 0.5rem;
    list-style: none;
    margin: 0;
    display: none;
    z-index: 1001;
    border: 1px solid #e5e7eb;
    animation: fadeInDown 0.3s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-menu .divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
    padding: 0;
}

/* Nav Actions (Login/Register/User Menu) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-login {
    color: var(--text-color);
    background: transparent;
}

.nav-btn-login:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-btn-register {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(91, 163, 184, 0.3);
}

.nav-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 163, 184, 0.4);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.user-toggle i.fa-user-circle {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.user-toggle i.fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.user-dropdown:hover .user-toggle,
.user-dropdown.active .user-toggle {
    background: var(--primary-light);
    color: var(--primary-color);
}

.user-dropdown:hover .user-toggle i.fa-chevron-down,
.user-dropdown.active .user-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.user-menu {
    right: 0;
    min-width: 240px;
}

.username {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.125rem 0;
}

.dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, var(--primary-light), rgba(184, 230, 232, 0.5));
    color: var(--primary-color);
    transform: translateX(4px);
    padding-left: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(44, 74, 86, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(44, 74, 86, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(91, 163, 184, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 163, 184, 0.4);
}

.btn-primary:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
}

.btn-secondary:focus {
    outline: 2px solid rgba(224, 122, 95, 0.3);
    outline-offset: 2px;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #3a8ba8);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(74, 155, 191, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #3a8ba8, var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 155, 191, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), var(--secondary-dark));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--danger-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 12px;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 0;
}

.btn-link:hover {
    color: var(--primary-dark);
    background: transparent;
    transform: none;
    text-decoration: underline;
}

.btn-link::before {
    display: none;
}

/* Universal Search Section */
.universal-search-section {
    width: 100%;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%),
                url('../images/cat_banner.png') center center / cover no-repeat;
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    background-attachment: fixed;
}

.universal-search-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.universal-search-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.universal-search-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.universal-search-form {
    width: 100%;
}

.universal-search-input-wrapper {
    display: flex;
    gap: 0.75rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.universal-search-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.universal-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #1e293b;
    background: transparent;
}

.universal-search-input::placeholder {
    color: #94a3b8;
}

.universal-search-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.universal-search-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.universal-search-btn i {
    font-size: 1rem;
}

.universal-search-suggestions {
    margin-top: 1.5rem;
}

.search-suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.suggestion-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-right: 0.25rem;
}

.suggestion-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.suggestion-tag:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .universal-search-section {
        padding: 2rem 0;
    }
    
    .universal-search-title {
        font-size: 1.5rem;
    }
    
    .universal-search-subtitle {
        font-size: 0.9375rem;
    }
    
    .universal-search-input-wrapper {
        flex-direction: column;
        padding: 0.75rem;
    }
    
    .universal-search-input {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .universal-search-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .search-suggestion-tags {
        gap: 0.5rem;
    }
    
    .suggestion-tag {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.875rem;
    }
}

/* Top Banner Hero Section */
.top-banner-hero {
    width: 100%;
    background: #ffffff;
    padding: 1.25rem 0;
    margin-bottom: 2rem;
}

.top-banner-container {
    width: 100%;
    text-align: center;
}

.top-banner-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 350px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Hero Content Main Section */
.hero-content-main {
    width: 100%;
    background: #ffffff;
    padding: 0 0 3rem 0;
    margin-bottom: 2rem;
}

.hero-content-layout {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 1.5rem;
    align-items: stretch;
    height: 300px;
    max-height: 300px;
}

/* Left Column: We connect Buyers & Sellers */
.hero-content-left-col {
    display: flex;
    align-items: stretch;
}

.hero-content-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.hero-content-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hero-content-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.hero-content-text {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.hero-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    margin-top: auto;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-feature-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.hero-feature-icon {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1rem;
    margin-bottom: 0.375rem;
    transition: all 0.3s ease;
}

.hero-feature-item:hover .hero-feature-icon {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.hero-feature-name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.3;
}

/* Right Column: Auto-Scroll Banner Carousel */
.hero-content-right-col {
    display: flex;
    align-items: stretch;
}

.hero-banner-carousel {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-carousel-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.hero-carousel-track {
    display: flex;
    animation: heroBannerScroll 30s linear infinite;
    width: calc(200% + 2rem);
    height: 100%;
    will-change: transform;
}

.hero-carousel-item {
    flex: 0 0 calc(50% - 1rem);
    margin-right: 2rem;
    height: 100%;
    min-height: 300px;
    max-height: 300px;
}

.hero-carousel-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 300px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

@keyframes heroBannerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

/* Pause animation on hover */
.hero-banner-carousel:hover .hero-carousel-track {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content-box {
        padding: 2rem;
    }
    
    .hero-content-heading {
        font-size: 1.5rem;
    }
    
    .top-banner-image {
        max-height: 320px;
    }
}

@media (max-width: 992px) {
    .top-banner-image {
        max-height: 300px;
    }
    
    .hero-content-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        height: auto;
        max-height: none;
    }
    
    .hero-content-box {
        padding: 1.5rem;
        height: auto;
    }
    
    .hero-content-heading {
        font-size: 1.125rem;
    }
    
    .hero-features-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .hero-banner-carousel {
        min-height: 250px;
        max-height: 250px;
    }
    
    .hero-carousel-item {
        min-height: 250px;
        max-height: 250px;
    }
    
    .hero-carousel-image {
        min-height: 250px;
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .top-banner-hero {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .top-banner-image {
        max-height: 250px;
    }
    
    .hero-content-main {
        padding: 0 0 2rem 0;
        margin-bottom: 1.5rem;
    }
    
    .hero-content-box {
        padding: 1.5rem;
    }
    
    .hero-content-heading {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-content-text {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features-row {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .hero-feature-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
    }
    
    .hero-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .hero-feature-name {
        font-size: 0.9375rem;
        text-align: left;
    }
    
    .hero-banner-carousel {
        min-height: 240px;
    }
    
    .hero-carousel-item {
        min-height: 240px;
    }
    
    .hero-carousel-image {
        min-height: 240px;
    }
    
    .hero-carousel-track {
        animation-duration: 25s;
    }
}

@media (max-width: 576px) {
    .top-banner-image {
        max-height: 200px;
    }
    
    .hero-content-box {
        padding: 1.25rem;
    }
    
    .hero-banner-carousel {
        min-height: 200px;
    }
    
    .hero-carousel-item {
        min-height: 200px;
    }
    
    .hero-carousel-image {
        min-height: 200px;
    }
}

/* Hero Section (kept for backward compatibility if needed elsewhere) */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    margin-bottom: 3rem;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    width: 100%;
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 550px;
        padding: 4rem 0;
    }
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: grab;
}

#hero-particles:active {
    cursor: grabbing;
}

#hero-particles canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-title-animate {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-subtitle-animate {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-search-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero-cta-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-search {
    margin-top: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .search-form {
        max-width: 100%;
    }
}

.search-input {
    flex: 1;
    padding: 1.125rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 230, 211, 0.5));
    padding: 4rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(44, 74, 86, 0.08);
    border-top: 1px solid rgba(232, 213, 192, 0.3);
    border-bottom: 1px solid rgba(232, 213, 192, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(44, 74, 86, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(44, 74, 86, 0.15);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-icon-wrapper {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.stat-item:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Cards */
.stat-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.stat-sub {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.25rem;
    color: var(--text-color);
}

.card-content {
    padding: 1.5rem;
}

/* Sections */
.section {
    margin: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Ensure category grids are responsive */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }
}

.category-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Ensure grids are responsive */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-color);
}

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

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

.product-image,
.category-card img,
.supplier-card img,
.blog-card img {
    max-width: 100%;
    height: auto;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-info h3 a {
    color: var(--text-color);
    text-decoration: none;
}

/* Supplier profile header - responsive */
.supplier-card {
    width: 100%;
}
.supplier-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}
.supplier-logo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.supplier-logo-fallback {
    width: 100%;
    height: 200px;
    background: var(--light-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.supplier-logo-fallback i { font-size: 4rem; color: var(--secondary-color); }

@media (max-width: 768px) {
    .supplier-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .supplier-logo-fallback { height: 180px; }
}


.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-category {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-seller {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.product-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Products Layout */
.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
}

.products-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.filter-card h3 {
    margin-bottom: 1rem;
}

.products-main {
    min-height: 500px;
}

.products-header {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Product Detail */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.product-images {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.thumbnail-images img:hover {
    border-color: var(--primary-color);
}

.product-info-detail h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-meta-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.category-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.views-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.product-specs-summary {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.spec-item {
    margin-bottom: 0.75rem;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.product-actions {
    margin-top: 2rem;
}

/* Tabs */
.product-tabs {
    margin: 3rem 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.spec-table td:first-child {
    width: 30%;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 3rem 0;
}

.auth-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-form {
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.alert-error {
    background: #F5D5C8;
    color: #B85A42;
    border: 1px solid #E07A5F;
}

.alert-success {
    background: #D4ECF0;
    color: #2C5A6B;
    border: 1px solid #5BA3B8;
}

/* Dashboard */
.dashboard-header {
    margin: 2rem 0;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* Tables */
.data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--text-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tr:hover {
    background: var(--light-color);
}

/* Responsive table cells */
@media (max-width: 768px) {
    .data-table th,
    .data-table td {
        white-space: normal;
        word-wrap: break-word;
        max-width: 150px;
    }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-new {
    background: #D4ECF0;
    color: #2C5A6B;
}

.badge-read {
    background: #E8F3F5;
    color: #4A8BA0;
}

.badge-replied {
    background: #D4ECF0;
    color: #2C5A6B;
}

.badge-closed {
    background: #F5E6D3;
    color: #5A7A85;
}

.badge-active {
    background: #D4ECF0;
    color: #2C5A6B;
}

.badge-inactive {
    background: #F5D5C8;
    color: #B85A42;
}

.badge-pending {
    background: #F5E6D3;
    color: #C66A52;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination .btn {
    min-width: 40px;
}

.pagination .btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
    margin: 1rem 0;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Page Header */
.page-header {
    margin: 2rem 0;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
}

/* Inquiry Layout */
.inquiry-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.product-summary-card,
.inquiry-form-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.product-summary-card h3 {
    margin-bottom: 1rem;
}

.product-summary-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-summary-card p {
    margin-bottom: 0.5rem;
}

/* Seller Info Card */
.seller-info-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.seller-info-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.seller-details p {
    margin-bottom: 0.75rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-section {
    min-width: 0; /* Prevent overflow */
}

.footer-section h3,
.footer-section h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-section p {
    font-size: 0.75rem;
    line-height: 1.5;
}

.footer-section ul {
    font-size: 0.8125rem;
}

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

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Hero CTA */
.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Supplier Card Enhancements */
.supplier-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.supplier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Content Text */
.content-text {
    line-height: 1.8;
    color: var(--text-color);
}

/* Responsive Styles */
/* Tablet and below (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 0.8125rem;
    }
    
    .footer-section p {
        font-size: 0.6875rem;
    }
    
    .footer-section ul {
        font-size: 0.75rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation - Mobile */
    .nav-container {
        padding: 0 1rem;
        height: 65px;
        gap: 1rem;
    }
    
    .nav-logo {
        height: 45px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 999;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-menu-wrapper.active {
        max-height: calc(100vh - 65px);
        overflow-y: auto;
        padding: 1rem 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0;
        overflow-x: hidden;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0;
        justify-content: space-between;
        font-size: 1rem;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: var(--primary-light);
        color: var(--primary-color);
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: #f9fafb;
        min-width: 100%;
        animation: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 500px;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        padding: 0.875rem 1.5rem 0.875rem 2.5rem;
        border-radius: 0;
        font-size: 0.95rem;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        transform: none;
        padding-left: 2.5rem;
        background: var(--primary-light);
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        border-top: 1px solid #f3f4f6;
        margin-top: 0.5rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    .user-dropdown {
        width: 100%;
    }
    
    .user-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .user-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Layout adjustments */
    .products-layout,
    .product-detail-layout,
    .inquiry-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-sidebar {
        position: static;
        width: 100%;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 500px;
        padding: 3rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-input {
        margin-bottom: 0;
        width: 100%;
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    /* Stats Section */
    .stats-section {
        padding: 2.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon-wrapper {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Cards and Grids */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        min-width: 0;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-price {
        font-size: 1.35rem;
    }
    
    /* Product Detail */
    .product-detail-layout {
        gap: 2rem;
    }
    
    .product-images {
        padding: 0.75rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail-images {
        gap: 0.5rem;
    }
    
    .thumbnail-images img {
        width: 60px;
        height: 60px;
    }
    
    .product-info-detail h1 {
        font-size: 1.75rem;
    }
    
    .product-price-large {
        font-size: 2rem;
    }
    
    .product-meta-info {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-card h2 {
        font-size: 1.75rem;
    }
    
    /* Tables */
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    
    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.75rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .btn {
        width: 100%;
    }
    
    /* Hero CTA */
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.75rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section p {
        font-size: 0.6875rem;
    }
    
    .footer-section ul {
        font-size: 0.6875rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.25rem;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .pagination .btn {
        min-width: 36px;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Tabs */
    .tab-buttons {
        flex-wrap: wrap;
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    .tab-content {
        padding: 1.5rem 1rem;
    }
    
    /* Cards */
    .card-header {
        padding: 1.25rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 2.5rem;
    }
    
    /* Trust Indicators Section */
    .section {
        padding: 2rem 1rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 0.75rem;
        height: 60px;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 22px;
    }
    
    .nav-menu-wrapper {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 1000;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-menu-wrapper.active {
        display: flex;
        max-height: calc(100vh - 60px);
    }
    
    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1rem 0.75rem 2rem;
        font-size: 0.9rem;
    }
    
    .username {
        max-width: 120px;
    }
    
    /* Hero */
    .hero-section {
        min-height: 450px;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .search-input {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Stats */
    .stats-section {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .stat-item {
        padding: 1.25rem 1rem;
    }
    
    .stat-icon-wrapper {
        font-size: 2.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Cards */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .category-icon {
        font-size: 2.25rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    /* Product Detail */
    .product-info-detail h1 {
        font-size: 1.5rem;
    }
    
    .product-price-large {
        font-size: 1.75rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail-images img {
        width: 50px;
        height: 50px;
    }
    
    /* Forms */
    .auth-card {
        padding: 1.75rem 1.25rem;
        margin: 0.75rem;
    }
    
    .auth-card h2 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Tables - make scrollable on small screens */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.875rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Pagination - smaller on mobile */
    .pagination .btn {
        min-width: 32px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Tabs */
    .tab-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 1.25rem 0.75rem;
    }
    
    /* Cards */
    .card-header,
    .card-content {
        padding: 1rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: 1.5rem 0.75rem;
    }
    
    .empty-state i {
        font-size: 2rem;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .product-info-detail h1 {
        font-size: 1.35rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem;
    }
}

