/* Nayaki Organic Store - Front-End CSS Variables & Stylesheet */

:root {
    --primary: #52b788;       /* Bright Mint Green */
    --primary-light: #74c69d; /* Leafy Green */
    --secondary: #40916c;     /* Sage Green */
    --accent: #95d5b2;        /* Mint Green Accent */
    --accent-light: #1b4332;  /* Dark Green tag background */
    --background: #08120e;    /* Deep Dark Forest Green */
    --card-bg: #11251b;       /* Dark Olive Card background */
    --text-dark: #f0f7f3;     /* Off-white mint text */
    --text-muted: #a3bfae;    /* Soft sage text */
    --text-light: #f8fafc;    /* Clean white */
    --white: #11251b;         /* Mapped to card-bg */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../uploads/leaf_pattern.webp');
    background-repeat: repeat;
    background-size: 240px;
    opacity: 0.03; /* Neon watermark */
    filter: invert(1) brightness(0.85); /* Invert white bg pattern for dark green theme */
    z-index: -1;
    pointer-events: none;
}

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

.container-narrow {
    max-width: 750px;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 30px; /* Push navbar down slightly to show chains */
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(8, 18, 14, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(82, 183, 136, 0.2);
    border-radius: 50px; /* Floating pill layout */
    padding: 8px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: var(--transition);

    /* Swinging animation pivot point at the top of the chains */
    transform-origin: 50% -30px;
    animation: navbar-swing 8s ease-in-out infinite alternate;
}

@keyframes navbar-swing {
    0% {
        transform: translateX(-50%) rotate(-0.5deg);
    }
    100% {
        transform: translateX(-50%) rotate(0.5deg);
    }
}

/* Hanging Gold Chain Decorations */
.nav-chain {
    position: absolute;
    top: -30px;
    width: 12px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24' viewBox='0 0 12 24'%3E%3Crect x='3.5' y='1' width='5' height='10' rx='2.5' fill='none' stroke='%23ffd700' stroke-width='2'/%3E%3Cellipse cx='6' cy='12' rx='4.5' ry='2.5' fill='none' stroke='%23b78708' stroke-width='2'/%3E%3Crect x='3.5' y='13' width='5' height='10' rx='2.5' fill='none' stroke='%23ffd700' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 12px 24px;
    background-repeat: repeat-y;
    pointer-events: none;
    z-index: -1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.chain-left {
    left: 12%;
}

.chain-right {
    right: 12%;
}

.navbar .container {
    padding: 0;
    width: 100%;
}

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

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.brand-logo-img {
    height: 28px;
    width: auto;
    max-width: 45px;
    object-fit: contain;
}

.brand-logo-img-footer {
    height: 30px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

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

.cart-badge-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--accent-light);
    color: var(--primary) !important;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600 !important;
    box-shadow: var(--shadow-sm);
    font-size: 13px;
}

.cart-badge-link:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.badge {
    background-color: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
}

.btn-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--accent);
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    padding: 155px 0 100px 0;
    background: linear-gradient(135deg, #0b1d15 0%, #06100c 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1.5px solid rgba(82, 183, 136, 0.1);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.hero-content {
    max-width: 580px;
}

.hero-tag {
    background-color: var(--accent-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-family: 'Fraunces', serif;
    font-size: 54px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
    position: relative;
    z-index: 2;
}

.hero-circle-bg {
    position: absolute;
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.15;
    z-index: 1;
}

.floating-card-img {
    position: absolute;
    width: 75px;
    height: 75px;
    background-color: rgba(17, 37, 27, 0.7); /* Translucent dark forest green background */
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(82, 183, 136, 0.2);
    z-index: 5;
    transition: var(--transition);
}

.floating-card-img:hover {
    transform: scale(1.15) rotate(8deg);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(82, 183, 136, 0.3);
}

.floating-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Global Decorative Background Leaf Styles */
.bg-decorative-leaf {
    position: fixed;
    background-image: url('../uploads/transparent_leaf.webp');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.12; /* Very subtle background watermark */
    pointer-events: none; /* Make sure users can click through them */
    z-index: 1; /* Below content, above deep background */
    filter: blur(1px) brightness(0.8);
}

.leaf-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    left: -50px;
    transform: rotate(45deg);
}

.leaf-2 {
    width: 240px;
    height: 240px;
    bottom: 20%;
    right: -80px;
    transform: rotate(-35deg);
}

.leaf-3 {
    width: 140px;
    height: 140px;
    top: 60%;
    left: 5%;
    opacity: 0.06;
    transform: rotate(115deg);
    filter: blur(3px);
}

.card-1 {
    top: 10%;
    left: 20%;
    animation: float1 6s ease-in-out infinite;
}

.card-2 {
    bottom: 15%;
    right: 15%;
    animation: float2 5s ease-in-out infinite;
}

.card-3 {
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(8deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(12px) rotate(-6deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--background) 100%);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
}

.about-content-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

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

.about-farm-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--white);
}

.about-grid-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card-horizontal {
    background-color: var(--white); /* Uses dark olive panel bg */
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
    border: 1px solid rgba(82, 183, 136, 0.1);
}

.about-card-horizontal:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    background-color: #1a3528; /* Lifted dark green card bg on hover */
    border-color: var(--primary);
}

.about-icon-small {
    font-size: 32px;
    background-color: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.about-card-info h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 6px;
}

.about-card-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Products Section */
.products {
    padding: 100px 0;
}

.catalogue-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.category-tabs {
    display: flex;
    gap: 12px;
}

.tab-btn {
    background-color: var(--white);
    color: var(--text-muted);
    border: 1px solid rgba(45, 106, 79, 0.1);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    flex-shrink: 0;
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(82, 183, 136, 0.15);
    background-color: var(--white);
    color: var(--text-dark);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(27, 67, 50, 0.03);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-image-area {
    position: relative;
    height: 180px;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-icon-fallback {
    font-size: 70px;
    filter: drop-shadow(0 8px 8px rgba(0,0,0,0.06));
}

.category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(27, 67, 50, 0.85);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.product-meta {
    margin-bottom: 16px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-light);
}

.product-price small {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-add-to-cart {
    background-color: var(--background);
    color: var(--primary);
    border: 1.5px solid var(--accent);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-add-to-cart:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Cart Page */
.cart-section {
    padding: 155px 0 80px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: start;
}

.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(45, 106, 79, 0.05);
    overflow: hidden;
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid rgba(45, 106, 79, 0.08);
    padding: 20px 24px;
}

.card-header h3 {
    color: var(--primary);
    font-size: 18px;
}

.card-body {
    padding: 24px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.cart-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid rgba(45, 106, 79, 0.1);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}

.cart-table td {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(45, 106, 79, 0.05);
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-product-name {
    font-weight: 600;
    color: var(--primary);
}

.cart-product-unit {
    color: var(--text-muted);
    font-size: 12px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid rgba(82, 183, 136, 0.25);
    border-radius: var(--radius-sm);
    width: fit-content;
    overflow: hidden;
    background-color: #11251b;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--primary);
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: rgba(82, 183, 136, 0.15);
}

.qty-input {
    width: 40px;
    border: none;
    border-left: 1px solid rgba(82, 183, 136, 0.25);
    border-right: 1px solid rgba(82, 183, 136, 0.25);
    background-color: #163023; /* Dark green input bg */
    color: var(--text-dark); /* Mint white text */
    text-align: center;
    font-family: inherit;
    font-weight: 600;
    height: 32px;
    outline: none;
}

/* Remove default spin buttons */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.item-subtotal {
    font-weight: 700;
    color: var(--primary-light);
}

.btn-remove-item {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.btn-remove-item:hover {
    transform: scale(1.2);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    padding: 16px 16px 0 16px;
    border-top: 2px solid rgba(45, 106, 79, 0.1);
}

.grand-total-val {
    font-size: 22px;
    color: var(--primary-light);
}

/* Responsive Cart Table and Cards */
.cart-desktop-table-wrapper {
    display: block;
}

.cart-mobile-cards {
    display: none;
}

.cart-mobile-card {
    background-color: var(--white);
    border: 1px solid rgba(82, 183, 136, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(82, 183, 136, 0.15);
    padding-bottom: 8px;
}

.cart-card-title-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.cart-card-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
}

.cart-card-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.cart-card-label {
    color: var(--text-muted);
    font-weight: 500;
}

.cart-card-value {
    color: var(--text-dark);
    font-weight: 600;
}

.subtotal-highlight {
    color: var(--primary-light);
    font-weight: 700;
}

@media(max-width: 768px) {
    .cart-desktop-table-wrapper {
        display: none;
    }
    .cart-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }
}

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

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

.required {
    color: #e63946;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(82, 183, 136, 0.15);
    background-color: var(--white);
    color: var(--text-dark);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.1);
}

.btn-checkout-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-checkout-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-danger ul {
    list-style-type: none;
}

/* Success View */
.success-section {
    padding: 155px 0 80px 0;
}

.success-card {
    text-align: center;
}

.success-header {
    margin-bottom: 36px;
    padding: 20px 0;
}

.success-checkmark {
    font-size: 72px;
    margin-bottom: 16px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 500px;
    margin: 12px auto 0 auto;
}

.order-summary-box {
    background-color: var(--background);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 36px;
    text-align: left;
    border: 1px solid rgba(45, 106, 79, 0.08);
}

.order-summary-box h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1.5px solid rgba(45, 106, 79, 0.1);
    padding-bottom: 10px;
}

.summary-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 30px;
}

.summary-details p {
    font-size: 14px;
    color: var(--text-dark);
}

.summary-details strong {
    color: var(--primary);
}

.badge-pending {
    background-color: var(--accent-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.ordered-items-table {
    margin-top: 24px;
}

.ordered-items-table h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 16px;
}

.ordered-items-table table {
    width: 100%;
    border-collapse: collapse;
}

.ordered-items-table th {
    text-align: left;
    padding: 10px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1.5px solid rgba(45, 106, 79, 0.1);
}

.ordered-items-table td {
    padding: 14px 10px;
    font-size: 14px;
    border-bottom: 1px solid rgba(45, 106, 79, 0.05);
}

.total-row {
    font-size: 16px;
}

.total-row td {
    border-bottom: none;
    padding-top: 20px;
}

.success-actions {
    display: flex;
    justify-content: center;
}

/* Footer */
.footer {
    background-color: #050d0a; /* Dark Forest Green Footer background */
    color: var(--text-dark);
    padding: 80px 0 30px 0;
    margin-top: 100px;
    border-top: 5px solid var(--primary); /* Bright Green divider line */
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #a3b899;
    font-size: 14px;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #a3b899;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-contact p {
    color: #a3b899;
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    text-align: center;
    color: #a3b899;
    font-size: 13px;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: -300px;
    background-color: var(--primary);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 14px;
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--accent);
}

.toast-notification.show {
    right: 24px;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Mobile Navigation Drawer Styles */
.btn-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--transition);
}

.btn-nav-toggle:hover {
    color: var(--primary-light);
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: rgba(17, 37, 27, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(82, 183, 136, 0.15);
    z-index: 2000;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.open {
    transform: translateX(-280px);
}

.drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.drawer-backdrop.active {
    display: block;
    opacity: 1;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(82, 183, 136, 0.15);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.btn-drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-drawer-close:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-links a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.drawer-links a:hover {
    color: var(--primary);
    background-color: rgba(82, 183, 136, 0.08);
    padding-left: 22px;
}

.cart-badge-link-drawer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(82, 183, 136, 0.12) !important;
    color: var(--primary) !important;
    padding: 12px 16px !important;
    border-radius: var(--radius-sm);
    border-bottom: none !important;
}

.btn-secondary-drawer {
    background: transparent;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    justify-content: center;
    margin-top: 12px;
}

.btn-secondary-drawer:hover {
    background-color: var(--primary) !important;
    color: #08120e !important;
}

/* Responsive breakdowns */
@media(max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-container {
        height: auto;
        margin-top: 24px;
    }
    .hero-banner-img {
        height: 240px;
        max-width: 450px;
        margin: 0 auto;
    }
    .floating-card-img {
        display: none; /* Hide floating cards on tablet/mobile to avoid overlapping text and buttons */
    }
    .about-content-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-farm-img {
        height: 320px;
    }
    .catalogue-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 30px;
    }
    .category-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
        width: 100%;
        scrollbar-width: none; /* Hide scrollbar on Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    .category-tabs::-webkit-scrollbar {
        display: none; /* Hide scrollbar on Chrome/Safari */
    }
    .search-box {
        max-width: 100%;
    }
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media(max-width: 768px) {
    .hero-content h1 {
        font-size: 38px;
    }
    .nav-links {
        display: none;
    }
    .btn-nav-toggle {
        display: inline-block;
    }
}

/* Next-Level CSS Animations & Transitions */

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Staggered Grid Reveal */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* Delays for children in stagger grids */
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.active > *:nth-child(7) { transition-delay: 0.7s; }
.reveal-stagger.active > *:nth-child(8) { transition-delay: 0.8s; }

/* Micro-Interaction: Cart Badge Bounce */
@keyframes badgePop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

.badge-pop {
    animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Glowing effects for primary call-to-actions */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); }
    50% { box-shadow: 0 0 15px rgba(45, 106, 79, 0.4); }
}

.btn-primary {
    animation: glowPulse 3s infinite ease-in-out;
}

.btn-primary:hover {
    animation: none; /* disable pulse on hover to support translate lifts */
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Slide in animation for front-end notification toast */
.toast-notification {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #08120e; /* Deep Dark Green background */
}

::-webkit-scrollbar-thumb {
    background: #11251b; /* Dark Olive green thumb */
    border-radius: 20px;
    border: 2.5px solid #08120e;
}

::-webkit-scrollbar-thumb:hover {
    background: #52b788; /* Bright mint highlight */
}

/* Firefox scrollbars */
html {
    scrollbar-width: thin;
    scrollbar-color: #11251b #08120e;
}

/* Flying Honey Bee Animation */
.flying-honey-bee {
    position: fixed;
    width: 35px;
    height: 35px;
    background-image: url('../uploads/honey_bee.webp');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* Make sure users can click past it */
    z-index: 99999; /* Fly above everything! */
    mix-blend-mode: screen; /* Filters out the solid black background completely! */
    animation: bee-wiggle 0.1s ease-in-out infinite alternate;
}

@keyframes bee-wiggle {
    0% { margin-top: -1px; }
    100% { margin-top: 1px; }
}
