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

:root {
  --primary: #2E7D5E;
  --primary-dark: #1a5c43;
  --primary-light: #e8f5ef;
  --accent: #F4A261;
  --text-dark: #1a1a2e;
  --text-mid: #555770;
  --text-light: #9296a4;
  --bg: #f9fbfa;
  --bg-card: #ffffff;
  --border: #e4e9e6;
  --shadow-sm: 0 2px 8px rgba(46,125,94,0.08);
  --shadow-md: 0 8px 32px rgba(46,125,94,0.14);
  --shadow-lg: 0 20px 60px rgba(46,125,94,0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--bg); color: var(--text-dark); line-height: 1.6; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), #52c094); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section { padding: 80px 0; }
.bg-light { background: var(--primary-light); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: white; padding: 14px 28px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: var(--transition); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--primary); color: var(--primary); padding: 12px 26px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; text-decoration: none; transition: var(--transition); background: transparent; cursor: pointer; }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-mid); font-size: 16px; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: var(--transition); }
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 16px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 20px; color: var(--primary); flex-shrink: 0; }
.brand-logo { height: 32px; width: 32px; display: block; object-fit: contain; flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 20px; color: var(--primary); }
.search-bar { flex: 1; max-width: 520px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-md); display: flex; align-items: center; padding: 8px 8px 8px 14px; gap: 8px; transition: var(--transition); }
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,125,94,0.12); }
.search-icon { font-size: 16px; color: var(--text-light); flex-shrink: 0; }
.search-bar input { flex: 1; border: none; background: transparent; font-family: inherit; font-size: 14px; color: var(--text-dark); outline: none; }
.btn-search { background: var(--primary); color: white; border: none; padding: 7px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.btn-search:hover { background: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-link { color: var(--text-mid); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; transition: var(--transition); }
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.btn-download { background: var(--primary); color: white; border: none; padding: 9px 18px; border-radius: var(--radius-md); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; transition: var(--transition); }
.btn-download:hover { background: var(--primary-dark); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-dark); }
.mobile-menu { display: none; flex-direction: column; padding: 12px 24px 16px; gap: 4px; border-top: 1px solid var(--border); }
.mobile-menu a { color: var(--text-dark); text-decoration: none; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; background: linear-gradient(165deg, #f9fbfa 0%, #e8f5ef 60%, #d4eddf 100%); position: relative; overflow: hidden; }
.hero-bg-circle { position: absolute; border-radius: 50%; opacity: 0.12; pointer-events: none; }
.hero-bg-circle.c1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -150px; }
.hero-bg-circle.c2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; left: -100px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: white; border: 1.5px solid var(--primary); color: var(--primary); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 100px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.hero-text h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-sub { color: var(--text-mid); font-size: 18px; margin-bottom: 32px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; align-items: center; gap: 20px; }
.stat-item { display: flex; flex-direction: column; }
.stat-item strong { font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-item span { font-size: 12px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card-float { position: absolute; background: white; border-radius: var(--radius-md); padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-md); font-size: 13px; z-index: 2; animation: floatY 3s ease-in-out infinite; }
.hero-card-float span { font-size: 24px; }
.hero-card-float div { display: flex; flex-direction: column; }
.hero-card-float strong { font-weight: 700; font-size: 13px; }
.hero-card-float small { color: var(--text-light); font-size: 11px; }
.download-btn.disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(0.8); }
.beta-notice { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-md); padding: 14px 18px; margin: 20px 0; display: flex; align-items: center; gap: 14px; text-align: left; color: white; backdrop-filter: blur(4px); }
.beta-badge { background: #ffc107; color: #000; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; letter-spacing: 0.5px; }
.beta-notice p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.9); line-height: 1.5; }
.beta-notice strong { color: #ffc107; }
.card-1 { top: 10%; left: -10%; animation-delay: 0s; }
.card-2 { bottom: 15%; right: -5%; animation-delay: 1.5s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Phone mockup */
.phone-mock { width: 220px; height: 420px; background: white; border-radius: 36px; box-shadow: var(--shadow-lg); padding: 12px; border: 6px solid #e0e8e4; position: relative; z-index: 1; }
.phone-screen { width: 100%; height: 100%; background: var(--bg); border-radius: 26px; overflow: hidden; }
.phone-header { background: var(--primary); color: white; text-align: center; padding: 12px; font-weight: 700; font-size: 14px; }
.phone-products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.phone-product-skeleton { height: 100px; background: linear-gradient(90deg, #e8f5ef 25%, #d4eddf 50%, #e8f5ef 75%); background-size: 200% 100%; border-radius: 12px; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== CATEGORIES ===== */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.category-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 20px 12px; text-align: center; cursor: pointer; transition: var(--transition); text-decoration: none; color: var(--text-dark); }
.category-card:hover, .category-card.active { border-color: var(--primary); background: var(--primary-light); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.category-card.active .cat-icon, .category-card.active .cat-label { color: var(--primary); }
.cat-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.cat-label { font-size: 12px; font-weight: 700; color: var(--text-mid); }

/* ===== PROMO ===== */
.promo-section { padding: 0 0 24px; }
.promo-banner { background: linear-gradient(135deg, var(--primary), #52c094); border-radius: var(--radius-lg); padding: 20px 28px; color: white; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 16px; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--bg-card); border: 1.5px solid var(--border); color: var(--text-mid); padding: 7px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.chip:hover, .chip.active { background: var(--primary); border-color: var(--primary); color: white; }
.sort-select-wrap select { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-dark); cursor: pointer; outline: none; transition: var(--transition); }
.sort-select-wrap select:focus { border-color: var(--primary); }

/* ===== PRODUCT GRID ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.product-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); cursor: pointer; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.product-card.skeleton-card { height: 300px; background: linear-gradient(90deg, #e8f5ef 25%, #d4eddf 50%, #e8f5ef 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.product-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--primary-light); display: block; }
.product-img-placeholder { width: 100%; aspect-ratio: 1; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--primary); }
.product-info { padding: 12px 14px 14px; }
.product-name { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.product-price { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-rating { font-size: 12px; color: var(--text-mid); }
.product-sold { font-size: 11px; color: var(--text-light); font-weight: 600; }
.product-seller { font-size: 11px; color: var(--text-light); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-badge { display: inline-block; background: #FFF3E0; color: #E65100; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-bottom: 6px; }

/* Load more */
.load-more-wrap { text-align: center; margin-top: 40px; }
.btn-load-more { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 12px 32px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; cursor: pointer; transition: var(--transition); }
.btn-load-more:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 28px 24px; transition: var(--transition); }
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-mid); font-size: 14px; line-height: 1.7; }

/* ===== DOWNLOAD ===== */
.download-section { background: linear-gradient(165deg, #1a5c43 0%, #2E7D5E 50%, #3d9970 100%); color: white; }
.download-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.download-text .hero-badge { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: white; }
.download-text h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.download-text h2 .gradient-text { background: linear-gradient(135deg, #a8edcc, white); -webkit-background-clip: text; background-clip: text; }
.download-text p { opacity: 0.85; font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.download-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.download-btn { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.3); border-radius: var(--radius-md); padding: 12px 20px; text-decoration: none; color: white; transition: var(--transition); backdrop-filter: blur(8px); }
.download-btn:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.dl-icon { font-size: 28px; }
.download-btn div { display: flex; flex-direction: column; }
.download-btn small { font-size: 11px; opacity: 0.75; }
.download-btn strong { font-size: 16px; font-weight: 700; }
.dl-note { font-size: 13px; opacity: 0.7; }

/* Download visual */
.download-phones { display: flex; justify-content: center; }
.dl-phone { width: 200px; height: 380px; background: white; border-radius: 32px; padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.3); border: 5px solid rgba(255,255,255,0.2); }
.dl-phone-screen { width: 100%; height: 100%; background: var(--bg); border-radius: 24px; overflow: hidden; }
.dl-screen-content { height: 100%; }
.dl-screen-header { background: var(--primary); color: white; text-align: center; padding: 14px; font-weight: 700; font-size: 15px; }
.dl-product-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 8px 0; }
.dl-p { height: 110px; background: linear-gradient(145deg, #e8f5ef, #d4eddf); border-radius: 12px; }

/* ===== ABOUT ===== */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.about-text p { color: var(--text-mid); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-stat { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.about-stat-num { font-size: 28px; font-weight: 800; color: var(--primary); }
.about-stat span:last-child { font-size: 13px; color: var(--text-light); font-weight: 600; }

/* ===== FOOTER ===== */
.footer { background: var(--text-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.footer-links h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-links a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; text-align: center; font-size: 13px; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: var(--radius-xl); max-width: 580px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg); border: none; font-size: 18px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 1; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--primary-light); }
.modal-body { padding: 28px; }
.modal-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 20px; background: var(--primary-light); }
.modal-img-ph { width: 100%; aspect-ratio: 1; background: var(--primary-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 60px; margin-bottom: 20px; }
.modal-name { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.modal-price { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.modal-meta { display: flex; gap: 16px; margin-bottom: 16px; }
.modal-meta-item { font-size: 13px; color: var(--text-mid); }
.modal-seller { background: var(--primary-light); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--primary-dark); }
.modal-desc { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; }
.modal-btn-cart { flex: 1; background: var(--primary); color: white; border: none; padding: 14px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; cursor: pointer; transition: var(--transition); }
.modal-btn-cart:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--text-dark); color: white; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; z-index: 3000; transition: transform 0.3s ease; white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== NAV AUTH BUTTONS ===== */
.btn-login-nav { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 7px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.btn-login-nav:hover { background: var(--primary); color: white; }
.btn-cart-nav { position: relative; background: transparent; border: 1.5px solid var(--border); padding: 7px 14px; border-radius: var(--radius-sm); font-size: 16px; cursor: pointer; transition: var(--transition); }
.btn-cart-nav:hover { border-color: var(--primary); background: var(--primary-light); }
.cart-badge { position: absolute; top: -6px; right: -6px; background: #e53935; color: white; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid white; }

/* ===== USER AVATAR & DROPDOWN ===== */
.nav-user { position: relative; }
.btn-user-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--primary); background: var(--primary-light); cursor: pointer; overflow: hidden; padding: 0; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.btn-user-avatar:hover { box-shadow: 0 0 0 3px rgba(46,125,94,0.2); }
.btn-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
#userAvatarFallback { font-size: 18px; }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--border); width: 220px; z-index: 1100; display: none; overflow: hidden; animation: slideUp 0.2s ease; }
.user-dropdown.open { display: block; }
.user-dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--primary-light); }
.user-dropdown-header strong { display: block; font-size: 14px; color: var(--text-dark); font-weight: 700; }
.user-dropdown-header small { font-size: 12px; color: var(--text-light); word-break: break-all; }
.user-dropdown a { display: block; padding: 12px 16px; color: var(--text-dark); text-decoration: none; font-size: 14px; font-weight: 600; transition: var(--transition); }
.user-dropdown a:hover { background: var(--primary-light); color: var(--primary); }

/* ===== AUTH MODAL ===== */
.auth-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); z-index: 2500; display: none; align-items: center; justify-content: center; padding: 24px; }
.auth-overlay.open { display: flex; }
.auth-modal { background: white; border-radius: var(--radius-xl); max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; animation: slideUp 0.3s ease; padding: 32px 28px; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header .auth-brand-logo { height: 48px; width: 48px; display: block; object-fit: contain; margin: 0 auto 12px; }
.auth-header h2 { font-size: 22px; font-weight: 800; margin-top: 8px; color: var(--text-dark); }
.auth-header p { color: var(--text-light); font-size: 14px; margin-top: 4px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-mid); margin-bottom: 6px; }
.auth-field input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; color: var(--text-dark); outline: none; transition: var(--transition); background: var(--bg); }
.auth-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,125,94,0.1); }
.btn-auth-submit { width: 100%; background: var(--primary); color: white; border: none; padding: 13px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; cursor: pointer; transition: var(--transition); }
.btn-auth-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-light); font-weight: 600; }
.btn-google { width: 100%; background: white; border: 1.5px solid var(--border); color: var(--text-dark); padding: 12px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: var(--transition); }
.btn-google:hover { background: #f8f9fa; border-color: #ccc; box-shadow: var(--shadow-sm); }
.btn-google svg { flex-shrink: 0; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-light); }
.auth-switch a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-error { background: #FFF3F3; border: 1px solid #f5c6cb; color: #c0392b; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; margin-top: 14px; text-align: center; }

.footer-brand .footer-logo { height: 32px; width: 32px; display: block; object-fit: contain; margin-bottom: 12px; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 2000; display: none; }
.cart-overlay.open { display: block; }
.cart-sidebar { position: fixed; top: 0; right: 0; width: 400px; max-width: 92vw; height: 100vh; background: white; box-shadow: -8px 0 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; animation: slideInRight 0.3s ease; z-index: 2001; }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty span { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.5; }
.cart-empty p { font-weight: 700; color: var(--text-mid); font-size: 16px; margin-bottom: 4px; }
.cart-empty small { color: var(--text-light); font-size: 13px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); position: relative; }
.cart-item-img { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--primary-light); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--primary-light); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.cart-item-seller { font-size: 11px; color: var(--text-light); margin-bottom: 6px; }
.cart-item-qty { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.cart-item-qty button { width: 28px; height: 28px; border: none; background: var(--bg); font-size: 14px; font-weight: 700; cursor: pointer; color: var(--text-dark); transition: var(--transition); }
.cart-item-qty button:hover { background: var(--primary-light); color: var(--primary); }
.cart-item-qty span { width: 30px; text-align: center; font-size: 13px; font-weight: 700; }
.cart-item-remove { position: absolute; top: 14px; right: 0; background: none; border: none; font-size: 14px; color: var(--text-light); cursor: pointer; transition: var(--transition); padding: 4px; }
.cart-item-remove:hover { color: #e53935; }
.cart-footer { padding: 20px 24px; border-top: 1.5px solid var(--border); background: var(--bg); }
.cart-total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cart-total-row span { font-size: 15px; color: var(--text-mid); font-weight: 600; }
.cart-total-row strong { font-size: 20px; font-weight: 800; color: var(--primary); }
.btn-checkout { width: 100%; background: var(--primary); color: white; border: none; padding: 14px; border-radius: var(--radius-md); font-weight: 700; font-size: 16px; cursor: pointer; transition: var(--transition); }
.btn-checkout:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-actions { display: none; }
  .hamburger { display: block; }
  .search-bar { max-width: 100%; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { display: none; }
  .download-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .download-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .download-buttons { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .nav-inner { padding: 12px 16px; }
}

