/* Reset và cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn, .logout-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.login-btn::before, .logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.login-btn:hover, .logout-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.admin-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.admin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s infinite;
}

.admin-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}


.cart-info {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.cart-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s infinite;
}

.cart-info:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.cart-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
}

/* Tab container */
.tab-container {
    display: flex;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #e0e0e0;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Khoảng cách cho nút đăng ký */
#registerForm .submit-btn {
    margin-top: 10px;
}

/* Khoảng cách cho nút đăng nhập */
#loginForm .submit-btn {
    margin-top: 10px;
}

/* Main content */
.main-content {
    padding: 40px 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
    background: 
        linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(33, 150, 243, 0.3) 100%),
        url('https://i.postimg.cc/JhnPKCDK/banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 20px;
    margin: 0 20px 50px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.hero-section p {
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Thông tin liên hệ */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 150px;
    justify-content: center;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 8px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-label {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
    margin-bottom: 3px;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Category selection */
.category-selection {
    text-align: center;
    margin-bottom: 50px;
}

.category-selection h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: #4CAF50;
}

.category-card:active {
    transform: translateY(-5px) scale(0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-card.selected {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.category-description {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-style: italic;
}

.category-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #4CAF50;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

.category-card.selected .category-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #2E7D32;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.category-card p {
    color: #666;
    font-size: 1rem;
}

/* Products section */
.products-section {
    margin-top: 50px;
    padding: 0 20px;
}

.products-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

/* Cooked tabs navigation */
.cooked-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.cooked-tab-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cooked-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.cooked-tab-btn:hover {
    background: #e8f5e8;
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-2px);
}

.cooked-tab-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cooked-tab-content {
    position: relative;
}

.cooked-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.cooked-tab-panel.active {
    display: block;
}

/* Fresh tabs - kế thừa style từ cooked tabs */
.fresh-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.fresh-tab-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.fresh-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.fresh-tab-btn:hover {
    background: #e8f5e8;
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-2px);
}

.fresh-tab-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.fresh-tab-content { position: relative; }
.fresh-tab-panel { display: none; animation: fadeIn 0.3s ease; }
.fresh-tab-panel.active { display: block; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: #4CAF50;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Cart modal */
.cart-modal {
    max-width: 600px;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #4CAF50;
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.quantity {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background: #ff3742;
    transform: scale(1.05);
}

.cart-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.3rem;
    color: #4CAF50;
    border-top: 2px solid #4CAF50;
    padding-top: 10px;
    margin-top: 10px;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .login-section {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .login-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .cart-info {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .hero-section {
        padding: 40px 20px;
        margin: 0 10px 30px;
        background-attachment: scroll; /* Tắt parallax trên mobile */
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .category-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .category-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .product-card {
        margin: 0 5px;
    }
    
    .product-image {
        height: 150px;
        font-size: 2.5rem;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .product-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .product-price {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .add-to-cart {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .cooked-tabs, .fresh-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 15px;
        justify-content: center;
    }
    
    .cooked-tab-btn, .fresh-tab-btn {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
        text-align: center;
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin: 0 10px;
    }
    
    .contact-item {
        min-width: auto;
        width: 100%;
        padding: 12px 15px;
    }
    
    .contact-item i {
        font-size: 1.3rem;
    }
    
    .contact-value {
        font-size: 1rem;
    }
    
    .cart-modal {
        max-width: 95%;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .quantity-controls {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 0.8rem 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .hero-section {
        margin: 0 5px 20px;
        padding: 30px 15px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .category-selection h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .category-card {
        padding: 25px 15px;
        margin: 0 5px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    .products-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .product-card {
        margin: 0;
    }
    
    .product-image {
        height: 120px;
        font-size: 2rem;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .add-to-cart {
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .cooked-tabs, .fresh-tabs {
        gap: 6px;
        padding: 0 10px;
    }
    
    .cooked-tab-btn, .fresh-tab-btn {
        padding: 8px 6px;
        font-size: 0.75rem;
        min-width: 100px;
    }
    
    .contact-info {
        padding: 12px;
        margin: 0 5px;
    }
    
    .contact-item {
        padding: 10px 12px;
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
    
    .contact-label {
        font-size: 0.75rem;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 98%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 16px; /* Ngăn zoom trên iOS */
    }
    
    .submit-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .cart-item {
        padding: 10px;
    }
    
    .cart-item-image {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
    }
    
    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .remove-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .login-btn, .logout-btn, .add-to-cart, .submit-btn, .checkout-btn {
        min-height: 44px; /* Apple's recommended touch target size */
        touch-action: manipulation;
    }
    
    .cooked-tab-btn, .fresh-tab-btn {
        min-height: 40px;
        touch-action: manipulation;
    }
    
    .quantity-btn {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .remove-item {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Smooth scrolling */
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent zoom on input focus */
    input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
        font-size: 16px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 20px 15px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .contact-info {
        flex-direction: row;
        gap: 10px;
    }
    
    .contact-item {
        flex: 1;
        padding: 8px 12px;
    }
}
