/* =============================================
   Royal Market — Professional Global Standard
   Clean · Premium · SEO-friendly · Dark Mode
   ============================================= */

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;
    --primary-rgb: 22, 163, 74;
    --accent: #f97316;
    --danger: #ef4444;
    --white: #ffffff;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
    --shadow: 0 4px 16px rgba(15,23,42,0.06);
    --shadow-lg: 0 12px 40px rgba(15,23,42,0.1);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --tabbar-h: 64px;
}

[data-theme="dark"] {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #14532d;
    --bg: #0b1120;
    --surface: #111827;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --muted: #64748b;
    --border: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 0.9375rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}
.main-content { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: background var(--transition), border-color var(--transition);
}
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.75rem;
}
[data-theme="dark"] .top-bar { background: #020617; }

.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), #4ade80);
    color: #fff;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.35);
}
.brand-name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.brand-sub { font-size: 0.65rem; color: var(--muted); margin-top: -1px; }

/* Search */
.search-form { position: relative; width: 100%; max-width: 480px; }
.search-box {
    border-radius: 50px; overflow: hidden;
    border: 1.5px solid var(--border);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.search-box .form-control {
    border: none; background: transparent;
    padding: 0.6rem 1.15rem; font-size: 0.9rem; color: var(--text);
}
.search-box .form-control::placeholder { color: var(--muted); }
.search-box .form-control:focus { box-shadow: none; background: transparent; }
.btn-search { background: var(--primary); color: #fff; border: none; padding: 0 1.15rem; }
.btn-search:hover { background: var(--primary-dark); color: #fff; }

.search-suggestions {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--surface); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    z-index: 1000; display: none; max-height: 340px; overflow-y: auto;
}
.search-suggestions.show { display: block; animation: fadeSlideDown 0.2s ease; }
.suggestion-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px; text-decoration: none; color: var(--text);
    border-bottom: 1px solid var(--border);
}
.suggestion-item:hover { background: var(--bg); }
.suggestion-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }

.cart-link { position: relative; font-size: 1.3rem; color: var(--text); }
.cart-badge {
    position: absolute; top: -6px; right: -10px;
    background: var(--primary); color: #fff; font-size: 0.62rem;
    min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; animation: popIn 0.3s ease;
}

/* Product Card */
.product-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    height: 100%; display: flex; flex-direction: column; position: relative;
    animation: fadeIn 0.35s ease both;
}
.product-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent;
}
.product-card .img-wrap {
    position: relative; padding-top: 100%; background: var(--bg); overflow: hidden;
}
.product-card .img-wrap img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; padding: 14px; transition: transform 0.4s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }

/* Discount badge ONLY — no border frame */
.discount-badge {
    position: absolute; top: 10px; right: 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff; font-size: 0.72rem; font-weight: 800;
    padding: 4px 10px; border-radius: 8px; z-index: 3;
    box-shadow: 0 2px 10px rgba(239,68,68,0.4);
    animation: softPulse 2s ease-in-out infinite;
}
.badge-out {
    position: absolute; top: 10px; left: 10px;
    background: #64748b; color: #fff; font-size: 0.7rem; font-weight: 600;
    padding: 4px 9px; border-radius: 6px; z-index: 2;
}
.product-card .card-body {
    padding: 0.9rem 1rem 1.05rem; flex: 1;
    display: flex; flex-direction: column; gap: 0.3rem;
}
.product-card .product-name {
    font-size: 0.875rem; font-weight: 550; color: var(--text);
    text-decoration: none; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.45; min-height: 2.55em;
}
.product-card .product-name:hover { color: var(--primary); }
.price-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; gap: 8px;
}
.price-block { display: flex; flex-direction: column; gap: 1px; }
.old-price { font-size: 0.74rem; color: var(--muted); text-decoration: line-through; }
.price { font-size: 1.05rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.price small { font-size: 0.68rem; font-weight: 500; color: var(--muted); }
.btn-add {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.35); flex-shrink: 0;
}
.btn-add:hover:not(.disabled) {
    background: var(--primary-dark); transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.45);
}
.btn-add.disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; }
[data-theme="dark"] .btn-add.disabled { background: #334155; }
.low-stock {
    font-size: 0.7rem; font-weight: 600; color: var(--danger);
    background: rgba(239,68,68,0.08); padding: 3px 8px;
    border-radius: 6px; display: inline-block; margin-top: 3px;
}

/* Category Bar */
.category-bar {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1.15rem 0 1rem; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-track { display: flex; gap: 0.55rem; padding: 0 0.25rem; min-width: max-content; }
.cat-pill {
    display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
    text-decoration: none; color: var(--text); min-width: 80px;
    padding: 0.4rem 0.35rem; border-radius: 14px; transition: background var(--transition);
}
.cat-pill:hover, .cat-pill.active { background: var(--primary-light); }
.cat-pill .cat-icon-wrap {
    width: 58px; height: 58px; border-radius: 16px; background: var(--bg);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border: 1.5px solid var(--border);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.cat-pill:hover .cat-icon-wrap, .cat-pill.active .cat-icon-wrap {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-3px);
}
.cat-pill .cat-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-pill .cat-icon-wrap i { font-size: 1.4rem; color: var(--primary); }
.cat-pill span {
    font-size: 0.72rem; font-weight: 600; text-align: center;
    line-height: 1.25; max-width: 82px; color: var(--text-secondary);
}
.cat-pill:hover span, .cat-pill.active span { color: var(--primary-dark); }

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #14532d 100%);
    border-radius: 20px; color: #fff; padding: 2.6rem 2rem;
    margin-bottom: 2rem; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero::before {
    content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255,255,255,0.04); top: -80px; right: -60px;
    animation: floatSlow 8s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%;
    background: rgba(34,197,94,0.12); bottom: -40px; left: 10%;
    animation: floatSlow 6s ease-in-out infinite reverse;
}
.hero h1 { font-weight: 800; font-size: 1.7rem; margin-bottom: 0.4rem; position: relative; z-index: 1; }
.hero p { opacity: 0.88; font-size: 0.95rem; position: relative; z-index: 1; }
.hero .btn { position: relative; z-index: 1; }

.section-title {
    font-size: 1.15rem; font-weight: 700; margin-bottom: 1.1rem;
    display: flex; align-items: center; gap: 0.5rem; color: var(--text);
}
.section-title::before {
    content: ''; width: 4px; height: 18px; background: var(--primary); border-radius: 2px;
}

/* Sidebar */
.side-cats {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 0.5rem 0; overflow: hidden; box-shadow: var(--shadow-sm);
}
.side-cats a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 1.1rem; text-decoration: none; color: var(--text);
    font-size: 0.9rem; font-weight: 500; transition: background var(--transition);
}
.side-cats a:hover, .side-cats a.active { background: var(--primary-light); color: var(--primary-dark); }
.side-cats a img { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; }
.side-cats a i {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: var(--bg); border-radius: 10px; font-size: 0.95rem; color: var(--primary);
}

/* Profile YouTube-style */
.profile-page { padding-bottom: 1rem; }
.profile-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b 60%, #14532d);
    padding: 2rem 0 1.5rem; color: #fff;
}
.profile-header-row { display: flex; align-items: center; gap: 1.25rem; }
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar-img, .avatar-placeholder {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,255,255,0.25); box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.avatar-placeholder {
    background: rgba(255,255,255,0.12); display: flex; align-items: center;
    justify-content: center; font-size: 2.2rem; color: rgba(255,255,255,0.7);
}
.avatar-edit-btn {
    position: absolute; bottom: 0; right: 0; width: 28px; height: 28px;
    background: var(--primary); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: #fff; font-size: 0.75rem;
    cursor: pointer; border: 2px solid #0f172a; transition: transform 0.15s;
}
.avatar-edit-btn:hover { transform: scale(1.1); }
.profile-name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.profile-username { opacity: 0.7; font-size: 0.85rem; margin: 0.15rem 0 0; }
.profile-phone { opacity: 0.75; font-size: 0.82rem; margin: 0.3rem 0 0; }
.profile-body { margin-top: -0.5rem; padding-top: 1.25rem; }

.profile-menu {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm);
}
.menu-item, .menu-item-form .menu-item {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 1rem 1.15rem; text-decoration: none; color: var(--text);
    border-bottom: 1px solid var(--border); background: transparent;
    border-left: none; border-right: none; border-top: none;
    width: 100%; cursor: pointer; transition: background var(--transition); text-align: right;
}
.menu-item:last-child, .menu-item-form:last-child .menu-item { border-bottom: none; }
.menu-item:hover { background: var(--bg); }
.menu-icon {
    width: 42px; height: 42px; border-radius: 12px; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: var(--primary); flex-shrink: 0;
}
.menu-icon.wallet-icon { color: #f59e0b; background: rgba(245,158,11,0.1); }
.menu-icon.logout-icon { color: var(--danger); background: rgba(239,68,68,0.08); }
.menu-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.menu-title { font-weight: 600; font-size: 0.95rem; }
.menu-desc { font-size: 0.75rem; color: var(--muted); }
.menu-arrow { color: var(--muted); font-size: 0.9rem; }
.logout-item .menu-title { color: var(--danger); }

.theme-switch {
    width: 44px; height: 24px; background: #cbd5e1; border-radius: 12px;
    position: relative; transition: background 0.25s; flex-shrink: 0;
}
[data-theme="dark"] .theme-switch { background: var(--primary); }
.theme-knob {
    position: absolute; top: 3px; right: 3px; width: 18px; height: 18px;
    background: #fff; border-radius: 50%; transition: transform 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
[data-theme="dark"] .theme-knob { transform: translateX(-20px); }

.profile-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 1.35rem; box-shadow: var(--shadow-sm);
}
.card-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; color: var(--text); }

/* Mobile Tabbar */
.mobile-tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; height: var(--tabbar-h);
    background: var(--surface); border-top: 1px solid var(--border);
    display: flex; align-items: stretch; z-index: 1050;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: background var(--transition), border-color var(--transition);
}
.mobile-tabbar .tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2px; text-decoration: none;
    color: var(--muted); font-size: 0.68rem; font-weight: 600;
    transition: color var(--transition); position: relative;
}
.mobile-tabbar .tab-item i { font-size: 1.35rem; line-height: 1; }
.mobile-tabbar .tab-item.active { color: var(--primary); }
.mobile-tabbar .tab-item.active::before {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); width: 28px; height: 3px;
    background: var(--primary); border-radius: 0 0 4px 4px;
}
@media (max-width: 991.98px) {
    body { padding-bottom: calc(var(--tabbar-h) + 8px); }
}

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; margin-top: 3.5rem; }
[data-theme="dark"] .site-footer { background: #020617; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 0.9rem; font-size: 0.95rem; }
.footer-links a {
    color: #94a3b8; text-decoration: none; font-size: 0.88rem;
    display: block; padding: 0.2rem 0; transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

/* Forms */
.form-control, .form-select {
    border-radius: var(--radius-xs); border-color: var(--border);
    padding: 0.65rem 1rem; background: var(--surface); color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
    background: var(--surface); color: var(--text);
}
.form-label { font-weight: 500; font-size: 0.85rem; color: var(--text-secondary); }
.btn-primary {
    background: var(--primary); border-color: var(--primary);
    border-radius: var(--radius-xs); font-weight: 600;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary {
    border-radius: var(--radius-xs); color: var(--primary); border-color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-light { border-radius: 50px; font-weight: 600; }

.payment-box, .auth-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 2rem; max-width: 440px;
    margin: 0 auto; box-shadow: var(--shadow);
}
.payment-box .amount { font-size: 1.9rem; font-weight: 800; color: var(--primary); }

/* Dashboard */
.dashboard-sidebar { background: #0f172a; min-height: 100vh; color: #fff; padding: 1.5rem 0; }
.dashboard-sidebar .nav-link {
    color: #94a3b8; padding: 0.7rem 1.4rem;
    display: flex; align-items: center; gap: 0.7rem;
}
.dashboard-sidebar .nav-link:hover, .dashboard-sidebar .nav-link.active {
    background: rgba(22,163,74,0.18); color: #fff;
}
.stat-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 1.4rem; border: 1px solid var(--border); height: 100%;
}
.stat-card .stat-value { font-size: 1.65rem; font-weight: 800; }
.stat-card .stat-label { color: var(--muted); font-size: 0.85rem; }

/* Animations */
@keyframes softPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.92; }
}
@keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(18px); }
}

.row .col-6:nth-child(1) .product-card, .row .col-md-4:nth-child(1) .product-card { animation-delay: 0.03s; }
.row .col-6:nth-child(2) .product-card, .row .col-md-4:nth-child(2) .product-card { animation-delay: 0.07s; }
.row .col-6:nth-child(3) .product-card, .row .col-md-4:nth-child(3) .product-card { animation-delay: 0.11s; }
.row .col-6:nth-child(4) .product-card, .row .col-md-4:nth-child(4) .product-card { animation-delay: 0.15s; }
.row .col-6:nth-child(5) .product-card { animation-delay: 0.19s; }
.row .col-6:nth-child(6) .product-card { animation-delay: 0.23s; }

@media (max-width: 768px) {
    .search-form { max-width: 100%; margin: 0.5rem 0; }
    .hero h1 { font-size: 1.35rem; }
    .hero { padding: 1.6rem 1.3rem; border-radius: 16px; }
    .product-card .product-name { font-size: 0.82rem; }
    .price { font-size: 0.95rem; }
    .avatar-img, .avatar-placeholder { width: 68px; height: 68px; }
    .profile-name { font-size: 1.1rem; }
}
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}
.text-muted { color: var(--muted) !important; }

/* Wallet */
.wallet-card {
    background: linear-gradient(135deg, #0f172a, #14532d);
    border-radius: var(--radius);
    padding: 1.75rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.wallet-label { display: block; font-size: 0.85rem; opacity: 0.75; margin-bottom: 0.35rem; }
.wallet-amount { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; }
.wallet-amount small { font-size: 0.9rem; font-weight: 500; opacity: 0.8; }

/* ========== Mobile Offcanvas Sidebar ========== */
.menu-trigger { line-height: 1; text-decoration: none !important; }
.menu-trigger:focus { box-shadow: none; }

.mobile-sidebar {
    width: min(320px, 88vw) !important;
    background: var(--surface);
    color: var(--text);
    border: none;
}
.mobile-sidebar .offcanvas-header {
    background: var(--surface);
    border-color: var(--border) !important;
}
.mobile-sidebar .btn-close {
    filter: none;
}
[data-theme="dark"] .mobile-sidebar .btn-close {
    filter: invert(1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.15rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.sidebar-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.sidebar-section-title {
    padding: 0.85rem 1.15rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.15rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    transition: background 0.15s;
}
.sidebar-link:hover { background: var(--bg); color: var(--primary); }
.sidebar-link i { font-size: 1.15rem; width: 24px; text-align: center; color: var(--muted); }
.sidebar-link:hover i { color: var(--primary); }
.sidebar-cat-img {
    width: 28px; height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

/* ========== Promo banner ========== */
.promo-banner {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 40%, #16a34a 100%);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(234,88,12,0.25);
}
.promo-content { position: relative; z-index: 1; }
.promo-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.promo-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.3rem; }
.promo-desc { opacity: 0.9; font-size: 0.9rem; margin-bottom: 0.85rem; }
.promo-orb {
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    top: -50px; left: -40px;
    animation: floatSlow 7s ease-in-out infinite;
}

/* Top category cards */
.top-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.top-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--primary);
}
.top-cat-img {
    width: 52px; height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
}
.top-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.top-cat-img i { font-size: 1.3rem; color: var(--primary); }
.top-cat-card span { font-size: 0.78rem; font-weight: 600; text-align: center; }

/* Filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: 0.8rem;
    font-weight: 550;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.chip i { font-size: 0.85rem; }
