/* ===== CSS RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f4f6fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #f8f9fc;
  --primary: #1a1a3e;
  --primary-2: #2d2d5a;
  --accent: #f5a623;
  --accent-2: #e8941a;
  --text: #1a1a3e;
  --text-2: #5a6080;
  --muted: #9aa0b4;
  --border: #e2e6f0;
  --success: #22c55e;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(26,26,62,0.08);
  --shadow-lg: 0 8px 32px rgba(26,26,62,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 100; background: var(--bg-2); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.2s; }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--primary); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { font-size: 12px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); padding: 5px 10px; border-radius: 6px; cursor: pointer; background: var(--bg-2); transition: all 0.2s; }
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.cart-btn { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--primary); color: white; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.cart-btn:hover { background: var(--primary-2); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--primary); font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ===== HERO ===== */
.hero { background: var(--bg-2); padding: 48px 0; border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-content { }
.hero-badge { display: inline-block; background: #fff3d4; color: var(--accent-2); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.15; color: var(--primary); margin-bottom: 16px; letter-spacing: -1px; }
.hero p { font-size: 16px; color: var(--text-2); margin-bottom: 28px; max-width: 480px; line-height: 1.7; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--primary); padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 700; transition: all 0.2s; }
.hero-cta:hover { background: var(--accent-2); transform: translateY(-1px); }
.hero-img { position: relative; }
.hero-img img { width: 100%; height: 380px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); }

/* ===== CATEGORIES ===== */
.categories { padding: 32px 0 0; }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill { padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); cursor: pointer; transition: all 0.2s; }
.cat-pill:hover, .cat-pill.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== PRODUCTS ===== */
.products-section { padding: 40px 0; }
.products-section h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all 0.25s; cursor: pointer; position: relative; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card.hidden { display: none; }
.product-img { width: 100%; height: 200px; object-fit: cover; background: var(--card-2); }
.product-info { padding: 16px; }
.product-cat-label { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-name { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 6px; line-height: 1.4; }
.product-desc { font-size: 12px; color: var(--text-2); margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.product-price span { font-size: 13px; font-weight: 500; color: var(--muted); }
.add-btn { padding: 8px 16px; background: var(--accent); color: var(--primary); border-radius: 8px; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.add-btn:hover { background: var(--accent-2); }
.add-btn.added { background: var(--success); color: white; }

/* ===== FEATURES ===== */
.features { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { text-align: center; padding: 24px 16px; }
.feature-icon { width: 48px; height: 48px; background: #fff3d4; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.feature-icon svg { width: 24px; height: 24px; color: var(--accent); }
.feature-title { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.feature-desc { font-size: 13px; color: var(--text-2); }

/* ===== CART DRAWER ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(26,26,62,0.4); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: 0; width: 420px; max-width: 95vw; height: 100vh; background: var(--bg-2); z-index: 201; transform: translateX(100%); transition: transform 0.3s ease; box-shadow: -4px 0 24px rgba(26,26,62,0.15); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-drawer-header h2 { font-size: 18px; font-weight: 700; color: var(--primary); }
.cart-close { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--card-2); cursor: pointer; transition: background 0.2s; }
.cart-close:hover { background: var(--border); }
.cart-close svg { width: 18px; height: 18px; color: var(--text-2); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--card-2); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--accent-2); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--bg-2); transition: all 0.15s; }
.qty-btn:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove { color: var(--muted); cursor: pointer; font-size: 12px; margin-top: 4px; display: inline-block; }
.cart-item-remove:hover { color: #ef4444; }
.cart-empty { text-align: center; padding: 48px 24px; color: var(--text-2); }
.cart-empty svg { width: 64px; height: 64px; color: var(--border); margin: 0 auto 16px; }
.cart-empty p { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.cart-empty span { font-size: 13px; color: var(--muted); }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--bg-2); }
.cart-summary { margin-bottom: 16px; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: var(--text-2); }
.cart-summary-row.total { font-size: 18px; font-weight: 800; color: var(--primary); padding-top: 8px; border-top: 1px solid var(--border); margin-top: 8px; }
.cart-summary-row.total span:last-child { color: var(--accent); }
.paypal-checkout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 20px; background: #FFC439; color: #003087; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; margin-bottom: 8px; }
.paypal-checkout-btn:hover { background: #e6b030; }
.cart-checkout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 20px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.cart-checkout-btn:hover { background: var(--primary-2); }
.cart-btns-row { display: flex; gap: 8px; }
.cart-btns-row button { flex: 1; }
.cart-continue-btn { display: block; width: 100%; padding: 10px; text-align: center; font-size: 13px; color: var(--text-2); border: 1px solid var(--border); border-radius: 8px; margin-top: 8px; transition: all 0.2s; }
.cart-continue-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ===== CHECKOUT MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(26,26,62,0.5); z-index: 300; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-2); border-radius: 16px; width: 520px; max-width: 95vw; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: scale(0.95); transition: transform 0.3s; }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 18px; font-weight: 700; color: var(--primary); }
.modal-close { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--card-2); cursor: pointer; transition: background 0.2s; }
.modal-close:hover { background: var(--border); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.form-group input, .form-group textarea, .form-group select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--font); color: var(--text); background: var(--bg); transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 80px; }
.paypal-divider { text-align: center; position: relative; margin: 16px 0; color: var(--text-2); font-size: 12px; }
.paypal-divider::before, .paypal-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.paypal-divider::before { left: 0; }
.paypal-divider::after { right: 0; }
.btn-submit { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: var(--primary-2); }
.success-state { text-align: center; padding: 32px 24px; }
.success-icon { width: 64px; height: 64px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.success-icon svg { width: 32px; height: 32px; color: var(--success); }
.success-state h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.success-state p { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.success-close { padding: 12px 32px; background: var(--primary); color: white; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ===== FOOTER ===== */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: white; font-size: 24px; margin-bottom: 12px; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h3 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero h1 { font-size: 32px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }