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

:root {
    --primary-blue: #1e5ba8;
    --primary-green: #228b22;
    --primary-olive: #6b8e23;
    --cyan: #00bcd4;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-blue);
}

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

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-green);
}

/* Navigation */
.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn,
.close-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1003;
}

.mobile-menu-btn:hover,
.close-menu-btn:hover {
    color: var(--primary-green);
    transform: scale(1.1);
}

.mobile-menu-btn:active,
.close-menu-btn:active {
    transform: scale(0.95);
}

.nav.active ~ .mobile-menu-btn {
    opacity: 0;
    pointer-events: none;
}

/* ===================================
   WAVE BANNER - MỎNG & THOÁNG (3 LAYERS)
   =================================== */
.wave-banner-container {
    position: relative;
    width: 100%;
    height: 50px; /* Giảm thêm để thoáng */
    overflow: hidden;
    margin-bottom: 10px; /* Thêm khoảng cách */
}

/* Layer 1: Image wave-banner-hexagon-final.png (Top) */
.wave-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px; /* Giảm thêm */
    z-index: 3;
}

.wave-banner-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

/* Layer 2: Gray Stripe (Middle) - Silver Shimmer Effect */
.wave-banner-gray {
    position: absolute;
    top: 32px;
    left: 0;
    width: 100%;
    height: 6px; /* Giảm thêm */
    background: linear-gradient(
        90deg,
        #b8b8b8 0%,
        #d4d4d4 25%,
        #f0f0f0 50%,
        #d4d4d4 75%,
        #b8b8b8 100%
    );
    background-size: 200% 100%;
    animation: silverShimmer 3s ease-in-out infinite;
    z-index: 2;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes silverShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Layer 3: Cyan Stripe (Bottom) */
.wave-banner-cyan {
    position: absolute;
    top: 38px;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(to right, #00bcd4, #00e5ff);
    z-index: 1;
}

/* Main Content - THOÁNG HỞN */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 20px 0; /* Giảm từ 30px để cân bằng */
    padding-bottom: 50px; /* Giảm từ 60px */
}

/* Product Categories Grid */
.product-categories {
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    animation: fadeIn 1s ease;
}

.category-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    min-height: 350px;
}

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

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 30px;
    text-align: center;
}

.category-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.category-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* Products Grid */
.featured-products {
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-category {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 91, 168, 0.1);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #174a8a;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-success {
    background: var(--primary-green);
    color: var(--white);
}

.btn-success:hover {
    background: #1a6b1a;
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
}

/* ==========================================
   RESPONSIVE DESIGN - MOBILE
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .wave-banner-container {
        height: 50px;
    }
    
    .wave-banner-image {
        height: 32px;
    }
    
    .wave-banner-gray {
        top: 32px;
        height: 6px;
    }
    
    .wave-banner-cyan {
        top: 38px;
        height: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        z-index: 1002;
        position: relative;
    }
    
    .header.nav-open .mobile-menu-btn {
        opacity: 0;
        pointer-events: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1003;
        padding: 20px;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .close-menu-btn {
        display: block !important;
        margin-bottom: 30px;
        margin-left: auto;
        font-size: 32px;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav li {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav a {
        font-size: 16px;
        display: block;
        padding: 15px 0;
    }

    .nav a::after {
        display: none;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 20px;
    }

    .wave-banner-container {
        height: 40px;
    }
    
    .wave-banner-image {
        height: 0px;
    }
    
    .wave-banner-gray {
        top: 25px;
        height: 5px;
    }
    
    .wave-banner-cyan {
        top: 30px;
        height: 10px;
    }

    .main-content {
        padding: 20px 0;
        padding-bottom: 30px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card {
        min-height: 280px;
    }

    .category-image {
        height: 150px;
    }

    .category-content {
        padding: 20px;
    }

    .category-content h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .category-content p {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

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

    .product-image {
        height: 140px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .product-category {
        font-size: 12px;
    }

    .product-price {
        font-size: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 35px;
    }

    .logo-text {
        font-size: 18px;
    }

    .wave-banner-container {
        height: 35px;
    }
    
    .wave-banner-image {
        height: 22px;
    }
    
    .wave-banner-gray {
        top: 22px;
        height: 4px;
    }
    
    .wave-banner-cyan {
        top: 26px;
        height: 9px;
    }

    .category-card {
        min-height: 260px;
        border-radius: 15px;
    }

    .category-image {
        height: 140px;
    }

    .category-content {
        padding: 18px;
    }

    .category-content h2 {
        font-size: 20px;
    }

    .category-content p {
        font-size: 13px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .products-grid {
        gap: 12px;
    }

    .product-image {
        height: 120px;
    }

    .product-info {
        padding: 10px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .product-price {
        font-size: 15px;
    }
}