/* ============================================================
   iViRTH Store - Main Stylesheet v2.0
   ============================================================ */

:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --accent: #06b6d4;
    --accent2: #f59e0b;
    --dark: #0f0f1a;
    --dark2: #1a1a2e;
    --dark3: #16213e;
    --card-bg: #1e1e3a;
    --card-border: rgba(124,58,237,0.2);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 30px rgba(124,58,237,0.3);
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --font: 'Inter', sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); background: var(--dark); color: var(--text); line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.hide-sm { display: inline; }

/* ============ TOPBAR ============ */
.topbar { background: linear-gradient(90deg,var(--primary-dark),var(--dark3)); padding: 0.4rem 0; font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid var(--card-border); }
.topbar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 0.5rem; }
.topbar span { display: flex; align-items: center; gap: 0.4rem; }
.topbar a { color: var(--accent); }

/* ============ NAVBAR ============ */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(15,15,26,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--card-border); box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.85rem 1.5rem; }
.brand-logo { display: flex; align-items: center; gap: 0.6rem; }
.brand-icon { font-size: 2rem; color: var(--primary-light); }
.brand-name { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--white); letter-spacing: -0.5px; }
.brand-sub { display: block; font-size: 0.68rem; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-top: -2px; }
.nav-search { flex: 1; max-width: 500px; }
.nav-search form { display: flex; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 50px; overflow: hidden; transition: var(--transition); }
.nav-search form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }
.nav-search input { flex: 1; background: none; border: none; padding: 0.6rem 1.2rem; color: var(--text); font-size: 0.9rem; outline: none; min-width: 0; }
.nav-search button { background: var(--primary); border: none; padding: 0.6rem 1.2rem; color: white; cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.nav-search button:hover { background: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.nav-btn { display: flex; align-items: center; gap: 0.4rem; background: none; border: 1px solid var(--card-border); border-radius: 50px; padding: 0.5rem 0.9rem; color: var(--text); cursor: pointer; font-size: 0.85rem; transition: var(--transition); white-space: nowrap; }
.nav-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.nav-btn.icon-btn { padding: 0.55rem 0.75rem; }
.cart-btn { position: relative; }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--danger); color: white; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--dark2); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 0.5rem; min-width: 200px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: var(--transition); z-index: 200; box-shadow: var(--shadow); }
.dropdown-menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border-radius: 8px; color: var(--text); font-size: 0.88rem; }
.dropdown-menu a:hover { background: rgba(124,58,237,0.1); color: var(--primary-light); }
.dropdown-menu hr { border-color: var(--card-border); margin: 0.4rem 0; }

/* Category Nav */
.cat-nav { border-top: 1px solid var(--card-border); overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav .container { display: flex; gap: 0; padding: 0; }
.cat-nav a { padding: 0.65rem 0.9rem; font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; border-bottom: 2px solid transparent; transition: var(--transition); }
.cat-nav a:hover, .cat-nav a.active { color: var(--primary-light); border-bottom-color: var(--primary); }
.cat-nav .ai-link { color: var(--accent); font-weight: 600; }

/* Mobile Menu */
.mobile-menu-toggle { display: none; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100vh; background: var(--dark2); border-left: 1px solid var(--card-border); z-index: 500; transition: right 0.3s ease; overflow-y: auto; }
.mobile-menu.open { right: 0; }
.mobile-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem; color: var(--text); border-bottom: 1px solid rgba(124,58,237,0.1); font-size: 0.9rem; }
.mobile-menu a:hover { background: rgba(124,58,237,0.1); color: var(--primary-light); }

/* ============ PAGE WRAPPER ============ */
.page-wrapper { min-height: calc(100vh - 200px); }

/* ============ SECTIONS ============ */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-tag { display: inline-block; background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3); color: var(--primary-light); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 0.3rem 1rem; border-radius: 50px; margin-bottom: 0.75rem; }
.section-header h2 { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--white); margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* ============ HERO ============ */
.hero { padding: 5rem 0 3rem; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.3); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.hero-text h1 { font-family: var(--font-head); font-size: clamp(2.5rem,5vw,3.5rem); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 1rem; }
.hero-text h1 span { background: linear-gradient(135deg,#a78bfa,#06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-text p { font-size: 1.05rem; color: var(--text-muted); max-width: 480px; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); border: none; text-decoration: none; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,var(--primary),#5b21b6); color: white; }
.btn-primary:hover { background: linear-gradient(135deg,var(--primary-dark),#4c1d95); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(124,58,237,0.4); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--card-border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); transform: translateY(-1px); }
.btn-accent { background: linear-gradient(135deg,var(--accent2),#d97706); color: white; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(245,158,11,0.4); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Google Button */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 0.75rem; width: 100%; padding: 0.75rem 1.5rem; background: var(--dark2); border: 1px solid var(--card-border); border-radius: var(--radius); color: var(--text); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-google:hover { border-color: rgba(255,255,255,0.3); background: var(--card-bg); color: var(--text); transform: translateY(-1px); }

/* ============ CARDS ============ */
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 1.75rem; }
.card:hover { border-color: rgba(124,58,237,0.4); }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }

/* ============ PRODUCT CARDS ============ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1.25rem; }
.product-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.product-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.4); box-shadow: 0 12px 40px rgba(124,58,237,0.15); }
.product-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--dark2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badges { position: absolute; top: 0.6rem; left: 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; }
.badge { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 6px; }
.badge-sale { background: var(--danger); color: white; }
.badge-custom { background: rgba(124,58,237,0.8); color: white; }
.badge-gift { background: rgba(245,158,11,0.8); color: white; }
.badge-new { background: rgba(16,185,129,0.8); color: white; }
.product-actions { position: absolute; top: 0.6rem; right: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; opacity: 0; transition: var(--transition); }
.product-card:hover .product-actions { opacity: 1; }
.action-btn { background: rgba(30,30,58,0.9); border: 1px solid var(--card-border); border-radius: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; transition: var(--transition); font-size: 0.85rem; text-decoration: none; }
.action-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.product-info { padding: 1rem; }
.product-brand { font-size: 0.72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem; }
.product-name { font-weight: 600; color: var(--white); font-size: 0.9rem; margin-bottom: 0.4rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; margin-bottom: 0.5rem; }
.rating-count { color: var(--text-muted); }
.product-price { margin-bottom: 0.75rem; }
.price-current { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.price-original { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; margin-left: 0.4rem; }
.price-off { font-size: 0.78rem; color: var(--success); margin-left: 0.3rem; font-weight: 600; }
.product-cta { display: flex; gap: 0.5rem; }
.product-cta .btn { flex: 1; justify-content: center; border-radius: 10px; padding: 0.5rem; font-size: 0.82rem; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--dark2); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 0.7rem 1rem; color: var(--text); font-size: 0.9rem; font-family: var(--font); outline: none; transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.form-group select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.88rem; }
.checkbox-label input { width: auto; }

/* ============ PROVIDER CARDS ============ */
.provider-card { display: flex; align-items: center; gap: 1rem; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 1rem; transition: var(--transition); }
.provider-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-2px); }
.provider-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }

/* ============ AI COMPONENTS ============ */
.ai-fab { position: fixed; bottom: 2rem; right: 2rem; width: 64px; height: 64px; background: linear-gradient(135deg,var(--primary),var(--accent)); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; z-index: 400; box-shadow: 0 4px 20px rgba(124,58,237,0.5); transition: var(--transition); }
.ai-fab:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(124,58,237,0.7); }
.ai-fab-label { font-size: 0.6rem; font-weight: 700; color: white; letter-spacing: 1px; margin-top: 2px; }
.ai-panel { position: fixed; bottom: 1rem; right: 1rem; width: min(380px, calc(100vw - 2rem)); max-height: min(580px, calc(100vh - 80px)); background: var(--dark2); border: 1px solid rgba(124,58,237,0.4); border-radius: 20px; z-index: 400; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.5); transform: scale(0.9) translateY(20px); opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.ai-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.ai-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem 0.75rem; border-bottom: 1px solid var(--card-border); flex-shrink: 0; }
.ai-identity { display: flex; align-items: center; gap: 0.6rem; }
.ai-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: white; }
.ai-sub { font-size: 0.7rem; color: var(--accent); }
.ai-panel-actions button { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.3rem 0.5rem; border-radius: 6px; transition: var(--transition); }
.ai-panel-actions button:hover { background: rgba(124,58,237,0.1); color: var(--primary-light); }
.ai-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; scroll-behavior: smooth; }
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 2px; }
.ai-msg { max-width: 88%; }
.ai-msg.bot { align-self: flex-start; }
.ai-msg.user { align-self: flex-end; }
.ai-msg-content { padding: 0.7rem 0.9rem; border-radius: 14px; font-size: 0.85rem; line-height: 1.5; }
.ai-msg.bot .ai-msg-content { background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.2); color: var(--text); border-radius: 4px 14px 14px 14px; }
.ai-msg.user .ai-msg-content { background: linear-gradient(135deg,var(--primary),#5b21b6); color: white; border-radius: 14px 4px 14px 14px; }
.typing-dots { display: flex; gap: 4px; align-items: center; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); animation: typing 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.ai-quick-prompts { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem; flex-shrink: 0; }
.ai-quick-prompts button { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); color: var(--text-muted); border-radius: 20px; padding: 0.3rem 0.7rem; font-size: 0.75rem; cursor: pointer; transition: var(--transition); }
.ai-quick-prompts button:hover { background: rgba(124,58,237,0.2); color: var(--primary-light); }
.ai-input-bar { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid var(--card-border); flex-shrink: 0; }
.ai-input-bar input { flex: 1; background: var(--dark); border: 1px solid var(--card-border); border-radius: 50px; padding: 0.5rem 1rem; color: var(--text); font-size: 0.85rem; outline: none; transition: var(--transition); }
.ai-input-bar input:focus { border-color: var(--primary); }
.ai-input-bar button { background: var(--primary); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.ai-input-bar button:hover { background: var(--primary-dark); }

/* ============ TOAST ============ */
#toastContainer { position: fixed; bottom: 6rem; right: 1.5rem; z-index: 500; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 0.6rem; background: var(--dark2); border: 1px solid var(--card-border); border-radius: 12px; padding: 0.75rem 1rem; min-width: 240px; max-width: 320px; box-shadow: var(--shadow); font-size: 0.85rem; pointer-events: all; opacity: 0; transform: translateX(20px); transition: all 0.3s ease; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast-icon.success { color: var(--success); }
.toast-icon.error { color: var(--danger); }
.toast-icon.info { color: var(--accent); }

/* ============ FOOTER ============ */
.footer { background: var(--dark2); border-top: 1px solid var(--card-border); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { width: 38px; height: 38px; background: rgba(124,58,237,0.1); border: 1px solid var(--card-border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; transition: var(--transition); }
.social-links a:hover { background: rgba(124,58,237,0.2); color: var(--primary-light); border-color: rgba(124,58,237,0.4); }
.footer h4 { font-family: var(--font-head); font-weight: 700; color: white; font-size: 0.9rem; margin-bottom: 1rem; }
.footer > .container > .footer-grid > div > a { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; transition: var(--transition); }
.footer > .container > .footer-grid > div > a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--card-border); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ============ ANIMATE ON SCROLL ============ */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ============ STARS ============ */
.stars { color: #f59e0b; font-size: 0.9rem; }

/* ============ TABLES ============ */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { text-align: left; padding: 0.75rem 1rem; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--card-border); }
td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(124,58,237,0.08); vertical-align: middle; }
tr:hover td { background: rgba(124,58,237,0.04); }

/* ============ STATUS BADGES ============ */
.status-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 50px; }
.status-pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-confirmed { background: rgba(6,182,212,0.15); color: var(--accent); }
.status-processing { background: rgba(124,58,237,0.15); color: var(--primary-light); }
.status-shipped { background: rgba(99,102,241,0.15); color: #818cf8; }
.status-delivered { background: rgba(16,185,129,0.15); color: var(--success); }
.status-cancelled { background: rgba(239,68,68,0.15); color: var(--danger); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-ctas { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-search { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hide-sm { display: none; }
    .section { padding: 2.5rem 0; }
    .section-header h2 { font-size: 1.7rem; }
    .products-grid { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .cat-nav { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .ai-panel { bottom: 0; right: 0; left: 0; width: 100%; border-radius: 20px 20px 0 0; max-height: 70vh; }
    .ai-fab { bottom: 1.5rem; right: 1rem; width: 56px; height: 56px; }
    #toastContainer { bottom: 5rem; right: 1rem; left: 1rem; }
    .toast { min-width: unset; max-width: 100%; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .products-grid { grid-template-columns: repeat(2,1fr); }
    .container { padding: 0 1rem; }
    .nav-inner { padding: 0.75rem 1rem; }
    .btn-lg { padding: 0.7rem 1.5rem; font-size: 0.92rem; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.5); }

/* ============ UTILITIES ============ */
.gradient-text { background: linear-gradient(135deg,#a78bfa,#06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.glow { box-shadow: var(--shadow-glow); }
.glass { background: rgba(30,30,58,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

