/* ============================================================
   A4C MARKETPLACE — marketplace.css
   Light theme · Blue/Violet accent · Modern responsive GUI
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --blue: #2563eb;
    --blue-rgb: 37, 99, 235;
    --blue-dark: #1d4ed8;
    --blue-light: #dbeafe;
    --blue-xlight: #eff6ff;
    --violet: #7c3aed;
    --violet-light: #ede9fe;
    --accent: var(--blue);
    --accent-dark: var(--blue-dark);

    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;

    --font-display: "Plus Jakarta Sans", sans-serif;
    --font-body: "Inter", sans-serif;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.25);

    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.14s ease;

    --topbar-h: 40px;
    --header-main-h: 76px;
    --nav-h: 52px;
    --header-total: calc(var(--topbar-h) + var(--header-main-h) + var(--nav-h));
}

/* ── RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
ul,
ol {
    list-style: none;
}
button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    background: none;
}
input,
select {
    font-family: var(--font-body);
}
address {
    font-style: normal;
}

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
}

.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border: 2px solid var(--blue);
    color: var(--blue);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}
.btn-outline-lg:hover {
    background: var(--blue);
    color: var(--white);
    gap: 12px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

.full-width {
    width: 100%;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── SECTION COMMON ──────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-header.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-xlight);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}
.section-tag.light {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 16px;
    margin-top: 10px;
    max-width: 520px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: var(--transition);
}
.section-link:hover {
    gap: 10px;
}
.section-link ion-icon {
    font-size: 16px;
}

.section-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* ── TOAST ───────────────────────────────────────────────── */
.notification-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    transform: translateX(-150%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 20px 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-100);
    max-width: 350px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.notification-toast.show {
    transform: translateX(0);
}

@media (max-width: 480px) {
    .notification-toast {
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: translateY(150%);
        max-width: none;
    }
    .notification-toast.show {
        transform: translateY(0);
    }
}

.toast-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 14px;
    transition: var(--transition-fast);
}
.toast-close-btn:hover {
    background: var(--gray-200);
}

.toast-banner img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.toast-label {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toast-product {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
    margin-top: 2px;
    line-height: 1.3;
}

.toast-buyer {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 1px;
}

.toast-time {
    font-size: 12px;
    color: var(--blue);
    margin-top: 4px;
}

/* ── MODAL ───────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    max-width: 720px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}
.modal-backdrop.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 18px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.modal-close:hover {
    background: var(--gray-100);
}

.modal-visual {
    background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
    padding: 48px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-visual-inner {
    color: var(--white);
    text-align: center;
}

.modal-icon-bg {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
    backdrop-filter: blur(4px);
}

.modal-visual-inner h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-visual-inner p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
}

.modal-form-side {
    padding: 40px 36px;
}

.modal-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.form-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 14px;
    transition: var(--transition-fast);
}
.form-field:focus-within {
    border-color: var(--blue);
    background: var(--white);
}
.form-field ion-icon {
    color: var(--gray-400);
    font-size: 18px;
    flex-shrink: 0;
}
.form-field input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--gray-800);
    outline: none;
}
.form-field input::placeholder {
    color: var(--gray-400);
}

.modal-note {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 12px;
}

.newsletter-message {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
}
.newsletter-message.success {
    background: #dcfce7;
    color: var(--success);
}
.newsletter-message.error {
    background: #fee2e2;
    color: var(--danger);
}

/* ── HEADER TOPBAR ───────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--white);
    box-shadow: 0 1px 0 var(--gray-100);
}

.header-topbar {
    background: var(--gray-900);
    height: var(--topbar-h);
    overflow: hidden;
}

.header-topbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left .social-links {
    display: flex;
    gap: 2px;
}

.topbar-left .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--gray-400);
    font-size: 14px;
    border-radius: 6px;
    transition: var(--transition-fast);
}
.topbar-left .social-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.topbar-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-300);
    font-size: 12.5px;
    font-weight: 500;
    overflow: hidden;
    max-width: 480px;
}
.topbar-ticker span {
    flex-shrink: 0;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
}
.ticker-content span {
    display: inline-block;
    animation: ticker 20s linear infinite;
}
@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--gray-300);
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
    outline: none;
}
.topbar-select option {
    background: var(--gray-900);
}

/* ── HEADER MAIN ─────────────────────────────────────────── */
.header-main {
    height: var(--header-main-h);
    border-bottom: 1px solid var(--gray-100);
}

.header-main .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-logo {
    flex-shrink: 0;
}
.header-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 640px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition-fast);
}
.search-box:focus-within {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.search-category-select {
    padding: 0 16px;
    height: 48px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    max-width: 150px;
}

.search-divider {
    width: 1px;
    height: 24px;
    background: var(--gray-200);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--gray-800);
    outline: none;
    min-width: 0;
}
.search-input::placeholder {
    color: var(--gray-400);
}

.search-btn {
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}
.search-btn:hover {
    background: var(--blue-dark);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    z-index: 200;
    display: none;
}
.search-dropdown.visible {
    display: block;
}

.search-dropdown-inner {
    padding: 16px;
}
.search-dropdown-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 8px;
}

#recent-searches-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition-fast);
}
#recent-searches-list li:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}
#recent-searches-list li::before {
    content: "🕐";
    font-size: 13px;
}

/* ── HEADER ACTIONS ──────────────────────────────────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.btn-sell {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--blue-xlight);
    color: var(--blue);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-sell:hover {
    background: var(--blue);
    color: var(--white);
}
.btn-sell ion-icon {
    font-size: 16px;
}

.action-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 20px;
    transition: var(--transition-fast);
}
.action-icon-btn:hover {
    background: var(--blue-xlight);
    color: var(--blue);
}

.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--blue);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--white);
}

.action-dropdown {
    position: relative;
}

/* Dropdown panels */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-width: 280px;
}
.dropdown-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* User panel */
.user-dropdown {
    width: 300px;
    padding: 24px;
}

.panel-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.panel-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--blue-light);
    box-shadow: var(--shadow-sm);
}
.panel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: var(--white);
    font-weight: 800;
    font-size: 18px;
    font-family: var(--font-display);
}

.panel-username {
    font-weight: 800;
    font-size: 16px;
    color: var(--gray-900);
}
.panel-email {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 2px;
}

.panel-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.panel-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 600;
    transition: var(--transition-fast);
}
.panel-nav-link:hover {
    background: var(--blue-xlight);
    color: var(--blue);
    transform: translateX(4px);
}
.panel-nav-link.danger:hover {
    background: #fee2e2;
    color: var(--danger);
}
.panel-nav-link ion-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.panel-divider {
    border: none;
    border-top: 1px solid var(--gray-100);
    margin: 10px 0;
}

.panel-auth {
    text-align: center;
    padding: 24px 20px;
}
.panel-auth-icon {
    font-size: 56px;
    color: var(--blue-xlight);
    margin-bottom: 16px;
}
.panel-auth h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}
.panel-auth p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 24px;
}
.panel-auth .btn-primary,
.panel-auth .btn-outline {
    margin-bottom: 12px;
    border-radius: var(--radius);
    padding: 12px;
}

/* Cart & Wishlist Dropdown Panels */
.side-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-height: 80vh;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.side-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-side-panel {
    width: 420px;
}

@media (max-width: 480px) {
    .side-panel,
    .cart-side-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 80vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
        z-index: 500;
    }
    .side-panel.open {
        transform: translateY(0);
    }
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}
.side-panel-header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.panel-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 18px;
    transition: var(--transition-fast);
}
.panel-close-btn:hover {
    background: var(--gray-200);
}

.side-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.side-panel-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.panel-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 20px;
    color: var(--gray-300);
}
.panel-empty-state ion-icon {
    font-size: 52px;
}
.panel-empty-state p {
    font-weight: 600;
    color: var(--gray-400);
}
.panel-empty-state small {
    font-size: 13px;
    color: var(--gray-300);
}

.cart-totals {
    margin-bottom: 16px;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}
.cart-total-row.total {
    font-weight: 700;
    font-size: 16px;
    color: var(--gray-900);
    border: none;
    margin-top: 4px;
}

.cart-footer-btns {
    display: flex;
    gap: 10px;
}
.cart-footer-btns .btn-outline,
.cart-footer-btns .btn-primary {
    flex: 1;
    border-radius: var(--radius);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--gray-50);
}
.mobile-menu-btn span {
    display: block;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── NAVIGATION ──────────────────────────────────────────── */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    height: var(--nav-h);
}

.main-nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition-fast);
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}
.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--blue);
    border-radius: 3px 3px 0 0;
}
.nav-link ion-icon {
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item:hover .nav-link ion-icon {
    transform: rotate(180deg);
}

/* Mega Menu Enhancement */
.mega-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-total);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-100);
    border-bottom: 4px solid var(--blue);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 48px 0;
}
.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 48px;
}

.mega-col-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.mega-col-title ion-icon,
.mega-col-title i {
    font-size: 20px;
    color: var(--blue);
    background: var(--blue-xlight);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.mega-col-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mega-col-links a {
    font-size: 14px;
    color: var(--gray-500);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mega-col-links a:hover {
    color: var(--blue);
    transform: translateX(8px);
}
.mega-col-links a::before {
    content: "";
    width: 0;
    height: 1.5px;
    background: var(--blue);
    transition: width 0.2s ease;
}
.mega-col-links a:hover::before {
    width: 12px;
}

.view-all-link {
    color: var(--blue) !important;
    font-weight: 700 !important;
    margin-top: 6px;
    text-transform: uppercase;
    font-size: 12px !important;
    letter-spacing: 0.05em;
}

/* Individual Category Dropdowns */
.has-dropdown {
    position: relative;
}
.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 350px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
    border: 1px solid var(--gray-100);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 201;
    padding: 0;
    overflow: hidden;
}

.nav-item.has-dropdown:hover .category-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 24px;
    background: linear-gradient(to right, var(--gray-50), var(--white));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-header .header-content h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
}

.dropdown-header .header-content p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 4px 0 0 0;
}

.dropdown-header-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.dropdown-header .header-icon {
    width: 60px;
    height: 60px;
    background: var(--blue-xlight);
    color: var(--blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-sm);
}

.dropdown-links {
    list-style: none;
    padding: 12px;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-links li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.dropdown-links li a:hover {
    background: var(--blue-xlight);
    transform: translateX(4px);
}

.link-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.2s ease;
    font-size: 18px;
    flex-shrink: 0;
}

.dropdown-links li a:hover .link-icon {
    background: var(--blue);
    color: var(--white);
    transform: scale(1.1);
}

.link-text {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.link-desc {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
}

.dropdown-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--gray-100);
    background: var(--white);
}

.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: var(--blue);
    color: var(--white) !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.view-all-btn ion-icon {
    font-size: 18px;
}

.nav-right {
    flex-shrink: 0;
}

.nav-vendor-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-vendor-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
}

/* ── MOBILE DRAWER ───────────────────────────────────────── */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100dvh;
    background: var(--white);
    z-index: 500;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    font-family: "Inter", sans-serif;
    font-family: "Plus Jakarta Sans", sans-serif;
}
.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 18px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.drawer-link {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition-fast);
}
.drawer-link:hover {
    background: var(--gray-50);
    color: var(--blue);
}

.drawer-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition-fast);
    text-align: left;
}
.drawer-accordion-btn:hover {
    background: var(--gray-50);
}
.drawer-accordion-btn ion-icon {
    transition: transform var(--transition-fast);
}
.drawer-accordion.open .drawer-accordion-btn ion-icon {
    transform: rotate(180deg);
}

.drawer-accordion-content {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 4px 14px;
}
.drawer-accordion.open .drawer-accordion-content {
    display: flex;
}

.drawer-sub-link {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-500);
    transition: var(--transition-fast);
}
.drawer-sub-link:hover {
    background: var(--blue-xlight);
    color: var(--blue);
}

.drawer-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.drawer-auth .btn-primary,
.drawer-auth .btn-outline {
    border-radius: var(--radius);
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── HERO SECTION ────────────────────────────────────────── */
.hero-section {
    position: relative;
    height: clamp(420px, 70vh, 680px);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 60%,
        transparent 100%
    );
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 560px;
    color: var(--white);
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
    animation: slideDown 0.6s 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    animation: slideDown 0.6s 0.3s both;
}

.hero-desc {
    font-size: clamp(14px, 1.8vw, 17px);
    line-height: 1.65;
    opacity: 0.88;
    margin-bottom: 28px;
    animation: slideDown 0.6s 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    animation: slideDown 0.6s 0.5s both;
}

.btn-hero-primary {
    padding: 14px 32px;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}
.btn-hero-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn-hero-secondary {
    padding: 13px 28px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: slideDown 0.6s 0.6s both;
}

.hero-stat {
    text-align: center;
}
.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
}
.hero-stat span {
    font-size: 12px;
    opacity: 0.7;
}
.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider controls */
.slider-controls {
    position: absolute;
    bottom: 24px;
    right: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition-fast);
}
.slider-arrow:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.slider-dots {
    display: flex;
    gap: 8px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active {
    background: var(--white);
    transform: scale(1.3);
}

/* ── TRUST BAR ───────────────────────────────────────────── */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 20px 0;
}

.trust-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 36px;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.trust-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-xlight);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--blue);
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}
.trust-text span {
    font-size: 12px;
    color: var(--gray-400);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-100);
    flex-shrink: 0;
}

/* ── CATEGORIES SECTION ──────────────────────────────────── */
.categories-section {
    padding: 64px 0;
    background: var(--gray-50);
}

.categories-scroll-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
    z-index: 10;
}
.scroll-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.categories-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 0;
    flex: 1;
}
.categories-row::-webkit-scrollbar {
    display: none;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    min-width: 120px;
    max-width: 120px;
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.category-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--blue-xlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--blue);
    transition: var(--transition-fast);
}
.category-card:hover .category-card-icon {
    background: var(--blue);
    color: var(--white);
}

.category-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.3;
}

.category-card-count {
    font-size: 11px;
    color: var(--gray-400);
}

/* ── FLASH DEALS ─────────────────────────────────────────── */
.flash-deals-section {
    padding: 64px 0;
    background: var(--white);
}

.flash-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.flash-left {
    flex: 1;
}

.flash-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--danger);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
}

.flash-left h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--gray-900);
}

.flash-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-900);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
}

.countdown-unit {
    text-align: center;
}
.countdown-unit span {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.countdown-unit label {
    font-size: 10px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    display: block;
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-500);
    margin-bottom: 10px;
}

/* ── PRODUCT GRID ────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--gray-200);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-50);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}
.product-badge.deal {
    background: var(--danger);
    color: var(--white);
}
.product-badge.new {
    background: var(--blue);
    color: var(--white);
}
.product-badge.hot {
    background: var(--warning);
    color: var(--white);
}
.product-badge.out {
    background: var(--gray-500);
    color: var(--white);
}
.product-badge.top {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-badge.best {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: var(--white);
}

.product-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 3;
}
.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 34px;
    height: 34px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-600);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}
.product-action-btn:hover {
    background: var(--blue);
    color: var(--white);
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue);
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-name a {
    color: inherit;
}
.product-name a:hover {
    color: var(--blue);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
    font-size: 13px;
}
.product-rating .rating-count {
    color: var(--gray-400);
    font-size: 11px;
    margin-left: 4px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
}

.product-price-original {
    font-size: 13px;
    color: var(--gray-400);
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--blue-xlight);
    color: var(--blue);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    margin-top: 8px;
}
.btn-add-cart:hover {
    background: var(--blue);
    color: var(--white);
}

/* Placeholder cards */
.product-card-placeholder {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}
.placeholder-img {
    aspect-ratio: 1;
    background: linear-gradient(
        90deg,
        var(--gray-100) 25%,
        var(--gray-50) 50%,
        var(--gray-100) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.placeholder-text {
    height: 14px;
    background: var(--gray-100);
    border-radius: 4px;
    margin: 16px 16px 8px;
    animation: shimmer 1.5s infinite;
}
.placeholder-text.short {
    width: 60%;
    margin-top: 0;
}
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.empty-products-msg {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px;
    color: var(--gray-300);
    font-size: 48px;
}
.empty-products-msg p {
    font-size: 15px;
    color: var(--gray-400);
}

/* ── PROMO BANNERS ───────────────────────────────────────── */
.promo-section {
    padding: 0 0 64px;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 16px;
}

.promo-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    transition: var(--transition);
}
.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.promo-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.1) 60%
    );
}

.promo-card-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: var(--white);
}

.promo-discount {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
}

.promo-card-content h3 {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 800;
    margin-bottom: 6px;
}

.promo-card-content p {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 12px;
}

.promo-btn {
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    transition: var(--transition-fast);
}
.promo-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.promo-fallback-blue {
    background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%);
}
.promo-fallback-violet {
    background: linear-gradient(135deg, var(--violet) 0%, #5b21b6 100%);
}
.promo-fallback-navy {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ── FEATURED PRODUCTS / TABS ────────────────────────────── */
.featured-section {
    padding: 64px 0;
    background: var(--gray-50);
}

.product-tabs {
    display: flex;
    gap: 4px;
    background: var(--white);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    transition: var(--transition-fast);
    white-space: nowrap;
}
.tab-btn.active {
    background: var(--blue);
    color: var(--white);
}
.tab-btn:not(.active):hover {
    color: var(--blue);
}

.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* ── VENDOR SECTION ──────────────────────────────────────── */
.vendors-section {
    padding: 64px 0;
    background: var(--white);
}

.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.vendor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px 20px;
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.vendor-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.vendor-card-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    flex-shrink: 0;
}
.vendor-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vendor-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: var(--white);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
}

.vendor-info h4 {
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 2px;
}
.vendor-info p {
    font-size: 12px;
    color: var(--gray-400);
}

.vendor-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 13px;
    margin-top: 4px;
    justify-content: center;
}
.vendor-rating span {
    font-weight: 600;
    color: var(--gray-700);
}

.vendor-visit {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    opacity: 0;
    transition: var(--transition-fast);
}
.vendor-card:hover .vendor-visit {
    opacity: 1;
}

/* ── VENDOR CTA ──────────────────────────────────────────── */
.vendor-cta-section {
    padding: 64px 0;
}

.vendor-cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
    border-radius: var(--radius-xl);
    padding: 56px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.vendor-cta-card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.vendor-cta-card::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: 30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.vendor-cta-left {
    position: relative;
    z-index: 1;
    color: var(--white);
}
.vendor-cta-left h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}
.vendor-cta-left p {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 24px;
    line-height: 1.65;
}

.vendor-cta-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.vendor-cta-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}
.vendor-cta-features ion-icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.vendor-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.vendor-cta-actions .btn-primary {
    background: var(--white);
    color: var(--blue);
}
.vendor-cta-actions .btn-primary:hover {
    background: var(--gray-100);
    box-shadow: none;
}

.vendor-cta-right {
    position: relative;
    z-index: 1;
}

.vendor-cta-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vendor-stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    color: var(--white);
}
.vendor-stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}
.vendor-stat-card span {
    font-size: 13px;
    opacity: 0.75;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials-section {
    padding: 64px 0;
    background: var(--gray-50);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.testimonial-quote {
    font-size: 28px;
    color: var(--blue);
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-weight: 700;
    font-size: 14px;
}
.testimonial-author span {
    font-size: 12px;
    color: var(--gray-400);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.testimonials-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}
.testimonials-nav-dot.active {
    background: var(--blue);
    transform: scale(1.3);
}

/* ── BLOG ────────────────────────────────────────────────── */
.blog-section {
    padding: 64px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16/9;
    display: block;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.blog-card-body {
    padding: 20px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 10px;
}
.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-title a:hover {
    color: var(--blue);
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    transition: var(--transition-fast);
}
.blog-read-more:hover {
    gap: 10px;
}

.blog-empty {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px;
    color: var(--gray-300);
    font-size: 48px;
}
.blog-empty p {
    font-size: 15px;
    color: var(--gray-400);
}

/* ── APP SECTION ─────────────────────────────────────────── */
.app-section {
    padding: 0 0 64px;
}

.app-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--gray-900);
    border-radius: var(--radius-xl);
    padding: 56px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.app-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: 40%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.15) 0%,
        transparent 70%
    );
}

.app-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}
.app-content h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
}
.app-content p {
    font-size: 15px;
    opacity: 0.75;
    line-height: 1.65;
    margin-bottom: 28px;
}

.app-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    color: var(--white);
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}
.app-badge:hover {
    background: rgba(255, 255, 255, 0.14);
}
.app-badge ion-icon {
    font-size: 24px;
}
.app-badge span {
    display: block;
    font-size: 11px;
    opacity: 0.7;
}
.app-badge strong {
    font-size: 15px;
    font-weight: 700;
}

.app-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-phone-mockup {
    width: 200px;
    height: 380px;
    background: var(--gray-800);
    border-radius: 32px;
    padding: 12px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.phone-screen {
    background: var(--white);
    border-radius: 22px;
    height: 100%;
    overflow: hidden;
}

.phone-screen-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.phone-header-bar {
    height: 36px;
    background: var(--blue);
    border-radius: 22px 22px 0 0;
}

.phone-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
    flex: 1;
}

.phone-product-card {
    background: var(--gray-100);
    border-radius: 10px;
    animation: shimmer 2s infinite;
    background-size: 200% 100%;
}

.phone-bottom-bar {
    height: 28px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

/* ── RECENTLY VIEWED ─────────────────────────────────────── */
.recently-viewed-section {
    padding: 48px 0;
    background: linear-gradient(to right, var(--gray-50), var(--white));
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.recently-empty {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    color: var(--gray-300);
    font-size: 48px;
}
.recently-empty p {
    font-size: 14px;
    color: var(--gray-400);
}

/* ── BRANDS SECTION ──────────────────────────────────────── */
.brands-section {
    padding: 48px 0;
    background: var(--white);
    overflow: hidden;
}

.brands-scroll {
    position: relative;
    overflow: hidden;
}

.brands-track {
    display: flex;
    gap: 48px;
    animation: scrollBrands 30s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 60px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.brand-logo:hover {
    background: var(--blue-xlight);
    border-color: var(--blue-light);
    transform: translateY(-2px);
}

.brand-logo span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}

.brand-logo:hover span {
    color: var(--blue);
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
}

.footer-top {
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
    gap: 48px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    height: 36px;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 8px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: var(--gray-400);
    font-size: 17px;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-social a:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-400);
}
.footer-contact ion-icon {
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--blue);
}
.footer-contact a {
    color: var(--gray-400);
    transition: var(--transition-fast);
}
.footer-contact a:hover {
    color: var(--white);
}

.footer-col p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 16px;
    line-height: 1.65;
}

.footer-newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.footer-newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--white);
    outline: none;
}
.footer-newsletter-form input::placeholder {
    color: var(--gray-500);
}
.footer-newsletter-form button {
    padding: 0 16px;
    background: var(--blue);
    color: var(--white);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.footer-newsletter-form button:hover {
    background: var(--blue-dark);
}

.footer-app-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-app-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--gray-300);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
}
.footer-app-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}
.footer-app-link ion-icon {
    font-size: 18px;
}

/* Footer categories bar */
.footer-categories-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 16px 0;
}
.footer-categories-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-categories-bar h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}
.footer-cats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-cat-link {
    font-size: 12px;
    color: var(--gray-400);
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}
.footer-cat-link:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer bottom */
.footer-bottom {
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.copyright {
    font-size: 13px;
    color: var(--gray-500);
}
.copyright a {
    color: var(--gray-400);
}
.copyright a:hover {
    color: var(--white);
}
.payment-logos {
    height: 28px;
    filter: grayscale(1) brightness(1.5);
}

/* ── QUICK VIEW ──────────────────────────────────────────── */
.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.quick-view-content {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90dvh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.92);
    transition: var(--transition);
}
.quick-view-modal.active .quick-view-content {
    transform: scale(1);
}

.quick-view-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px;
    color: var(--gray-400);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-100);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-blue);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--blue-dark);
    transform: translateY(-3px);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1/4;
    }
    .vendor-cta-card {
        padding: 40px;
        gap: 32px;
    }
    .app-card {
        padding: 40px;
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .promo-grid {
        grid-template-columns: 1fr 1fr;
    }
    .promo-card-wide {
        grid-column: 1/3;
    }
    .mega-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 900px) {
    .vendor-cta-card,
    .app-card {
        grid-template-columns: 1fr;
    }
    .app-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-main-h: 64px;
    }

    .topbar-left {
        display: none;
    }
    .topbar-center {
        flex: 1;
    }
    .ticker-content {
        display: none;
    }
    .topbar-ticker {
        gap: 4px;
        font-size: 11px;
    }

    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }

    /* Improved mobile header layout */
    .header-main .container {
        gap: 8px;
        padding: 0 12px;
    }

    .header-logo img {
        height: 32px;
    }

    /* Search becomes icon on mobile, expands when focused */
    .header-search {
        max-width: none;
        flex: 0 0 auto;
    }

    .search-box {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--gray-50);
        border: none;
        overflow: visible;
    }

    .search-box:focus-within {
        position: fixed;
        top: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        height: var(--header-main-h);
        border-radius: var(--radius);
        background: var(--white);
        border: 2px solid var(--blue);
        z-index: 1000;
        box-shadow: var(--shadow-lg);
    }

    .search-input {
        display: none;
        width: 0;
        padding: 0;
    }

    .search-box:focus-within .search-input {
        display: block;
        width: auto;
        padding: 0 16px;
        flex: 1;
    }

    .search-category-select,
    .search-divider {
        display: none;
    }

    .search-btn {
        width: 44px;
        height: 44px;
        background: transparent;
        color: var(--gray-600);
        border-radius: 50%;
    }

    .search-box:focus-within .search-btn {
        background: var(--blue);
        color: var(--white);
        border-radius: 0 var(--radius) var(--radius) 0;
    }

    .search-box::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: -1;
    }

    .search-box:focus-within::before {
        opacity: 1;
        visibility: visible;
    }

    .btn-sell span {
        display: none;
    }
    .btn-sell {
        padding: 9px;
        background: transparent;
    }
    .btn-sell:hover {
        background: var(--blue-xlight);
    }

    .hero-stats {
        display: none;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-desc {
        display: none;
    }

    .trust-grid {
        flex-direction: column;
        gap: 0;
    }
    .trust-divider {
        width: 100%;
        height: 1px;
    }
    .trust-item {
        justify-content: flex-start;
        padding: 14px 0;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }
    .promo-card-wide {
        grid-column: 1;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .flash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .product-tabs {
        gap: 2px;
        overflow-x: auto;
    }
    .tab-btn {
        padding: 7px 14px;
        white-space: nowrap;
        font-size: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-brand {
        grid-column: 1/3;
    }
    .footer-newsletter-col {
        grid-column: 1/3;
    }

    .vendor-cta-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .modal {
        grid-template-columns: 1fr;
    }
    .modal-visual {
        display: none;
    }
    .modal-form-side {
        padding: 28px 24px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        height: 55vmax;
        min-height: 320px;
    }
    .hero-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand,
    .footer-newsletter-col {
        grid-column: 1;
    }

    .vendor-cta-card {
        padding: 28px 20px;
    }
    .vendors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 14px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}
