/* ============================================================
   NANO QUETTA — STYLESHEET (matches your header.php / footer.php / index.php)
   ============================================================ */

:root[data-theme="light"] {
    --bg: #ffffff;
    --bg-2: #f7f8fa;
    --bg-3: #eef0f5;
    --surface: #ffffff;
    --surface-2: #f7f8fa;
    --text: #0a0a15;
    --text-2: #3a3d4d;
    --text-muted: #6b6f80;
    --text-faint: #9a9dab;
    --border: #e6e8ee;
    --border-2: #d5d8e0;
    --primary: #2563eb;
    --primary-h: #1d4ed8;
    --primary-soft: #eff4ff;
    --dark: #0b0d17;
    --dark-2: #1a1d2e;
    --success: #059669;
    --success-soft: #ecfdf5;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --star: #f59e0b;
    --shadow-sm: 0 2px 8px rgba(10,10,20,0.06);
    --shadow: 0 4px 16px rgba(10,10,20,0.08);
    --shadow-lg: 0 12px 40px rgba(10,10,20,0.12);
    --shadow-xl: 0 24px 60px rgba(10,10,20,0.15);
}

:root[data-theme="dark"] {
    --bg: #0b0d17;
    --bg-2: #0f1220;
    --bg-3: #141828;
    --surface: #11141f;
    --surface-2: #171b2c;
    --text: #f5f6fa;
    --text-2: #c8cbd8;
    --text-muted: #8b8fa0;
    --text-faint: #5a5e72;
    --border: #232637;
    --border-2: #2e3147;
    --primary: #3b82f6;
    --primary-h: #60a5fa;
    --primary-soft: rgba(59,130,246,0.12);
    --dark: #ffffff;
    --dark-2: #f0f2f8;
    --success: #10b981;
    --success-soft: rgba(16,185,129,0.12);
    --danger: #ef4444;
    --danger-soft: rgba(239,68,68,0.12);
    --warning: #f59e0b;
    --warning-soft: rgba(245,158,11,0.12);
    --star: #fbbf24;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    --shadow: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.6);
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; width: 100%; }
.site-main { flex: 1; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: 44px; } h2 { font-size: 32px; } h3 { font-size: 22px; } h4 { font-size: 18px; } h5 { font-size: 15px; }

.section-eyebrow { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section-title { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.hide-md { display: inline-flex; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; font-size: 14px; font-weight: 600; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: all 0.18s; white-space: nowrap; }
.btn:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); border-color: var(--primary-h); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- FORMS ---------- */
.form-control { width: 100%; padding: 12px 16px; font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); outline: none; transition: all 0.15s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }

/* ---------- FLASH ---------- */
.flash { padding: 12px 20px; font-size: 14px; font-weight: 500; }
.flash-success { background: var(--success-soft); color: var(--success); }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-info { background: var(--primary-soft); color: var(--primary); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; transition: box-shadow 0.2s; }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

/* Brand / Logo */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.brand-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; color: var(--text-muted); margin-top: 4px; }

/* Search bar */
.search-bar { flex: 1; max-width: 620px; display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 999px; padding: 4px 4px 4px 20px; height: 48px; transition: border-color 0.2s, box-shadow 0.2s; }
.search-bar:focus-within { border-color: var(--dark); box-shadow: 0 0 0 4px rgba(10,10,30,0.06); }
.search-bar input { flex: 1; border: none; background: transparent; padding: 10px 0; font-size: 14px; color: var(--text); outline: none; }
.search-bar input::placeholder { color: var(--text-faint); }
.search-bar button { width: 40px; height: 40px; background: var(--dark); color: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
.search-bar button:hover { background: var(--dark-2); transform: scale(1.05); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.hdr-link { padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: background 0.15s; }
.hdr-link:hover { background: var(--surface-2); color: var(--text); }

.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--text-2); background: transparent; border: none; cursor: pointer; transition: background 0.15s, color 0.15s; position: relative; flex-shrink: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

/* Theme toggle icon swap */
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }

/* Cart button */
.cart-btn { position: relative; }
.cart-badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }

/* Dropdowns */
.dropdown { position: relative; }
.dd-btn { cursor: pointer; }
.dd-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xl); padding: 8px; min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.2s; z-index: 200; }
.dropdown.open .dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dd-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; color: var(--text-2); transition: background 0.15s; cursor: pointer; }
.dd-item:hover { background: var(--surface-2); color: var(--text); }
.dd-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.dd-item.danger { color: var(--danger); }
.dd-item.danger:hover { background: var(--danger-soft); }

/* Locale dropdown */
.dd-locale { width: 320px; padding: 0; overflow: hidden; }
.dd-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.dd-tab { flex: 1; padding: 12px; font-size: 13px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; transition: all 0.15s; }
.dd-tab:hover { color: var(--text); }
.dd-tab.active { color: var(--primary); background: var(--surface); border-bottom-color: var(--primary); }
.dd-panel { max-height: 320px; overflow-y: auto; padding: 8px; }
.dd-panel[hidden] { display: none; }

/* User dropdown */
.dd-user { min-width: 260px; }
.dd-user-head { padding: 14px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.dd-user-head strong { display: block; font-size: 14px; color: var(--text); }
.dd-user-head small { font-size: 12px; color: var(--text-muted); }

/* Cart dropdown */
.dd-cart { width: 380px; padding: 16px; }
.dd-cart-head { font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.dd-cart-empty { text-align: center; padding: 20px 0; color: var(--text-muted); font-size: 13.5px; }
.dd-cart-item { display: flex; gap: 12px; padding: 10px 0; }
.dd-cart-thumb { width: 56px; height: 48px; background: var(--bg-3) center/cover no-repeat; border-radius: 8px; flex-shrink: 0; }
.dd-cart-info { flex: 1; min-width: 0; }
.dd-cart-title { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-cart-price { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 4px; }
.dd-cart-cta { display: block; text-align: center; margin-top: 14px; padding: 11px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 13.5px; font-weight: 600; }

/* Category nav bar */
.cat-nav { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 72px; z-index: 99; }
.cat-nav-inner { display: flex; align-items: center; gap: 6px; height: 56px; overflow-x: auto; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: all 0.15s; cursor: pointer; }
.cat-link:hover { background: var(--surface-2); color: var(--text); }
.cat-link-red { color: var(--danger); font-weight: 600; }
.cat-link-red:hover { background: var(--danger-soft); }
.cat-link-more { color: var(--text-muted); }

/* All Categories dropdown (in cat nav) */
.cat-dd { position: relative; }
.cat-dd-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); background: transparent; border: 1px solid var(--border); transition: all 0.15s; cursor: pointer; white-space: nowrap; }
.cat-dd-btn:hover { background: var(--surface-2); color: var(--text); }
.cat-dd.open .cat-dd-btn { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }

.cat-dd-menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-xl); min-width: 320px; display: none; z-index: 200; }
.cat-dd.open .cat-dd-menu { display: block; }

.cat-dd-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--text-2); transition: background 0.15s; }
.cat-dd-item:hover { background: var(--surface-2); color: var(--text); }
.cat-dd-ico { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); border-radius: 8px; font-size: 16px; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: #a8adbd; padding: 64px 0 32px; margin-top: auto; }
:root[data-theme="dark"] .site-footer { background: #05060d; color: #8085a0; }

.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 40px; margin-bottom: 48px; }
.footer-col h5 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 20px; }
:root[data-theme="dark"] .footer-col h5 { color: #e5e7ef; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13.5px; color: #8b8fa3; transition: color 0.15s; }
:root[data-theme="dark"] .footer-col a { color: #6b6f80; }
.footer-col a:hover { color: #fff; }

.footer-apps { display: flex; gap: 10px; }
.app-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #1a1d2b; border: 1px solid #232637; border-radius: 10px; font-size: 12px; font-weight: 600; color: #fff; transition: all 0.15s; white-space: nowrap; }
.app-btn:hover { background: #232637; border-color: #2e3147; }
.app-btn svg { width: 16px; height: 16px; }

.footer-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.footer-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #8b8fa3; }
:root[data-theme="dark"] .footer-feature { color: #6b6f80; }
.footer-feature svg { width: 16px; height: 16px; color: #5a86ff; flex-shrink: 0; margin-top: 1px; }

.footer-connect { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6b6f80; margin: 24px 0 14px; }
.footer-socials { display: flex; gap: 8px; }
.social-btn { width: 34px; height: 34px; background: #1a1d2b; border: 1px solid #232637; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.social-btn:hover { background: #232637; transform: translateY(-2px); }
.social-btn svg { width: 15px; height: 15px; color: #fff; }

.footer-bottom { border-top: 1px solid #1a1d2b; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: #6b6f80; }
.footer-bottom a { color: #6b6f80; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   HOMEPAGE — HERO SLIDER
   ============================================================ */
.hero-slider { position: relative; height: 560px; overflow: hidden; background: #0b0d17; }
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; z-index: 2; }

.hero-content { color: #fff; max-width: 620px; padding: 20px 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(10px); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #fff; margin-bottom: 24px; }
.hero-content h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 54px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; color: #fff; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-content p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.82); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.btn-hero-primary { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; background: #2563eb; color: #fff; border-radius: 999px; font-size: 14px; font-weight: 600; transition: all 0.18s; }
.btn-hero-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,99,235,0.4); }
.btn-hero-secondary { display: inline-flex; align-items: center; padding: 15px 28px; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); border-radius: 999px; font-size: 14px; font-weight: 600; transition: all 0.18s; }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.hero-foot { display: flex; gap: 16px; }
.hero-badge { display: inline-block; padding: 6px 14px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; font-size: 12px; color: #fff; }

.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 5; transition: all 0.18s; cursor: pointer; }
.hero-arrow:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.08); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dot { width: 32px; height: 4px; background: rgba(255,255,255,0.35); border-radius: 4px; cursor: pointer; transition: all 0.3s; }
.hero-dot.active { background: #fff; width: 48px; }

/* ============================================================
   INDUSTRY SECTION
   ============================================================ */
.industry-section { padding: 72px 0 56px; background: var(--bg); }
.industry-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.industry-viewall { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 14px; font-weight: 600; }
.industry-viewall:hover { color: var(--primary-h); }

.industry-scroller { overflow: hidden; padding-bottom: 4px; }
.industry-track { display: flex; gap: 28px; padding: 4px 2px; animation: slideIndustry 40s linear infinite; width: max-content; }
@keyframes slideIndustry { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.industry-scroller:hover .industry-track { animation-play-state: paused; }

.industry-card { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; width: 108px; cursor: pointer; transition: transform 0.25s; }
.industry-card:hover { transform: translateY(-6px); }
.industry-orb { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -6px 14px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.06); transition: all 0.25s; overflow: hidden; }
.industry-card:hover .industry-orb { box-shadow: inset 0 -6px 14px rgba(0,0,0,0.1), 0 16px 32px rgba(0,0,0,0.12); }
.industry-name { font-size: 13px; font-weight: 600; color: var(--text-2); text-align: center; }

/* ============================================================
   FEATURE STRIP
   ============================================================ */
.feature-strip { padding: 24px 0 56px; background: var(--bg); }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: all 0.2s; }
.feature-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.feature-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

/* ============================================================
   PRODUCT COLLECTION
   ============================================================ */
.collection-section { padding: 32px 0 80px; background: var(--bg); }
.collection-head { margin-bottom: 32px; }
.collection-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.coll-tab { padding: 10px 20px; background: transparent; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all 0.15s; }
.coll-tab:hover { border-color: var(--border-2); color: var(--text); }
.coll-tab.active { background: var(--dark); color: var(--bg); border-color: var(--dark); }

.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 48px; }

.prod-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 20px 40px rgba(10,10,30,0.1); }

.prod-thumb { position: relative; aspect-ratio: 4/3; background: var(--bg-3); overflow: hidden; display: block; }

.prod-window-bar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 3; padding: 5px 10px; background: rgba(255,255,255,0.9); border-radius: 999px; }
.prod-window-bar .dot { width: 7px; height: 7px; border-radius: 50%; }

.prod-badge-tl { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: #2563eb; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; border-radius: 999px; z-index: 4; }
.prod-badge-tl.top { background: #2563eb; }
.prod-badge-tl.deal { background: #dc2626; }
.prod-badge-tl.new { background: #059669; }

.prod-badge-disc { position: absolute; top: 12px; right: 12px; padding: 4px 10px; background: #0b0d17; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; z-index: 4; }

.prod-mockup { position: absolute; inset: 40px 24px 12px 24px; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 12px 24px rgba(0,0,0,0.12); transition: transform 0.35s; }
.prod-card:hover .prod-mockup { transform: translateY(-4px) scale(1.02); }
.mock-line { height: 8px; background: rgba(255,255,255,0.7); border-radius: 4px; }
.mock-line-sm { height: 5px; background: rgba(255,255,255,0.5); border-radius: 3px; width: 90%; }
.mock-block { height: 34px; border-radius: 6px; margin: 4px 0; opacity: 0.9; }

.prod-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; line-height: 1.3; }
.prod-prices { display: flex; align-items: baseline; gap: 8px; }
.prod-price { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.prod-price-old { font-size: 12.5px; color: var(--text-faint); text-decoration: line-through; }
.prod-tag { display: inline-block; padding: 4px 10px; background: var(--surface-2); color: var(--text-muted); font-size: 11px; font-weight: 500; border-radius: 6px; align-self: flex-start; }

.prod-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 8px; }
.prod-sold { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.prod-rating { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.prod-rating .stars { color: var(--star); font-size: 11px; letter-spacing: -1px; }
.prod-rating .rev { color: var(--text-faint); }

.prod-cart-btn { width: 36px; height: 36px; background: var(--dark); color: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.prod-cart-btn:hover { background: var(--primary); color: #fff; transform: scale(1.08); }

.load-more-wrap { display: flex; justify-content: center; }
.btn-load-more { display: inline-flex; align-items: center; gap: 10px; padding: 16px 40px; background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; transition: all 0.2s; }
.btn-load-more:hover { border-color: var(--dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-load-more:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================================
   MINI CHAT WIDGET
   ============================================================ */
.chat-fab { position: fixed; bottom: 24px; right: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: #2563eb; color: #fff; border: none; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 32px rgba(37,99,235,0.4); z-index: 9998; transition: all 0.2s; }
.chat-fab:hover { background: #1d4ed8; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(37,99,235,0.5); }
.chat-fab.hidden { display: none; }

.mini-chat { position: fixed; bottom: 90px; right: 24px; width: 420px; max-height: calc(100vh - 120px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.18); z-index: 9999; display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.97); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.mini-chat.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.mini-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.mini-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #dbeafe, #93c5fd); display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 800; color: #1e3a8a; flex-shrink: 0; }
.mini-online { position: absolute; bottom: 0; right: 0; width: 11px; height: 11px; background: #10b981; border-radius: 50%; border: 2px solid var(--surface); }
.mini-head-info { flex: 1; min-width: 0; }
.mini-head-name { font-size: 14px; font-weight: 700; color: var(--text); }
.mini-head-status { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-chat-close { width: 32px; height: 32px; border-radius: 50%; background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; }
.mini-chat-close:hover { background: var(--surface-2); color: var(--text); }

.mini-chat-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; min-height: 280px; max-height: 380px; }

.mini-empty, .mini-login-prompt { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; margin: auto; gap: 10px; }
.mini-empty h4, .mini-login-prompt h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); }
.mini-empty p, .mini-login-prompt p { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; max-width: 280px; }
.mini-btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 13px; font-weight: 600; }
.mini-btn-primary:hover { background: var(--primary-h); }
.mini-btn-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 600; }
.mini-btn-ghost:hover { border-color: var(--text); }

.mini-msg { display: flex; margin-bottom: 4px; }
.mini-msg.mine { justify-content: flex-end; }
.mini-msg.theirs { justify-content: flex-start; }
.mini-bubble { max-width: 78%; padding: 9px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; word-wrap: break-word; }
.mini-msg.mine .mini-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.mini-msg.theirs .mini-bubble { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.mini-time { font-size: 10.5px; opacity: 0.65; margin-top: 3px; display: block; }
.mini-msg.mine .mini-time { text-align: right; }
.mini-img-bubble { max-width: 180px; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.mini-img-bubble img { width: 100%; display: block; }

.mini-chat-composer { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.mini-attach { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
.mini-attach:hover { border-color: var(--primary); color: var(--primary); }
.mini-input { flex: 1; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; color: var(--text); outline: none; min-width: 0; }
.mini-input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.mini-send { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mini-send:hover { background: var(--primary-h); }

.mini-attach-preview { display: flex; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--surface-2); overflow-x: auto; }
.mini-attach-preview.hidden { display: none; }
.mini-preview-item { position: relative; width: 50px; height: 50px; border-radius: 8px; overflow: hidden; background: var(--bg-3); flex-shrink: 0; border: 1px solid var(--border); }
.mini-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.mini-preview-remove { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; background: rgba(0,0,0,0.65); color: #fff; border: none; border-radius: 50%; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .hero-slider { height: 480px; }
    .hero-content h1 { font-size: 38px; }
    .feature-row { grid-template-columns: repeat(2, 1fr); }
    .search-bar { display: none; }
    .hide-md { display: none; }
    .dd-locale { width: 280px; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    h1 { font-size: 32px; }
    .section-title { font-size: 26px; }
    .brand-tag { display: none; }
    .hero-slider { height: 520px; }
    .hero-content h1 { font-size: 30px; }
    .hero-arrow { display: none; }
    .feature-row { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid .footer-col:last-child { grid-column: auto; }

    .chat-fab { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 13px; }
    .mini-chat { top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
    .mini-chat.open { transform: translateY(0); }
    .mini-chat-body { max-height: none; min-height: 200px; flex: 1; }

    .dd-menu { min-width: 240px; right: -60px; }
    .dd-cart { width: 300px; }
    .dd-locale { width: 280px; right: -60px; }
}

.hidden { display: none !important; }