/* ==========================================================================
   سوقنا - Claude Warm Orange Theme
   Marketplace CSS v3.0
   ========================================================================== */

/* 🟠 VERSION MARKER v2026-07-18-C — إلا شفتي هاد السطر فالملف فالسيرفر،
   معناه الملف الجديد طلع صحيح. إلا مالقيتيهش، مازال الملف القديم كاين. */

/* ===== CSS Custom Properties (Claude Warm Orange Palette) ===== */
:root {
    /* Primary Coral/Terracotta Spectrum (لون Claude) */
    --primary-50: #fdf5f2;
    --primary-100: #fbe8e1;
    --primary-200: #f5cec0;
    --primary-300: #edac95;
    --primary-400: #e58c6c;
    --primary-500: #da7756;
    --primary-600: #c15f40;
    --primary-700: #a14a30;
    --primary-800: #813c28;
    --primary-900: #693223;
    --primary-950: #391910;

    /* Warm Accent */
    --accent-400: #edac95;
    --accent-500: #da7756;
    --accent-600: #c15f40;

    /* Neutrals */
    --gray-50: #faf9f7;
    --gray-100: #f4f2ee;
    --gray-200: #e8e4dd;
    --gray-300: #d4cec3;
    --gray-400: #a39c8f;
    --gray-500: #78716a;
    --gray-600: #57534e;
    --gray-700: #3b3733;
    --gray-800: #292521;
    --gray-900: #1a1815;

    /* Semantic Colors */
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    --success-border: #a7f3d0;
    --danger-bg: #fef2f2;
    --danger-text: #991b1b;
    --danger-border: #fecaca;
    --warning-bg: #fffbeb;
    --warning-text: #92400e;
    --warning-border: #fde68a;

    /* Functional Variables */
    --primary: var(--primary-600);
    --primary-dark: var(--primary-800);
    --primary-light: var(--primary-500);
    --primary-rgb: 193, 95, 64;
    --bg-body: #f7f4ef;
    --bg-card: #ffffff;
    --text-primary: #17171a;
    --text-secondary: var(--gray-500);
    --text-light: var(--gray-400);
    --border-color: var(--gray-200);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 6px 14px 0 rgba(0, 0, 0, 0.07);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Utility Classes ===== */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-white { color: #ffffff !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-white { background-color: var(--bg-card) !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== Top Bar / Header ===== */
.top-bar {
    background: var(--bg-body);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1.5px solid var(--gray-300);
    box-shadow: none;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.logo h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-600);
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
    background: var(--primary-50);
}

.user-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

.user-name strong {
    color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-600);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(193, 95, 64, 0.35);
}

.btn-primary:hover {
    background: var(--primary-700);
    box-shadow: 0 4px 12px rgba(193, 95, 64, 0.45);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    border: 2px solid var(--primary-600);
    color: var(--primary-600) !important;
    background: transparent;
}

.btn-google {
    background: #ffffff !important;
    color: #444 !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    font-weight: 600 !important;
}

.btn-google:hover {
    background: #f8f9fa !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    transform: translateY(-1px);
}

.btn-google svg {
    margin-left: 10px;
}


.btn-outline:hover {
    background: var(--primary-600);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(193, 95, 64, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc2626;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45);
    transform: translateY(-2px);
}

.btn-success {
    background: #059669;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    background: #047857;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

/* ===== Hero Section ===== */
.hero-section {
    background: #ffffff;
    padding: 5rem 0 4rem;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 auto 0.6rem;
    max-width: 20ch;
    color: var(--gray-800);
    animation: heroFadeUp 0.55s ease both;
}

.hero-section > .container > p {
    display: block;
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 32ch;
    margin: 0 auto 1.8rem;
    line-height: 1.6;
    animation: heroFadeUp 0.55s 0.08s ease both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--primary-50);
    color: var(--primary-700);
    border: 1px solid var(--primary-100);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    animation: heroFadeUp 0.5s ease both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section h2,
    .hero-section > .container > p,
    .hero-eyebrow {
        animation: none;
    }
}

/* ===== Search Container ===== */
.search-container {
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-xl);
    display: flex;
    max-width: 680px;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(218, 119, 86, 0.15);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text-primary);
}

.search-container input::placeholder {
    color: var(--gray-400);
}

.search-container button {
    background: var(--primary-600);
    color: var(--bg-card);
    border: none;
    padding: 0.4rem 1.4rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    align-self: center;
    margin-top: -4px;
}

.search-container button:hover {
    background: var(--primary-700);
    box-shadow: 0 4px 15px rgba(193, 95, 64, 0.4);
}

/* ===== City Filters ===== */
.city-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.city-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.5rem 0.9rem;
    background: #ffffff;
    border: 1.5px solid var(--gray-200);
    border-radius: 11px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition), transform 0.15s ease;
    overflow: hidden;
    isolation: isolate;
}

.city-chip::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.35) 0%, rgba(var(--primary-rgb), 0) 70%);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.city-chip:active::after {
    opacity: 1;
    transform: scale(1.6);
    transition: opacity 0s, transform 0s;
}

.city-chip:active {
    transform: scale(0.96);
}

.city-chip svg.chip-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    color: var(--primary-600);
    transition: var(--transition);
}

.city-chip:hover svg.chip-icon,
.city-chip.active svg.chip-icon {
    color: #ffffff;
}

.city-chip:hover {
    border-color: var(--primary-400);
    transform: translateY(-1px);
}

.city-chip.active {
    background: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-700);
    font-weight: 700;
}

.city-chip.active svg.chip-icon {
    color: var(--primary-600);
}

.city-chip.active::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-600);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    margin-left: 0.15rem;
}

/* ===== Section Title (Modern) ===== */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.section-heading .section-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    background: var(--primary-600);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(193, 95, 64, 0.3);
    flex-shrink: 0;
}

.section-heading .section-heading-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.section-heading .section-title-modern {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.2;
}

.section-heading .section-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-600);
    margin: 0.15rem 0 0;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--gray-800);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-600);
    border-radius: 2px;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

/* ===== Product Card ===== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(218, 119, 86, 0.08);
    border-color: var(--primary-200);
}

.product-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-image-wrapper {
    overflow: hidden;
    position: relative;
}

.product-content {
    padding: 1.5rem;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--primary-600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.product-card .btn {
    width: 100%;
}

/* ===== Empty State ===== */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}

.empty-state p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.empty-state .btn {
    display: inline-flex;
    width: auto;
}

/* ===== Auth Pages (Login / Register) ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--primary-500);
}

.auth-card h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-card .form-group {
    margin-bottom: 0;
}

.auth-card .btn {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-600);
    font-weight: 700;
}

.auth-footer a:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* ===== Welcome Modal (after login / register) ===== */
.welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(35, 38, 47, 0.55);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: welcomeFadeIn 0.25s ease;
}
.welcome-overlay.closing { animation: welcomeFadeOut 0.2s ease forwards; }
@keyframes welcomeFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcomeFadeOut { from { opacity: 1; } to { opacity: 0; } }

.welcome-modal {
    background: #FFFFFF;
    border: 1px solid #E6DFD1;
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(35, 38, 47, 0.25);
    animation: welcomePop 0.3s ease;
}
@keyframes welcomePop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.welcome-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}

.welcome-modal h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #23262F;
    margin: 0 0 0.5rem;
}

.welcome-modal p {
    font-size: 0.9rem;
    color: #8B8579;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.welcome-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    background: #7C3908;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(180, 83, 10, 0.25);
    transition: var(--transition);
    font-family: inherit;
}
.welcome-btn:hover { filter: brightness(1.06); }

/* ===== Mobile-Style Auth Screens (Login / Register / Verify / Forgot Password) ===== */
.mobile-auth-page {
    --auth-bg: #F7F4EF;
    --auth-card: #FFFFFF;
    --auth-border: #E8E4DD;
    --auth-text: #17171A;
    --auth-muted: #8B8579;
    --auth-accent: #C15F40;
    --auth-accent-dark: #A14A30;
    --auth-accent-soft: rgba(193, 95, 64, 0.10);
    --auth-input-bg: #FAF9F7;

    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--auth-bg);
    padding: 3.25rem 1.5rem 1.5rem;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

.mobile-auth-card {
    background: var(--auth-card);
    width: 100%;
    max-width: 400px;
    max-height: 100%;
    overflow-y: auto;
    border-radius: 14px;
    border: none;
    padding: 2.75rem 1.75rem 1.5rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

.mobile-auth-back-row {
    display: flex;
    margin-bottom: 1.5rem;
}

.mobile-auth-back {
    position: fixed;
    top: 1.35rem;
    left: 1.35rem;
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--auth-text);
    text-decoration: none;
    transition: var(--transition);
    z-index: 50;
}
.mobile-auth-back:hover { background: var(--auth-accent-soft); border-color: var(--auth-accent); }
.mobile-auth-back svg { width: 17px; height: 17px; }

.mobile-auth-hero {
    display: flex;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.mobile-auth-hero img {
    width: 100%;
    max-width: 190px;
    max-height: 120px;
    object-fit: contain;
}

.mobile-auth-title {
    font-size: 1.45rem;
    font-weight: 800;
    text-align: center;
    color: var(--auth-text);
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}

.mobile-auth-subtitle {
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.mobile-auth-card form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    flex-shrink: 0;
}

.mobile-form-group { margin-bottom: 0; }

.mobile-form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--auth-text);
    margin-bottom: 0.4rem;
}

.mobile-input-wrap { position: relative; }

.mobile-input-icon {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    transform: translateY(-50%);
    color: var(--auth-accent);
    font-size: 0.95rem;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.mobile-form-control.has-icon { padding-right: 2.6rem; }

.mobile-form-control {
    width: 100%;
    padding: 0.6rem 0.95rem;
    border: 1.5px solid var(--auth-border);
    border-radius: 0;
    background: var(--auth-input-bg);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--auth-text);
    outline: none;
    transition: var(--transition);
}

.mobile-form-control::placeholder { color: var(--auth-muted); }

.mobile-form-control:focus {
    border-color: var(--auth-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--auth-accent-soft);
}

.mobile-input-wrap .mobile-form-control.has-toggle { padding-left: 3rem; }

.mobile-password-toggle {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--auth-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: var(--transition);
}
.mobile-password-toggle:hover { color: var(--auth-accent); }
.mobile-password-toggle svg { width: 18px; height: 18px; }
.mobile-password-toggle i { font-size: 1.05rem; line-height: 1; }

.mobile-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.mobile-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--auth-muted);
    cursor: pointer;
}

.mobile-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-accent);
    cursor: pointer;
}

.mobile-forgot-link {
    color: var(--auth-accent);
    font-weight: 700;
    text-decoration: none;
}
.mobile-forgot-link:hover { text-decoration: underline; }

.mobile-btn-primary {
    width: 100%;
    padding: 0.65rem;
    border: none;
    border-radius: 0;
    background: var(--auth-accent);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(193, 95, 64, 0.25);
    transition: var(--transition);
    flex-shrink: 0;
}
.mobile-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.mobile-btn-primary:active { transform: translateY(0); }
.mobile-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.mobile-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0;
    color: var(--auth-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.mobile-auth-divider::before,
.mobile-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.mobile-btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem;
    border-radius: 0;
    border: 1.5px solid var(--auth-border);
    background: #fff;
    color: var(--auth-text);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}
.mobile-btn-google:hover { background: var(--auth-input-bg); }

.mobile-auth-footer {
    text-align: center;
    margin-top: 1.6rem;
    padding-top: 0;
    color: var(--auth-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.mobile-auth-footer a { color: var(--auth-accent); font-weight: 700; text-decoration: none; }
.mobile-auth-footer a:hover { text-decoration: underline; }

.mobile-otp-row {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    direction: ltr;
}

.mobile-otp-box {
    width: 44px;
    height: 52px;
    border-radius: 8px;
    border: 1.5px solid var(--auth-border);
    background: var(--auth-input-bg);
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--auth-text);
    outline: none;
    transition: var(--transition);
}
.mobile-otp-box:focus {
    border-color: var(--auth-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--auth-accent-soft);
}

.mobile-resend-row {
    text-align: center;
    font-size: 0.88rem;
    color: var(--auth-muted);
}
.mobile-resend-row button {
    background: none;
    border: none;
    color: var(--auth-accent);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
    padding: 0;
    font-family: inherit;
}
.mobile-resend-row button:hover { text-decoration: underline; }

.mobile-alert {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}
.mobile-alert.mobile-alert-success {
    background: #EEF5EC;
    color: #2F6B33;
    border: 1px solid #CFE4CC;
}
.mobile-alert.mobile-alert-danger {
    background: #FBEAE7;
    color: #A3351F;
    border: 1px solid #F0C9C1;
}

.mobile-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.mobile-auth-brand img {
    height: 34px;
    width: 34px;
    border-radius: 8px;
    object-fit: cover;
}
.mobile-auth-brand span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--auth-accent);
}

.auth-segment-wrap {
    position: relative;
    margin-bottom: 1.75rem;
}

.auth-segment {
    position: relative;
    display: flex;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.auth-segment-indicator {
    position: absolute;
    bottom: -6px;
    height: 3px;
    border-radius: 3px;
    background: var(--auth-accent);
    transition: left 0.3s ease, width 0.3s ease;
}
.auth-segment button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.65rem 0;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--auth-muted);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.auth-segment button.active {
    background: #fff;
    color: var(--primary-600);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

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

@media (max-width: 480px) {
    .mobile-auth-card { border-radius: 0; padding: 2.5rem 1.25rem 1.25rem; box-shadow: none; }
    .mobile-auth-page { padding-top: 1.5rem; background: #fff; }
}

/* ===== Form Styles ===== */
.form-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 680px;
    margin: 3rem auto;
    border: 1px solid var(--gray-100);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    background: var(--bg-body);
}

.form-control:focus {
    border-color: var(--primary-500);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(218, 119, 86, 0.15);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 18px;
    padding-left: 3rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

input[type="file"].form-control {
    padding: 0.6rem;
    cursor: pointer;
}

/* ===== Alert Messages ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

/* ===== Product Details Page ===== */
.product-detail-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.product-gallery img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 450px;
    object-fit: cover;
}

.product-info-detailed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.city-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-100);
    color: var(--primary-800);
    padding: 0.4rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
}

.product-info-detailed h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1.4;
}

.product-price-large {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--primary-600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description-box {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
}

.description-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.description-box p {
    color: var(--gray-600);
    white-space: pre-line;
    line-height: 1.8;
}

.seller-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
}

.seller-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--bg-card);
}

.seller-info {
    flex: 1;
}

.seller-info .seller-name {
    font-weight: 700;
    color: var(--gray-800);
}

.seller-info .seller-since {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-buttons .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ===== Form Card Header ===== */
.form-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--gray-800);
}

.form-card small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.4rem;
}

/* ===== Admin Dashboard ===== */
.admin-body {
    background: var(--gray-100);
    min-height: 100vh;
}

.admin-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-bottom: 3rem;
}

/* Sidebar */
.sidebar-menu {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 96px;
    height: fit-content;
    border: 1px solid var(--gray-100);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-right: 3px solid transparent;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary-50);
    color: var(--primary-600);
    border-right-color: var(--primary-600);
}

/* Admin Cards */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-100);
}

.admin-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-card h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--primary-600);
    border-radius: 2px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.admin-table thead th {
    background: var(--gray-800);
    color: var(--bg-card);
    padding: 1rem 1.25rem;
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--primary-50);
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    vertical-align: middle;
    font-size: 0.9rem;
}

.admin-table .product-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--gray-100);
}

.admin-table .product-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* Status Badges */
.status-badge {
    padding: 0.3rem 1rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

.status-approved {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

/* City Tags */
.city-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.city-tag {
    background: var(--gray-50);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: var(--transition);
}

.city-tag:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.city-tag .delete-city {
    color: var(--danger-text);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.city-tag .delete-city:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Add City Form */
.add-city-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.add-city-form .form-control {
    margin-bottom: 0;
}

/* ===== Footer ===== */
.main-footer {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--gray-800);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-500);
    border-radius: 2px;
}

.footer-col p {
    display: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-400);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Live Chat Widget ===== */
#live-chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

/* ===== Loading / Skeleton ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ===== Selection ===== */
::selection {
    background: var(--primary-200);
    color: var(--primary-900);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-menu {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }

    .sidebar-menu a {
        border-right: none;
        border-bottom: 2px solid transparent;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .sidebar-menu a.active {
        border-right-color: transparent;
        border-bottom-color: var(--primary-600);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .top-bar .container {
        height: 60px;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a:not(.btn) {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-section {
        padding: 3rem 0 2.5rem;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .hero-section > .container > p {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .search-container input {
        border-radius: var(--radius-md);
        margin-bottom: 0.5rem;
    }

    .search-container button {
        width: 100%;
        padding: 0.8rem;
        border-radius: var(--radius-md);
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .product-gallery img {
        height: 300px;
    }

    .form-card {
        padding: 2rem;
        margin: 2rem auto;
    }

    .form-card h2 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .city-filters {
        gap: 0.5rem;
    }

    .city-chip {
        padding: 0.34rem 0.65rem;
        font-size: 0.68rem;
        border-radius: 9px;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease-out;
}

.admin-card {
    animation: fadeInUp 0.4s ease-out;
}

.auth-card {
    animation: fadeInUp 0.6s ease-out;
}


/* ===== User Profile Menu ===== */
.user-profile-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 2px solid var(--primary-200);
    transition: var(--transition);
    object-fit: cover;
}

.profile-avatar:hover {
    border-color: var(--primary-600);
    box-shadow: 0 0 12px rgba(193, 95, 64, 0.3);
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    min-width: 220px;
    margin-top: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.user-profile-menu:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    padding-right: 1.5rem;
}

.dropdown-item.danger {
    color: var(--danger-text);
}

.dropdown-item.danger:hover {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.profile-dropdown hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* ===== Category Picker (add product form) ===== */
.category-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 0.5rem;
    margin-top: 0.4rem;
}

.category-picker-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.category-picker-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.category-picker-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--primary-50);
    border: 1.5px solid var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    transition: var(--transition);
}

.category-picker-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.category-picker-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.25;
}

.category-picker-item input[type="radio"]:checked + .category-picker-icon {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(193, 95, 64, 0.3);
    transform: translateY(-2px);
}

.category-picker-item input[type="radio"]:checked ~ .category-picker-label {
    color: var(--primary-700);
    font-weight: 700;
}

.category-picker-item input[type="radio"]:focus-visible + .category-picker-icon {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .category-picker {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Category Toggle Button (styled to match city-chip) + Bottom Sheet ===== */
.category-toggle-btn.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: #ffffff;
}

.category-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 10400;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.category-sheet-overlay.active {
    display: block;
    opacity: 1;
}

.category-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    z-index: 10500;
    padding: 0.6rem 1.2rem 1.6rem;
    max-height: 75vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}

.category-sheet.active {
    transform: translateY(0);
}

.category-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: var(--gray-200);
    margin: 0.4rem auto 1rem;
}

.category-sheet-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gray-800);
    margin: 0 0 1rem;
    text-align: center;
}

.category-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.category-sheet-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--gray-800);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: right;
    padding: 0.75rem 0.6rem;
    border-radius: 12px;
    transition: var(--transition);
}

.category-sheet-item:hover {
    background: var(--primary-50);
}

.category-sheet-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 50%;
    background: var(--primary-50);
    border: 1.5px solid var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    transition: var(--transition);
}

.category-sheet-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.category-sheet-item.active {
    background: var(--primary-50);
    color: var(--primary-700);
}

.category-sheet-item.active .category-sheet-icon {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: #ffffff;
}

.category-sheet-item.active::after {
    content: '✓';
    margin-right: auto;
    font-weight: 800;
    color: var(--primary-600);
}
