* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F0FFFE;
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Top Header */
.top-header {
    background: linear-gradient(90deg, #4734353b 0%, #301d23 100%);
    color: white;
    padding: 0.8rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 101;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease-in-out;
}

.top-header.hide-header {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.8rem;
}

.header-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-img {
    width: 45px;
    height: 45px;
    border-radius: 3px;
    background: white;
    padding: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: white;
}

.logo-brand {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.logo-phone {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.95;
}

.header-search {
    flex: 1;
    display: flex;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    max-width: 400px;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    padding: 0.4rem;
    font-size: 0.9rem;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    color: #111111;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.hotline-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    text-align: center;
}

.hotline-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.hotline-number {
    font-size: 1.05rem;
    font-weight: bold;
}

.header-icon-btn {
    width: 38px;
    height: 38px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-size: 1.4rem;
}

.header-icon-btn:hover {
    background-color: #FF6347;
    transform: scale(1.05);
}

.header-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    color: #000000;
    font-size: 0.65rem;
    font-weight: bold;
    position: absolute;
    top: -4px;
    right: -4px;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: row;
    gap: 0.3rem;
    align-items: center;
}

.social-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.social-btn.zalo {
    background-color: #0084FF;
}

.social-btn.zalo:hover {
    background-color: #0073E6;
}

.social-btn.facebook {
    background-color: #1877F2;
}

.social-btn.facebook:hover {
    background-color: #0A66FF;
}

.social-btn.messenger {
    background-color: #0084FF;
}

.social-btn.messenger:hover {
    background-color: #0073E6;
}

.social-btn.tiktok {
    background-color: #000000;
}

.social-btn.tiktok:hover {
    background-color: #222222;
}

.social-btn.youtube {
    background-color: #050505;
}

.social-btn.youtube:hover {
    background-color: #0f0f0f;
}

.social-btn.twitter {
    background-color: #1DA1F2;
}

.social-btn.twitter:hover {
    background-color: #1885D8;
}

/* Main Navigation Menu */
.main-nav {
    background: linear-gradient(90deg, #8B7355 0%, #6B5345 100%);
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    position: sticky;
    top: 80px;
    z-index: 99;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 1.2rem 1.8rem;
    font-weight: 700;
    font-size: 1rem;
    border-right: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-link:last-child {
    border-right: none;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.12);
}

.nav-link.active {
    background-color: #CD853F;
    border-bottom: 3px solid #FFA500;
}

/* Navigation */
.navbar {
    background-color: #FFFFFF;
    color: #333;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: linear-gradient(90deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.3s;
    position: relative;
    letter-spacing: 0.5px;
}

.menu-toggle::before {
    display: none;
}

.menu-toggle:hover {
    background: linear-gradient(90deg, #C0392B 0%, #A93226 100%);
}

.menu-toggle.active {
    background: linear-gradient(90deg, #8B0000 0%, #660000 100%);
}

/* Category Menu */
.category-menu {
    display: flex;
    flex-direction: row;
    background: linear-gradient(90deg, #4734353b 0%, #301d23 100%);
    padding: 0;
    border-top: none;
    visibility: visible;
    height: auto;
    opacity: 1;
}

.category-menu.collapsed {
    display: none;
}

.category-link {
    flex: 1;
    padding: 1rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    border-right: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.category-link .arrow {
    display: none;
}

.category-link:last-child {
    border-right: none;
}

.category-link:hover {
    background-color: rgba(255,255,255,0.15);
    color: #FFB6C1;
    box-shadow: inset 0 -3px 0 rgba(255,255,255,0.3);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Show/Hide toggle button */
    .menu-toggle {
        display: none !important;
    }
    
    /* Categories always visible as horizontal scroll */
    .category-menu {
        flex-direction: row !important;
        max-height: none !important;
        height: auto !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding: 0.5rem 0 !important;
        white-space: nowrap;
        background: linear-gradient(90deg, #4734353b 0%, #301d23 100%);
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-menu.active {
        max-height: none !important;
        opacity: 1 !important;
    }
    
    .category-menu.collapsed {
        display: flex !important;
    }
    
    .category-link {
        flex: 0 0 auto;
        width: auto;
        min-width: 130px;
        border-right: 1px solid rgba(255,255,255,0.2);
        border-bottom: none !important;
        text-align: center;
        padding: 0.9rem 1.1rem;
        white-space: normal;
        scroll-snap-align: start;
        font-size: 0.85rem;
    }
    
    .category-link:last-child {
        border-right: none;
    }
    
    .category-link .arrow {
        display: none !important;
    }
}

/* Extra small phones - Even more compact */
@media (max-width: 480px) {
    .menu-toggle {
        display: none !important;
    }
    
    .category-menu {
        flex-direction: row !important;
        overflow-x: auto !important;
        padding: 0.35rem 0 !important;
        max-height: none !important;
        opacity: 1 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .category-link {
        flex: 0 0 auto;
        width: auto;
        min-width: 100px;
        padding: 0.7rem 0.8rem;
        font-size: 0.75rem;
        border-right: 1px solid rgba(255,255,255,0.2);
        border-bottom: none;
        text-align: center;
        white-space: normal;
    }
    
    .category-link:last-child {
        border-right: none;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-container {
        gap: 0.8rem;
    }
    
    .header-search {
        min-width: 220px;
    }
    
    .search-input {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }
    
    .top-header {
        padding: 0.7rem 1.5rem;
    }
    
    .header-container {
        gap: 0.6rem;
    }
    
    .header-left {
        gap: 0.6rem;
    }
    
    .header-logo-img {
        width: 42px;
        height: 42px;
    }
    
    .logo-brand {
        font-size: 0.95rem;
    }
    
    .logo-phone {
        font-size: 0.65rem;
    }
    
    .header-search {
        padding: 0.35rem 0.8rem;
        min-width: 200px;
    }
    
    .search-input {
        font-size: 0.85rem;
        padding: 0.3rem;
    }
    
    .hotline-label {
        font-size: 0.65rem;
    }
    
    .hotline-number {
        font-size: 0.95rem;
    }
    
    .header-icon-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .social-links {
        flex-direction: row;
        gap: 0.2rem;
        padding: 0;
    }
    
    .social-btn {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .navbar {
        top: 70px;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 0.6rem 1rem;
    }
    
    .header-container {
        gap: 0.5rem;
    }
    
    .header-left {
        flex: 0 0 auto;
        gap: 0.5rem;
    }
    
    .header-logo-img {
        width: 38px;
        height: 38px;
    }
    
    .logo-brand {
        font-size: 0.9rem;
    }
    
    .logo-phone {
        font-size: 0.6rem;
    }
    
    .header-search {
        flex: 1 1 100%;
        order: 3;
        padding: 0.35rem 0.8rem;
        min-width: auto;
    }
    
    .search-input {
        font-size: 0.85rem;
        padding: 0.3rem;
    }
    
    .header-right {
        flex: 1 1 auto;
        gap: 0.6rem;
    }
    
    .hotline-section {
        gap: 0.1rem;
    }
    
    .hotline-label {
        font-size: 0.65rem;
    }
    
    .hotline-number {
        font-size: 0.9rem;
    }
    
    .header-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }
    
    .social-links {
        flex-direction: row;
        gap: 0.2rem;
        padding: 0;
    }
    
    .social-btn {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
    }
    
    .navbar {
        top: auto;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon img {
        width: 60px;
        height: 60px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .cart-summary {
        max-width: 100%;
        margin-left: 0;
    }
    
    .checkout-form,
    .user-profile,
    .user-orders {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem;
        font-size: 16px;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 0;
    }
    
    .top-header {
        padding: 0.5rem 0.8rem;
    }
    
    .header-container {
        gap: 0.3rem;
    }
    
    .header-left {
        flex: 0 0 auto;
        gap: 0.4rem;
    }
    
    .header-logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-brand {
        font-size: 0.85rem;
    }
    
    .logo-phone {
        font-size: 0.55rem;
    }
    
    .header-search {
        flex: 1 1 100%;
        order: 3;
        padding: 0.3rem 0.6rem;
        min-width: auto;
    }
    
    .search-input {
        font-size: 0.8rem;
        padding: 0.25rem;
    }
    
    .header-right {
        flex: 1 1 auto;
        gap: 0.4rem;
    }
    
    .hotline-label {
        display: none;
    }
    
    .hotline-number {
        font-size: 0.85rem;
    }
    
    .header-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .social-links {
        gap: 0.15rem;
    }
    
    .social-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.3rem;
}

.category-card {
    background: #3E7A7A;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    background-color: #2F6363;
}

.category-card h3 {
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Products */
.featured h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 190px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.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);
}

/* Discount Badge */
.product-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FF6B35;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 2;
}

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.6rem;
}

/* Product Rating & Sold */
.product-rating-sold {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    color: #666;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.product-stars {
    color: #FFD700;
}

.product-sold {
    color: #999;
}

.product-price-section {
    margin-bottom: 0.6rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.product-price-current {
    font-size: 1.2rem;
    color: #FF6B35;
    font-weight: bold;
}

.product-price-old {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: #999;
}

.product-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: auto;
}

.product-actions input {
    width: 50px;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.85rem;
}

.product-actions button {
    flex: 1;
    padding: 0.4rem;
    border: none;
    background: #FF6B35;
    color: white;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.product-actions button:hover {
    background: #E55A24;
}

/* Cart */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    color: #666;
}

.cart-table {
    background: white;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 2rem;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background-color: #D4B89D;
    color: #333;
    padding: 1rem;
    text-align: left;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-table tr:hover {
    background-color: #f5f5f5;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.checkout-form h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.order-summary {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h2 {
    margin-bottom: 1.5rem;
}

.order-summary hr {
    margin: 1rem 0;
}

/* Account */
.auth-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    margin: 2rem auto;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: #ddd;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #9FE2E7;
    color: #333;
}

.tab-content {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.user-profile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.user-profile p {
    margin: 0.5rem 0;
    padding: 0;
    border-bottom: none;
    font-size: 1rem;
    line-height: 1.6;
}

.user-profile strong {
    font-weight: 600;
}

.user-orders {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.order-item h3 {
    color: #D4B89D;
    margin-bottom: 0.5rem;
}

/* Filter */
.filter-section {
    margin-bottom: 2rem;
}

.filter-section h2 {
    margin-bottom: 1.5rem;
}

.filter-controls {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.filter-controls select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Hero Section */
.hero {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 0;
    margin-bottom: 3rem;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(82, 76, 60, 0.65) 0%, rgba(82, 76, 60, 0.5) 50%, rgba(82, 76, 60, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
    padding: 2rem 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 900;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.5);
    letter-spacing: 1.8px;
    line-height: 1.3;
    color: #ffffff;
    word-spacing: 0.1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 0.7px;
    line-height: 1.7;
    color: #ffffff;
}

.hero-content p:last-of-type {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    color: #f5f5f5;
    opacity: 0.98;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #D4705D;
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 112, 93, 0.3);
}

.btn-primary:hover {
    background-color: #C25A48;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 112, 93, 0.4);
}

.btn-primary img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 3.5rem 2rem;
        min-height: 400px;
        text-align: center;
        justify-content: center;
    }
    
    .hero-content {
        max-width: 700px;
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.6rem;
        letter-spacing: 1.5px;
        margin-bottom: 1.5rem;
        white-space: normal;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p:last-of-type {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 1rem;
        min-height: 320px;
        background-position: center;
        justify-content: center;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.9rem;
        letter-spacing: 1px;
        margin-bottom: 1.2rem;
        white-space: normal;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p:last-of-type {
        font-size: 0.9rem;
        margin-bottom: 1.8rem;
    }
}

/* ===== POPUP MENU ===== */
@media (max-width: 768px) {
    .popup-overlay {
        display: block !important;
    }
    
    .popup-menu {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .popup-overlay {
        display: none !important;
    }
    
    .popup-menu {
        display: none !important;
    }
}

/* Footer */
.footer {
    background-color: #2C3E3D;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* ENHANCED RESPONSIVE DESIGN FOR SMALL PHONES */

/* Extra small devices (320px - 360px) */
@media (max-width: 360px) {
    body {
        font-size: 14px;
        padding-top: 0;
    }
    
    .top-header {
        padding: 0.4rem 0.6rem;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 101;
    }
    
    .header-container {
        gap: 0.2rem;
        flex-wrap: wrap;
    }
    
    .header-left {
        flex: 0 0 auto;
        gap: 0.3rem;
    }
    
    .header-logo-img {
        width: 30px;
        height: 30px;
    }
    
    .logo-brand {
        font-size: 0.75rem;
        display: none;
    }
    
    .logo-phone {
        font-size: 0.5rem;
        display: none;
    }
    
    .header-search {
        flex: 1;
        order: 2;
        padding: 0.25rem 0.5rem;
    }
    
    .search-input {
        font-size: 0.75rem;
        padding: 0.2rem;
    }
    
    .header-right {
        gap: 0.3rem;
    }
    
    .hotline-section {
        display: none;
    }
    
    .social-links {
        display: none;
    }
    
    .header-icon-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .icon-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
    
    .container {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        gap: 0.4rem;
    }
    
    .btn-large {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    h3 {
        font-size: 0.95rem;
    }
    
    .category-card {
        padding: 0.8rem;
    }
    
    .category-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .category-icon img {
        width: 50px;
        height: 50px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-name {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 16px;
    }
    
    .cart-summary {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        white-space: normal;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
}

/* Small phones (360px - 480px) - IMPROVED */
@media (max-width: 480px) and (min-width: 361px) {
    body {
        font-size: 14px;
    }
    
    .top-header {
        padding: 0.5rem 0.7rem;
    }
    
    .header-container {
        gap: 0.3rem;
    }
    
    .header-left {
        gap: 0.4rem;
    }
    
    .header-logo-img {
        width: 33px;
        height: 33px;
    }
    
    .logo-brand {
        font-size: 0.8rem;
    }
    
    .header-search {
        padding: 0.3rem 0.6rem;
    }
    
    .search-input {
        font-size: 0.8rem;
    }
    
    .header-right {
        gap: 0.4rem;
    }
    
    .header-icon-btn {
        width: 31px;
        height: 31px;
        font-size: 1rem;
    }
    
    .social-links {
        gap: 0.15rem;
    }
    
    .social-btn {
        width: 23px;
        height: 23px;
        font-size: 0.65rem;
    }
    
    .container {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    
    .product-image {
        height: 130px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        white-space: normal;
    }
}

/* Improved tablet & landscape (600px - 768px) */
@media (min-width: 600px) and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.05rem;
    }
}

/* Responsive text sizing using viewport width */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    body p {
        line-height: 1.5;
    }
}

/* Touch-friendly buttons on mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.8rem 1.2rem;
    }
    
    button,
    input[type="button"],
    input[type="submit"],
    a.btn {
        min-height: 44px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        min-height: 44px;
        padding: 0.8rem;
        font-size: 16px;
    }
    
    .header-icon-btn {
        min-width: 44px;
        min-height: 44px;
    }
}