/* iSQROLL Marketplace - Professional Styles */

:root {
    /* Primary colors - professional teal */
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #14B8A6;
    --primary-glow: rgba(13, 148, 136, 0.08);

    /* Accent - orange for CTAs */
    --accent: #FF6B00;
    --accent-light: #FF8533;

    /* Neutral palette */
    --slate-900: #111827;
    --slate-800: #1F2937;
    --slate-700: #374151;
    --slate-600: #4B5563;
    --slate-500: #6B7280;
    --slate-400: #9CA3AF;
    --slate-300: #D1D5DB;
    --slate-200: #E5E7EB;
    --slate-100: #F3F4F6;
    --slate-50: #F9FAFB;
    --white: #FFFFFF;

    /* Status colors */
    --success: #059669;
    --error: #DC2626;
    --warning: #D97706;

    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows - subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Border radius - tighter, more professional */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--slate-700);
    background: var(--slate-50);
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--slate-900);
}
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
.text-muted { color: var(--slate-500); }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-secondary {
    background: var(--white);
    color: var(--slate-700);
    border: 1px solid var(--slate-300);
}
.btn-secondary:hover {
    background: var(--slate-50);
    border-color: var(--slate-400);
}
.btn-ghost {
    background: transparent;
    color: var(--slate-600);
}
.btn-ghost:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}
.btn-accent {
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
}
.btn-accent:hover {
    background: var(--accent-light);
}
.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

/* Header */
.header {
    position: relative;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    height: 60px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--slate-900);
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
.logo .accent { color: var(--primary); }
.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}
.logo-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Navigation */
.nav-main { display: flex; gap: 2px; }
.nav-link {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s;
}
.nav-link:hover {
    color: var(--slate-900);
    background: var(--slate-100);
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: var(--slate-100);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.15s;
}
.header-search input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--primary);
}
.header-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.header-actions .btn svg {
    flex-shrink: 0;
}

/* User Menu */
.user-menu { position: relative; }
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s;
    z-index: 100;
}
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--slate-100);
}
.dropdown-name { font-weight: 600; font-size: 14px; }
.dropdown-email { font-size: 12px; color: var(--slate-500); }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.15s;
}
.dropdown-item:hover {
    background: var(--slate-50);
    color: var(--slate-900);
}
.dropdown-item.danger { color: var(--error); }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: var(--radius-md);
}
.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 1px;
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}
.mobile-nav.active { display: block; }
.mobile-nav .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
}
.mobile-nav-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--slate-200);
}
.mobile-nav-actions .btn { flex: 1; }

/* Hero Section - cleaner, less playful */
.hero {
    padding: 80px 0 40px;
    background: var(--white);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--slate-900);
}
.gradient-text {
    color: var(--primary);
}
.hero-content .lead {
    font-size: 1.125rem;
    color: var(--slate-600);
    margin-bottom: 24px;
    max-width: 440px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}
.hero-stats {
    display: flex;
    gap: 32px;
}
.hero-stat h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--slate-900);
}
.hero-stat p {
    font-size: 13px;
    color: var(--slate-500);
}
.hero-visual { position: relative; }
.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    border: 1px solid var(--slate-200);
}
.hero-card-image {
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--slate-100);
}
.hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card h4 {
    margin-bottom: 4px;
    font-size: 14px;
}
.hero-card .price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.hero-card .meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--slate-500);
}

/* Search Section */
.search-section {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
}
.search-bar {
    display: flex;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
}
.search-input-wrapper {
    flex: 1;
    position: relative;
}
.search-input-wrapper .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
}
.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    font-size: 14px;
    background: var(--white);
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    transition: all 0.15s;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
}
.category-select {
    padding: 12px 16px;
    font-size: 14px;
    background: var(--white);
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    min-width: 160px;
    cursor: pointer;
}

/* Sections */
.section {
    padding: 32px 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 1.25rem;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.listing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    transition: all 0.2s;
    cursor: pointer;
}
.listing-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--slate-300);
}
.listing-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--slate-100);
    overflow: hidden;
}
.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.listing-card:hover .listing-image img {
    transform: scale(1.03);
}
.listing-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--white);
}
.listing-save {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--slate-400);
    transition: all 0.15s;
}
.listing-save:hover {
    color: var(--error);
}
.listing-save.saved {
    background: var(--error);
    color: var(--white);
}
.listing-content {
    padding: 12px;
}
.listing-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-800);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.listing-price {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 8px;
}
.listing-price .was {
    font-size: 13px;
    font-weight: 400;
    color: var(--slate-400);
    text-decoration: line-through;
    margin-left: 6px;
}
.listing-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--slate-500);
}
.listing-location {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    background: var(--slate-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.category-card:hover .category-icon {
    background: var(--primary-glow);
}
.category-card h4 {
    font-size: 13px;
    font-weight: 500;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-100);
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
}
.card-body {
    padding: 20px;
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    background: var(--white);
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    transition: all 0.15s;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px;
    cursor: pointer;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Page Header */
.page-header {
    padding: calc(60px + 32px) 0 24px;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
}
.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}
.page-header .lead {
    color: var(--slate-500);
    font-size: 15px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--slate-500);
    margin-bottom: 12px;
}
.breadcrumb a { cursor: pointer; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--slate-300); }

/* Listing Detail */
.listing-detail {
    padding: calc(60px + 16px) 0 40px;
    background: var(--slate-50);
}
.listing-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}
.listing-gallery {
    position: sticky;
    top: calc(60px + 16px);
}
.gallery-main {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--slate-100);
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Listing Info Card */
.listing-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}
.listing-info-header {
    padding: 20px;
    border-bottom: 1px solid var(--slate-100);
}
.listing-info-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 16px 20px;
    text-align: center;
}
.listing-info-price .current {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-900);
}
.listing-info-price .was {
    font-size: 1rem;
    color: var(--slate-400);
    text-decoration: line-through;
}
.listing-info-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}
.listing-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.listing-info-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--slate-500);
}
.listing-buying-options {
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-100);
}
.listing-shipping-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-100);
}
.listing-shipping-section h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

/* Seller Card */
.seller-card {
    padding: 16px 20px;
}
.seller-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}
.seller-details h4 {
    font-size: 14px;
    margin-bottom: 2px;
}
.seller-details p {
    font-size: 12px;
    color: var(--slate-500);
}
.seller-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--warning);
}

/* Profile */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}
.empty-state-icon {
    width: 72px;
    height: 72px;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
}
.empty-state h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}
.empty-state p {
    color: var(--slate-500);
    margin-bottom: 20px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading Spinner */
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    padding: 16px;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: all 0.2s;
}
.modal-overlay.active .modal {
    transform: scale(1);
}
.modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
}
.modal-body { padding: 20px; }
.demo-box {
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 16px;
}
.demo-box-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-size: 13px;
}
.demo-box p {
    font-size: 13px;
    color: var(--slate-700);
    margin: 2px 0;
}
.demo-box code {
    background: var(--white);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 12px;
}
.modal-footer-text {
    text-align: center;
    font-size: 13px;
    color: var(--slate-500);
    margin-top: 16px;
}
.modal-footer-text a {
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--slate-900);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-size: 14px;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.2s;
    z-index: 3000;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* Footer */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 48px 0 24px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo {
    color: var(--white);
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 13px;
    line-height: 1.6;
    max-width: 260px;
}
.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: 13px;
    color: var(--slate-400);
    cursor: pointer;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--slate-700);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
    .listings-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .listing-detail-grid { grid-template-columns: 1fr; }
    .listing-gallery { position: static; }
}

@media (max-width: 900px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-search, .nav-main { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero { padding: 70px 0 32px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-content h1 { font-size: 1.75rem; }
    .hero-content .lead { margin: 0 auto 20px; font-size: 1rem; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }

    .search-bar { flex-direction: column; }
    .category-select { width: 100%; }

    .page-header { padding: calc(60px + 20px) 0 16px; }
    .page-header h1 { font-size: 1.5rem; }

    .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .listings-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-stats { gap: 20px; }
    .hero-stat h3 { font-size: 1.25rem; }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    z-index: 1000;
    padding: 6px 12px calc(env(safe-area-inset-bottom, 8px) + 6px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 8px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    color: var(--slate-500);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: var(--radius-md);
    min-width: 56px;
    flex: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

.bottom-nav-item.center {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 56px;
}

.bottom-nav-item.center:hover {
    background: var(--primary-dark);
    color: white;
}

.bottom-nav-item.center svg {
    width: 22px;
    height: 22px;
}

.bottom-nav-item.center span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.bottom-nav-item .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }

    /* Add padding to body so content isn't hidden behind bottom nav */
    body {
        padding-bottom: 80px;
    }

    .footer {
        margin-bottom: 0;
        padding-bottom: 100px;
    }

    /* Hide hamburger menu on mobile - use bottom nav instead */
    .mobile-menu-btn {
        display: none !important;
    }

    /* Hide desktop header nav items on mobile */
    .header-actions .btn {
        display: none;
    }

    .user-menu {
        display: none;
    }

    /* Simplified mobile header */
    .header {
        height: 56px;
    }

    .header-inner {
        height: 56px;
    }

    /* Show search on mobile header */
    .header-search {
        display: block;
        flex: 1;
        max-width: none;
        margin: 0 12px;
    }

    .header-search input {
        padding: 10px 12px 10px 36px;
        font-size: 15px;
        border-radius: var(--radius-lg);
        background: var(--slate-100);
    }
}

/* ============================================
   LISTING CARD - MOBILE APP STYLE
   ============================================ */

.listing-card-mobile {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    transition: all 0.2s;
}

.listing-card-mobile:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--slate-300);
}

.listing-card-mobile .listing-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--slate-100);
    overflow: hidden;
}

.listing-card-mobile .watchlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--slate-500);
}

.listing-card-mobile .watchlist-btn:hover,
.listing-card-mobile .watchlist-btn.active {
    background: var(--primary);
    color: white;
}

.listing-card-mobile .listing-content {
    padding: 16px;
}

.listing-card-mobile .listing-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.listing-card-mobile .listing-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.listing-card-mobile .btn-offer {
    background: var(--slate-100);
    color: var(--slate-700);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.listing-card-mobile .btn-offer:hover {
    background: var(--slate-200);
}

.listing-card-mobile .btn-buynow {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.listing-card-mobile .btn-buynow:hover {
    background: var(--primary-dark);
}

/* ============================================
   POPULAR CATEGORIES SECTION
   ============================================ */

.popular-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.popular-category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.popular-category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.popular-category-card .icon {
    width: 64px;
    height: 64px;
    background: var(--primary-glow);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}

.popular-category-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.popular-category-card p {
    font-size: 12px;
    color: var(--slate-500);
}

@media (max-width: 768px) {
    .popular-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   CREATE LISTING - TYPE SELECTOR
   ============================================ */

.listing-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.listing-type-card {
    background: var(--white);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.listing-type-card:hover {
    border-color: var(--primary);
}

.listing-type-card.active {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.listing-type-card .icon {
    width: 64px;
    height: 64px;
    background: var(--slate-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.listing-type-card.active .icon {
    background: var(--primary);
    color: white;
}

.listing-type-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.listing-type-card p {
    font-size: 13px;
    color: var(--slate-500);
}

@media (max-width: 768px) {
    .listing-type-selector {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FORM SECTIONS - LISTING FORMS
   ============================================ */

.form-section {
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-200);
}

.form-hint {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 4px;
}

.form-required {
    color: var(--error);
}

/* Photo Upload Area */
.photo-upload-area {
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}

.photo-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.photo-upload-area .icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--slate-400);
}

.photo-upload-area h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.photo-upload-area p {
    font-size: 13px;
    color: var(--slate-500);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--slate-300);
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

/* Sale Type Radio Buttons */
.sale-type-options {
    display: flex;
    gap: 12px;
}

.sale-type-option {
    flex: 1;
    background: var(--white);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sale-type-option:hover {
    border-color: var(--primary);
}

.sale-type-option.active {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.sale-type-option h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sale-type-option p {
    font-size: 12px;
    color: var(--slate-500);
}

/* ============================================
   iWATCH PAGE
   ============================================ */

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .watchlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .watchlist-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   iRATE - REVIEW SYSTEM
   ============================================ */

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-star {
    font-size: 24px;
    color: var(--slate-300);
    cursor: pointer;
    transition: all 0.15s;
}

.rating-star:hover,
.rating-star.active {
    color: var(--warning);
}

.review-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.review-meta h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.review-meta p {
    font-size: 12px;
    color: var(--slate-500);
}

.review-content {
    color: var(--slate-600);
    line-height: 1.6;
}

/* ============================================
   AUCTION RESULTS - iWON/iLOST
   ============================================ */

.auction-result-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.auction-result-card.won {
    border-left: 4px solid var(--success);
}

.auction-result-card.lost {
    border-left: 4px solid var(--error);
}

.auction-result-content {
    display: flex;
    gap: 16px;
    padding: 16px;
}

.auction-result-image {
    width: 100px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--slate-100);
}

.auction-result-info {
    flex: 1;
}

.auction-result-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.auction-result-info .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.auction-result-info .status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.auction-result-info .status.won {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.auction-result-info .status.lost {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error);
}

/* ============================================
   PROFILE MENU - MOBILE STYLE SECTIONS
   ============================================ */

.profile-menu-section {
    margin-bottom: 24px;
}

.profile-menu-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--slate-500);
    padding: 8px 16px;
    background: var(--slate-100);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.profile-menu-list {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid var(--slate-100);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background: var(--slate-50);
}

.profile-menu-item svg {
    width: 20px;
    height: 20px;
    color: var(--slate-500);
}

.profile-menu-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.profile-menu-item .arrow {
    color: var(--slate-400);
}

/* ============================================
   FUNDRAISER STYLES
   ============================================ */

/* Fundraiser Type Selector */
.fundraiser-type-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.fundraiser-type-option {
    padding: 20px 12px;
    border: 2px solid var(--slate-200);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    background: var(--white);
}

.fundraiser-type-option:hover {
    border-color: var(--primary-light);
    background: rgba(13, 148, 136, 0.02);
}

.fundraiser-type-option.active {
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.05);
}

.fundraiser-type-option .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.fundraiser-type-option h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
}

/* Product Row */
.product-row {
    display: grid;
    grid-template-columns: 80px 1fr 80px 80px 40px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--white);
}

.product-row .photo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--slate-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Fundraiser Cart */
.fundraiser-cart {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--slate-200);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-100);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    font-weight: 600;
    font-size: 18px;
    padding-top: 12px;
}

/* Payment Options Group */
.payment-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.payment-option-label:hover {
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.02);
}

.payment-option-label input[type="checkbox"],
.payment-option-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Shipping Options Group */
.shipping-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Fundraiser Products Grid (Detail View) */
.fundraiser-products-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.fundraiser-product-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--slate-50);
    border-radius: 8px;
}

/* Auction Bid Panel */
.auction-bid-panel {
    background: var(--slate-50);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.bid-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.bid-stat {
    padding: 12px;
    background: var(--white);
    border-radius: 6px;
}

.bid-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.bid-stat-label {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 4px;
}

/* Expandable Card */
.card.expanded .card-body {
    display: block !important;
}

/* Responsive Fundraiser Styles */
@media (max-width: 768px) {
    .fundraiser-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-row {
        grid-template-columns: 60px 1fr;
        gap: 8px;
    }

    .product-row .form-group {
        grid-column: span 2;
    }

    .product-row .form-group:nth-child(3),
    .product-row .form-group:nth-child(4) {
        grid-column: span 1;
    }

    .fundraiser-product-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }

    .fundraiser-product-item > div:nth-child(3),
    .fundraiser-product-item > div:nth-child(4) {
        grid-column: 2;
    }

    .bid-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bid-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }

    .bid-stat-value {
        font-size: 16px;
    }

    .bid-stat-label {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .fundraiser-type-option {
        padding: 16px 8px;
    }

    .fundraiser-type-option .icon {
        font-size: 24px;
    }

    .fundraiser-type-option h5 {
        font-size: 12px;
    }
}
