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

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #CD853F;
    --text-color: #333;
    --light-bg: #f8f5f0;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Navigation */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.logo .tagline {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Slider */
.hero-slider {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.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-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #DEB887 100%);
    color: var(--primary-color);
    font-weight: 700;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #DEB887 0%, var(--accent-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(205, 133, 63, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.btn-text {
    color: var(--primary-color);
    padding: 5px 10px;
    font-weight: 600;
    box-shadow: none;
}

.btn-text:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.btn-text:hover {
    color: var(--secondary-color);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Product Categories */
.product-category {
    margin-bottom: 80px;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.category-header p,
.category-description {
    font-size: 1.05rem;
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
    justify-items: center;
}

.products-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.05rem;
    color: #666;
    font-style: italic;
    line-height: 1.6;
}
    gap: 30px;
    margin-bottom: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.03) 0%, rgba(205, 133, 63, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.25);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #f8f5f0 0%, #e8dfd5 50%, #f0e8dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid rgba(139, 69, 19, 0.1);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.product-card:hover .product-image::after {
    left: 100%;
}

.product-image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(2deg);
    filter: drop-shadow(0 15px 30px rgba(139, 69, 19, 0.3));
}

.product-info {
    padding: 30px 25px;
    text-align: center;
    background: white;
}

.product-info h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.product-card:hover .product-info h3 {
    color: var(--secondary-color);
}

.product-info p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-actions {
    margin-top: 20px;
}

.product-actions .btn {
    width: 100%;
    max-width: 220px;
    font-size: 1rem;
    padding: 16px 35px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.category-footer {
    text-align: center;
    margin-top: 40px;
}

/* News Section */
.news-section {
    background-color: var(--light-bg);
    padding: 60px 0;
    margin: 0 -20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8dfd5 100%);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-info {
    padding: 20px;
}

.news-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* Footer */
.footer {
    background-color: #2c1810;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    opacity: 0.9;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    opacity: 0.9;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
}

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

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 0.9rem;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Table Styles */
.price-table {
    width: 100%;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.price-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.price-table th,
.price-table td {
    padding: 15px;
    text-align: left;
}

.price-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.price-table tbody tr:hover {
    background-color: var(--light-bg);
}

.price-table tbody tr:last-child {
    border-bottom: none;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-content {
    padding: 60px 0;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

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

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px 0;
}

.contact-info {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item div h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Product Detail Page */
.product-detail {
    padding: 60px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-detail-image {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8dfd5 100%);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-price {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 30px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-features {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-features ul {
    list-style-position: inside;
    line-height: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .category-header h2 {
        font-size: 1.8rem;
    }

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

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.news-card,
.feature-card {
    animation: fadeIn 0.6s ease-out;
}

/* Floating Zalo Button */
.zalo-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0068FF 0%, #0084FF 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 104, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    overflow: hidden;
}

.zalo-button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 104, 255, 0.6);
    background: linear-gradient(135deg, #0084FF 0%, #0068FF 100%);
}

.zalo-button svg {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
}

.zalo-button span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

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

.zalo-button:hover::before {
    width: 100px;
    height: 100px;
}

/* Mobile Zalo Button - Bottom Bar Style */
@media (max-width: 768px) {
    .zalo-button {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 70px !important;
        border-radius: 0 !important;
        flex-direction: row !important;
        gap: 15px !important;
        background: linear-gradient(135deg, #0068FF 0%, #0084FF 100%) !important;
        box-shadow: 0 -6px 25px rgba(0, 104, 255, 0.5), 0 0 40px rgba(0, 104, 255, 0.3) !important;
        padding: 0 25px !important;
        z-index: 9999 !important;
        animation: zaloGlow 2s ease-in-out infinite !important;
    }
    
    .zalo-button svg {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 0 !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    }
    
    .zalo-button span {
        font-size: 18px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    }
    
    .zalo-button:hover {
        transform: none !important;
    }
    
    .zalo-button::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
        animation: shine 3s ease-in-out infinite !important;
    }
    
    .zalo-button::after {
        display: none !important;
    }
    
    /* Add padding to body to prevent content from being hidden */
    body {
        padding-bottom: 70px !important;
    }
    
    .back-to-top {
        bottom: 85px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        z-index: 9998 !important;
    }
}

@keyframes zaloGlow {
    0%, 100% {
        box-shadow: 0 -6px 25px rgba(0, 104, 255, 0.5), 0 0 40px rgba(0, 104, 255, 0.3);
    }
    50% {
        box-shadow: 0 -8px 35px rgba(0, 104, 255, 0.7), 0 0 60px rgba(0, 104, 255, 0.5);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    z-index: 998;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.5);
}

.back-to-top.show {
    display: flex;
}
