/* ============================================
   HAVRAZ GLOBAL STYLES
   Shared across ALL pages (Trending, Cars, etc.)
   ============================================ */

/* ============================================
   ROOT VARIABLES (Trending defaults)
   ============================================ */
:root {
    /* Backgrounds */
    --bg: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #0a0a0a;
    --bg-card: #ffffff;
    --bg-warm: #f5f0eb;
    --bg-hover: #f1f3f5;
    --bg-dark-alt: #e9ecef;

    /* Text */
    --text: #0a0a0a;
    --text-primary: #1a1a2e;
    --text-secondary: #495057;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    /* Brand / Accent */
    --primary: #ff6b6b;
    --primary-dark: #ee5a5a;
    --dark: #1a1a2e;
    --white: #ffffff;
    --mine: #14141a;
    --success: #00b894;
    --accent: #ff385c;
    --accent-orange: #ff6b35;
    --accent-green: #00c853;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --warning: #f4a261;

    /* Cars-specific aliases (neutral names so cars.css can use them) */
    --cars-primary: #e63946;
    --cars-primary-dark: #c1121f;
    --cars-accent: #2a9d8f;
    --cars-accent-light: #e8f5f3;

    /* Borders */
    --border: #e5e7eb;
    --border-light: #f3f4f6;

    /* Shadows */
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 8px 30px rgba(0,0,0,0.15);

    /* Radius */
    --radius: 16px;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 10px;
    --radius-lg: 20px;

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* ============================================
   BASE RESET
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input { font-family: inherit; outline: none; }
ul { list-style: none; }

/* Standard scrollbar (pages can override to 0 if they want hidden) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

::selection {
    background: rgba(230, 57, 70, 0.2);
    color: var(--text-primary);
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 1001;
}
.top-bar span { color: var(--accent); }

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: var(--white);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
}
.main-header .header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.menu-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xs);
    border: none;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}
.menu-btn:hover { background: var(--border-light); }

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}
.logo span { color: var(--accent); }

.search-bar { flex: 1; max-width: 600px; }
.search-bar form {
    display: flex;
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}
.search-bar form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,107,107,0.15);
}
.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
}
.search-bar button {
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    color: var(--dark);
}
.action-btn:hover { background: var(--bg); }
.action-btn i { font-size: 1.3rem; }
.action-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.cart-btn:hover { background: var(--accent); }
.cart-count {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   COMMON BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    padding: 0.5rem 0.75rem;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(230, 57, 70, 0.05);
}
.btn-light {
    background: white;
    color: var(--text-primary);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}
.btn-light:hover { background: var(--bg-hover); }
.btn-outline-light {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
    font-weight: 600;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ============================================
   VIEW TOGGLE
   ============================================ */
.view-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}
.view-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.view-btn:hover {
    border-color: var(--text);
    color: var(--text);
}
.view-btn.active {
    background: var(--text);
    color: white;
    border-color: var(--text);
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    padding: 8px 0 12px;
    z-index: 1000;
    justify-content: space-around;
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 4px 12px;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 1px;
}
.mobile-nav-item.active { color: var(--accent); }
.mobile-nav-item .nav-badge {
    position: absolute;
    top: 0;
    right: 4px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-item:focus { outline: none; }

/* ============================================
   FLOATING CART
   ============================================ */
.floating-cart {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--text);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    border: none;
}
.floating-cart:hover {
    background: var(--accent);
    transform: scale(1.1);
}
.floating-cart .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--mine);
    color: var(--white);
    padding: 60px 0 20px;
    margin-bottom: 0;
}
.footer-inner { padding: 0 24px; max-width: 1440px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand p {
    opacity: 0.7;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.footer-links h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--white);
}
.footer-links a {
    display: block;
    padding: 8px 0;
    opacity: 0.6;
    transition: var(--transition);
    font-size: 0.92rem;
}
.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 8px;
}
.footer-newsletter h4 {
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.footer-newsletter p {
    opacity: 0.6;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.footer-newsletter form {
    display: flex;
    gap: 10px;
}
.footer-newsletter input {
    flex: 1;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    outline: none;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter button {
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
}
.footer-newsletter button:hover { background: var(--primary-dark); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
}
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.payment-icons {
    display: flex;
    gap: 16px;
    font-size: 2rem;
}

/* ============================================
   DRAWER OVERLAY SYSTEM
   ============================================ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.drawer-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 400px;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}
.drawer-left  { left: 0;  transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); }
.drawer-overlay.active .drawer-left  { transform: translateX(0); }
.drawer-overlay.active .drawer-right { transform: translateX(0); }

.drawer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    z-index: 10;
}
.drawer-header {
    padding: 18px 20px 12px;
    border-bottom: 1px solid #eee;
}
.drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}
.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}
.drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.drawer-list li a,
.drawer-list li button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}
.drawer-list li a i:first-child,
.drawer-list li button i:first-child {
    margin-right: 14px;
    width: 20px;
    text-align: center;
    color: #666;
}
.drawer-list li a:active,
.drawer-list li button:active { background: #f5f5f5; }
.drawer-divider {
    height: 8px;
    background: #f5f5f5;
    margin: 8px 0;
}
.drawer-section { padding: 12px 20px; }
.drawer-section h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.drawer-section h4 i { margin-right: 8px; }
.drawer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lang-option,
.currency-option {
    padding: 8px 14px;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}
.lang-option.active,
.currency-option.active {
    border-color: #ff6b00;
    background: #fff5eb;
    color: #ff6b00;
    font-weight: 600;
}

/* ============================================
   CATEGORY TWO-COLUMN DRAWER
   ============================================ */
.cat-two-col {
    width: 92%;
    max-width: 420px;
}
.cat-columns {
    flex: 1;
    display: flex;
    overflow: hidden;
}
.cat-col-left {
    width: 30%;
    min-width: 90px;
    background: #f8f8f8;
    border-right: 1px solid #eee;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.cat-parent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cat-parent-list li {
    position: relative;
    border-bottom: 1px solid #eee;
}
.cat-parent-btn {
    position: relative;
    width: 100%;
    padding: 14px 8px;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    word-break: break-word;
}
.cat-parent-btn .cat-parent-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 16px;
}
.cat-parent-btn .cat-parent-icon img { border-radius: 4px; }
.cat-parent-btn.active {
    background: #fff;
    color: #ff6b00;
    font-weight: 600;
}
.cat-parent-btn.active .cat-parent-icon { color: #ff6b00; }
.cat-parent-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: #ff6b00;
    border-radius: 0 3px 3px 0;
}
.cat-col-right {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.cat-child-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}
.cat-see-all-top {
    font-size: 13px;
    color: #ff6b00;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.cat-see-all-top i { font-size: 10px; }
.cat-flat-grid { padding: 12px; }
.cat-section { margin-bottom: 20px; }
.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}
.cat-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}
.cat-see-all {
    font-size: 12px;
    color: #ff6b00;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.cat-see-all i { font-size: 10px; }
.cat-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.cat-sub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    background: #fafafa;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid #f0f0f0;
}
.cat-sub-card:active {
    background: #f0f0f0;
    transform: scale(0.97);
}
.cat-sub-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 8px;
}
.cat-sub-card-icon img { border-radius: 4px; }
.cat-sub-card-name {
    font-size: 12px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
    word-break: break-word;
}
.cat-empty {
    padding: 40px 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ============================================
   BOTTOM SHEETS (Cart & Wishlist)
   ============================================ */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bottom-sheet-overlay.active {
    display: flex;
    opacity: 1;
}
.bottom-sheet {
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.bottom-sheet-overlay.active .bottom-sheet { transform: translateY(0); }
.sheet-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 10px auto 6px;
}
.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 12px;
    border-bottom: 1px solid #eee;
}
.sheet-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #222;
}
.sheet-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sheet-close:active { background: #f0f0f0; }
.sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
}
.sheet-footer {
    padding: 12px 16px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.sheet-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}
.sheet-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.sheet-btn-primary {
    background: #111;
    color: #fff;
}
.sheet-btn-secondary {
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
}
.sheet-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}
.sheet-item-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
}
.sheet-item-info {
    flex: 1;
    min-width: 0;
}
.sheet-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sheet-item-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}
.sheet-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
}
.sheet-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sheet-item-remove:active { background: #fee; }
.qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
}
.qty-val {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
.sheet-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
.sheet-empty i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #ddd;
}
.sheet-empty p {
    font-size: 1rem;
    margin-bottom: 16px;
}
.sheet-empty-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}
.sheet-guest {
    text-align: center;
    padding: 40px 20px;
}
.sheet-guest i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 12px;
}
.sheet-guest h4 {
    margin: 0 0 8px;
    color: #222;
}
.sheet-guest p {
    color: #888;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.sheet-guest-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.sheet-guest-btns a {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-login {
    background: #111;
    color: #fff;
}
.btn-register {
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
}

/* ============================================
   VIP CAROUSEL (Unified + RTL Fixes)
   ============================================ */
.vip-ads-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px;
    background: var(--bg);
}
.vip-carousel {
    position: relative;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,0.12));
    height: 340px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.vip-track {
    display: flex;
    height: 100%;
    width: 100%;
    cursor: grab;
    will-change: transform;
}
.vip-track:active { cursor: grabbing; }
.vip-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.vip-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.vip-slide[data-active="true"] .vip-slide-bg { transform: scale(1.05); }
.vip-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.65) 40%, rgba(10,10,10,0.25) 100%);
}
.vip-slide-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.vip-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.vip-logo-box {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-sm, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent, #ff385c);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.vip-brand-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.vip-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.vip-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 480px;
}
.vip-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.btn-vip-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: var(--accent, #ff385c);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-md, 10px);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-vip-primary:hover {
    background: var(--primary-dark, #ee5a5a);
    transform: translateY(-1px);
}
.btn-vip-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md, 10px);
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-vip-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}
.vip-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    padding: 0.35rem 0.875rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vip-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 14px;
    justify-content: center;
}
.vip-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-white, #fff);
    border: 1.5px solid var(--border, #e5e7eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text, #0a0a0a);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.vip-arrow:hover {
    background: var(--accent, #ff385c);
    border-color: var(--accent, #ff385c);
    color: white;
}
.vip-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.vip-arrow:disabled:hover {
    background: var(--bg-white, #fff);
    border-color: var(--border, #e5e7eb);
    color: var(--text, #0a0a0a);
}
.vip-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.vip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border, #e5e7eb);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.vip-dot.active {
    background: var(--accent, #ff385c);
    width: 24px;
    border-radius: 4px;
}

/* RTL VIP Fixes */
[dir="rtl"] .vip-tag { right: auto; left: 1rem; }
[dir="rtl"] .vip-slide-content {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
    margin-right: 0;
    direction: rtl;
}
[dir="rtl"] .vip-brand { flex-direction: row-reverse; }
[dir="rtl"] .vip-actions { justify-content: flex-end; }
[dir="rtl"] .btn-vip-primary i,
[dir="rtl"] .btn-vip-outline i { transform: scaleX(-1); }
[dir="rtl"] .vip-carousel,
[dir="rtl"] .vip-track { direction: ltr; }
[dir="rtl"] .vip-arrow i { transform: scaleX(-1); }

/* VIP Responsive */
@media (max-width: 1024px) {
    .vip-carousel { height: 300px; }
    .vip-slide-content { padding: 2rem; }
}
@media (max-width: 768px) {
    .vip-ads-section { padding: 1rem 16px; }
    .vip-carousel {
        height: 260px;
        border-radius: var(--radius-sm, 12px);
    }
    .vip-slide-content {
        padding: 1.5rem;
        max-width: 100%;
    }
    .vip-title { font-size: 1.3rem; }
    .vip-desc { font-size: 0.9rem; margin-bottom: 1rem; }
    .vip-actions { gap: 0.5rem; }
    .btn-vip-primary, .btn-vip-outline {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .vip-logo-box {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    .vip-brand-name { font-size: 0.75rem; }
    .vip-tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }
}
@media (max-width: 480px) {
    .vip-carousel { height: 240px; }
    .vip-slide-content { padding: 1.25rem; }
    .vip-title { font-size: 1.15rem; }
    .vip-desc { display: none; }
    .vip-actions { width: 100%; }
    .btn-vip-primary { flex: 1; justify-content: center; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-up {
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.reveal {
    opacity: 1;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   RESPONSIVE (Global breakpoints)
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-header .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: start;
        padding: 10px 16px;
    }
    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .action-btn { display: none; }
    .logo { font-size: 1.5rem; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 70px; }
    .floating-cart { display: flex; }
}

@media (max-width: 480px) {
    .footer-inner { padding: 0 16px; }
}