:root {
    /* Color Palette */
    --primary: #012d1d;
    --primary-container: #1b4332;
    --on-primary: #ffffff;
    --secondary: #625e57;
    --accent: #c1ecd4;
    --surface: #f9f9f9;
    --surface-container: #eeeeee;
    --surface-container-low: #f3f3f4;
    --surface-container-lowest: #ffffff;
    --outline: #717973;
    --text-on-surface: #1a1c1c;
    --text-on-surface-variant: #414844;

    /* Typography */
    --font-headline: 'Noto Serif', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-gap: 96px;
    --container-max: 1200px;
    --gutter: 24px;
}

@media (max-width: 768px) {
    :root {
        --section-gap: 64px;
        --gutter: 20px;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--surface);
    color: var(--text-on-surface);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--font-headline);
}

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

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

nav ul.nav-links-desktop {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cta-button {
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 45, 29, 0.2);
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

.grab-button {
    background-color: #00B14F !important;
    color: white !important;
    border: none;
}

.grab-button:hover {
    box-shadow: 0 4px 12px rgba(0, 177, 79, 0.4) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

.cart-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-icon-btn:hover {
    transform: scale(1.1);
}

.cart-icon-btn .material-symbols-outlined {
    font-size: 1.6rem;
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--surface-container-lowest);
    padding: 4rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-content span {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 1.25rem;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-on-surface-variant);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* Bento Features */
.features {
    padding: var(--section-gap) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--primary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.bento-item {
    background: var(--surface-container-low);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.bento-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.bento-item.featured {
    background: var(--primary);
    color: var(--on-primary);
}

.bento-item .material-symbols-outlined {
    font-size: 2.8rem;
}

.bento-item h3 {
    font-size: 1.5rem;
}

/* Product Catalog */
.catalog {
    padding: var(--section-gap) 0;
    background-color: var(--surface-container-lowest);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--surface-container-low);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--on-primary);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .add-to-cart-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

.load-more-container {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: var(--primary);
    color: var(--on-primary);
}

.hidden-product {
    display: none !important;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface-container-lowest);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(1, 45, 29, 0.1);
    border-color: var(--accent);
}

.product-image {
    aspect-ratio: 1/1;
    background-color: var(--surface-container);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.15rem;
    line-height: 1.3;
    font-family: var(--font-body); /* Changed to sans-serif for modern look */
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--secondary);
}

.product-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: auto;
    padding-top: 0.5rem;
    letter-spacing: -0.01em;
}

.add-to-cart-btn {
    width: 100%;
    background-color: var(--primary);
    border: none;
    color: white;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-container);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(1, 45, 29, 0.2);
}

.add-to-cart-btn::before {
    content: '\e8cc'; /* Material Icon cart */
    font-family: 'Material Symbols Outlined';
    font-size: 1.2rem;
}

/* Badge System */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Process Section */
.process-section {
    padding: var(--section-gap) 0;
    background-color: var(--surface-container-low);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.process-item .material-symbols-outlined {
    font-size: 3rem;
    color: var(--primary);
}

.process-item h4 {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.process-item p {
    font-size: 0.875rem;
    color: var(--text-on-surface-variant);
    margin-top: 0.5rem;
}

/* About Us Section */
.about-section {
    padding: var(--section-gap) 0;
    background-color: var(--surface-container-lowest);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-section p {
    margin-bottom: 1.5rem;
    color: var(--text-on-surface-variant);
    text-align: justify;
}

.about-image-container {
    position: relative;
}

.about-image-container img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title,
    .about-section h2,
    .contact-info h2 {
        font-size: 2.1rem;
        text-align: center;
    }

    .about-image-container {
        order: -1; /* Image first on mobile */
    }
}

/* Contact Section */
.contact {
    padding: var(--section-gap) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center; /* Vertically center the text and map */
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: flex-start; /* Align icon to top of text */
}

.info-item .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.6rem;
    margin-top: 0.2rem; /* Minor adjustment to align icon with first line */
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.info-item p {
    font-size: 0.95rem;
    color: var(--text-on-surface-variant);
    line-height: 1.5;
}

.map-container {
    height: 480px; /* Adjusted height for better balance */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: var(--surface-container-lowest);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    visibility: hidden; /* Ensure it's totally hidden when closed */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
    visibility: visible;
}

.cart-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--surface-container);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--surface-container);
}

.cart-item-info h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--secondary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface-container-low);
    padding: 0.5rem;
    border-radius: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: white;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.cart-footer {
    padding: 2rem;
    background: var(--surface-container-low);
    border-top: 1px solid var(--surface-container);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 45, 29, 0.3);
}

.continue-btn {
    width: 100%;
    background: transparent;
    color: var(--primary);
    padding: 0.85rem;
    border: 1px solid var(--primary);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.continue-btn:hover {
    background: rgba(1, 45, 29, 0.05);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.empty-msg {
    text-align: center;
    color: var(--secondary);
    margin-top: 3rem;
    font-style: italic;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-grid, .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 968px) {
    .nav-links-desktop {
        display: none !important; /* Force hide on mobile */
    }
    
    #main-nav.active .nav-links-desktop {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        border-bottom: 1px solid var(--surface-container);
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
        font-size: 1rem;
    }
    
    .hero-content div {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-section p {
        text-align: center;
    }

    .about-image-container {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .contact-info p {
        margin: 0 auto 1.5rem;
        max-width: 450px;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .info-item .material-symbols-outlined {
        margin-top: 0;
    }

    .contact-buttons {
        justify-content: center;
    }

    .map-container {
        border-radius: 20px;
        overflow: hidden;
        height: 280px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    
    /* Logo size handled dynamically or kept at base 1.6rem for tablet */

    .cart-icon-btn .material-symbols-outlined,
    .menu-toggle .material-symbols-outlined {
        font-size: 2rem !important; /* Enlarged for better touch target */
    }

    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        top: -8px;
        right: -8px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-gap: 48px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title,
    .about-section h2,
    .contact-info h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .bento-item {
        padding: 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .cart-sidebar {
        width: 100%;
    }
}
@media (max-width: 768px) {
    /* Removed duplicate logo scaling */
    
    .cta-button {
        padding: 0.6rem 1.2rem;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }
    
    .product-info h3 {
        font-size: 1.05rem;
        min-height: auto;
        margin-bottom: 0;
    }
    
    .product-info p {
        margin-bottom: 0;
        font-size: 0.8rem;
    }
    
    .product-price {
        padding-top: 0.25rem;
        font-size: 0.95rem;
    }

    .category-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0;
        margin: 0 0 2rem 0;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
}

/* Footer Styling */
footer {
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 5rem 0 2rem;
    margin-top: var(--section-gap);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.cert-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.cert-item .material-symbols-outlined {
    font-size: 2rem;
    color: var(--accent);
}

.cert-item span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: inherit;
    text-decoration: none;
}

.legal-links a:hover {
    color: white;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .cert-badges, .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .legal-links {
        justify-content: center;
        gap: 1.5rem;
    }
}
