/*
Theme Name: HeiFood Theme
Theme URI: https://heifood.com
Description: Theme đơn giản được tối ưu cho page builder plugins như Elementor, Beaver Builder. Hoàn hảo cho website thực phẩm và nhà hàng.
Version: 1.0
Author: HeiFood Team
Author URI: https://heifood.com
Text Domain: heifood-theme
Tags: food, restaurant, page-builder-friendly, elementor, beaver-builder, minimal, fast
*/

/* =======================
   CSS RESET & BASE STYLES
   ======================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* CSS Variables cho màu sắc */
:root {
    --heifood-primary: #4caf50;
    --heifood-secondary: #2e7d32;
    --heifood-accent: #66bb6a;
    --heifood-light-green: #81c784;
    --heifood-dark-green: #1b5e20;
    --heifood-text: #333333;
    --heifood-light-gray: #f8f9fa;
    --heifood-border: #e9ecef;
    --heifood-success: #27ae60;
    --heifood-danger: #e74c3c;
    --container-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* =======================
   LAYOUT CONTAINER
   ======================= */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    padding-top: 0;
}

.site-content {
    flex: 1;
}

/* =======================
   HEADER STYLES
   ======================= */

.site-header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(46, 125, 50, 0.8) 70%, rgba(46, 125, 50, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 30px rgba(46, 125, 50, 0.3);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.site-branding .site-title {
    margin: 0;
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    font-weight: 700;
}

.site-branding .site-title a {
    text-decoration: none;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.8;
}

.custom-logo-link img {
    margin-top: 10px;
    max-height: 45px;
    width: auto;
}

/* =======================
   NAVIGATION STYLES
   ======================= */

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation .sub-menu {
    display: flex;
    flex-direction: column;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    border-radius: 25px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.main-navigation a:hover {
    color: var(--heifood-primary);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Dropdown Arrow */
.main-navigation .menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.main-navigation .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-navigation .sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.main-navigation .sub-menu li {
    width: 100%;
    position: relative;
    display: block;
}

.main-navigation .sub-menu a {
    color: #333;
    padding: 0.6rem 1.2rem;
    border-radius: 0;
    background: transparent;
    transform: none;
    box-shadow: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: left;
}

.main-navigation .sub-menu a::before {
    content: '•';
    color: var(--heifood-primary);
    font-weight: bold;
    font-size: 1rem;
    margin-right: 0.3rem;
}

.main-navigation .sub-menu a:hover {
    color: var(--heifood-primary);
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    transform: translateX(5px);
    padding-left: 2rem;
}

.main-navigation .sub-menu a:hover::before {
    color: var(--heifood-secondary);
    transform: scale(1.2);
}

.main-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

.main-navigation .sub-menu li:first-child a {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.main-navigation .sub-menu li:last-child a {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--heifood-primary) 0%, var(--heifood-accent) 100%);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.menu-toggle .menu-icon {
    display: none;
}

.menu-toggle .menu-text {
    display: inline;
}

/* =======================
   CONTENT STYLES
   ======================= */

.site-main {
    padding: 2rem 0;
}

.entry-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--heifood-secondary);
    margin-bottom: 1rem;
}

.entry-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--heifood-secondary);
    font-weight: 600;
    line-height: 1.4;
    margin: 1.5rem 0 1rem 0;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* =======================
   POST STYLES
   ======================= */

.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--heifood-border);
}

.post:last-child {
    border-bottom: none;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.read-more {
    display: inline-block;
    background: var(--heifood-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background: var(--heifood-accent);
}

/* =======================
   SIDEBAR STYLES
   ======================= */

.widget-area {
    padding: 2rem 0;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--heifood-light-gray);
    border-radius: var(--border-radius);
}

.widget-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--heifood-secondary);
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--heifood-border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    text-decoration: none;
    color: var(--heifood-text);
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--heifood-primary);
}

/* =======================
   FOOTER STYLES
   ======================= */

.site-footer {
    background: var(--heifood-secondary);
    color: white;
    margin-top: auto;
}

.footer-widgets {
    padding: 3rem 0 2rem;
}

.footer-widget-area {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widget {
    padding: 1rem 0;
}

.footer-widget-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Footer Logo & About */
.footer-about .footer-logo {
    margin-bottom: 1rem;
}

.footer-custom-logo img {
    max-height: 60px;
    width: auto;
}

.footer-site-title {
    margin: 0;
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    font-weight: 700;
}

.footer-site-title a {
    color: white;
    text-decoration: none;
}

.footer-description p {
    color: var(--heifood-primary);
    line-height: 1.6;
    padding: 0 1.5rem;
    margin: 0;
}

/* Footer Menu */
.footer-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-menu li {
    margin-bottom: 0.8rem;
}

.footer-nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-nav-menu a:hover {
    color: var(--heifood-accent);
}

/* Footer Contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--heifood-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item span {
    flex: 1;
}

.contact-item strong {
    color: white;
    margin-right: 0.5rem;
}

.footer-phone {
    color: var(--heifood-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: white;
}

.site-info {
    background: #1a252f;
    padding: 1.5rem 0;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    margin: 0;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-widget-area {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-widgets {
        padding: 2rem 0;
    }
    
    .footer-widget-title {
        font-size: 1.6rem;
    }
    
    .footer-site-title {
        font-size: 2rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-widgets {
        padding: 1.5rem 0;
    }
    
    .footer-widget-title {
        font-size: 1.4rem;
    }
    
    .footer-site-title {
        font-size: 1.8rem;
    }
}

/* =======================
   PAGE BUILDER COMPATIBILITY
   ======================= */

.elementor-page-canvas {
    width: 100%;
    overflow-x: hidden;
}

.elementor-section-wrap {
    overflow-x: hidden;
}

/* Full width support */
.page-template-default .site-main,
.elementor-page .site-main {
    padding: 0;
}

.elementor-page .site-header,
.elementor-page .site-footer {
    width: 100%;
}

/* Beaver Builder compatibility */
.fl-builder-content .container {
    max-width: 100%;
    padding: 0;
}

/* Brizy compatibility */
.brz .site-main {
    padding: 0;
}

/* =======================
   FLOATING CONTACT BUTTON
   ======================= */

.floating-contact {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #00bcd4 0%, #26c6da 50%, #00acc1 100%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: floatingPulse 2s infinite ease-in-out;
}

.floating-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 188, 212, 0.6);
    animation: none;
}

.floating-contact svg {
    width: 24px;
    height: 24px;
    fill: white;
    animation: phoneShake 3s infinite;
}

@keyframes floatingPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 188, 212, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(0, 188, 212, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 188, 212, 0.4);
    }
}

@keyframes phoneShake {
    0%, 90%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-10deg);
    }
    20% {
        transform: rotate(10deg);
    }
    30% {
        transform: rotate(-10deg);
    }
    40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

.floating-contact .tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-contact .tooltip::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.8);
}

.floating-contact:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(10px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-contact {
        width: 55px;
        height: 55px;
        left: 15px;
        bottom: 15px;
    }
    
    .floating-contact svg {
        width: 20px;
        height: 20px;
    }
    
    .floating-contact .tooltip {
        left: 65px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* =======================
   UTILITY CLASSES
   ======================= */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

/* =======================
   RESPONSIVE DESIGN
   ======================= */

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(46, 125, 50, 0.8) 70%, rgba(46, 125, 50, 0.95) 100%);
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 30px rgba(46, 125, 50, 0.3);
        padding: 1rem;
        gap: 0;
    }
    
    .main-navigation ul.toggled {
        display: flex;
    }
    
    .main-navigation li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0;
        position: relative;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        color: white;
        padding: 0.8rem 1rem;
        border-radius: 8px;
    }
    
    /* Mobile Dropdown */
    .main-navigation .sub-menu {
        position: static;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: none;
        margin: 0.8rem 0 0 1.5rem;
        padding: 0.5rem 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 10px;
        display: none;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        min-width: auto;
    }
    
    .main-navigation .sub-menu::before {
        display: none;
    }
    
    .main-navigation .menu-item-has-children.mobile-open .sub-menu {
        display: block;
        animation: mobileDropdownSlide 0.3s ease-out;
    }
    
    @keyframes mobileDropdownSlide {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .main-navigation .sub-menu a {
        color: rgba(255, 255, 255, 0.95);
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }
    
    .main-navigation .sub-menu a::before {
        content: '→';
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.8rem;
    }
    
    .main-navigation .sub-menu a:hover {
        color: white;
        background: rgba(255, 255, 255, 0.15);
        transform: none;
        padding-left: 1.2rem;
    }
    
    .main-navigation .sub-menu a:hover::before {
        color: white;
    }
    
    .site-branding .site-title {
        font-size: 2.2rem;
    }
    
    .hero-content {
        min-height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
        justify-content: center;
        padding: 1rem;
    }
    
    .hero-section {
        height: 100vh;
        padding-top: 70px;
    }
    
    .hero-text {
        width: 100vw;
        max-height: 85vh;
    }
    
    .hero-text::before {
        height: 40px;
        top: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .site-branding .site-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu {
        justify-content: center;
    }
    
    .footer-widget-area {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 0;
    }
    
    /* Slideshow Mobile Responsive */
    .slide-content-layout {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }
    
    .text-content {
        margin-right: 0;
        margin-left: 0;
        padding: 1.5rem;
        max-width: 100%;
        width: 100%;
    }
    
    .company-story h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .company-story p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .product-showcase {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .product-mini {
        width: 80px;
        height: 80px;
        padding: 3px;
    }
    
    /* Hide chef image on mobile for slide 2 */
    .chef-image-content,
    .chef-main,
    .chef-image,
    .chef-container {
        display: none !important;
    }
    
    /* Make sure slide 2 text takes full width and center content */
    .slide-2 .slide-content-layout {
        justify-content: center;
        align-items: center;
    }
    
    .slide-2 .text-content {
        max-width: 90%;
        width: 90%;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .slide-2 .company-story {
        text-align: center;
        width: 100%;
    }
    
    .slide-2 .product-showcase {
        justify-content: center;
        margin-top: 1rem;
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    
    .slide-2 .product-mini {
        width: 60px;
        height: 60px;
        padding: 2px;
    }
    
    .slide-navigation {
        bottom: 20px;
        gap: 1rem;
    }
    
    .slide-prev,
    .slide-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 1rem 0;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
    
    .site-branding .site-title {
        font-size: 1.8rem;
    }
    
    .footer-widgets {
        padding: 2rem 0;
    }
}

/* =======================
   ANIMATIONS & TRANSITIONS
   ======================= */

.site-header {
    transition: all 0.3s ease;
}

.main-navigation a,
.widget a,
.footer-widget a {
    transition: color 0.3s ease;
}

.read-more {
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: translateY(-1px);
}

/* =======================
   PRINT STYLES
   ======================= */

@media print {
    .site-header,
    .site-footer,
    .widget-area,
    .menu-toggle {
        display: none;
    }
    
    .site-main {
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* =======================
   HOMEPAGE STYLES
   ======================= */

/* Header luôn cố định - không animation */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
}

/* Hero Slideshow Section */
.hero-slideshow-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: -30px;
    padding-top: 40px;
}

/* Disable slideshow auto-advance - keep only slide 1 */
.slideshow-container .slide:not(.slide-1) {
    display: none !important;
}

.slide-navigation {
    display: none !important;
}

.slideshow-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

/* Slide 1: Text giới thiệu */
.slide-1 {
    background: 
        linear-gradient(90deg, rgba(46, 125, 50, 0.9) 0%, rgba(46, 125, 50, 0.7) 40%, rgba(46, 125, 50, 0.3) 70%, transparent 100%),
        url('assets/images/hero-food.jpg') center/cover no-repeat;
}

/* Slide 2: Layout giống ảnh */
.slide-2 {
    background: 
        linear-gradient(90deg, transparent 0%, rgba(46, 125, 50, 0.3) 30%, rgba(46, 125, 50, 0.7) 60%, rgba(46, 125, 50, 0.9) 100%),
        url('assets/images/hero-food.jpg') center/cover no-repeat;
}

.slide-content-layout {
    display: flex;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
    gap: 3rem;
}

.text-content {
    flex: 1;
    color: white;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-right: 2rem;
}

.company-story h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.company-story p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    /* font-weight: 500; */
}

.product-showcase {
    display: flex;
    gap: 1rem;
}

.product-mini {
    width: 200px;
    height: 140px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.chef-image-content {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chef-main {
    position: relative;
    height: calc(100vh - 160px);
    display: flex;
    align-items: flex-end;
}

.chef-image {
    width: 520px !important;
    height: auto;
    z-index: 99;
    margin-top: -60px !important;
}




/* Slide Navigation */
.slide-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 100;
}

.slide-prev,
.slide-next {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.slide-prev:hover,
.slide-next:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slide-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.hero-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    padding: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    overflow: hidden;
}

.hero-text {
    z-index: 2;
    background: rgba(0, 0, 0, 0.25);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    width: 100%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.8rem 0;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1rem;
    color: #e8f5e8;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f8e9;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #d67c1a 50%, #e55a2b 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
    scale: 1.05;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-outline {
    background: linear-gradient(135deg, #00bcd4 0%, #26c6da 50%, #00acc1 100%);
    color: white;
    border: 2px solid #00bcd4;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    animation: aquaPulse 2.5s infinite;
}

@keyframes aquaPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(0, 188, 212, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    }
}

.btn-outline:hover {
    background: linear-gradient(135deg, #0097a7 0%, #00838f 50%, #006064 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.7);
    animation: none;
}

/* Hero Image & Chef */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chef-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.chef-image {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 3;
}

/* Wave Decoration */
.wave-decoration {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%234caf50" fill-opacity="0.2"></path></svg>') no-repeat center;
    background-size: cover;
    z-index: 1;
}

/* Section 2 - Conveyor Belt */
.section-2 {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.section-2-content {
    text-align: center;
    margin-bottom: 4rem;
}

.section-2 h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--heifood-primary);
    margin-bottom: 1rem;
}

.section-2 p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* New Conveyor Belt */
.new-conveyor-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    /* margin: 2rem 0; */
    margin-top: -20px;
}

.conveyor-track {
    display: none;
}

.conveyor-track::before,
.conveyor-track::after {
    content: '';
    position: absolute;
    top: -8px;
    width: 20px;
    height: 20px;
    background: var(--heifood-primary);
    border-radius: 50%;
    animation: trackMove 8s linear infinite;
}

.conveyor-track::before {
    left: 0;
}

.conveyor-track::after {
    right: 0;
    animation-delay: -4s;
}

@keyframes trackMove {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(calc(100vw + 20px)); }
}

.new-products {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
    transform: translateY(-50%);
}

.new-product {
    position: absolute;
    left: -250px;
    top: 50%;
    width: 200px;
    height: 200px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: newConveyor 16s linear infinite;
    z-index: 5;
    transition: z-index 0.3s ease;
    transform: translateY(-50%);
    will-change: left, transform, opacity;
}

.new-product img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

    .new-product-1 { animation-delay: 0s; }
    .new-product-2 { animation-delay: -3.2s; }
    .new-product-3 { animation-delay: -6.4s; }
    .new-product-4 { animation-delay: -9.6s; }
    .new-product-5 { animation-delay: -12.8s; }

/* Mobile Keyframe - sản phẩm to hơn ở giữa */
@keyframes newConveyorMobile {
    0% {
        left: -250px;
        opacity: 0;
        transform: translateY(-50%) scale(0.5) rotate(-15deg);
        z-index: 1;
    }
    10% {
        opacity: 1;
        transform: translateY(-50%) scale(0.7) rotate(-5deg);
        z-index: 5;
    }
    50% {
        left: calc(50vw - 100px);
        transform: translateY(-50%) scale(1.6) rotate(0deg);
        z-index: 10;
    }
    90% {
        opacity: 1;
        transform: translateY(-50%) scale(0.7) rotate(5deg);
        z-index: 5;
    }
    100% {
        left: calc(100vw + 250px);
        opacity: 0;
        transform: translateY(-50%) scale(0.5) rotate(15deg);
        z-index: 1;
    }
}@keyframes newConveyor {
    0% {
        left: -250px;
        opacity: 0;
        transform: translateY(-50%) scale(0.6) rotate(-15deg);
        z-index: 1;
    }
    10% {
        opacity: 1;
        transform: translateY(-50%) scale(0.8) rotate(-5deg);
        z-index: 5;
    }
    50% {
        left: calc(50vw - 100px);
        transform: translateY(-50%) scale(1.4) rotate(0deg);
        z-index: 10;
    }
    90% {
        opacity: 1;
        transform: translateY(-50%) scale(0.8) rotate(5deg);
        z-index: 5;
    }
    100% {
        left: calc(100vw + 250px);
        opacity: 0;
        transform: translateY(-50%) scale(0.6) rotate(15deg);
        z-index: 1;
    }
}

/* Section 3 - Lĩnh vực hoạt động */
.section-3-activities {
    background: linear-gradient(135deg, var(--heifood-primary) 0%, var(--heifood-secondary) 30%, var(--heifood-dark-green) 70%, #0d4f14 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.section-3-activities::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.section-3-activities::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transform: translate(-20%, 20%);
}

.activities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.activity-block {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.activity-block:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.activity-header {
    background: var(--heifood-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.activity-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.8rem 0;
}

.activity-icon {
    background: var(--heifood-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.activity-item span:last-child {
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive cho Section 3 */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .activity-block {
        padding: 2rem;
    }
    
    .activity-header h2 {
        font-size: 1.6rem;
    }
    
    .activity-item {
        font-size: 0.95rem;
    }
}

.conveyor-cta {
    text-align: center;
    /* margin-top: 3rem; */
}

/* Partners Section */
.partners-section {
    background: white;
    padding-bottom: 10px;
    position: relative;
}

.partners-slider {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
    padding: 1rem 0;
}

.partners-track {
    display: flex;
    gap: 2rem;
    animation: partnersSlide 30s linear infinite;
    width: max-content;
}

.partner-item {
    width: 300px;
    height: 160px;
    flex-shrink: 0;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--heifood-primary);
}

.partner-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 10px;
}

.partner-item:hover img {
    transform: scale(1.05);
}

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

/* Pause animation on hover */
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

/* Mobile Partners */
@media (max-width: 768px) {
    .partners-track {
        animation: partnersSlide 20s linear infinite;
    }
    
    .partner-item {
        width: 150px;
        height: 150px;
    }
}

/* Sections */
.features-section,
.products-section {
    padding-top: 0;
    padding-bottom: 2rem;
}

.features-section {
    background: white;
}

.products-section {
    background: linear-gradient(135deg, var(--heifood-primary) 0%, var(--heifood-secondary) 50%, var(--heifood-dark-green) 100%);
    position: relative;
    overflow: hidden;
}

.products-section .section-header h2 {
    color: white;
}

.products-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.products-slider {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    margin-left: 20px;
    margin-right: 20px;
}

.products-slider > .product-category {
    display: none;
}

.products-slider > .product-category.active {
    display: flex;
    gap: 1.5rem;
    animation: slideIn 0.5s ease-in-out;
}

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

/* Products Grid per slide */
.products-slide {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    animation: fadeIn 0.8s ease-in-out;
}

.products-slide.active {
    display: grid;
}

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

.products-navigation {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.products-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.products-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.products-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.products-dots .dot.active {
    background: white;
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.products-cta {
    text-align: center;
    margin-top: 3rem;
}

.products-cta .btn-primary {
    background: white;
    color: var(--heifood-primary);
    border-color: white;
    font-weight: 600;
}

.products-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--heifood-secondary);
    transform: translateY(-2px);
}

.cta-section {
    background: linear-gradient(135deg, var(--heifood-primary), var(--heifood-secondary));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--heifood-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2.5rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--heifood-primary);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--heifood-primary) 0%, var(--heifood-accent) 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.feature-item h3 {
    color: var(--heifood-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.feature-list p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    padding-left: 0.5rem;
}

.feature-list p:hover {
    color: var(--heifood-secondary);
    transition: color 0.3s ease;
}

/* Products Slider */
a.product-category {
    min-width: 280px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
    display: block;
}

a.product-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    color: var(--heifood-secondary);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none !important;
}

.product-info p {
    text-decoration: none !important;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Đảm bảo không có gạch dưới cho tất cả elements trong product-category */
a.product-category * {
    text-decoration: none !important;
}

/* CTA Section */
.cta-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--heifood-primary);
    border-color: white;
}

.cta-section .btn-primary:hover {
    background: var(--heifood-light-green);
    color: white;
    border-color: var(--heifood-light-green);
}

/* Mobile Keyframe - sản phẩm to hơn ở giữa */
@keyframes newConveyorMobile {
    0% {
        left: -250px;
        opacity: 0;
        transform: translateY(-50%) scale(0.5) rotate(-15deg);
        z-index: 1;
    }
    10% {
        opacity: 1;
        transform: translateY(-50%) scale(0.7) rotate(-5deg);
        z-index: 5;
    }
    50% {
        left: calc(50vw - 100px);
        transform: translateY(-50%) scale(1.6) rotate(0deg);
        z-index: 10;
    }
    90% {
        opacity: 1;
        transform: translateY(-50%) scale(0.7) rotate(5deg);
        z-index: 5;
    }
    100% {
        left: calc(100vw + 250px);
        opacity: 0;
        transform: translateY(-50%) scale(0.5) rotate(15deg);
        z-index: 1;
    }
}

/* Responsive Design for Homepage */
@media (max-width: 1024px) {
    .hero-content {
        min-height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
        justify-content: center;
        padding: 1.5rem;
    }
    
    .hero-text {
        max-width: 100%;
        width: calc(100% - 2rem);
        text-align: center;
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Menu Toggle - hiển thị icon 3 gạch */
    .menu-toggle .menu-icon {
        display: inline;
        font-size: 1.5rem;
    }
    
    .menu-toggle .menu-text {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-slide {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-category {
        min-width: 280px;
    }
    
    .products-dots {
        gap: 8px;
    }
    
    .products-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .feature-item {
        padding: 2rem;
        text-align: center;
    }
    
    .feature-list p {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    /* Mobile Conveyor - tối ưu animation */
    .new-conveyor-container {
        height: 140px;
        overflow: visible;
    }
    
    .new-products {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 140px;
        pointer-events: none;
        transform: translateY(-50%);
        display: block;
    }
    
    .new-product {
        position: absolute;
        animation: newConveyorMobile 12s linear infinite;
        width: 90px;
        height: 90px;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
        transition: z-index 0.3s ease;
        will-change: left, transform, opacity;
        left: -100px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .new-product img {
        width: 110px;
        height: 110px;
        object-fit: contain;
    }
    
    .new-product-1 { animation-delay: 0s; }
    .new-product-2 { animation-delay: -2.4s; }
    .new-product-3 { animation-delay: -4.8s; }
    .new-product-4 { animation-delay: -7.2s; }
    .new-product-5 { animation-delay: -9.6s; }

    .footer-description {
            margin-left: 10px;
    margin-right: 10px;
    }
}

/* =======================
   FOOTER STYLES
   ======================= */

.site-footer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(46, 125, 50, 0.5) 70%, rgba(46, 125, 50, 0.6) 100%),
                url('assets/images/background-footer.png') center/cover no-repeat;
    color: white;
    position: relative;
}

.footer-widgets {
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.footer-description {
    color: #1a1a1a;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.297);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.footer-description p {
    margin: 0;
    line-height: 1.6;
}

.site-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.floating-contact {
    background: linear-gradient(135deg, var(--heifood-primary) 0%, var(--heifood-accent) 100%);
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.floating-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

.floating-contact svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.footer-description {
    color: #ffc107;
    padding: 1rem 0;
    border-bottom: 3px solid #ffc107;
    margin-bottom: 1rem;
}

/* =======================
   PRODUCT ARCHIVE STYLES
   ======================= */

.product-archive-page {
    padding: 3rem 0;
    background: #f8f9fa;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f0f8f0, #e8f5e9);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.page-header.has-banner {
    padding: 4rem 2.5rem;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header.has-banner .page-header-content {
    position: relative;
    z-index: 2;
}

.page-header.has-banner .page-title,
.page-header.has-banner .category-description {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .page-header.has-banner {
        padding: 3rem 1.5rem;
        min-height: 200px;
    }
}

.page-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #2c5530;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.category-description {
    color: #666;
    font-size: 1.1rem;
}

/* Category Cards */
.category-cards-section {
    margin-bottom: 3rem;
}

.category-cards-section .section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #2c5530;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: #4CAF50;
    box-shadow: 0 12px 24px rgba(76, 175, 80, 0.25);
}

.category-card.active {
    background: linear-gradient(135deg, #4CAF50, #66bb6a);
    border-color: #4CAF50;
    color: white;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: #f0f8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #4CAF50;
    transition: all 0.3s;
}

.category-icon i {
    font-size: 2rem;
}

.category-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(98%) contrast(119%);
}

.category-card.active .category-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-card.active .category-icon-img {
    filter: brightness(0) invert(1);
}

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

.category-info {
    text-align: center;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #2c5530;
}

.category-card.active .category-name {
    color: white;
}

.category-count {
    font-size: 0.9rem;
    color: #666;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.9);
}

/* Product Filters */
.product-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
}

.filter-search form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #999;
    pointer-events: none;
}

.filter-search input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-search input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
}

.filter-search .search-loader {
    position: absolute;
    right: 1rem;
    color: #4CAF50;
    font-size: 1.2rem;
}

.filter-search button {
    padding: 0.75rem 1.5rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: none; /* Hidden - using debounce search */
    align-items: center;
    gap: 0.5rem;
}

.filter-search button:hover {
    background: #388E3C;
}

.filter-price,
.filter-sort {
    position: relative;
}

.filter-price label,
.filter-sort label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.filter-category select,
.filter-price select,
.filter-sort select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s;
}

.filter-category select:focus,
.filter-price select:focus,
.filter-sort select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* =======================
   TAXONOMY CATEGORY PAGE
   ======================= */

.product-category-page {
    padding: 3rem 0;
    background: #fafafa;
}

.product-category-page .container {
    max-width: 1400px;
    padding: 0 2rem;
}

.product-category-page .page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff, #f0f8f0);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.product-category-page .page-header.has-banner {
    padding: 4rem 2.5rem;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-category-page .page-header.has-banner .page-header-content {
    position: relative;
    z-index: 2;
}

.product-category-page .page-header.has-banner .page-title,
.product-category-page .page-header.has-banner .category-description {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.product-category-page .page-header.has-banner .product-count {
    background: rgba(255, 255, 255, 0.95);
    color: #2c5530;
}

@media (max-width: 768px) {
    .product-category-page .page-header.has-banner {
        padding: 3rem 1.5rem;
        min-height: 200px;
    }
}

.category-meta {
    margin-top: 1rem;
}

.product-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: #e8f5e9;
    color: #2c5530;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
}

/* Category Navigation */
.category-navigation {
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.category-nav-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #e0e0e0;
}

.category-nav-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-nav-scroll::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 3px;
}

.category-nav-scroll::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 3px;
}

.cat-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: #2c5530;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 150px;
}

.cat-nav-item i {
    font-size: 1.5rem;
    color: #4CAF50;
}

.cat-nav-icon-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(98%) contrast(119%);
}

.cat-nav-item small {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

.cat-nav-item:hover {
    background: #e8f5e9;
    border-color: #4CAF50;
    transform: translateY(-3px);
}

.cat-nav-item.active {
    background: linear-gradient(135deg, #4CAF50, #66bb6a);
    border-color: #4CAF50;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.cat-nav-item.active i,
.cat-nav-item.active small {
    color: white;
}

.cat-nav-item.active .cat-nav-icon-img {
    filter: brightness(0) invert(1);
}

/* Compact Filters */
.product-filters-compact {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1.25rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .product-filters-compact {
        flex-direction: column;
    }
}

.product-filters-compact .filter-search {
    flex: 1;
}

.product-filters-compact .filter-search form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.product-filters-compact .filter-search i {
    position: absolute;
    left: 1rem;
    color: #999;
    pointer-events: none;
}

.product-filters-compact .filter-search input {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.product-filters-compact .filter-search input:focus {
    outline: none;
    border-color: #4CAF50;
}

.product-filters-compact .filter-search .search-loader {
    position: absolute;
    right: 1rem;
    color: #4CAF50;
    font-size: 1.2rem;
}

.product-filters-compact .filter-search button {
    padding: 0.75rem 1.25rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: none; /* Hidden since we're using debounce */
}

.product-filters-compact .filter-search button:hover {
    background: #388E3C;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
    }
}

.filter-controls select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 160px;
}

.filter-controls select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

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

.product-image {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.product-tag.tag-hot {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

.product-tag.tag-new {
    background: linear-gradient(135deg, #4CAF50, #66bb6a);
}

.product-tag.tag-sale {
    background: linear-gradient(135deg, #FFC107, #FFD54F);
    color: #333;
}

.product-info {
    padding: 1.2rem;
}

.product-title {
    font-size: 1.1rem;
    margin: 0 0 0.6rem 0;
    color: #2c5530;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin: 0.75rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-sale,
.price-regular {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
}

.price-original {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: #999;
}

.price-contact {
    font-size: 1.2rem;
    color: #FFC107;
    font-weight: 600;
}

.product-excerpt {
    color: #666;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.6;
    margin: 0.75rem 0;
    min-height: 3em;
}

.product-button {
    margin-top: 1rem;
}

.btn-view-detail {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #4CAF50;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.product-card:hover .btn-view-detail {
    background: #388E3C;
}

/* Responsive Grid for Products */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-image {
        padding-top: 75%;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
}

/* Pagination */
.product-pagination {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 0;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-products p {
    font-size: 1.2rem;
    color: #666;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    border-color: #4CAF50;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.btn-back {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

/* =======================
   SINGLE PRODUCT STYLES
   ======================= */

.single-product-page {
    padding: 3rem 0;
    background: #fff;
}

.product-breadcrumb {
    padding: 1rem 0;
    color: #666;
    font-size: 0.95rem;
}

.product-breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-breadcrumb span {
    margin: 0 0.5rem;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Product Images Wrapper - for mobile grouping */
.product-images-wrapper {
    display: contents; /* Transparent wrapper on desktop */
}

@media (max-width: 768px) {
    .product-images-wrapper {
        display: block; /* Solid wrapper on mobile */
        background: #fff;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* Product Images */
.product-images-section {
    position: sticky;
    top: 20px;
}

@media (max-width: 768px) {
    .product-images-section {
        position: static; /* Remove sticky on mobile */
    }
}

.main-product-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 1rem;
}

.main-product-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.main-product-image img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.product-tag-large {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.product-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .product-gallery-thumbnails {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #4CAF50 #e0e0e0;
    }
    
    .product-gallery-thumbnails::-webkit-scrollbar {
        height: 6px;
    }
    
    .product-gallery-thumbnails::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 3px;
    }
    
    .product-gallery-thumbnails::-webkit-scrollbar-thumb {
        background: #4CAF50;
        border-radius: 3px;
    }
}

.thumbnail-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

@media (max-width: 768px) {
    .thumbnail-item {
        flex: 0 0 80px; /* Fixed width on mobile */
        width: 80px;
        height: 80px;
    }
}

.thumbnail-item:hover {
    border-color: #81c784;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.thumbnail-item.active {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
}

.thumbnail-item.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    background: #4CAF50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.thumbnail-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

/* Product Info Section */
.product-info-section {
    padding: 1rem 0;
}

.product-detail-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #2c5530;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.08);
}

.product-categories {
    margin: 1rem 0;
    font-size: 1rem;
}

.category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #e8f5e9;
    color: #2c5530;
    border-radius: 20px;
    text-decoration: none;
    margin-right: 0.5rem;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.category-badge:hover {
    background: #c8e6c9;
}

.product-price-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f8f0, #e8f5e9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-sale-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4CAF50;
}

.price-original-large {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: #999;
}

.price-regular-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c5530;
}

.price-contact-large {
    font-size: 1.8rem;
    color: #FFC107;
    font-weight: 700;
}

.discount-badge {
    padding: 0.5rem 1rem;
    background: #ff5252;
    color: white;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
}

.product-short-description {
    margin: 1.5rem 0;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Contact Buttons */
.product-contact-buttons {
    margin: 2rem 0;
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .contact-actions {
        grid-template-columns: 1fr;
    }
}

.btn-contact {
    display: block;
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-phone {
    background: linear-gradient(135deg, #4CAF50, #66bb6a);
    color: white;
}

.btn-zalo {
    background: linear-gradient(135deg, #0068FF, #0084FF);
    color: white;
}

.btn-zalo .zalo-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.btn-email {
    background: linear-gradient(135deg, #FFC107, #FFD54F);
    color: #333;
}

/* Share Buttons */
.product-share {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Product Description */
.product-description-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #4CAF50;
    font-weight: 700;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #2c5530;
}

.product-content {
    line-height: 1.8;
    color: #444;
}

.product-content h2,
.product-content h3 {
    color: #2c5530;
    margin-top: 1.5rem;
}

.product-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.product-content ul,
.product-content ol {
    margin: 1rem 0 1rem 2rem;
}

.product-content li {
    margin: 0.5rem 0;
}

/* Related Products */
.related-products-section {
    margin: 3rem 0;
}

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