/* ==========================================
   ECLCO - Complete Stylesheet - FIXED
   Green Theme - Consistent Across All Pages
   ========================================== */

:root {
    --primary-green: #2e7d32;
    --dark-green: #1b5e20;
    --light-green: #66bb6a;
    --pale-green: #f0f8f4;
    /* Brand teal from updated logo */
    --brand-teal: #004952;
    --brand-teal-dark: #00333a;
    /* On-brand text colors for contrast on brand teal */
    --on-brand: #ffffff;
    --on-brand-muted: #c8f3ea;
    --nav-shade: rgba(0,0,0,0.18);
    --white: #ffffff;
    --gray-50: #f9f9f9;
    --gray-100: #f5f5f5;
    --gray-200: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-600: #666666;
    --gray-900: #333333;
    --red: #dc3545;
    --orange: #ff9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* ==========================================
   NAVIGATION
   ========================================== */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--brand-teal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden; /* enable overlay effects */
}

/* Blackish shade and subtle moving brand effect */
nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--nav-shade), rgba(0,0,0,0.08));
    pointer-events: none;
    z-index: 0;
}

nav::after {
    content: '';
    position: absolute;
    inset: -20% 0 -20% 0; /* allow slight overflow for animation */
    background-image: url('/el.png?v=2');
    background-repeat: no-repeat;
    background-size: 180% auto;
    background-position: 0% 50%;
    opacity: 0.12; /* subtle brand texture */
    filter: contrast(1.05) saturate(1.02);
    animation: navPan 22s linear infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes navPan {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Ensure nav content sits above overlays */
nav > * { position: relative; z-index: 1; }

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.18);
    filter: saturate(1.05) contrast(1.02);
}

.logo-text {
    display: none;
}

.cart-trigger {
    position: relative;
    cursor: pointer;
    font-size: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--on-brand);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--on-brand-muted);
}

.page-header {
    background: linear-gradient(135deg, #0F4C00 0%, #2E7D32 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    color: #ffffff;
    text-align: center;
    padding: 0;
}

.page-header-contact {
background: url('/el.png?v=2') center/cover no-repeat, linear-gradient(135deg, #0F4C00 0%, #2E7D32 100%);
}


.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    animation: pulse 1s infinite;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* ==========================================
   CART SLIDING PANEL
   ========================================== */

/* Enhanced Cart Panel Styles */
.cart-slider {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--gray-200);
}

.cart-slider.active {
    right: 0;
}

.cart-slider-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-slider-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.close-cart:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.cart-slider-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--gray-50);
}

/* Enhanced Cart Items */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--pale-green);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-green);
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.remove-item {
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: auto;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.cart-slider-footer {
    padding: 25px 20px;
    border-top: 2px solid var(--gray-200);
    background: var(--white);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-green);
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
    background: var(--white);
    border-radius: 12px;
    margin: 20px 0;
    border: 2px dashed var(--gray-300);
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.empty-cart h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-cart p {
    font-size: 1rem;
    color: var(--gray-500);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-green);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-green);
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-secondary:hover {
    background: #e8f5e9;
    border-color: var(--dark-green);
    color: var(--dark-green);
}

/* ==========================================
   FEATURES / CARDS
   ========================================== */

.features {
    padding: 60px 20px;
    background: var(--white);
    margin: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--gray-50);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.2);
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ==========================================
   SUSTAINABILITY SECTION
   ========================================== */

.sustainability {
    padding: 80px 20px;
    background: var(--pale-green);
    margin: 0;
}

.sustainability-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.sustainability-text {
    flex: 1 1 400px;
}

.sustainability-text h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.sustainability-text p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.sustainability-list {
    list-style: none;
    padding: 0;
}

.sustainability-list li {
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
}

.sustainability-list li:before {
    content: "✓ ";
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 10px;
}

.sustainability-image-carousel {
    flex: 1 1 400px;
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sustainability-image-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    border-radius: 20px;
}

.sustainability-image-carousel img.active {
    opacity: 1;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    text-align: center;
    color: var(--white);
    margin: 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary-green);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   PRODUCTS GRID
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: rgba(255,255,255,0.40);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* General styles */

.footer {
    background-color: #1b5e20;
    color: white;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #a5d6a7;
}

.footer-section p,
.footer-section ul {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #a5d6a7;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #388e3c;
    font-size: 0.8rem;
}

.product-image-container {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffeb3b;
  color: #333;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-category {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 8px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.product-stock {
    color: var(--light-green);
    font-size: 14px;
    margin-bottom: 12px;
}

.product-price {
    margin-bottom: 15px;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
}

.old-price {
    text-decoration: line-through;
    color: var(--gray-600);
    font-size: 16px;
    margin-left: 10px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.add-to-cart:hover {
    background: var(--dark-green);
}

/* ==========================================
   SHOP PAGE — Compact 5-column layout
   ========================================== */
.shop-page .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
@media (min-width: 1100px) {
    .shop-page .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
.shop-page .product-image-container {
    border-radius: 10px;
    margin-bottom: 0.75rem;
}
.shop-page .product-info {
    padding: 12px;
}
.shop-page .product-category,
.shop-page .product-stock {
    font-size: 12px;
}
.shop-page .product-card h3 {
    font-size: 16px;
}
.shop-page .price {
    font-size: 20px;
}
.shop-page .old-price {
    font-size: 14px;
}
.shop-page .add-to-cart {
    padding: 10px;
    font-size: 14px;
}
.shop-page .review-actions button {
    font-size: 12px;
    padding: 8px 10px;
}

/* ==========================================
   SEARCH & TABS
   ========================================== */

.search-bar {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-hint {
    font-size: 13px;
    color: #2e7d32;
}
.search-hint .btn-secondary {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 8px;
}

/* Cookie Consent */
.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10002;
    background: #ffeb3b;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    border: 1px solid rgba(0,0,0,0.08);
}
.cookie-banner .cookie-text {
    font-size: 13px;
    line-height: 1.5;
}
.cookie-banner .cookie-accept {
    margin-left: auto;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}
.cookie-banner .cookie-accept:hover {
    background: #1b5e20;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

/* ==========================================
   CART PAGE
   ========================================== */

.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cart-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
}

.cart-item-icon {
    font-size: 3rem;
    text-align: center;
}

.cart-item-info h3 {
    margin-bottom: 5px;
}

.cart-item-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-item-controls button {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.cart-item-controls span {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.cart-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.remove-btn {
    padding: 8px 16px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.cart-summary {
    background: var(--pale-green);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    border-bottom: none;
    margin-top: 10px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

/* ==========================================
   FORMS
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==========================================
   ADMIN PANEL
   ========================================== */

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.login-box h2 {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.dashboard-section {
    padding: 20px;
    display: none;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--gray-600);
    font-size: 14px;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dashboard-content {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

.order-card {
    background: var(--pale-green);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: var(--orange);
    color: var(--white);
}

.btn-delete {
    padding: 8px 16px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-delete:hover {
    background: #c0392b;
}

/* ==========================================
   FOOTER
   ========================================== */

footer, .footer {
    padding: 30px 20px;
    text-align: center;
    background: var(--primary-green);
    color: var(--white);
    margin-top: 60px;
}

/* Enhanced Animations and Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-8px); }
    70% { transform: translateY(-4px); }
    90% { transform: translateY(-2px); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Enhanced Hover Effects */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-card .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.product-card .btn:active {
    transform: translateY(0);
}

/* Enhanced Button Effects */
.btn, .btn-cta {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn:hover, .btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.25);
}

.btn:active, .btn-cta:active {
    transform: translateY(-1px) scale(0.98);
}

/* Cart Slider Enhanced Animation */
.cart-slider {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-slider.active {
    animation: slideInRight 0.4s ease-out;
}

/* Logo Animation */
.logo-img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
}

.logo-img:hover {
    animation: bounce 1s ease-in-out;
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(46, 125, 50, 0.25);
    filter: saturate(1.1);
}

/* Navigation Link Effects */
nav ul li a {
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--on-brand-muted);
    transition: width 0.3s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Cart Count Animation */
.cart-count {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 2s infinite;
}

.cart-count:hover {
    animation: bounce 0.6s ease-in-out;
}

/* Sustainability Image Carousel Enhanced */
.sustainability-image-carousel img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sustainability-image-carousel img.active {
    animation: fadeInUp 0.6s ease-out;
}

/* Hero Section Enhanced */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 6s ease-in-out infinite;
}

.hero h1, .hero p {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero p {
    animation-delay: 0.4s;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus, .btn-cta:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--light-green);
    outline-offset: 2px;
}

/* Notification Enhancements */
.notification {
    animation: slideInRight 0.4s ease-out;
    transition: all 0.3s ease;
}

.notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Enhanced Homepage Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.shop-link {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.shop-link:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--on-brand);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section Enhanced */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title .highlight {
    background: linear-gradient(45deg, var(--light), #90EE90);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-weight: 500;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Services Section */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding: 0.25rem 0;
    color: #888;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.portfolio-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Enhanced Buttons */
.btn-primary {
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    padding: 1rem 2rem;
    border: 2px solid var(--primary-green);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-green);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Generic responsive grids */
.grid-two-col { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
@media (max-width: 768px) { .grid-two-col { grid-template-columns:1fr; gap:20px; } }

/* Coupon rows stack on small screens */
.coupon-section .coupon-row { display:flex; gap:10px; }
@media (max-width: 640px) { .coupon-section .coupon-row { flex-direction:column; } }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Ensure mobile dropdown links are readable on white panel */
    nav .nav-menu a {
        color: var(--gray-900);
    }
    nav .nav-menu a:hover {
        color: var(--primary-green);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Enhanced Cart Panel Styles */
.cart-slider {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.cart-slider.active {
    right: 0;
}

.cart-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-cart:hover {
    background: rgba(255,255,255,0.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    animation: slideInRight 0.3s ease-out;
}

.cart-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: var(--light);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
}

.remove-item {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-item:hover {
    background: #ff3742;
}

.cart-footer {
    border-top: 2px solid #e0e0e0;
    padding: 1.5rem;
    background: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-actions .btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-checkout {
    background: var(--primary);
    color: white;
}

.btn-checkout:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.btn-continue {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-continue:hover {
    background: var(--primary);
    color: white;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Icon Animation */
.cart-icon {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.cart-count.hidden {
    display: none;
}

/* Cart Item Add Animation */
@keyframes cartItemAdd {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-icon.adding-item {
    animation: cartItemAdd 0.5s ease-out;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-slider {
        width: 100%;
        right: -100%;
    }
    
    .cart-slider.active {
        right: 0;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        margin: 0 auto;
    }
    
    .cart-item-quantity {
        justify-content: center;
    }
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.contact-section {
    padding: 60px 20px;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info h2 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.info-items {
    display: grid;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    background: var(--pale-green);
    padding: 20px;
    border-radius: 12px;
    align-items: flex-start;
}

.full-width-item {
    grid-column: 1 / -1;
}

.info-icon {
    font-size: 2rem;
    min-width: 40px;
}

.info-item h4 {
    color: var(--primary-green);
    margin-bottom: 8px;
}

.info-item p {
    margin: 0;
    color: var(--gray-900);
    line-height: 1.6;
}

.info-item strong {
    color: var(--primary-green);
}

.contact-form-container {
    background: var(--gray-50);
    padding: 30px;
    border-radius: 12px;
}

.contact-form-container h2 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.map-container {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.map-container h2 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-placeholder {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .admin-item {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sustainability-content {
        flex-direction: column;
    }

    .sustainability-text,
    .sustainability-image-carousel {
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .map-placeholder {
        height: 300px;
    }

    .cart-slider {
        width: 100%;
        right: -100%;
    }

    .cart-slider.open {
        right: 0;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .logo-img {
        height: 40px;
    }

    nav {
        padding: 10px 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================
   SHOP CONTROLS (Glassmorphism)
   ========================================== */

.shop-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 16px 0 10px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.shop-controls input[type="number"],
.shop-controls select {
    height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(46,125,50,0.35);
    background: rgba(255,255,255,0.85);
    color: var(--gray-900);
}

.shop-controls .btn-secondary {
    height: 40px;
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    box-shadow: 0 10px 24px rgba(46,125,50,0.25);
}

.data-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(46,125,50,0.35);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    color: #1b5e20;
}

/* --- Review Modals (Theme-matching) --- */
.ec-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: none; z-index: 1000; }
.ec-modal-overlay.ec-modal-overlay-open { display: block; }
.ec-modal { background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); max-width: 720px; margin: 5% auto; padding: 16px; }
.ec-modal-header { display:flex; align-items:center; justify-content:space-between; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.ec-modal-close { font-size: 22px; background: none; border: none; cursor: pointer; color: #444; line-height: 1; }
.ec-modal-close:hover { color: #000; }
.ec-modal-body { padding-top: 12px; }
.review-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.review-meta { display:flex; align-items:center; gap: 8px; font-weight: 600; }
.verified-badge { background:#e8f5e9; color:#2e7d32; padding:2px 8px; border-radius: 8px; font-size: 12px; }
.review-rating { color: #f59e0b; font-weight: 600; }
.ec-form label { display:block; font-weight: 600; color:#333; margin-bottom: 8px; }
.ec-form input, .ec-form select, .ec-form textarea { width:100%; padding:10px; border:1px solid #ddd; border-radius:8px; background:#fafafa; }
.ec-form textarea { min-height: 110px; }
.btn-primary { background:#2e7d32; color:#fff; border:none; border-radius:8px; padding:10px 16px; cursor:pointer; }
.btn-primary:hover { background:#256628; }
.ec-status { margin-top:10px; color:#555; }
/* Review action buttons */
.add-review, .view-reviews {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease;
}
.add-review { background: var(--primary-green); color: var(--white); box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25); }
.add-review:hover { filter: brightness(1.05); transform: translateY(-1px); }
.add-review:active { transform: translateY(0); }
.view-reviews { background: var(--white); color: var(--primary-green); border-color: var(--primary-green); }
.view-reviews:hover { background: #e8f5e9; }
.view-reviews:active { background: #dcedc8; }
.review-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 480px) { .add-review, .view-reviews { width: 100%; justify-content: center; } }

/* Optional: Liquid effect button (isolated to .btn-liquid only) */
.btn-liquid {
    position: relative;
    display: inline-block;
    font: 700 16px 'Poppins', sans-serif;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    background: var(--primary-green);
}
.btn-liquid span { position: relative; z-index: 1; }
.btn-liquid .liquid { position: absolute; top: -60px; left: 0; width: 100%; height: 200px; background: #2e7d32; box-shadow: inset 0 0 50px rgba(0,0,0,0.3); z-index: 0; transition: top 0.4s ease; }
.btn-liquid .liquid::after, .btn-liquid .liquid::before { position: absolute; content: ""; width: 200%; height: 200%; top: 0; left: 0; transform: translate(-25%, -75%); }
.btn-liquid .liquid::after { border-radius: 45%; background: rgba(255,255,255,0.15); box-shadow: 0 0 10px 5px rgba(255,255,255,0.25), inset 0 0 5px rgba(255,255,255,0.25); animation: ec-liquid-1 5s linear infinite; opacity: 0.7; }
.btn-liquid .liquid::before { border-radius: 40%; box-shadow: 0 0 10px rgba(0,0,0,0.2), inset 0 0 5px rgba(0,0,0,0.2); background: rgba(0,0,0,0.08); animation: ec-liquid-2 7s linear infinite; }
.btn-liquid:hover .liquid { top: -120px; }
.btn-liquid:hover { box-shadow: 0 0 5px rgba(46,125,50,0.6), inset 0 0 5px rgba(46,125,50,0.6); }
@keyframes ec-liquid-1 { 0% { transform: translate(-25%, -75%) rotate(0); } 100% { transform: translate(-25%, -75%) rotate(360deg); } }
@keyframes ec-liquid-2 { 0% { transform: translate(-25%, -75%) rotate(0); } 100% { transform: translate(-25%, -75%) rotate(360deg); } }
/* Review action buttons */
.add-review, .view-reviews {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease;
}

.add-review {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
}
.add-review:hover { filter: brightness(1.05); transform: translateY(-1px); }
.add-review:active { transform: translateY(0); }

.view-reviews {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--primary-green);
}
.view-reviews:hover { background: #e8f5e9; }
.view-reviews:active { background: #dcedc8; }

.review-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 480px) {
    .add-review, .view-reviews { width: 100%; justify-content: center; }
}
/* Product thumbnails */
.product-image-container { position: relative; }
.product-thumbs { display:flex; gap:6px; margin-top:8px; }
.product-thumb { width:42px; height:42px; object-fit:cover; border-radius:6px; border:1px solid #e0e0e0; cursor:pointer; }
/* Shop banner */
/* (Removed legacy shop banner rules — using the glassmorphism block below) */
.shop-controls { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:10px 0; flex-wrap:wrap; }
.shop-controls .sc-left, .shop-controls .sc-right { display:flex; align-items:center; gap:10px; }
.shop-controls input[type="number"], .shop-controls select { height:38px; padding:8px 12px; border:2px solid var(--primary-green); border-radius:10px; background:#fff; color:#333; }
.shop-controls input[type="number"] { width:130px; }
.shop-controls select { min-width:180px; }
.shop-controls input:focus, .shop-controls select:focus { outline:none; box-shadow:0 0 0 3px rgba(46,125,50,0.15); }
.shop-controls .btn-secondary { height:38px; padding:8px 12px; border-radius:10px; }
@media (max-width: 640px) { .shop-controls { flex-direction:column; align-items:stretch; } .shop-controls .sc-right { justify-content:flex-end; } }
/* ==========================================
   SHOP BANNER CAROUSEL (Glassmorphism)
   ========================================== */

.shop-banner {
    position: relative;
    margin: 20px 0 30px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(46,125,50,0.25), rgba(30,136,229,0.25));
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.shop-banner-slider {
    position: relative;
    height: 360px;
    overflow: hidden;
}

.shop-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .6s ease, transform .8s ease;
}

.shop-banner-img.active {
    opacity: 1;
    transform: scale(1);
}

.banner-cta {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #1e88e5, #2e7d32);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    text-decoration: none;
}

.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.banner-prev { left: 16px; }
.banner-next { right: 16px; }

.banner-dots {
    position: absolute;
    left: 0; right: 0; bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.banner-dots .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.banner-dots .dot.active {
    background: #2e7d32;
}

@media (max-width: 1024px) {
    .shop-banner-slider { height: 300px; }
}
@media (max-width: 768px) {
    .shop-banner-slider { height: 220px; }
}
@media (max-width: 480px) {
    .shop-banner-slider { height: 170px; }
}
