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

:root {
    --green-50: #f0fdf4; --green-100: #dcfce7; --green-200: #bbf7d0;
    --green-400: #4ade80; --green-500: #22c55e; --green-600: #16a34a;
    --green-700: #15803d; --green-800: #166534; --green-900: #14532d;
    --amber-400: #fbbf24; --amber-500: #f59e0b;
    --orange-500: #f97316; --orange-600: #ea580c; --orange-700: #c2410c;
    --red-500: #ef4444; --red-50: #fef2f2;
    --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb;
    --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280;
    --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937; --gray-900: #111827;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --radius: 12px; --radius-sm: 8px; --radius-lg: 16px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'DM Sans',sans-serif; color:var(--gray-800); background:#fff; line-height:1.6; overflow-x:hidden; animation:pageIn 0.15s ease; }
@keyframes pageIn { from { opacity:0; } to { opacity:1; } }
body.page-exit { animation:pageOut 0.1s ease forwards; }
@keyframes pageOut { from { opacity:1; } to { opacity:0; } }

/* ===== NAVBAR ===== */
.navbar { position:fixed; top:0; left:0; right:0; z-index:1000; background:rgba(255,255,255,0.95); backdrop-filter:blur(20px); border-bottom:1px solid var(--gray-100); padding:0 2rem; height:70px; display:flex; align-items:center; justify-content:space-between; }
.navbar-brand { font-family:'Playfair Display',serif; font-size:1.5rem; font-weight:700; color:var(--green-700); display:flex; align-items:center; gap:8px; cursor:pointer; text-decoration:none; }
.navbar-links { display:flex; gap:2rem; align-items:center; }
.navbar-links a { text-decoration:none; color:var(--gray-600); font-weight:500; font-size:0.95rem; transition:color 0.2s; }
.navbar-links a:hover, .navbar-links a.active { color:var(--green-700); }
.navbar-actions { display:flex; gap:1rem; align-items:center; }
.btn-login { padding:8px 20px; border-radius:8px; border:1px solid var(--gray-200); background:white; font-weight:500; cursor:pointer; font-size:0.9rem; transition:all 0.2s; font-family:inherit; }
.btn-login:hover { border-color:var(--green-500); color:var(--green-700); }
.btn-register { padding:8px 20px; border-radius:8px; border:none; background:var(--green-600); color:white; font-weight:600; cursor:pointer; font-size:0.9rem; transition:all 0.2s; font-family:inherit; }
.btn-register:hover { background:var(--green-700); }
.cart-btn { position:relative; background:none; border:none; font-size:1.5rem; cursor:pointer; padding:5px; flex-shrink:0; }
.cart-count { position:absolute; top:-5px; right:-8px; background:var(--red-500); color:white; border-radius:50%; width:20px; height:20px; font-size:0.7rem; display:flex; align-items:center; justify-content:center; font-weight:700; }

/* ===== HERO ===== */
.hero { margin-top:70px; background:linear-gradient(135deg,rgba(20,83,45,0.85),rgba(22,101,52,0.8)),url('https://images.unsplash.com/photo-1488459716781-31db52582fe9?w=1600&h=800&fit=crop&auto=format') center/cover no-repeat; padding:6rem 2rem; text-align:center; position:relative; overflow:hidden; color:white; }
.hero::before { content:''; position:absolute; inset:0; background:none; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,0.15); backdrop-filter:blur(10px); padding:8px 20px; border-radius:50px; font-size:0.85rem; color:white; font-weight:500; border:1px solid rgba(255,255,255,0.2); margin-bottom:2rem; position:relative; }
.hero h1 { font-family:'Playfair Display',serif; font-size:clamp(2.5rem,5vw,4rem); color:white; margin-bottom:1.5rem; position:relative; }
.hero h1 em { color:var(--green-200); font-style:italic; }
.hero p { font-size:1.2rem; color:rgba(255,255,255,0.85); max-width:600px; margin:0 auto 2.5rem; position:relative; }

/* ===== NEWSLETTER ===== */
.newsletter-section { background:linear-gradient(135deg,#f0fdf4,#dcfce7); padding:4rem 2rem; }
.newsletter-inner { max-width:600px; margin:0 auto; text-align:center; }
.newsletter-inner h2 { font-family:'Playfair Display',serif; font-size:1.8rem; margin-bottom:0.5rem; }
.newsletter-inner p { color:var(--gray-500); margin-bottom:1.5rem; }
.newsletter-form { display:flex; gap:10px; max-width:480px; margin:0 auto; }
.newsletter-form input { flex:1; padding:14px 20px; border:2px solid var(--gray-200); border-radius:50px; font-size:1rem; font-family:inherit; outline:none; transition:border-color 0.2s; }
.newsletter-form input:focus { border-color:var(--green-400); }
.newsletter-form button { padding:14px 28px; border-radius:50px; background:var(--green-600); color:white; border:none; font-weight:700; font-size:0.95rem; cursor:pointer; transition:all 0.2s; white-space:nowrap; font-family:inherit; }
.newsletter-form button:hover { background:var(--green-700); }
.newsletter-success { color:var(--green-700); font-weight:600; margin-top:1rem; display:none; }
.hero-actions { display:flex; gap:1rem; justify-content:center; position:relative; }

/* ===== BUTTONS ===== */
.btn-primary { padding:14px 32px; border-radius:12px; background:var(--orange-500); color:white; font-weight:600; font-size:1rem; border:none; cursor:pointer; transition:all 0.3s; box-shadow:0 4px 14px rgba(249,115,22,0.3); font-family:inherit; text-decoration:none; display:inline-block; }
.btn-primary:hover { background:var(--orange-600); transform:translateY(-2px); box-shadow:0 6px 20px rgba(249,115,22,0.4); }
.btn-secondary { padding:14px 32px; border-radius:12px; background:white; color:var(--green-700); font-weight:600; font-size:1rem; border:2px solid var(--green-200); cursor:pointer; transition:all 0.3s; font-family:inherit; text-decoration:none; display:inline-block; }
.btn-secondary:hover { border-color:var(--green-400); background:var(--green-50); }

/* ===== CATEGORIES ===== */
.categories { display:flex; justify-content:center; gap:1.5rem; padding:3rem 2rem 1rem; flex-wrap:wrap; }
.category-chip { display:flex; align-items:center; gap:8px; padding:12px 24px; border-radius:50px; background:white; border:1px solid var(--gray-200); cursor:pointer; font-weight:500; transition:all 0.2s; font-size:0.95rem; text-decoration:none; color:var(--gray-700); }
.category-chip:hover, .category-chip.active { border-color:var(--green-400); background:var(--green-50); color:var(--green-700); }
.category-chip .emoji { font-size:1.3rem; }

/* ===== SECTION ===== */
.section { padding:4rem 2rem; max-width:1200px; margin:0 auto; }
.section-title { font-family:'Playfair Display',serif; font-size:2rem; text-align:center; margin-bottom:0.5rem; }
.section-subtitle { text-align:center; color:var(--gray-500); margin-bottom:3rem; }
.page-section { margin-top:70px; }

/* ===== PRODUCT GRID ===== */
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1.5rem; }
.product-card { background:white; border:1px solid var(--gray-100); border-radius:var(--radius); overflow:hidden; transition:all 0.4s cubic-bezier(0.25,0.46,0.45,0.94); position:relative; }
.product-card:hover { box-shadow:0 12px 28px rgba(0,0,0,0.12); transform:translateY(-6px); border-color:var(--green-200); }
.product-img { height:200px; display:flex; align-items:center; justify-content:center; font-size:4rem; position:relative; overflow:hidden; background:var(--gray-50); }
.product-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.product-card:hover .product-img img { transform:scale(1.08); }
.product-img .emoji-fallback { font-size:4rem; }
.product-img.cat-gemüse, .product-img.cat-milch, .product-img.cat-fruechte,
.product-img.cat-fleisch, .product-img.cat-backwaren, .product-img.cat-foodwaste,
.product-img.cat-wein, .product-img.cat-geschenkkorb, .product-img.cat-default { background:var(--gray-100); }
.badge-bio { position:absolute; top:10px; left:10px; background:var(--green-600); color:white; padding:4px 10px; border-radius:6px; font-size:0.75rem; font-weight:700; }
.badge-foodwaste { position:absolute; top:10px; right:10px; background:var(--amber-500); color:white; padding:4px 10px; border-radius:6px; font-size:0.75rem; font-weight:700; }
.badge-availability { position:absolute; bottom:10px; left:10px; padding:5px 12px; border-radius:6px; font-size:0.7rem; font-weight:700; backdrop-filter:blur(4px); }
.badge-av-yellow { background:rgba(254,252,232,0.95); color:#92400e; border:1px solid #fef08a; }
.badge-av-red { background:rgba(254,242,242,0.95); color:#991b1b; border:1px solid #fecaca; }
.product-info { padding:1rem; }
.product-name { font-weight:600; margin-bottom:4px; }
.product-vendor { font-size:0.85rem; color:var(--gray-400); margin-bottom:8px; }
.product-bottom { display:flex; justify-content:space-between; align-items:center; }
.product-price { font-weight:700; color:var(--green-700); font-size:1.1rem; }
.product-price-old { text-decoration:line-through; color:var(--gray-400); font-size:0.85rem; font-weight:400; margin-right:6px; }
.product-actions { display:flex; align-items:center; gap:6px; }
.btn-add { width:36px; height:36px; border-radius:50%; background:var(--orange-500); color:white; border:none; font-size:1.2rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.2s; }
.btn-add:hover { background:var(--orange-600); transform:scale(1.1); }

/* ===== FAVORITES ===== */
.fav-btn { position:absolute; top:10px; right:10px; background:rgba(255,255,255,0.9); border:none; font-size:18px; cursor:pointer; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition:.2s; z-index:2; box-shadow:0 1px 4px rgba(0,0,0,0.1); }
.fav-btn:hover { transform:scale(1.15); }
.fav-card { background:white; border-radius:12px; padding:15px; box-shadow:0 2px 8px rgba(0,0,0,0.05); display:flex; align-items:center; gap:12px; }

/* ===== REVIEWS ===== */
.product-rating { display:flex; align-items:center; gap:4px; font-size:0.8rem; margin-top:4px; }
.product-rating .stars { color:#f59f00; letter-spacing:1px; }
.product-rating .count { color:var(--gray-400); font-size:0.75rem; }
.btn-review { background:none; border:none; cursor:pointer; font-size:16px; transition:.2s; }
.btn-review:hover { transform:scale(1.2); }
.stars-input { display:flex; gap:4px; margin:8px 0; }
.stars-input span { font-size:28px; cursor:pointer; color:#ddd; transition:.15s; user-select:none; }
.stars-input span:hover, .stars-input span.active { color:#f59f00; }
.review-card { background:var(--gray-50); border-radius:10px; padding:12px; margin-bottom:8px; }

/* ===== COUPON ===== */
.coupon-row { display:flex; gap:8px; margin-bottom:10px; }
.coupon-row input { flex:1; padding:10px 14px; border:2px solid var(--gray-200); border-radius:8px; font-size:14px; text-transform:uppercase; font-family:inherit; }
.coupon-row input:focus { border-color:var(--green-600); outline:none; }
.coupon-row button { padding:10px 18px; background:var(--green-600); color:#fff; border:none; border-radius:8px; font-weight:600; cursor:pointer; white-space:nowrap; font-family:inherit; }
.coupon-msg { font-size:13px; padding:6px 12px; border-radius:6px; margin-bottom:10px; display:none; }
.coupon-msg.success { background:#d8f3dc; color:var(--green-800); display:block; }
.coupon-msg.error { background:#ffe3e3; color:#e63946; display:block; }

/* ===== ORDER HISTORY ===== */
.order-card { background:white; border-radius:12px; padding:18px; margin-bottom:12px; box-shadow:0 2px 8px rgba(0,0,0,0.05); border-left:4px solid var(--green-600); }
.oh-status { padding:4px 12px; border-radius:20px; font-size:12px; font-weight:600; }
.oh-bezahlt { background:#d0ebff; color:#1971c2; }
.oh-in_vorbereitung { background:#fff3bf; color:#e67700; }
.oh-in_lieferung { background:#ffe8cc; color:#e8590c; }
.oh-geliefert { background:#d8f3dc; color:var(--green-800); }

/* ===== STATS ===== */
.stats { display:flex; justify-content:center; gap:3rem; padding:2rem; flex-wrap:wrap; }
.stat { text-align:center; }
.stat-number { font-family:'Playfair Display',serif; font-size:2rem; font-weight:700; color:var(--green-700); }
.stat-label { font-size:0.85rem; color:var(--gray-500); margin-top:4px; }

/* ===== VENDORS ===== */
.vendor-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1.5rem; }
.vendor-card { text-align:center; padding:2rem 1rem; background:white; border:1px solid var(--gray-100); border-radius:var(--radius); transition:all 0.3s; }
.vendor-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.vendor-avatar { width:60px; height:60px; border-radius:50%; background:var(--green-100); margin:0 auto 1rem; display:flex; align-items:center; justify-content:center; font-size:1.5rem; }
.vendor-name { font-weight:600; }
.vendor-type { font-size:0.85rem; color:var(--gray-400); }

/* ===== PRICING ===== */
.pricing-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1.5rem; }
.pricing-card { background:white; border:1px solid var(--gray-100); border-radius:var(--radius-lg); padding:2.5rem 2rem; text-align:center; transition:all 0.3s; }
.pricing-card.featured { border-color:var(--green-400); box-shadow:0 0 0 3px rgba(34,197,94,0.1); }
.pricing-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-xl); }
.pricing-name { font-size:0.9rem; color:var(--gray-500); font-weight:600; text-transform:uppercase; letter-spacing:1px; }
.pricing-price { font-family:'Playfair Display',serif; font-size:2.5rem; font-weight:700; color:var(--gray-900); margin:1rem 0; }
.pricing-price span { font-size:1rem; color:var(--gray-400); font-family:'DM Sans'; }
.pricing-desc { color:var(--gray-500); font-size:0.9rem; margin-bottom:1.5rem; }
.pricing-features { list-style:none; text-align:left; margin-bottom:2rem; }
.pricing-features li { padding:8px 0; border-bottom:1px solid var(--gray-50); font-size:0.9rem; display:flex; align-items:center; gap:8px; }
.pricing-features li::before { content:'✓'; color:var(--green-500); font-weight:700; }
.btn-pricing { width:100%; padding:14px; border-radius:12px; font-weight:600; cursor:pointer; font-size:1rem; transition:all 0.3s; font-family:inherit; }
.btn-pricing-paid { background:var(--green-600); color:white; border:none; box-shadow:0 4px 14px rgba(22,163,74,0.3); }
.btn-pricing-paid:hover { background:var(--green-700); }

/* ===== HOW IT WORKS ===== */
.how-it-works { background:white; padding:4rem 2rem; }
.steps-grid { display:flex; justify-content:center; gap:2rem; max-width:900px; margin:2rem auto 0; position:relative; }
.steps-grid::before { content:''; position:absolute; top:45px; left:15%; right:15%; height:2px; background:linear-gradient(90deg,var(--green-200),var(--green-400),var(--green-200)); z-index:0; }
.step-card { text-align:center; flex:1; position:relative; z-index:1; }
.step-number { width:90px; height:90px; border-radius:50%; background:linear-gradient(135deg,var(--green-50),var(--green-100)); border:3px solid var(--green-400); display:flex; align-items:center; justify-content:center; font-size:2.5rem; margin:0 auto 1.2rem; transition:all 0.3s; }
.step-card:hover .step-number { transform:scale(1.1); box-shadow:0 8px 25px rgba(34,197,94,0.25); }
.step-title { font-weight:700; font-size:1.1rem; margin-bottom:0.5rem; }
.step-desc { font-size:0.9rem; color:var(--gray-500); line-height:1.5; }

/* ===== TRUST ===== */
.trust-section { background:var(--gray-900); color:white; padding:3rem 2rem; }
.trust-grid { display:flex; justify-content:center; gap:3rem; max-width:1000px; margin:0 auto; flex-wrap:wrap; }
.trust-item { text-align:center; flex:1; min-width:180px; }
.trust-icon { font-size:2.5rem; margin-bottom:0.75rem; }
.trust-title { font-weight:700; font-size:1rem; margin-bottom:0.3rem; }
.trust-desc { font-size:0.85rem; color:var(--gray-400); }

/* ===== FOODWASTE BANNER ===== */
.foodwaste-banner { margin:2rem auto; max-width:800px; background:linear-gradient(135deg,#fef3c7,#fde68a); border-radius:var(--radius-lg); padding:2rem; display:flex; align-items:center; gap:1.5rem; cursor:pointer; transition:transform 0.2s; text-decoration:none; color:inherit; }
.foodwaste-banner:hover { transform:translateY(-2px); }

/* ===== USER MENU ===== */
.user-menu { position:relative; display:inline-flex; }
.user-menu-btn { display:flex; align-items:center; gap:6px; padding:6px 14px; border-radius:8px; border:1px solid var(--gray-200); background:white; cursor:pointer; font-size:0.85rem; font-weight:500; color:var(--gray-600); transition:.2s; font-family:inherit; }
.user-menu-btn:hover { border-color:var(--green-400); color:var(--green-700); }
.user-dropdown { display:none; position:absolute; right:0; top:calc(100% + 6px); background:white; border-radius:12px; box-shadow:0 8px 30px rgba(0,0,0,0.15); min-width:220px; z-index:1000; overflow:hidden; }
.user-dropdown.show { display:block; }
.user-dropdown a { display:flex; align-items:center; gap:10px; padding:12px 18px; color:var(--gray-700); text-decoration:none; font-size:0.9rem; transition:.15s; cursor:pointer; }
.user-dropdown a:hover { background:var(--green-50); color:var(--green-700); }
.user-dropdown .divider { border-top:1px solid var(--gray-100); }
.user-dropdown a.logout-link { color:var(--red-500); }
.user-dropdown a.logout-link:hover { background:var(--red-50); }

/* ===== FOOTER ===== */
.footer { background:var(--gray-900); color:var(--gray-400); padding:4rem 2rem 2rem; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:2rem; max-width:1200px; margin:0 auto; }
.footer-brand { font-family:'Playfair Display',serif; font-size:1.5rem; color:white; margin-bottom:1rem; }
.footer h4 { color:white; font-size:0.85rem; text-transform:uppercase; letter-spacing:1px; margin-bottom:1rem; }
.footer a { color:var(--gray-400); text-decoration:none; display:block; margin-bottom:8px; font-size:0.9rem; transition:color 0.2s; }
.footer a:hover { color:white; }
.footer-bottom { max-width:1200px; margin:3rem auto 0; padding-top:2rem; border-top:1px solid var(--gray-700); text-align:center; font-size:0.85rem; }
.footer-legal { max-width:1200px; margin:1.5rem auto 0; padding-top:1.5rem; border-top:1px solid #374151; display:flex; justify-content:center; gap:2rem; flex-wrap:wrap; }
.footer-legal a { color:#9ca3af; text-decoration:none; font-size:0.85rem; }

/* ===== CART SIDEBAR ===== */
.cart-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:2000; }
.cart-overlay.open { display:block; }
.cart-sidebar { position:fixed; right:-420px; top:0; bottom:0; width:400px; max-width:100vw; background:white; z-index:2001; box-shadow:var(--shadow-xl); transition:right 0.3s ease; display:flex; flex-direction:column; }
.cart-sidebar.open { right:0; }
.cart-header { padding:1.5rem; border-bottom:1px solid var(--gray-100); display:flex; justify-content:space-between; align-items:center; }
.cart-header h3 { font-size:1.2rem; }
.cart-close { background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--gray-400); }
.cart-items { flex:1; overflow-y:auto; padding:1rem 1.5rem; }
.cart-item { display:flex; align-items:center; gap:1rem; padding:1rem 0; border-bottom:1px solid var(--gray-50); }
.cart-item-emoji { font-size:2rem; }
.cart-item-info { flex:1; }
.cart-item-name { font-weight:600; font-size:0.9rem; }
.cart-item-vendor { font-size:0.8rem; color:var(--gray-400); }
.cart-item-qty { display:flex; align-items:center; gap:8px; margin-top:4px; }
.qty-btn { width:28px; height:28px; border-radius:6px; border:1px solid var(--gray-200); background:white; cursor:pointer; font-weight:600; display:flex; align-items:center; justify-content:center; font-family:inherit; }
.cart-item-price { font-weight:700; color:var(--green-700); }
.cart-footer { padding:1.5rem; border-top:1px solid var(--gray-100); }
.cart-row { display:flex; justify-content:space-between; margin-bottom:8px; font-size:0.95rem; }
.cart-total { font-weight:700; font-size:1.1rem; border-top:2px solid var(--gray-200); padding-top:10px; margin-top:6px; }
.btn-checkout { width:100%; padding:16px; margin-top:1rem; border-radius:12px; background:var(--green-600); color:white; font-weight:700; font-size:1rem; border:none; cursor:pointer; transition:all 0.3s; font-family:inherit; }
.btn-checkout:hover { background:var(--green-700); }
.cart-note { text-align:center; font-size:0.8rem; color:var(--gray-400); margin-top:8px; }
.cart-empty { text-align:center; padding:3rem 1rem; color:var(--gray-400); }

/* ===== MODALS ===== */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:3000; align-items:center; justify-content:center; }
.modal-overlay.open { display:flex; }
.modal { background:white; border-radius:var(--radius-lg); width:500px; max-width:95vw; max-height:90vh; overflow-y:auto; box-shadow:var(--shadow-xl); }
.modal-header { padding:1.5rem; border-bottom:1px solid var(--gray-100); display:flex; justify-content:space-between; align-items:center; }
.modal-header h2 { font-size:1.3rem; }
.modal-close { background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--gray-400); }
.modal-body { padding:1.5rem; }
.form-group { margin-bottom:1rem; }
.form-group label { display:block; font-weight:500; font-size:0.9rem; margin-bottom:6px; }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:12px; border:1px solid var(--gray-200); border-radius:var(--radius-sm); font-size:0.95rem; font-family:inherit; }
.form-group textarea { resize:vertical; }
.form-row { display:flex; gap:1rem; }
.order-summary { background:var(--gray-50); border-radius:var(--radius-sm); padding:1rem; margin-bottom:1.5rem; }
.order-item { display:flex; justify-content:space-between; font-size:0.9rem; padding:4px 0; }
.btn-pay { width:100%; padding:16px; border-radius:12px; font-weight:700; font-size:1.05rem; border:none; cursor:pointer; transition:all 0.3s; background:var(--green-600); color:white; box-shadow:0 4px 14px rgba(22,163,74,0.3); font-family:inherit; }
.btn-pay:hover { background:var(--green-700); }
.btn-pay:disabled { opacity:0.6; cursor:not-allowed; }
.payment-secure { text-align:center; font-size:0.8rem; color:var(--gray-400); margin-top:8px; }
.payment-error { background:var(--red-50); color:var(--red-500); padding:10px; border-radius:var(--radius-sm); font-size:0.85rem; margin-bottom:1rem; display:none; }
.payment-error.show { display:block; }

/* ===== REGISTRATION ===== */
.reg-type-selector { display:flex; gap:8px; margin-bottom:1.5rem; }
.reg-type { flex:1; padding:1rem; text-align:center; border:2px solid var(--gray-200); border-radius:var(--radius-sm); cursor:pointer; transition:all 0.2s; }
.reg-type:hover { border-color:var(--green-300); }
.reg-type.active { border-color:var(--green-500); background:var(--green-50); }

/* ===== SUCCESS ===== */
.success-content { text-align:center; padding:3rem 1.5rem; }
.success-icon { font-size:4rem; margin-bottom:1rem; }
.success-content h2 { color:var(--green-700); margin-bottom:0.5rem; }

/* ===== TOAST ===== */
.toast { position:fixed; bottom:30px; left:50%; transform:translateX(-50%) translateY(100px); background:var(--gray-800); color:white; padding:14px 28px; border-radius:12px; font-weight:500; font-size:0.9rem; z-index:5000; transition:transform 0.3s ease; box-shadow:var(--shadow-xl); }
.toast.show { transform:translateX(-50%) translateY(0); }

/* ===== TESTIMONIALS ===== */
.testimonials { padding:4rem 2rem; background:white; }
.testimonial-grid { display:flex; gap:1.5rem; max-width:1000px; margin:2rem auto 0; flex-wrap:wrap; justify-content:center; }
.testimonial-card { flex:1; min-width:280px; max-width:340px; background:var(--gray-50); border-radius:16px; padding:2rem; position:relative; }
.testimonial-card::before { content:'"'; position:absolute; top:12px; left:20px; font-size:4rem; color:var(--green-200); font-family:Georgia,serif; line-height:1; }
.testimonial-text { font-size:0.95rem; color:var(--gray-600); line-height:1.7; margin-bottom:1.2rem; position:relative; z-index:1; }
.testimonial-author { display:flex; align-items:center; gap:12px; }
.testimonial-avatar { width:44px; height:44px; border-radius:50%; background:var(--green-100); display:flex; align-items:center; justify-content:center; font-size:1.2rem; }
.testimonial-name { font-weight:600; font-size:0.9rem; }
.testimonial-role { font-size:0.8rem; color:var(--gray-400); }
.testimonial-stars { color:#f59f00; font-size:0.85rem; margin-bottom:0.75rem; }

/* ===== PRODUCT DETAIL MODAL ===== */
.detail-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:3500; align-items:center; justify-content:center; }
.detail-modal-overlay.open { display:flex; }
.detail-modal { background:white; border-radius:20px; width:700px; max-width:95vw; max-height:90vh; overflow-y:auto; box-shadow:0 25px 60px rgba(0,0,0,0.3); }
.detail-img { width:100%; height:320px; object-fit:cover; border-radius:20px 20px 0 0; }
.detail-emoji { width:100%; height:320px; display:flex; align-items:center; justify-content:center; font-size:6rem; background:var(--gray-100); border-radius:20px 20px 0 0; }
.detail-body { padding:2rem; }
.detail-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:1rem; }
.detail-name { font-family:'Playfair Display',serif; font-size:1.6rem; color:var(--gray-900); }
.detail-price { font-size:1.4rem; font-weight:700; color:var(--green-700); }
.detail-vendor { font-size:0.9rem; color:var(--gray-400); margin-bottom:1rem; }
.detail-badges { display:flex; gap:8px; margin-bottom:1.5rem; }
.detail-badge { padding:6px 14px; border-radius:20px; font-size:0.8rem; font-weight:600; }
.detail-badge-bio { background:var(--green-100); color:var(--green-700); }
.detail-badge-foodwaste { background:#fff3bf; color:#e67700; }
.detail-badge-cat { background:var(--gray-100); color:var(--gray-600); }
.detail-desc { font-size:0.95rem; color:var(--gray-600); line-height:1.7; margin-bottom:1.5rem; }
.detail-actions { display:flex; gap:12px; align-items:center; }
.detail-qty { display:flex; align-items:center; gap:8px; border:2px solid var(--gray-200); border-radius:10px; padding:4px; }
.detail-qty button { width:36px; height:36px; border:none; background:var(--gray-50); border-radius:8px; font-size:1.1rem; cursor:pointer; font-weight:600; }
.detail-qty span { min-width:30px; text-align:center; font-weight:600; }
.detail-add-btn { flex:1; padding:14px; background:var(--orange-500); color:white; border:none; border-radius:12px; font-weight:700; font-size:1rem; cursor:pointer; transition:all 0.2s; font-family:inherit; }
.detail-add-btn:hover { background:var(--orange-600); }
.detail-close { position:absolute; top:16px; right:16px; width:40px; height:40px; background:rgba(255,255,255,0.9); border:none; border-radius:50%; font-size:1.3rem; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,0.15); z-index:2; }
.detail-reviews { margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid var(--gray-100); }
.detail-reviews h4 { font-size:1rem; margin-bottom:1rem; }

/* ===== SOCIAL LINKS ===== */
.social-links { display:flex; gap:12px; margin-top:1rem; }
.social-link { width:40px; height:40px; border-radius:50%; background:var(--gray-700); display:flex; align-items:center; justify-content:center; text-decoration:none; color:white; font-size:1.1rem; transition:all 0.2s; }
.social-link:hover { background:var(--green-500); transform:translateY(-2px); }

/* ===== ANIMATIONS ===== */
.fade-in { opacity:0; transform:translateY(30px); transition:opacity 0.6s ease,transform 0.6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }
.scale-in { opacity:0; transform:scale(0.9); transition:opacity 0.5s ease,transform 0.5s ease; }
.scale-in.visible { opacity:1; transform:scale(1); }

/* ===== DARK MODE ===== */
body.dark { background:#0f172a; color:#e2e8f0; }
body.dark .navbar { background:rgba(15,23,42,0.95); border-color:#1e293b; }
body.dark .product-card { background:#1e293b; }
body.dark .product-info { color:#e2e8f0; }
body.dark .product-name { color:#f1f5f9; }
body.dark .product-vendor { color:#94a3b8; }
body.dark .footer { background:#0f172a; border-top:1px solid #1e293b; }
body.dark .hero { background:linear-gradient(135deg,rgba(15,23,42,0.9),rgba(30,41,59,0.85)),url('https://images.unsplash.com/photo-1488459716781-31db52582fe9?w=1600&h=800&fit=crop&auto=format') center/cover no-repeat; }
body.dark .trust-section { background:#1e293b; }
body.dark .trust-item { background:#0f172a; }
body.dark .newsletter-section { background:#1e293b; }
body.dark .newsletter-form input { background:#0f172a; border-color:#334155; color:#e2e8f0; }
body.dark .testimonials { background:#0f172a; }
body.dark .testimonial-card { background:#1e293b; }
body.dark .testimonial-text { color:#cbd5e1; }
body.dark .section-title { color:#f1f5f9; }
body.dark .section-subtitle { color:#94a3b8; }
body.dark .stats { background:#1e293b; }
body.dark .stat-number { color:#4ade80; }
body.dark .category-chip { background:#1e293b; border-color:#334155; color:#cbd5e1; }
body.dark .category-chip.active { background:var(--green-600); color:white; }
body.dark .search-input { background:#1e293b; border-color:#334155; color:#e2e8f0; }
body.dark .cookie-banner { background:#1e293b; }
body.dark .modal { background:#1e293b; color:#e2e8f0; }
body.dark .modal-header { border-color:#334155; }
body.dark .form-group input, body.dark .form-group select, body.dark .form-group textarea { background:#0f172a; border-color:#334155; color:#e2e8f0; }
body.dark .cart-sidebar { background:#1e293b; color:#e2e8f0; }
body.dark .detail-modal { background:#1e293b; color:#e2e8f0; }
body.dark .detail-body { color:#e2e8f0; }
body.dark .pricing-card { background:#1e293b; }
.dark-toggle { position:fixed; top:80px; right:20px; width:44px; height:44px; border-radius:50%; background:var(--gray-100); border:2px solid var(--gray-200); cursor:pointer; font-size:1.2rem; display:flex; align-items:center; justify-content:center; z-index:1000; transition:all 0.3s; box-shadow:0 2px 8px rgba(0,0,0,0.1); }
body.dark .dark-toggle { background:#334155; border-color:#475569; }
.dark-toggle:hover { transform:scale(1.1); }

/* ===== AUTOCOMPLETE ===== */
.autocomplete-wrapper { position:relative; }
.autocomplete-list { position:absolute; top:100%; left:0; right:0; background:white; border-radius:0 0 12px 12px; box-shadow:0 10px 30px rgba(0,0,0,0.15); max-height:300px; overflow-y:auto; z-index:100; display:none; }
body.dark .autocomplete-list { background:#1e293b; }
.autocomplete-item { display:flex; align-items:center; gap:12px; padding:12px 16px; cursor:pointer; transition:background 0.15s; border-bottom:1px solid var(--gray-100); }
body.dark .autocomplete-item { border-color:#334155; }
.autocomplete-item:hover { background:var(--green-50); }
body.dark .autocomplete-item:hover { background:#334155; }
.autocomplete-item img { width:40px; height:40px; border-radius:8px; object-fit:cover; }
.autocomplete-emoji { font-size:1.5rem; width:40px; text-align:center; }
.autocomplete-name { font-weight:600; font-size:0.9rem; }
.autocomplete-meta { font-size:0.8rem; color:var(--gray-400); }

/* ===== RECENTLY VIEWED ===== */
.recently-viewed { padding:2rem; max-width:1200px; margin:0 auto; }
.recently-viewed h3 { font-size:1.1rem; margin-bottom:1rem; color:var(--gray-600); }
.rv-scroll { display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; scrollbar-width:thin; }
.rv-card { min-width:140px; max-width:140px; background:white; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); cursor:pointer; transition:transform 0.2s; flex-shrink:0; }
body.dark .rv-card { background:#1e293b; }
.rv-card:hover { transform:translateY(-3px); }
.rv-card-img { height:90px; display:flex; align-items:center; justify-content:center; background:var(--gray-50); overflow:hidden; }
body.dark .rv-card-img { background:#0f172a; }
.rv-card-img img { width:100%; height:100%; object-fit:cover; }
.rv-card-info { padding:8px 10px; }
.rv-card-name { font-size:0.8rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rv-card-price { font-size:0.75rem; color:var(--green-600); font-weight:700; }

/* ===== CART ANIMATION ===== */
.fly-to-cart { position:fixed; z-index:9999; pointer-events:none; transition:all 0.6s cubic-bezier(0.2,1,0.3,1); opacity:1; font-size:2rem; }
.fly-to-cart.flying { transform:translate(var(--dx), var(--dy)) scale(0.2); opacity:0; }

/* ===== FOODWASTE COUNTDOWN ===== */
.countdown-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:4px; font-size:0.7rem; font-weight:700; }
.countdown-urgent { background:#fee2e2; color:#dc2626; animation:pulse 1.5s infinite; }
.countdown-warning { background:#fef3c7; color:#d97706; }
.countdown-ok { background:#dcfce7; color:#16a34a; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.7; } }

/* ===== SAVINGS BADGE ===== */
.savings-badge { position:absolute; top:10px; right:10px; background:#dc2626; color:white; padding:4px 8px; border-radius:6px; font-size:0.7rem; font-weight:700; z-index:2; }

/* ===== COOKIE BANNER ===== */
.cookie-banner { display:none; position:fixed; bottom:0; left:0; right:0; background:var(--gray-900); color:white; padding:1.25rem 2rem; z-index:9000; box-shadow:0 -4px 20px rgba(0,0,0,0.2); }
.cookie-banner.show { display:block; animation:slideUp 0.3s ease; }
@keyframes slideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
.cookie-inner { max-width:1200px; margin:0 auto; display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap; }
.cookie-text { flex:1; font-size:0.9rem; color:var(--gray-300); line-height:1.5; }
.cookie-text a { color:var(--green-400); text-decoration:underline; }
.cookie-buttons { display:flex; gap:10px; flex-shrink:0; }
.cookie-btn { padding:10px 20px; border-radius:8px; font-weight:600; font-size:0.85rem; cursor:pointer; border:none; font-family:inherit; transition:all 0.2s; }
.cookie-accept { background:var(--green-500); color:white; }
.cookie-accept:hover { background:var(--green-600); }
.cookie-decline { background:transparent; color:var(--gray-400); border:1px solid var(--gray-600); }
.cookie-decline:hover { border-color:var(--gray-400); color:white; }

/* ===== HAMBURGER ===== */
.hamburger { display:none; background:none; border:none; font-size:1.5rem; cursor:pointer; padding:5px; flex-shrink:0; }
.mobile-menu { display:none; position:fixed; top:70px; left:0; right:0; bottom:0; background:rgba(255,255,255,0.98); backdrop-filter:blur(20px); z-index:999; padding:2rem; flex-direction:column; }
.mobile-menu.open { display:flex; }
.mobile-menu a { display:block; padding:16px 0; border-bottom:1px solid var(--gray-100); text-decoration:none; color:var(--gray-700); font-weight:500; font-size:1.1rem; }
.mobile-menu-actions { display:flex; gap:1rem; margin-top:1.5rem; flex-wrap:wrap; }
.mobile-menu-actions button { flex:1; padding:14px; border-radius:12px; font-weight:600; font-size:1rem; cursor:pointer; min-width:120px; }

/* ===== RESPONSIVE ===== */
@media (max-width:768px) {
    .navbar-links { display:none; }
    .hamburger { display:block; }
    .navbar-actions > .btn-login, .navbar-actions > .btn-register { display:none !important; }
    .navbar-actions { gap:0.5rem; }
    .navbar-brand { font-size:1.2rem; }
    .navbar { padding:0 1rem; }
    .footer-grid { grid-template-columns:1fr; }
    .hero { padding:3rem 1rem; }
    .hero h1 { font-size:2rem; }
    .hero p { font-size:1rem; }
    .hero-actions { flex-direction:column; align-items:center; }
    .newsletter-form { flex-direction:column; }
    .newsletter-form button { width:100%; }
    .categories { gap:0.5rem; padding:2rem 1rem 1rem; }
    .category-chip { padding:8px 14px; font-size:0.85rem; }
    .product-grid { grid-template-columns:repeat(2,1fr); gap:0.75rem; }
    .product-img { height:150px; font-size:3rem; }
    .testimonial-grid { flex-direction:column; align-items:center; }
    .testimonial-card { max-width:100%; }
    .detail-modal { width:100vw; max-height:100vh; border-radius:0; }
    .detail-img { height:220px; border-radius:0; }
    .detail-emoji { height:220px; border-radius:0; }
    .steps-grid { flex-direction:column; align-items:center; gap:1.5rem; }
    .steps-grid::before { display:none; }
    .product-name { font-size:0.85rem; }
    .product-price { font-size:0.95rem; }
    .btn-add { width:30px; height:30px; font-size:1rem; }
    .vendor-grid { grid-template-columns:repeat(2,1fr); gap:0.75rem; }
    .pricing-grid { grid-template-columns:1fr; }
    .section { padding:2.5rem 1rem; }
    .section-title { font-size:1.5rem; }
    .form-row { flex-direction:column; }
    .foodwaste-banner { margin:1rem; flex-direction:column; text-align:center; padding:1.5rem; }
    .cart-sidebar { width:100vw; }
    .modal { width:95vw; max-height:95vh; }
    .user-menu-btn .email-text { display:none; }
    .stats { gap:1.5rem; }
}
@media (max-width:480px) {
    .product-grid { grid-template-columns:1fr; }
    .vendor-grid { grid-template-columns:1fr; }
}
