:root {
    --bg-primary: #0a0f0a;
    --bg-secondary: #111a11;
    --bg-card: rgba(26, 42, 26, 0.6);
    --bg-glass: rgba(26, 42, 26, 0.4);
    --green-dark: #1a2a1e;
    --green-forest: #2d5a27;
    --green-emerald: #4a9e6d;
    --green-sage: #8fbc8f;
    --green-light: #a8d5a8;
    --gold: #c8a25a;
    --gold-light: #e8d5b0;
    --gold-glow: rgba(200, 162, 90, 0.3);
    --cream: #f5f0e8;
    --text-primary: #e8e4dc;
    --text-secondary: #9a9590;
    --text-muted: #6a6560;
    --red: #e85454;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(74, 158, 109, 0.15);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0%;
    background: linear-gradient(90deg, var(--green-emerald), var(--gold));
    z-index: 10001; transition: width 0.1s;
}
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 24px; backdrop-filter: blur(20px);
    background: rgba(10, 15, 10, 0.8);
    border-bottom: 1px solid rgba(74, 158, 109, 0.1);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.logo-icon { font-size: 24px; color: var(--green-emerald); animation: pulse-slow 3s ease-in-out infinite; }
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: 3px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none; font-size: 14px;
    font-weight: 500; transition: var(--transition); position: relative;
}
.nav-links a:hover { color: var(--green-emerald); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--green-emerald); transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.cart-btn {
    background: var(--bg-glass); border: 1px solid rgba(74, 158, 109, 0.2);
    border-radius: var(--radius-sm); padding: 8px 14px; color: var(--text-primary);
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition);
}
.cart-btn:hover { border-color: var(--green-emerald); }
.cart-count {
    background: var(--green-emerald); color: #fff; border-radius: 50%;
    width: 20px; height: 20px; display: flex; align-items: center;
    justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--font-mono);
}
#hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; overflow: hidden; padding: 120px 24px 80px;
}
#particles { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(74,158,109,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,158,109,0.03) 1px, transparent 1px);
    background-size: 60px 60px; z-index: 0;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-badge {
    display: inline-block; padding: 6px 20px;
    border: 1px solid rgba(74,158,109,0.3); border-radius: 100px;
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--green-sage); margin-bottom: 32px;
}
.hero-title {
    font-family: var(--font-heading); font-size: clamp(40px, 8vw, 80px);
    font-weight: 800; line-height: 1.1; margin-bottom: 24px;
}
.title-line { display: block; color: var(--cream); }
.title-line.accent {
    background: linear-gradient(135deg, var(--green-emerald), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 48px; letter-spacing: 2px; }
.hero-cta {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px;
    background: linear-gradient(135deg, var(--green-forest), var(--green-emerald));
    color: #fff; text-decoration: none; border-radius: var(--radius);
    font-weight: 600; font-size: 16px; transition: var(--transition);
    box-shadow: 0 4px 20px rgba(74,158,109,0.3);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(74,158,109,0.4); }
@keyframes pulse-slow { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes bounce-in { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cart-pulse { 0% { box-shadow: 0 4px 20px rgba(74,158,109,0.2); } 50% { box-shadow: 0 4px 30px rgba(74,158,109,0.5); } 100% { box-shadow: 0 4px 20px rgba(74,158,109,0.2); } }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-fade-in { opacity: 0; animation: fade-in 0.8s ease forwards; animation-delay: var(--delay, 0s); }
.animate-slide-up { opacity: 0; animation: slide-up 0.8s ease forwards; animation-delay: var(--delay, 0s); }
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
#catalog { max-width: 900px; margin: 0 auto; padding: 40px 24px 160px; }
.loyalty-banner {
    background: var(--bg-card); border: 1px solid rgba(74,158,109,0.2);
    border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 40px; backdrop-filter: blur(10px);
}
.loyalty-inner { display: flex; align-items: center; gap: 20px; }
.loyalty-level { display: flex; align-items: center; gap: 8px; font-size: 20px; white-space: nowrap; }
.loyalty-name { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--green-sage); }
.loyalty-progress-wrap { flex: 1; }
.loyalty-progress { height: 6px; background: var(--green-dark); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.loyalty-bar { height: 100%; background: linear-gradient(90deg, var(--green-emerald), var(--gold)); border-radius: 3px; transition: width 0.8s ease; }
.loyalty-info { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.loyalty-discount { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.category-section { margin-bottom: 48px; }
.category-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid rgba(74,158,109,0.15);
    cursor: pointer; user-select: none;
}
.category-header:hover .category-name { color: var(--green-emerald); }
.category-icon { font-size: 28px; }
.category-name { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--cream); transition: var(--transition); }
.category-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); background: var(--bg-glass); padding: 2px 10px; border-radius: 100px; }
.category-toggle { margin-left: auto; color: var(--text-muted); font-size: 18px; transition: transform var(--transition); }
.category-section.collapsed .category-toggle { transform: rotate(-90deg); }
.category-section.collapsed .category-products { display: none; }
.product-row {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-radius: var(--radius); transition: var(--transition); position: relative;
    opacity: 0; transform: translateY(10px);
}
.product-row.visible { opacity: 1; transform: translateY(0); }
.product-row:hover { background: var(--bg-glass); box-shadow: var(--shadow-glow); }
.product-row.has-items { background: rgba(74,158,109,0.08); border: 1px solid rgba(74,158,109,0.15); }
.product-info { flex: 1; min-width: 0; }
.product-name { font-weight: 500; font-size: 15px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; letter-spacing: 1px; text-transform: uppercase; display: inline-block; }
.badge-hit { background: linear-gradient(135deg, var(--gold), #d4a84a); color: #1a1a1a; animation: pulse-slow 2s ease-in-out infinite; }
.badge-new { background: linear-gradient(135deg, var(--green-emerald), #5ab87a); color: #fff; background-size: 200% auto; animation: shimmer 3s linear infinite; }
.badge-soon { background: rgba(143,188,143,0.15); color: var(--green-sage); border: 1px solid rgba(143,188,143,0.3); animation: breathe 3s ease-in-out infinite; }
.product-price { font-family: var(--font-mono); font-weight: 500; font-size: 16px; color: var(--cream); white-space: nowrap; min-width: 70px; text-align: right; }
.qty-controls {
    display: flex; align-items: center; gap: 0; background: var(--bg-secondary);
    border: 1px solid rgba(74,158,109,0.15); border-radius: var(--radius-sm); overflow: hidden;
}
.qty-btn {
    width: 36px; height: 36px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 18px; cursor: pointer;
    transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--green-forest); color: #fff; }
.qty-btn:active { transform: scale(0.9); }
.qty-value {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--green-light);
}
.qty-value.has-value { color: var(--gold); }
.product-row-total { font-family: var(--font-mono); font-size: 14px; color: var(--gold); min-width: 70px; text-align: right; white-space: nowrap; opacity: 0; transition: var(--transition); }
.product-row-total.visible { opacity: 1; }
.want-btn {
    padding: 8px 20px; background: rgba(143,188,143,0.1); border: 1px solid rgba(143,188,143,0.3);
    border-radius: var(--radius-sm); color: var(--green-sage); cursor: pointer;
    font-size: 13px; font-weight: 500; transition: var(--transition); white-space: nowrap;
}
.want-btn:hover { background: rgba(143,188,143,0.2); border-color: var(--green-emerald); }
.want-btn.wanted { background: rgba(74,158,109,0.15); border-color: var(--green-emerald); color: var(--green-emerald); }
.want-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.floating-cart {
    position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 700px;
    background: rgba(17,26,17,0.95); backdrop-filter: blur(20px);
    border: 1px solid rgba(74,158,109,0.2); border-radius: var(--radius-lg);
    padding: 16px 24px; z-index: 999; transition: bottom 0.5s var(--bounce); box-shadow: var(--shadow-lg);
}
.floating-cart.visible { bottom: 24px; }
.floating-cart.pulse { animation: cart-pulse 0.6s ease; }
.cart-summary { display: flex; align-items: center; gap: 16px; }
.cart-left { display: flex; flex-direction: column; }
.cart-items-count { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
.cart-total-label { font-size: 11px; color: var(--text-muted); }
.cart-center { flex: 1; text-align: center; }
.cart-total-amount { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--cream); }
.cart-discount-line { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--green-emerald); }
.checkout-btn {
    padding: 12px 28px; background: linear-gradient(135deg, var(--green-forest), var(--green-emerald));
    border: none; border-radius: var(--radius); color: #fff; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: var(--transition); display: flex; flex-direction: column;
    align-items: center; white-space: nowrap;
}
.checkout-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(74,158,109,0.4); }
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; background: var(--text-muted); }
.checkout-text { font-size: 14px; }
.checkout-min { font-size: 10px; opacity: 0.7; font-weight: 400; }
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    padding: 20px; overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-secondary); border: 1px solid rgba(74,158,109,0.15);
    border-radius: var(--radius-lg); padding: 32px; max-width: 540px; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative; animation: slide-up 0.4s ease;
}
.modal-close {
    position: absolute; top: 16px; right: 16px; background: none; border: none;
    color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 4px 8px;
    border-radius: 4px; transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-glass); }
.modal-title { font-family: var(--font-heading); font-size: 22px; margin-bottom: 20px; }
.modal-items {
    background: var(--bg-card); border-radius: var(--radius); padding: 12px 16px;
    margin-bottom: 24px; max-height: 200px; overflow-y: auto;
}
.modal-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.modal-item:last-child { border-bottom: none; }
.modal-item-name { color: var(--text-secondary); }
.modal-item-calc { font-family: var(--font-mono); color: var(--text-primary); white-space: nowrap; }
.order-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group textarea {
    background: var(--bg-primary); border: 1px solid rgba(74,158,109,0.15);
    border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text-primary);
    font-family: var(--font-body); font-size: 15px; transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green-emerald); box-shadow: 0 0 0 3px rgba(74,158,109,0.1); }
.form-hint { font-size: 11px; color: var(--green-sage); font-style: italic; }
.delivery-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.delivery-opt input { display: none; }
.delivery-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 8px; background: var(--bg-primary); border: 2px solid rgba(74,158,109,0.1);
    border-radius: var(--radius); cursor: pointer; transition: var(--transition); text-align: center;
}
.delivery-card:hover { border-color: rgba(74,158,109,0.3); }
.delivery-opt input:checked + .delivery-card { border-color: var(--green-emerald); background: rgba(74,158,109,0.08); }
.delivery-icon { font-size: 24px; }
.delivery-name { font-size: 12px; font-weight: 500; }
.delivery-name small { color: var(--text-muted); font-weight: 400; }
.modal-total { background: var(--bg-card); border-radius: var(--radius); padding: 16px; margin-top: 8px; margin-bottom: 8px; }
.modal-total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: var(--text-secondary); }
.modal-total-row.discount-row { color: var(--green-emerald); }
.modal-total-row.total-row {
    font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--cream);
    padding-top: 8px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.1);
}
.submit-btn {
    width: 100%; padding: 16px; background: linear-gradient(135deg, var(--green-forest), var(--green-emerald));
    border: none; border-radius: var(--radius); color: #fff; font-size: 16px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(74,158,109,0.4); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.6s linear infinite;
}
.modal-success { text-align: center; padding: 48px 32px; }
.success-icon { font-size: 64px; margin-bottom: 16px; }
.modal-success h2 { font-family: var(--font-heading); font-size: 24px; margin-bottom: 12px; }
.modal-success p { color: var(--text-secondary); margin-bottom: 24px; }
.success-tg {
    display: inline-block; padding: 10px 24px; background: var(--bg-card);
    border-radius: var(--radius); color: var(--green-sage); text-decoration: none; transition: var(--transition);
}
.success-tg:hover { background: var(--green-dark); }
.success-close-btn {
    display: block; width: 100%; margin-top: 20px; padding: 14px;
    background: var(--bg-glass); border: 1px solid rgba(74,158,109,0.2);
    border-radius: var(--radius); color: var(--text-primary); font-size: 15px;
    cursor: pointer; transition: var(--transition);
}
.success-close-btn:hover { border-color: var(--green-emerald); }
footer {
    background: var(--bg-secondary); border-top: 1px solid rgba(74,158,109,0.1); padding: 40px 24px;
}
.footer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: 3px; margin-bottom: 12px; }
.footer-links { margin-bottom: 16px; }
.footer-links a { color: var(--green-sage); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--green-emerald); }
.footer-sep { color: var(--text-muted); margin: 0 8px; }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.scroll-top {
    position: fixed; bottom: 100px; right: 24px; width: 44px; height: 44px;
    background: var(--bg-glass); backdrop-filter: blur(10px);
    border: 1px solid rgba(74,158,109,0.2); border-radius: 50%;
    color: var(--green-sage); font-size: 20px; cursor: pointer;
    opacity: 0; transform: translateY(20px); transition: var(--transition); z-index: 998;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { border-color: var(--green-emerald); background: var(--green-dark); }
@media (max-width: 640px) {
    .nav-links { display: none; }
    .header-inner { height: 56px; }
    .hero-title { font-size: clamp(32px, 10vw, 56px); }
    .hero-subtitle { font-size: 14px; letter-spacing: 1px; }
    #catalog { padding: 20px 12px 160px; }
    .product-row { flex-wrap: wrap; padding: 12px; gap: 8px; }
    .product-info { flex: 1 1 100%; order: 1; }
    .product-price { order: 2; min-width: auto; }
    .qty-controls { order: 3; }
    .product-row-total { order: 4; min-width: auto; }
    .category-name { font-size: 20px; }
    .floating-cart { width: calc(100% - 16px); padding: 12px 16px; }
    .cart-total-amount { font-size: 22px; }
    .checkout-btn { padding: 10px 16px; font-size: 13px; }
    .delivery-options { grid-template-columns: 1fr; }
    .delivery-card { flex-direction: row; padding: 12px 16px; }
    .modal { padding: 20px; margin: 10px; }
    .loyalty-inner { flex-direction: column; gap: 10px; align-items: stretch; }
    .loyalty-discount { text-align: center; }
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-forest); }
