/* ===========================================
   FOODIFY.NG — COMPLETE STYLESHEET
   Mobile-first, production-ready
   =========================================== */

/* ---- Google Font is loaded in PHP head ---- */

/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
    --green:        #0E7A4E;
    --green-mid:    #10B981;
    --green-light:  #34D399;
    --green-pale:   #D1FAE5;
    --green-bg:     #F0FDF8;
    --amber:        #F59E0B;
    --amber-dark:   #D97706;
    --red-err:      #EF4444;

    --ink:          #0B1F14;
    --ink-mid:      #1E3A2A;
    --muted:        #5C7A6A;
    --border:       #D4E8DD;
    --surface:      #FFFFFF;
    --bg:           #F7FBF9;

    --grad-green:   linear-gradient(135deg, #10B981 0%, #0E7A4E 100%);
    --grad-amber:   linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

    --r-sm:   0.5rem;
    --r-md:   0.875rem;
    --r-lg:   1.25rem;
    --r-xl:   1.75rem;
    --r-full: 9999px;

    --shadow-xs: 0 1px 3px rgba(14,122,78,0.08);
    --shadow-sm: 0 2px 8px rgba(14,122,78,0.10);
    --shadow-md: 0 6px 20px rgba(14,122,78,0.12);
    --shadow-lg: 0 16px 40px rgba(14,122,78,0.14);
    --shadow-xl: 0 24px 60px rgba(14,122,78,0.16);

    --ease:  cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Critical: constrain ALL inline SVGs site-wide */
svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    overflow: visible;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; transition: color 0.2s var(--ease); }
ul  { list-style: none; }
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
    transition: all 0.2s var(--ease);
}

/* ===========================================
   PRELOADER
   =========================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-content { text-align: center; }

.preloader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader-logo img { width: 60px; height: 60px; object-fit: contain; }

.preloader-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.preloader-bar {
    width: 160px;
    height: 4px;
    background: var(--green-pale);
    border-radius: var(--r-full);
    overflow: hidden;
    margin: 0 auto;
}
.preloader-progress {
    height: 100%;
    background: var(--grad-green);
    border-radius: var(--r-full);
    animation: preload 1.8s var(--ease) infinite;
}
@keyframes preload {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

/* ===========================================
   NAVIGATION
   =========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    text-decoration: none;
}
.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
}
.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

/* Desktop nav links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
    transition: color 0.2s var(--ease);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-mid);
    border-radius: var(--r-full);
    transition: width 0.25s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--green); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.125rem;
    border-radius: var(--r-full);
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    font-family: var(--font);
}
.nav-btn-login {
    color: var(--muted);
    background: transparent;
    border: 1.5px solid var(--border);
}
.nav-btn-login:hover {
    color: var(--green);
    border-color: var(--green-mid);
    background: var(--green-pale);
}
.nav-btn-primary {
    background: var(--grad-green);
    color: #fff;
    border: none;
    box-shadow: 0 3px 10px rgba(16,185,129,0.35);
}
.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16,185,129,0.45);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    padding: 4px;
    border-radius: var(--r-sm);
    background: transparent;
    transition: background 0.2s var(--ease);
}
.nav-toggle:hover { background: var(--green-pale); }
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: var(--r-full);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===========================================
   HERO
   =========================================== */
.hero {
    padding-top: 100px;
    padding-bottom: 80px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
}
.hero-shape-1 {
    width: 480px; height: 480px;
    background: var(--grad-green);
    top: -160px; right: -80px;
    animation: shapeFloat 18s ease-in-out infinite;
}
.hero-shape-2 {
    width: 360px; height: 360px;
    background: var(--grad-amber);
    bottom: -120px; left: -80px;
    animation: shapeFloat 22s ease-in-out infinite reverse;
}
.hero-shape-3 {
    width: 280px; height: 280px;
    background: var(--grad-green);
    top: 45%; left: 40%;
    animation: shapeFloat 26s ease-in-out infinite;
    animation-delay: -8s;
}
@keyframes shapeFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%       { transform: translate(24px,-28px) scale(1.08); }
    66%       { transform: translate(-18px,18px) scale(0.94); }
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content { animation: slideInLeft 0.7s var(--ease-out) both; }
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green-pale);
    color: var(--green);
    padding: 0.45rem 1rem;
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(16,185,129,0.2);
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--green-mid);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.gradient-text {
    background: var(--grad-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 2.25rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s var(--ease);
    font-family: var(--font);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: var(--grad-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16,185,129,0.45);
}

.btn-secondary {
    background: rgba(14,122,78,0.07);
    color: var(--green);
    border: 1.5px solid rgba(16,185,129,0.25);
}
.btn-secondary:hover {
    background: var(--green-pale);
    border-color: var(--green-mid);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    background: var(--grad-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.stat-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* Hero visual side */
.hero-visual {
    position: relative;
    height: 540px;
    animation: slideInRight 0.7s var(--ease-out) both;
    animation-delay: 0.1s;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-card {
    position: absolute;
    background: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    animation: cardFloat 6s ease-in-out infinite;
    border: 1px solid var(--border);
    min-width: 175px;
}
.hero-card-1 { top: 40px;  left: 0;   animation-delay: 0s; }
.hero-card-2 { top: 220px; right: 30px; animation-delay: -2s; }
.hero-card-3 { bottom: 80px; left: 40px; animation-delay: -4s; }
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

.card-icon {
    width: 50px; height: 50px;
    font-size: 1.75rem;
    background: var(--green-pale);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.card-content { flex: 1; }
.card-title { font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.15rem; }
.card-price { color: var(--green); font-weight: 800; font-size: 0.95rem; }

.hero-image-wrapper {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 360px; height: 360px;
}
.hero-image-glow {
    position: absolute; inset: -15%;
    background: var(--grad-green);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: glow 5s ease-in-out infinite;
}
@keyframes glow {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50%       { opacity: 0.25; transform: scale(1.08); }
}
.hero-illustration { width: 100%; height: 100%; animation: slowSpin 25s linear infinite; }
@keyframes slowSpin { to { transform: rotate(360deg); } }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-8px); }
}
.scroll-mouse {
    width: 22px; height: 34px;
    border: 2px solid var(--muted);
    border-radius: var(--r-full);
    position: relative;
}
.scroll-wheel {
    width: 3px; height: 7px;
    background: var(--muted);
    border-radius: var(--r-full);
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%, 100% { top: 5px; opacity: 1; }
    50%       { top: 16px; opacity: 0; }
}

/* ===========================================
   FEATURES STRIP
   =========================================== */
.features {
    padding: 72px 1.5rem;
    background: var(--ink);
}
.container {
    max-width: 1280px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.feature-box {
    background: rgba(255,255,255,0.05);
    padding: 2.25rem 1.75rem;
    border-radius: var(--r-lg);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s var(--ease);
}
.feature-box:hover {
    background: rgba(255,255,255,0.09);
    transform: translateY(-6px);
    border-color: rgba(16,185,129,0.35);
}
.feature-icon {
    width: 62px; height: 62px;
    margin: 0 auto 1.25rem;
    background: var(--grad-green);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease);
}
.feature-box:hover .feature-icon { transform: scale(1.1) rotate(4deg); }
.feature-icon svg { width: 28px; height: 28px; color: #fff; stroke: #fff; }
.feature-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.feature-text  { color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.6; }

/* ===========================================
   SHARED SECTION UTILITIES
   =========================================== */
.section-badge {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green);
    padding: 0.4rem 1rem;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(16,185,129,0.18);
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.section-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 520px;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header .section-title { margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1rem; color: var(--muted); margin-top: 0.75rem; }

/* ===========================================
   ABOUT
   =========================================== */
.about {
    padding: 96px 1.5rem;
    background: var(--surface);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-content { }
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 2.25rem;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-mid);
}
.about-feature svg {
    width: 18px; height: 18px;
    color: var(--green-mid);
    stroke: var(--green-mid);
    flex-shrink: 0;
}

.about-visual {
    position: relative;
    height: 460px;
}
.about-image { position: relative; height: 100%; }

.image-card {
    position: absolute;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
}
.image-card-1 {
    width: 285px; height: 380px;
    background: var(--grad-green);
    top: 0; left: 0;
    animation: cardFloat 7s ease-in-out infinite;
}
.image-card-2 {
    width: 235px; height: 320px;
    background: var(--grad-amber);
    bottom: 0; right: 0;
    animation: cardFloat 7s ease-in-out infinite;
    animation-delay: -3s;
}

.about-stat-card {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    padding: 1.25rem 1.75rem;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    border: 1px solid var(--border);
    white-space: nowrap;
}
.stat-card-icon { font-size: 2rem; flex-shrink: 0; }
.stat-card-content { display: flex; flex-direction: column; }
.stat-card-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    background: var(--grad-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-top: 0.2rem; }

/* ===========================================
   PRODUCTS
   =========================================== */
.products {
    padding: 96px 1.5rem;
    background: var(--bg);
}
.products-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.filter-btn {
    padding: 0.6rem 1.25rem;
    border-radius: var(--r-full);
    background: var(--surface);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1.5px solid var(--border);
    transition: all 0.2s var(--ease);
    cursor: pointer;
    font-family: var(--font);
}
.filter-btn:hover { border-color: var(--green-mid); color: var(--green); }
.filter-btn.active {
    background: var(--grad-green);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(16,185,129,0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.product-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-mid);
}
.product-card.hidden { display: none; }

.product-image {
    position: relative;
    height: 230px;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-badge {
    position: absolute;
    top: 0.875rem; right: 0.875rem;
    background: var(--grad-amber);
    color: #fff;
    padding: 0.35rem 0.875rem;
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}
.product-placeholder {
    font-size: 4.5rem;
    transition: transform 0.3s var(--ease);
    line-height: 1;
}
.product-card:hover .product-placeholder { transform: scale(1.08) rotate(5deg); }

.product-img-real {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
    display: block;
}
.product-card:hover .product-img-real { transform: scale(1.05); }

.has-variants-badge {
    position: absolute;
    bottom: 0.75rem; left: 0.75rem;
    background: rgba(11,31,20,0.65);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
}

.product-content { padding: 1.5rem 1.5rem 1rem; }
.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.product-description {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price { display: flex; flex-direction: column; }
.price-amount {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--grad-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.price-unit { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; font-weight: 600; }

/* Cart button */
.btn-add-cart-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--grad-green);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font);
}
.btn-add-cart-full svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-add-cart-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,185,129,0.42);
}

/* Product card cart button wrapper */
.product-card > div[style] {
    padding: 0 1.5rem 1.5rem !important;
}

.products-cta { text-align: center; margin-top: 1rem; }

/* ===========================================
   HOW IT WORKS
   =========================================== */
.how-it-works {
    padding: 96px 1.5rem;
    background: var(--surface);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}
.step-card { text-align: center; position: relative; }
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -1.25rem;
    width: 2.5rem;
    height: 2px;
    background: var(--border);
}
.step-number {
    width: 58px; height: 58px;
    margin: 0 auto 0.5rem;
    background: var(--grad-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    position: relative;
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.step-number::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--green-mid);
    border-radius: 50%;
    opacity: 0.2;
}
.step-icon { font-size: 2.25rem; margin-bottom: 1rem; line-height: 1; }
.step-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.step-text { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }

/* ===========================================
   CONTACT
   =========================================== */
.contact {
    padding: 96px 1.5rem;
    background: var(--bg);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-content { }
.contact-methods {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    transition: all 0.25s var(--ease);
}
.contact-method:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-mid);
}
.contact-method-icon {
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-method-icon svg { width: 24px; height: 24px; color: var(--green); stroke: var(--green); }
.contact-method-content h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.3rem; }
.contact-method-content p  { color: var(--muted); font-size: 0.875rem; margin-bottom: 0.4rem; line-height: 1.5; }
.contact-link { color: var(--green-mid); font-weight: 700; font-size: 0.875rem; }
.contact-link:hover { color: var(--green); }

.contact-form-wrapper {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 700; font-size: 0.875rem; color: var(--ink); }
.form-group input,
.form-group textarea {
    padding: 0.875rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
    background: var(--surface);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===========================================
   NEWSLETTER
   =========================================== */
.newsletter {
    padding: 72px 1.5rem;
    background: var(--ink);
    position: relative;
    overflow: hidden;
}
.newsletter::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: var(--green-mid);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
}
.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.newsletter-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}
.newsletter-text p { color: rgba(255,255,255,0.6); font-size: 0.975rem; line-height: 1.65; }
.newsletter-form { display: flex; gap: 0.75rem; }
.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: var(--r-full);
    font-size: 0.95rem;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus {
    outline: none;
    border-color: var(--green-mid);
    background: rgba(255,255,255,0.13);
}
.newsletter-form button {
    background: var(--grad-green);
    color: #fff;
    padding: 0.875rem 1.75rem;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    font-family: var(--font);
    white-space: nowrap;
    transition: all 0.2s var(--ease);
    cursor: pointer;
}
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,185,129,0.45); }

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: var(--ink-mid);
    color: rgba(255,255,255,0.85);
    padding: 72px 1.5rem 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.footer-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
.footer-text { color: rgba(255,255,255,0.5); line-height: 1.7; font-size: 0.9rem; margin-bottom: 1.25rem; }
.footer-badge {
    display: inline-block;
    background: rgba(16,185,129,0.18);
    color: var(--green-light);
    padding: 0.35rem 0.875rem;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(16,185,129,0.25);
}
.footer-title { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--green-light); }
.footer-contact { color: rgba(255,255,255,0.5); font-size: 0.875rem; margin-bottom: 0.625rem; line-height: 1.5; }
.footer-bottom {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.footer-legal { display: flex; align-items: center; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-legal a:hover { color: var(--green-light); }
.footer-legal span { color: rgba(255,255,255,0.2); }

/* ===========================================
   MODALS
   =========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,31,20,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 2rem;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(11,31,20,0.25);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s var(--ease-out);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--green-mid) var(--green-pale);
}
.modal-box::-webkit-scrollbar { width: 5px; }
.modal-box::-webkit-scrollbar-track { background: var(--green-pale); }
.modal-box::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 3px; }
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.2s var(--ease);
    font-family: var(--font);
    line-height: 1;
}
.modal-close:hover { background: #fee2e2; color: var(--red-err); transform: rotate(90deg); }

.modal-product-img {
    width: 76px; height: 76px;
    border-radius: var(--r-md);
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    display: block;
}
.modal-product-img-placeholder {
    width: 76px; height: 76px;
    border-radius: var(--r-md);
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.25rem;
    padding-right: 2.5rem;
    letter-spacing: -0.02em;
}
.modal-subtitle { color: var(--muted); font-size: 0.875rem; line-height: 1.55; margin-bottom: 1.5rem; }
.modal-label {
    display: block;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
}

.variant-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.variant-option {
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.875rem 1.125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    background: var(--bg);
    user-select: none;
}
.variant-option:hover { border-color: var(--green-mid); background: var(--surface); }
.variant-option.selected {
    border-color: var(--green-mid);
    background: var(--green-pale);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.variant-option-label { font-weight: 700; color: var(--ink); font-size: 0.925rem; margin-bottom: 0.15rem; }
.variant-option-stock { font-size: 0.72rem; color: var(--muted); }
.variant-option-price { font-weight: 800; color: var(--green); font-size: 1rem; white-space: nowrap; margin-left: 1rem; }

.modal-qty-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.qty-label { font-weight: 700; font-size: 0.875rem; color: var(--ink); }
.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.25rem 0.5rem;
}
.qty-btn {
    width: 32px; height: 32px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: all 0.2s var(--ease);
    font-family: var(--font);
    line-height: 1;
}
.qty-btn:hover { background: var(--green-mid); color: #fff; border-color: var(--green-mid); }
.qty-display {
    min-width: 32px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--ink);
}

.modal-add-btn {
    width: 100%;
    padding: 1rem;
    background: var(--grad-green);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    font-size: 0.975rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
}
.modal-add-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.modal-add-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16,185,129,0.42);
}
.modal-add-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Login prompt */
.login-prompt { text-align: center; padding: 0.5rem 0 0; }
.login-prompt p { color: var(--muted); margin-bottom: 1.75rem; line-height: 1.7; font-size: 0.95rem; }
.login-prompt-btns { display: flex; gap: 0.875rem; justify-content: center; }
.btn-login-prompt {
    padding: 0.875rem 1.75rem;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
}
.btn-login-prompt.primary {
    background: var(--grad-green);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.btn-login-prompt.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,185,129,0.42); }
.btn-login-prompt.secondary {
    background: var(--bg);
    color: var(--ink);
    border: 1.5px solid var(--border);
}
.btn-login-prompt.secondary:hover { background: var(--green-pale); border-color: var(--green-mid); }

/* ===========================================
   TOAST
   =========================================== */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    pointer-events: none;
}
.toast {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 0.875rem 1.25rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.13);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    animation: toastIn 0.4s var(--ease-out) both;
    min-width: 260px;
    max-width: 360px;
    pointer-events: all;
    border-left: 4px solid transparent;
}
.toast.success { border-left-color: var(--green-mid); }
.toast.error   { border-left-color: var(--red-err); }
.toast-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}
.toast.success .toast-icon { background: var(--grad-green); }
.toast.error   .toast-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast-body { flex: 1; min-width: 0; }
.toast-body .toast-title { font-weight: 700; font-size: 0.875rem; color: var(--ink); margin-bottom: 0.1rem; }
.toast-body .toast-msg   { font-size: 0.775rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===========================================
   UTILITIES
   =========================================== */
.fade-in { animation: fadeIn 0.6s var(--ease-out) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide-up { animation: slideUp 0.6s var(--ease-out) both; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

button, a, input, textarea { -webkit-tap-highlight-color: transparent; }

/* ===========================================
   RESPONSIVE — TABLET (≤ 1024px)
   =========================================== */
@media (max-width: 1024px) {
    .hero-container,
    .about-grid,
    .contact-grid,
    .newsletter-content { grid-template-columns: 1fr; gap: 2.5rem; }

    .hero-visual,
    .about-visual { display: none; }

    .hero { min-height: auto; padding-top: 96px; padding-bottom: 64px; }
    .hero-title { font-size: clamp(2rem, 6vw, 3.25rem); }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    .step-card::after { display: none; }
}

/* ===========================================
   RESPONSIVE — MOBILE (≤ 768px)
   =========================================== */
@media (max-width: 768px) {
    /* Nav */
    .nav-menu {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }
    .nav-menu.active { display: flex; }
    .nav-link { font-size: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); width: 100%; }
    .nav-link:last-child { border-bottom: none; }
    .nav-link::after { display: none; }
    .nav-toggle { display: flex; }
    .nav-btn-primary { display: none; }
    .nav-btn-login { padding: 0.5rem 1rem; font-size: 0.8rem; }

    /* Hero */
    .hero { padding-top: 88px; padding-bottom: 56px; }
    .hero-description { font-size: 0.95rem; }
    .hero-buttons .btn { font-size: 0.875rem; padding: 0.75rem 1.375rem; }
    .hero-stats { gap: 1.25rem; }
    .stat-number { font-size: 1.5rem; }
    .scroll-indicator { display: none; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; }

    /* Products */
    .products-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .products-filter { gap: 0.5rem; }
    .filter-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { flex-wrap: wrap; justify-content: center; gap: 0.875rem; }

    /* Newsletter */
    .newsletter-content { gap: 1.75rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }

    /* Modal */
    .modal-box { padding: 1.5rem; border-radius: var(--r-lg); }
    .login-prompt-btns { flex-direction: column; }
    .btn-login-prompt { width: 100%; }

    /* Toast */
    #toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
    .toast { min-width: unset; max-width: 100%; }

    /* Contact */
    .contact-form-wrapper { padding: 1.5rem; }
}

/* ===========================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   =========================================== */
@media (max-width: 480px) {
    .hero-title  { font-size: 1.9rem; }
    .section-title { font-size: 1.65rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .hero-stats .stat-divider { display: none; }

    .features { padding: 56px 1.25rem; }
    .about, .products, .how-it-works, .contact { padding: 64px 1.25rem; }
    .newsletter { padding: 56px 1.25rem; }
    .footer { padding: 56px 1.25rem 1.5rem; }
}
