/* ============================================
   Fresh Basket Juice & Fruits — Core Styles
   ============================================ */

/* ---- CSS Variables (Light Theme) ---- */
:root {
    --primary: #2ecc40;
    --primary-dark: #239a30;
    --primary-light: #a8f0b4;
    --accent: #ff9800;
    --accent-dark: #e67e00;
    --accent-light: #ffe0b2;
    --yellow: #ffd600;
    --red: #e74c3c;
    --bg: #ffffff;
    --bg-alt: #f6faf3;
    --bg-card: #ffffff;
    --text: #1a2e05;
    --text-secondary: #5a6e4a;
    --text-muted: #8a9a7a;
    --border: #e0ecd6;
    --shadow: 0 4px 24px rgba(46,204,64,0.08);
    --shadow-lg: 0 12px 48px rgba(46,204,64,0.12);
    --shadow-card: 0 6px 32px rgba(0,0,0,0.07);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --nav-height: 76px;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --font: 'Outfit', sans-serif;
    --font-cursive: 'Dancing Script', cursive;
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
    --bg: #0d1a06;
    --bg-alt: #162210;
    --bg-card: #1a2e12;
    --text: #e8f5e0;
    --text-secondary: #b5ccaa;
    --text-muted: #7a9a6a;
    --border: #2a4420;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.4);
    --shadow-card: 0 6px 32px rgba(0,0,0,0.3);
    --primary-light: #1a4a20;
    --accent-light: #3a2a10;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}
body.menu-open, body.cart-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    color: var(--primary-dark);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
[data-theme="dark"] .section-tag { color: var(--primary); }
.section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.section { padding: 100px 0; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius-full);
    font-weight: 600; font-size: 1rem;
    transition: all var(--transition);
    position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0; transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; box-shadow: 0 4px 20px rgba(46,204,64,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(46,204,64,0.4); }
.btn-outline {
    border: 2px solid var(--primary); color: var(--primary);
    background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff; padding: 16px 36px; font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Icon Button ---- */
.icon-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt); color: var(--text);
    border: 1px solid var(--border);
    transition: all var(--transition); font-size: 1.1rem;
}
.icon-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed; inset: 0; z-index: 10000;
    background: linear-gradient(135deg, #e8f5e9, #fff8e1);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
[data-theme="dark"] .loader { background: linear-gradient(135deg, #0d1a06, #1a2e12); }
.loader-hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-fruit { font-size: 4rem; animation: loaderSpin 1.5s ease-in-out infinite; }
.loader-text {
    font-family: var(--font-cursive); font-size: 2rem;
    color: var(--primary-dark); margin-top: 16px;
}
[data-theme="dark"] .loader-text { color: var(--primary); }
.loader-bar {
    width: 200px; height: 4px; background: var(--border);
    border-radius: 4px; margin: 20px auto 0; overflow: hidden;
}
.loader-bar-fill {
    width: 0; height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px; animation: loaderFill 1.5s ease-in-out forwards;
}
@keyframes loaderSpin { 0%,100%{transform:rotate(0) scale(1)} 50%{transform:rotate(20deg) scale(1.2)} }
@keyframes loaderFill { to{width:100%} }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 10px 0;
}
[data-theme="dark"] .navbar.scrolled {
    background: rgba(13,26,6,0.92);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; }
.nav-logo-img { height: 48px; width: auto; border-radius: 8px; transition: transform var(--transition); }
.nav-logo-img:hover { transform: scale(1.05); }
.navbar.scrolled .nav-logo-img { height: 40px; }
.logo-icon { font-size: 1.8rem; }
.logo-accent { color: var(--accent); }
.nav-menu {
    display: flex; align-items: center; gap: 8px;
}
.nav-link {
    padding: 8px 16px; border-radius: var(--radius-full);
    font-weight: 500; font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-dark);
    background: var(--primary-light);
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: -4px; right: -4px;
    background: var(--red); color: #fff;
    font-size: 0.7rem; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
}
.cart-btn.bounce { animation: cartBounce 0.5s ease; }
@keyframes cartBounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.hamburger span {
    display: block; height: 3px; width: 100%; border-radius: 3px;
    background: var(--text); transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding-top: var(--nav-height);
    position: relative; overflow: hidden;
    background: linear-gradient(165deg, var(--bg) 50%, var(--bg-alt) 100%);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
    position: absolute; border-radius: 50%; opacity: 0.08;
    background: var(--primary);
}
.shape-1 { width: 500px; height: 500px; top: -100px; right: -100px; animation: floatShape 8s ease-in-out infinite; }
.shape-2 { width: 300px; height: 300px; bottom: -50px; left: -50px; background: var(--accent); animation: floatShape 10s ease-in-out infinite reverse; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 30%; background: var(--yellow); animation: floatShape 6s ease-in-out infinite; }
@keyframes floatShape { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-20px)} }

.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    color: var(--primary-dark); padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 600;
    margin-bottom: 20px;
}
[data-theme="dark"] .hero-badge { color: var(--primary); }
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900;
    line-height: 1.1; margin-bottom: 16px;
}
.hero-subtitle {
    font-size: 1.3rem; color: var(--accent-dark);
    font-weight: 600; margin-bottom: 12px;
}
.hero-desc {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 500px; margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-item {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-secondary); font-size: 0.95rem;
}
.trust-item i { color: var(--accent); font-size: 1.2rem; }
.trust-item strong { color: var(--text); }

/* Hero Image */
.hero-image { position: relative; }
.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.hero-float-card {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: var(--bg-card); padding: 12px 18px;
    border-radius: var(--radius); box-shadow: var(--shadow-card);
    font-size: 0.85rem; font-weight: 500;
    animation: floatCard 3s ease-in-out infinite;
}
.float-card-1 { top: 15%; left: -30px; animation-delay: 0.5s; }
.float-card-2 { bottom: 20%; right: -20px; animation-delay: 1s; }
.float-emoji { font-size: 1.8rem; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about { background: var(--bg-alt); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-image { position: relative; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; padding: 20px; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow-lg);
}
.badge-number { display: block; font-size: 2rem; font-weight: 900; }
.badge-text { font-size: 0.8rem; font-weight: 500; opacity: 0.9; }
.about-content h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 16px; }
.about-content > p { color: var(--text-secondary); margin-bottom: 28px; font-size: 1.05rem; }
.about-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.about-feature {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all var(--transition);
}
.about-feature:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.feature-icon {
    width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.about-feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.about-feature p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; }
.hygiene-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #e8f5e9, #fff8e1);
    padding: 12px 24px; border-radius: var(--radius-full);
    font-weight: 600; color: var(--primary-dark); font-size: 0.9rem;
    border: 1px solid var(--primary-light);
}
[data-theme="dark"] .hygiene-badge { background: var(--bg-card); color: var(--primary); }
.hygiene-badge i { color: var(--primary); font-size: 1.1rem; }

/* ============================================
   MENU SECTION
   ============================================ */
.menu { background: var(--bg); }
.menu-controls {
    display: flex; gap: 20px; align-items: center;
    flex-wrap: wrap; justify-content: center; margin-bottom: 40px;
}
.search-box {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-alt); border: 2px solid var(--border);
    border-radius: var(--radius-full); padding: 12px 20px;
    flex: 1; max-width: 360px;
    transition: border-color var(--transition);
}
.search-box:focus-within { border-color: var(--primary); }
.search-box i { color: var(--text-muted); }
.search-box input {
    border: none; outline: none; background: transparent;
    font-family: var(--font); font-size: 0.95rem;
    color: var(--text); width: 100%;
}
.search-box input::placeholder { color: var(--text-muted); }
.filter-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    padding: 10px 22px; border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.9rem;
    background: var(--bg-alt); color: var(--text-secondary);
    border: 2px solid var(--border);
    transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border-color: var(--primary);
}

/* Product Grid */
.menu-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all var(--transition); position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-badge {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff; padding: 4px 14px; border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-image {
    width: 100%; height: 200px; overflow: hidden;
    background: linear-gradient(135deg, var(--bg-alt), var(--accent-light));
}
.product-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-info { padding: 20px; }
.product-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.product-price {
    font-size: 1.3rem; font-weight: 800;
    color: var(--primary-dark); margin-bottom: 14px;
}
[data-theme="dark"] .product-price { color: var(--primary); }
.btn-add-cart {
    width: 100%; padding: 12px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-weight: 600; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all var(--transition);
    box-shadow: 0 3px 12px rgba(46,204,64,0.2);
}
.btn-add-cart:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,204,64,0.35); }
.no-results {
    text-align: center; font-size: 1.1rem;
    color: var(--text-muted); padding: 40px 0;
}
