/* ===== VARIABLES ===== */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FFF0E8;
    --secondary: #2E4057;
    --accent: #4ECDC4;
    --success: #25D366;
    --danger: #E74C3C;
    --bg: #FAFAFA;
    --card-bg: #FFFFFF;
    --text: #333333;
    --text-light: #777777;
    --border: #EEEEEE;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Nunito', -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); cursor: pointer; }
.logo span { color: var(--secondary); }
.nav-right { display: flex; gap: 12px; align-items: center; }
.nav-link { font-weight: 600; font-size: 0.9rem; color: var(--secondary); background: none; border: none; cursor: pointer; font-family: inherit; }
.lang-toggle {
    background: var(--secondary); color: white;
    border: none; padding: 6px 12px; border-radius: 20px;
    font-size: 0.8rem; cursor: pointer; font-weight: 600; font-family: inherit;
}
.cart-btn {
    position: relative; background: var(--primary); color: white;
    border: none; padding: 8px 16px; border-radius: 25px;
    font-weight: 700; font-size: 0.9rem; cursor: pointer; font-family: inherit;
    transition: all 0.3s;
}
.cart-btn:hover { background: var(--primary-dark); }
.cart-badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--danger); color: white;
    width: 20px; height: 20px; border-radius: 50%;
    font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.cart-badge.hidden { display: none; }

/* ===== HERO ===== */
.hero {
    margin-top: 60px; padding: 60px 20px 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #E8F8F5 100%);
}
.hero-emoji { font-size: 3.5rem; margin-bottom: 16px; }
.hero h1 { font-size: 2rem; color: var(--secondary); margin-bottom: 8px; }
.hero p { color: var(--text-light); font-size: 1rem; max-width: 500px; margin: 0 auto 28px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    display: inline-block; padding: 14px 32px; border-radius: 30px;
    background: var(--primary); color: white;
    font-weight: 800; font-size: 1rem; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary {
    display: inline-block; padding: 14px 32px; border-radius: 30px;
    background: white; color: var(--primary);
    font-weight: 800; font-size: 1rem; transition: all 0.3s;
    border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-light); }

/* ===== HOME CATEGORIES ===== */
.home-categories {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; padding: 40px 20px;
    max-width: 700px; margin: 0 auto;
}
.home-cat-card {
    text-align: center; padding: 30px 16px;
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: all 0.3s;
    cursor: pointer;
}
.home-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.home-cat-icon { font-size: 3rem; margin-bottom: 12px; }
.home-cat-card h3 { font-size: 1rem; color: var(--secondary); }
.home-cat-card p { font-size: 0.8rem; color: var(--text-light); }

/* ===== WHY US ===== */
.why-us {
    padding: 50px 20px; max-width: 900px; margin: 0 auto;
    text-align: center;
}
.why-us h2 { font-size: 1.6rem; color: var(--secondary); margin-bottom: 30px; }
.features-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.feature-card {
    text-align: center; padding: 28px 20px;
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature-icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 0.95rem; color: var(--secondary); margin-bottom: 6px; }
.feature-card p { font-size: 0.8rem; color: var(--text-light); }

/* ===== BRANDS ===== */
.brands {
    padding: 50px 20px; text-align: center;
    background: white;
}
.brands h2 { font-size: 1.6rem; color: var(--secondary); margin-bottom: 24px; }
.brand-grid {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center; max-width: 700px; margin: 0 auto;
}
.brand-item {
    padding: 10px 20px; border-radius: 25px;
    border: 2px solid var(--border); font-weight: 700;
    font-size: 0.9rem; color: var(--secondary);
    transition: all 0.3s;
}
.brand-item:hover { border-color: var(--primary); color: var(--primary); }
.brand-flag { margin-right: 4px; }

/* ===== CTA ===== */
.cta {
    padding: 50px 20px; text-align: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #1a2a3a 100%);
    color: white;
}
.cta h2 { font-size: 1.4rem; margin-bottom: 8px; }
.cta p { opacity: 0.8; margin-bottom: 20px; }
.btn-wa {
    display: inline-block; padding: 14px 36px; border-radius: 30px;
    background: var(--success); color: white;
    font-weight: 800; font-size: 1.1rem; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.btn-wa:hover { transform: translateY(-2px); opacity: 0.9; }

/* ===== FOOTER ===== */
footer {
    padding: 40px 20px; background: #1a1a2e; color: white; text-align: center;
}
.footer-logo { font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,0.7); font-weight: 600; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { margin-bottom: 16px; }
.footer-contact a { display: block; color: rgba(255,255,255,0.6); font-size: 0.85rem; margin: 4px 0; transition: color 0.3s; }
.footer-contact a:hover { color: var(--accent); }
.copyright { font-size: 0.75rem; opacity: 0.4; }

/* ===== FLOATING WHATSAPP ===== */
.wa-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--success); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 99; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ===== TOOLBAR (SHOP) ===== */
.toolbar {
    max-width: 900px; margin: 0 auto;
    padding: 20px 16px 8px;
    display: flex; flex-direction: column; gap: 12px;
}
.search-box {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: 12px; font-size: 1rem; font-family: inherit;
    outline: none; transition: border 0.3s;
}
.search-box:focus { border-color: var(--primary); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 18px; border-radius: 25px;
    border: 2px solid var(--primary); background: white;
    color: var(--primary); font-weight: 700; cursor: pointer;
    transition: all 0.3s; font-size: 0.85rem; font-family: inherit;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; }

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px; padding: 16px;
    max-width: 900px; margin: 0 auto;
}
.product-card {
    background: var(--card-bg); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    transition: transform 0.3s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); }
.product-img {
    width: 100%; height: 140px;
    background: linear-gradient(135deg, #f5f5f5, #ebebeb);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; position: relative;
}
.product-flag { position: absolute; top: 8px; right: 8px; font-size: 1.2rem; }
.product-info { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 0.65rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 0.82rem; font-weight: 700; color: var(--secondary); margin: 3px 0; }
.product-desc { font-size: 0.72rem; color: var(--text-light); margin-bottom: 8px; flex: 1; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1rem; font-weight: 800; color: var(--primary); }
.product-weight { font-size: 0.7rem; color: var(--text-light); }
.add-btn {
    background: var(--primary); color: white; border: none;
    width: 32px; height: 32px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.add-btn:hover { background: var(--primary-dark); transform: scale(1.1); }
.add-btn.added { background: var(--success); }
.order-btn {
    display: block; width: calc(100% - 24px); margin: 0 12px 12px;
    padding: 10px; border: none; border-radius: 10px;
    background: var(--success); color: white;
    font-weight: 700; font-size: 0.85rem;
    cursor: pointer; transition: opacity 0.3s;
}
.order-btn:hover { opacity: 0.85; }

/* ===== CART DRAWER ===== */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 200;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed; top: 0; right: -100%; width: 90%; max-width: 400px;
    height: 100%; background: white; z-index: 201;
    transition: right 0.3s ease; display: flex; flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.cart-drawer.open { right: 0; }
.cart-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 { font-size: 1.2rem; color: var(--secondary); }
.cart-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); padding: 4px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--text-light); }
.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.cart-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--border); align-items: center;
}
.cart-item-emoji { font-size: 2rem; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 10px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.85rem; font-weight: 700; color: var(--secondary); }
.cart-item-brand { font-size: 0.7rem; color: var(--text-light); }
.cart-item-price { font-size: 0.9rem; font-weight: 800; color: var(--primary); }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--border); background: white;
    font-size: 1rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    font-weight: 700; color: var(--secondary); transition: all 0.2s;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-btn.remove:hover { border-color: var(--danger); color: var(--danger); }
.qty-num { font-weight: 800; min-width: 20px; text-align: center; }
.cart-footer { padding: 16px 20px; border-top: 2px solid var(--border); background: #FAFAFA; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cart-total-label { font-weight: 700; color: var(--secondary); }
.cart-total-price { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.cart-delivery { font-size: 0.75rem; color: var(--text-light); margin-bottom: 12px; }
.checkout-btn {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    background: var(--primary); color: white;
    font-size: 1rem; font-weight: 800; cursor: pointer;
    font-family: inherit; transition: all 0.3s; margin-bottom: 8px;
}
.checkout-btn:hover { background: var(--primary-dark); }
.checkout-wa {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    background: var(--success); color: white;
    font-size: 1rem; font-weight: 800; cursor: pointer;
    font-family: inherit; transition: all 0.3s;
}
.checkout-wa:hover { opacity: 0.9; }

/* ===== CHECKOUT MODAL ===== */
.checkout-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 300;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.checkout-modal.open { display: flex; }
.checkout-box {
    background: white; border-radius: var(--radius);
    width: 100%; max-width: 450px; max-height: 90vh;
    overflow-y: auto; box-shadow: var(--shadow-lg);
}
.checkout-header {
    padding: 20px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.checkout-header h2 { color: var(--secondary); font-size: 1.1rem; }
.checkout-body { padding: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; color: var(--secondary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px; border: 2px solid var(--border);
    border-radius: 10px; font-size: 0.95rem; font-family: inherit;
    outline: none; transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 60px; }
.order-summary { background: #f9f9f9; border-radius: 10px; padding: 12px; margin-bottom: 16px; }
.order-line { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 4px 0; }
.order-line.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 8px; font-weight: 800; font-size: 1rem; color: var(--primary); }
.payment-options { display: flex; flex-direction: column; gap: 8px; }
.payment-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border: 2px solid var(--border);
    border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.payment-opt:hover, .payment-opt.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-radio {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--border); display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.payment-opt.selected .payment-radio { border-color: var(--primary); }
.payment-opt.selected .payment-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.payment-opt-icon { font-size: 1.3rem; }
.payment-opt-text { font-weight: 700; font-size: 0.9rem; }
.submit-order {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    background: var(--primary); color: white;
    font-size: 1rem; font-weight: 800; cursor: pointer;
    font-family: inherit; transition: all 0.3s; margin-top: 8px;
}
.submit-order:hover { background: var(--primary-dark); }

/* ===== SUCCESS MODAL ===== */
.success-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 400;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.success-modal.open { display: flex; }
.success-box {
    background: white; border-radius: var(--radius);
    padding: 40px 30px; text-align: center; max-width: 400px;
    box-shadow: var(--shadow-lg);
}
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-box h2 { color: var(--secondary); margin-bottom: 8px; }
.success-box p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.success-btn {
    padding: 12px 30px; border: none; border-radius: 10px;
    background: var(--primary); color: white;
    font-weight: 700; cursor: pointer; font-family: inherit; font-size: 0.95rem;
}

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--secondary); color: white;
    padding: 12px 24px; border-radius: 25px;
    font-weight: 700; font-size: 0.9rem;
    z-index: 500; transition: transform 0.3s; white-space: nowrap;
    box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== CATALOGUE TABLE ===== */
.catalogue-section { max-width: 900px; margin: 0 auto; padding: 20px 16px 40px; }
.catalogue-section h2 { font-size: 1.3rem; color: var(--secondary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.catalogue-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 30px; }
.catalogue-table th { background: var(--secondary); color: white; padding: 12px 16px; text-align: left; font-size: 0.85rem; }
.catalogue-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.catalogue-table tr:hover td { background: var(--primary-light); }
.catalogue-table .price { font-weight: 800; color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
    .features-grid { grid-template-columns: 1fr; }
    .home-categories { grid-template-columns: 1fr; gap: 12px; }
    .hero h1 { font-size: 1.5rem; }
    .cart-drawer { width: 95%; }
    .catalogue-table { font-size: 0.78rem; }
    .catalogue-table th, .catalogue-table td { padding: 8px 10px; }
}

/* ===== ANIMATIONS ===== */
@keyframes cartBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.cart-bounce { animation: cartBounce 0.3s ease; }
