/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Maragsa:wght@400;700&display=swap');


/* === VARIABLES === */
:root {
    --color-primary: #b90000; /* Deep red */
    --color-secondary: #f0e6d2; /* Cream/beige */
    --color-accent: #c9a227; /* Gold */
    --color-dark: #4a2c1a; /* Brown */
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-gray: #e0e0e0;
    --color-light-gray: #f8f8f8;
    
    --font-primary: 'Poppins', sans-serif;
    --font-script: 'Playfair Display', serif;
    
    --transition: all 0.3s ease;
    --border-radius: 5px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-secondary);
    background-image: url("https://firebasestorage.googleapis.com/v0/b/khmer-hot-honey.firebasestorage.app/o/khh-background%20(1)%20(1).png?alt=media&token=fc5c5396-12ca-404e-8901-84125a625a5d");
    background-size: contain;
    background-repeat: repeat;
    /* background-position: center top; */
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Maragsa';
    src: url('../fonts/Maragsa-Display.woff2') format('woff2'),
        url('../fonts/Maragsa-Display.woff') format('woff'),
        url('../fonts/Maragsa-Display.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    }

    @font-face {
    font-family: 'Feeling Passionate';
    src: url('../fonts/Feeling Passionate.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    }

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

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

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

.script-font {
    font-family: var(--font-script);
    font-style: italic;
}

.hidden {
    display: none !important;
}

/* === HEADER & NAVIGATION === */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-image: url('https://firebasestorage.googleapis.com/v0/b/khmer-hot-honey.firebasestorage.app/o/khh-background%20(1)%20(1).png?alt=media&token=fc5c5396-12ca-404e-8901-84125a625a5d');
    background-size: 100% auto; /* Make width 100% of container, height auto */
    background-repeat: no-repeat; /* Don't repeat the image */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    color: var(--color-dark);
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a.active {
    color: var(--color-primary);
    font-weight: 700;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-toggle button {
    background-color: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.language-toggle button:hover {
    transform: scale(1.1);
}

.lang-icon {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid #b90000;
}

.search-icon {
    font-size: 1.2rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: var(--transition);
}

.search-icon:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1010;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    transition: var(--transition);
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    background-color: var(--color-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.hero h2.script-font {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--color-secondary);
}

.hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-white);
}

/* Update these CSS rules for better mobile category display */
.category-filter {
    background-color: var(--color-primary);
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
}

.category-filter::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Add gap between items */
    padding: 0 20px;
    min-width: min-content;
    justify-content: center;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    min-width: 70px; /* Slightly wider */
    color: var(--color-white);
    transition: var(--transition);
}

@media (min-width: 992px) {
    .filter-container {
        gap: 30px; /* Even more gap on larger screens */
    }
}

/* Add an indicator for scrollable categories on mobile */
@media (max-width: 768px) {
    /* .category-filter::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 30px;
        background: linear-gradient(to right, transparent, var(--color-primary));
        pointer-events: none;
    } */
    
    .filter-container {
        padding-right: 30px; /* Add space for the gradient indicator */
    }

    .filter-container {
        display: flex;
        align-items: center;
        padding: 0 10px;
        min-width: min-content;
    }
}

.category-item:hover,
.category-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
}

.hexagon-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: var(--transition);
    margin-bottom: 5px;
}

.category-item:hover .hexagon-icon,
.category-item.active .hexagon-icon {
    background-color: var(--color-accent);
}

.hexagon-icon i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.category-item:hover .hexagon-icon i,
.category-item.active .hexagon-icon i {
    color: var(--color-white);
}

.category-item span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === RECIPE GRID === */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.recipe-image {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.recipe-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
}

.recipe-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 70%, transparent); /* Increased opacity values */
    color: var(--color-white);
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
    transition: var(--transition);
}

.recipe-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.recipe-category {
    display: inline-block;
    background-color: var(--color-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.diamond-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.diamond-divider span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    transform: rotate(45deg);
}

.diamond-divider span:nth-child(2) {
    width: 15px;
    height: 15px;
}

/* === SHOP PAGE === */
.shop-hero {
    height: 300px;
    background-color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: -10px;
    margin-bottom: 30px;
}

.shop-intro {
    padding-bottom: 60px;
    text-align: center;
}

.intro-text {
    max-width: 700px;
    margin: 25px auto;
}

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

.intro-text p {
    margin-bottom: 30px;
    color: var(--color-dark);
}

.social-purchase-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--color-white);
    min-width: 200px;
    transition: var(--transition);
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #FFDC80);
}

.social-btn.tiktok {
    background-color: #000000;
}

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

/* === PRODUCT GRID === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    padding-top: 15px;
    padding-bottom: 20px;
    margin: 0 auto;
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 350px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* padding: 20px; */
    background-color: var(--color-light-gray);
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 20px;
    position: relative;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.product-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--color-black);
}

.product-size {
    font-size: 0.85rem;
    color: var(--color-dark);
    opacity: 0.8;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.product-category {
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    border-top-left-radius: var(--border-radius);
}

.shop-layout-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.product-section {
    flex: 1;
    min-width: 0;
    max-width: 500px; /* Control the width of the product card */
}

.purchase-section {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.product-card-new {
    border-radius: 6px;
    overflow: hidden; /* This clips the extended image */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
}

.product-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    width: calc(100% + 120px); /* Increased to 120px */
    margin-left: -60px; /* Increased to -60px */
    margin-right: -60px; /* Increased to -60px */
    padding: 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #c9a227;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-script);
    padding: 5px;
    font-size: 1.4rem;
    line-height: 1.1;
    transform: rotate(5deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.product-info-new {
    padding: 0;
}

.product-title-bar {
    background-color: #751a15;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    line-height: 1.3;
}

.product-price-bar {
    background-color: #b90000;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.6rem;
}

/* Shop intro (How to Purchase) styling */
.shop-intro {
    padding: 0;
    text-align: left;
    height: 350px;
    display: flex;
}

.shop-intro .product-card {
    text-align: left;
    background-color: white;
    padding: 30px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-intro .intro-text h2 {
    margin-top: 0;
    justify-self: center;
}

/* Mobile adjustments - INCREASED VALUES */
@media (max-width: 768px) {
    .product-image-container {
        width: calc(100% + 100px); /* Increased from 60px */
        margin-left: -50px; /* Increased from -30px */
        margin-right: -50px; /* Increased from -30px */
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .shop-layout-container {
        flex-direction: column;
        align-items: center;
    }
    
    .product-section, 
    .purchase-section {
        width: 100%;
        max-width: 500px;
    }
    
    .shop-intro {
        text-align: center;
        padding-bottom: 40px;
        height: 100%;

    }
    
    .shop-intro .product-card {
        text-align: center;
    }
}

/* === ABOUT PAGE === */
.about-hero {
    height: 300px;
    background-color: var(--color-primary);
}

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

.story-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.story-text {
    flex: 1;
}

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

.story-text p {
    margin-bottom: 20px;
    color: var(--color-dark);
}

.story-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-ingredients {
    padding: 60px 0;
    background-color: var(--color-light-gray);
    text-align: center;
}

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

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

.ingredient-item {
    text-align: center;
    padding: 20px;
}

.hexagon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.hexagon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
}

.hexagon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.ingredient-item p {
    font-size: 0.9rem;
    color: var(--color-dark);
}

.about-process {
    padding: 60px 0;
    text-align: center;
}

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

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--color-black);
}

@media (min-width: 768px) {
    .process-steps::after {
        content: '';
        position: absolute;
        top: 25px;
        left: 75px;
        right: 75px;
        height: 2px;
        background-color: var(--color-gray);
        z-index: -1;
    }
}

/* === CONTACT PAGE === */
.contact-hero {
    height: 300px;
    background-color: var(--color-primary);
}

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

.contact-wrapper {
    display: flex;
    gap: 40px;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--color-dark);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    color: #fff;
    font-size: 1.2rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 15px;
}

.contact-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #F8F8F8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icon {
    color: #F0E6D2;
    font-size: 1.1rem;
    min-width: 18px;
}

.contact-list li a:hover {
    color: #F0E6D2;
}

.contact-list li a:hover .contact-icon {
    transform: translateY(-2px);
}

.social-contacts h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    transition: var(--transition);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

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

.btn-submit {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--color-dark);
}

.form-success {
    background-color: #dff2bf;
    color: #4F8A10;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-success i {
    font-size: 1.5rem;
}

.map-section {
    padding-bottom: 60px;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .story-content {
        flex-direction: column;
    }

    .story-image {
        order: -1;
        margin-bottom: 30px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .story-content {
        display: flex;
        gap: 0px;
        align-items: center;
    }

    .menu-toggle {
        display: flex; /* This ensures the toggle is visible on mobile */
        z-index: 1100; /* Higher z-index to ensure it's clickable */
    }
    
    .nav-links {
        position: absolute;
        top: 100%; /* Position right below the header */
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background-color: var(--color-secondary);
        background-image: url('https://firebasestorage.googleapis.com/v0/b/khmer-hot-honey.firebasestorage.app/o/khh-background%20(1)%20(1).png?alt=media&token=fc5c5396-12ca-404e-8901-84125a625a5d');
        background-size: cover;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-200%); /* Hide above the viewport */
        transition: transform 0.3s ease;
        z-index: 100;
        visibility: hidden; /* Add this for better hiding */
        opacity: 0; /* Start with invisible menu */
        transition: transform 0.3s ease, visibility 0.3s, opacity 0.3s;
    }
    
    .nav-links.active {
        transform: translateY(0); /* Bring into view */
        visibility: visible; /* Make visible */
        opacity: 1; /* Make fully opaque */
    }

    .hero h2.script-font {
        font-size: 2rem;
    }

    .hero .hero-title {
        font-size: 2.5rem;
    }

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

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 15px 10px;
    }
    .logo img {
        height: 60px;
    }
    .hero {
        height: 200px;
    }
    .hero h2.script-font {
        font-size: 1.8rem;
    }
    .hero .hero-title {
        font-size: 2rem;
    }
    .recipe-image {
        padding-bottom: 65%; /* Smaller aspect ratio for mobile - reduced from 100% */
    }
    .recipe-overlay h3 {
        font-size: 1.1rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .social-purchase-buttons {
        flex-direction: column;
    }
    .ingredients-grid {
        grid-template-columns: 1fr;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Add these CSS rules to styles.css */

/* Hamburger menu animation */
.hamburger.active {
    background: transparent;
}

.hamburger.active::before {
    transform: rotate(45deg) translate(0);
}

.hamburger.active::after {
    transform: rotate(-45deg) translate(0);
}

/* Mobile menu styling improvements */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background-color: var(--color-secondary);
        background-image: url('https://firebasestorage.googleapis.com/v0/b/khmer-hot-honey.firebasestorage.app/o/khh-background%20(1)%20(1).png?alt=media&token=fc5c5396-12ca-404e-8901-84125a625a5d');
        background-size: cover;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-200%);
        transition: transform 0.3s ease;
        z-index: 100;
    }

    .nav-links.active {
        transform: translateY(0);
    }
}

.pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding: 0 10px; /* Add padding to prevent edge touching */
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Reduce gap slightly */
    max-width: 100%; /* Ensure container doesn't overflow */
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Smaller gap for mobile */
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
}

.page-number.active {
    background-color: #A31B1B;
    color: white;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-number:hover:not(.active) {
    background-color: #e0e0e0;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-weight: bold;
    color: #666;
}

/* Mobile-specific styles */
@media (max-width: 576px) {
    .page-number, .page-btn, .pagination-ellipsis {
        width: 36px; /* Slightly smaller on mobile */
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Add animation for page change */
    .page-numbers {
        transition: transform 0.3s ease;
    }
    
    /* Ensure the ellipsis is visible and properly styled */
    .pagination-ellipsis {
        width: 24px; /* Narrower ellipsis */
        opacity: 0.7;
    }
}

footer {
    background-color: #A31B1B;
    color: #F8F8F8;
    padding: 50px 0 20px;
}

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

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
    padding-right: 50px;
}

.footer-logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #F0E6D2;
    margin-bottom: 15px;
}

.footer-logo span {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    margin-top: -5px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 400px;
}

.footer-nav {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #F0E6D2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-section ul li a {
    color: #F8F8F8;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #F0E6D2;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #F0E6D2;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.social-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 30px;
    border-top: 1px solid rgba(248, 248, 248, 0.1);
    border-bottom: 1px solid rgba(248, 248, 248, 0.1);
    justify-content: center;
}

.social-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #F0E6D2;
    color: #F0E6D2;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #F0E6D2;
    color: #A31B1B;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 992px) {
    .footer-main {
        flex-direction: column;
    }
    
    .footer-brand {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-nav {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-bar {
        flex-direction: column;
        gap: 15px;
    }
}

/* .contact-section {
    padding: 60px 0;
    background-color: var(--color-secondary);
    background-image: url(https://firebasestorage.googleapis.com/v0/b/khmer-hot-honey.firebasestorage.app/o/khh-background%20(1)%20(1).png?alt=media&token=fc5c5396-12ca-404e-8901-84125a625a5d;
    background-size: contain;
    background-repeat: repeat;
    width: 100%;
    overflow: hidden; 
} */

.contact-section {
    padding: 60px 0;
    width: 100%;
    overflow: hidden; /* Prevents any overflow issues causing white borders */
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 0 20px;
    width: 100%;
}

.contact-info-column {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-column {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-heading {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.contact-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
}

.contact-description {
    margin-bottom: 30px;
    line-height: 1.7;
    color: var(--color-dark);
}

.contact-details {
    margin-top: 40px;
}

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

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    flex-shrink: 0;
}

.contact-icon-wrapper i {
    font-size: 1.2rem;
}

.contact-info-text {
    line-height: 1.5;
}

.contact-info-text a {
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.contact-info-text a:hover {
    color: var(--color-primary);
}

/* Form Enhancements */
.form-group {
    margin-bottom: 25px;
}

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

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f8f8;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(185, 0, 0, 0.1);
    background-color: white;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: #8e0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(185, 0, 0, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-success {
    background-color: #e6f7e6;
    color: #2c742c;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-left: 4px solid #2c742c;
}

.form-success i {
    font-size: 1.5rem;
}

/* Hide honeypot field for Netlify */
.hidden-field {
    display: none !important;
}

/* Social Media Icons for Contact Info */
.contact-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.contact-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    transition: all 0.3s ease;
}

.contact-social-icons a:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info-column,
    .contact-form-column {
        width: 100%;
    }
    
    .contact-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-info-column,
    .contact-form-column {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-heading {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .contact-description {
        text-align: center;
    }
    
    .contact-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .contact-social-icons {
        justify-content: center;
    }
}

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

.form-success.visible {
    animation: fadeIn 0.5s ease forwards;
}

/* QR Welcome Message Styles */
.qr-welcome-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: #fff;
    border-left: 5px solid #f8b62d;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    max-width: 90%;
    width: 500px;
    animation: slideDown 0.5s ease-out;
}

.qr-welcome-message i {
    font-size: 24px;
    color: #f8b62d;
    margin-right: 15px;
}

.qr-welcome-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px) translateX(-50%);
        opacity: 0;
    }
    to {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.qr-generator-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qr-generator-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.qr-generator-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn-generate, .btn-download-all {
    background-color: #f8b62d;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 24px;
}

.btn-generate:hover, .btn-download-all:hover {
    background-color: #e6a41d;
}

.qr-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.qr-code-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #fcfcfc;
    transition: transform 0.3s, box-shadow 0.3s;
}

.qr-code-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-image-container {
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.qr-canvas {
    width: 250px;
    height: 250px;
    background-color: white;
}

.qr-code-info {
    text-align: left;
}

.qr-code-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.download-qr {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.download-qr:hover {
    background-color: #3d8b40;
}

.error {
    color: #d32f2f;
    text-align: center;
    font-weight: bold;
    margin: 20px 0;
}