﻿* {
    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, #FEF3E2 0%, #FDE68A 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
}

    .floating-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    }

    .floating-btn.phone {
        background-color:white;
        animation: pulse-phone 2s infinite;
        opacity:0.5;
    }

    .floating-btn.zalo {
        background-color: white;
        opacity: 0.5;
    }

    .floating-btn.facebook {
        background-color: white;
        opacity: 0.5;
    }
        .floating-btn.phone:hover, .floating-btn.facebook:hover, .floating-btn.zalo:hover {
            opacity: 1;
        }

.tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse-phone {
    0% {
        box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 0 rgba(180, 83, 9, 0.7);
    }

    70% {
        box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 10px rgba(180, 83, 9, 0);
    }

    100% {
        box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 0 rgba(180, 83, 9, 0);
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(254, 243, 226, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid gray;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    gap: 1rem;
}

.logo {
    font-weight: bold;
    color: #B45309;
    text-decoration: none;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #D97706;
    display: block;
    font-weight: normal;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

    .nav a {
        text-decoration: none;
        color: #B45309;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        transition: all 0.3s ease;
    }

        .nav a:hover {
            background: #FDE68A;
            color: #B45309;
            transform: translateY(-2px);
        }

.search-box {
    padding: 0.5rem 1rem;
    border: 2px solid #FDE68A;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    width: 250px;
}

    .search-box:focus {
        box-shadow: 0 0 10px black;
    }

.social-buttons {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.facebook {
    background: #3b5998;
    color: white;
}

.zalo {
    background: #0068ff;
    color: white;
}

.call {
    background: #B45309;
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #B45309;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #FDE68A;
    margin-top: 1rem;
}

    .mobile-menu.active {
        display: flex;
    }

.mobile-search {
    margin-bottom: 1rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .mobile-nav a {
        text-align: left;
        color: #B45309;
        text-decoration: none;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

        .mobile-nav a:hover {
            background: #FDE68A;
        }

.mobile-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.9), rgba(217, 119, 6, 0.8));
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></svg>');
        opacity: 0.3;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.feature {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(254, 243, 226, 0.3);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.cta-button {
    background: #FEF3E2;
    color: #B45309;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        background: #FDE68A;
    }

/* Product Showcase */
.product-showcase {
    background: linear-gradient(135deg, #FEF3E2, #FFEDD5);
    padding: 4rem 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.showcase-card {
    background: linear-gradient(145deg, #FBBF24, #F59E0B);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

    .showcase-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .showcase-card:hover::before {
        left: 100%;
    }

    .showcase-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

.showcase-image {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

/* Categories Section */
.categories {
    background: linear-gradient(135deg, #FDE68A, #FBBF24);
    color: #92400E;
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #B45309;
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: rgba(254, 243, 226, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(180, 83, 9, 0.2);
    position: relative;
    overflow: hidden;
}

    .category-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #F59E0B, #D97706);
        padding: 2px;
        border-radius: 20px;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
    }

    .category-card:hover {
        background: rgba(254, 243, 226, 1);
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(180, 83, 9, 0.15);
    }

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

/* Products Section */
.products {
    background: linear-gradient(135deg, #FEF3E2, #FFEDD5);
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(180, 83, 9, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #FDE68A;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(180, 83, 9, 0.15);
    }

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

    .product-badge.new {
        background: #059669;
    }

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B45309;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .product-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

.product-card:hover .product-image::before {
    left: 100%;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #B45309;
}

.product-description {
    color: #92400E;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    height:100px;
    overflow: hidden;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
}

.weight {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #B45309, #D97706);
    color: #FEF3E2;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #FEF3E2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section a {
    color: #FEF3E2;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-section a:hover {
        color: white;
    }

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

    .footer-social a {
        padding: 0.5rem 1rem;
        border-radius: 25px;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .footer-social .facebook {
        background: #3b5998;
    }

    .footer-social .zalo {
        background: #0068ff;
    }

    .footer-social .call {
        background: #D97706;
    }

    .footer-social a:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #D97706;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .search-box {
        display: none;
    }

    .social-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .floating-buttons {
        right: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .tooltip {
        right: 60px;
        font-size: 12px;
        padding: 6px 10px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hidden class for search results */
.hidden {
    display: none !important;
}
.image-product{
   width:100%;
}

.container-products{
    margin-bottom:40px;
}


.footer-bottom {
    margin-top: 7px;
}

.old-price {
    font-size: 16px;
    font-weight: normal;
    text-decoration: line-through;
    text-decoration-thickness: 2px; 
    text-decoration-color: rgba(0,0,0,0.45);
    color: #6c757d;
    margin-right: 8px;
    font-size: 0.95rem;
}

.floating-btn svg {
    height: 26px;
    color: #ff8200;
}

.footer-section svg {
    height: 20px;
}
.section-title span {
    scroll-margin-top: 120px; 
}

.product-card.out-of-stock {
    position: relative;
    opacity: 0.5; /* mờ ảnh sản phẩm */
    pointer-events: none; /* không cho click */
}

.product-price .out-of-stock-label {
    background: rgba(255,0,0,0.8);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}