:root {
    --primary: #7c5e3c;
    --primary-light: #a07850;
    --primary-dark: #5a4028;
    --accent: #c9a96e;
    --accent-light: #e8d5a8;
    --accent-glow: rgba(201, 169, 110, 0.25);
    --bg-main: #faf7f2;
    --bg-card: #ffffff;
    --bg-dark: #1a1a2e;
    --bg-dark-light: #252540;
    --text-primary: #2d2a26;
    --text-secondary: #6b6560;
    --text-light: #9e9690;
    --border: #d8cfc3;
    --border-light: #e5ddd3;
    --shadow-sm: 0 2px 8px rgba(44, 42, 38, 0.07);
    --shadow-md: 0 4px 16px rgba(44, 42, 38, 0.09);
    --shadow-lg: 0 8px 30px rgba(44, 42, 38, 0.12);
    --shadow-hover: 0 12px 40px rgba(44, 42, 38, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

[data-theme="dark"] {
    --primary: #c9a96e;
    --primary-light: #d4b87e;
    --primary-dark: #b89858;
    --accent: #c9a96e;
    --accent-light: rgba(201, 169, 110, 0.2);
    --accent-glow: rgba(201, 169, 110, 0.15);
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --bg-dark: #0a0a0a;
    --bg-dark-light: #1a1a1a;
    --text-primary: #e8e6e3;
    --text-secondary: #a8a4a0;
    --text-light: #6e6a66;
    --border: #333;
    --border-light: #2a2a2a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1a1130 0%, #2a1a35 30%, #3a2a1c 70%, #4a3824 100%);
}

[data-theme="dark"] .message-received { background: #2a2520; }

[data-theme="dark"] .listing-img-placeholder,
[data-theme="dark"] .category-img-wrap { background: #252220; }

[data-theme="dark"] .table-hover tbody tr:hover { background: rgba(201, 169, 110, 0.06); }

[data-theme="dark"] .hero-search .form-control {
    background: rgba(30, 30, 30, 0.95);
    color: var(--text-primary);
}

[data-theme="dark"] .hero-search .form-control:focus { background: #1e1e1e; }

[data-theme="dark"] .accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background: var(--bg-card);
    color: var(--accent);
}

[data-theme="dark"] .btn-google { background: #2a2a2a; border-color: #444; color: var(--text-primary) !important; }

[data-theme="dark"] img { opacity: 0.92; }

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

main { flex: 1; }

body a { text-decoration: none; color: inherit; }
body a:hover { text-decoration: none; }

/* ── Navbar ────────────────────────────────────────────────────── */
.site-nav {
    background: var(--bg-dark);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 1030;
}

.site-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff !important;
    letter-spacing: -0.3px;
}

.site-nav .navbar-brand i { color: var(--accent); }

.site-nav .nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.site-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

.site-nav .badge {
    font-size: 0.62rem;
    padding: 0.2em 0.5em;
    background: var(--accent) !important;
    color: var(--bg-dark);
    font-weight: 700;
}

.site-nav .dropdown-menu {
    background: var(--bg-dark-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    min-width: 200px;
}

.site-nav .dropdown-item {
    color: rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
}

.site-nav .dropdown-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.site-nav .dropdown-divider { border-color: rgba(255,255,255,0.1); }

.site-nav .navbar-toggler {
    border: none;
    padding: 0.3rem 0.5rem;
}

.site-nav .navbar-toggler:focus { box-shadow: none; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #3a2d5c 0%, #5c3d6e 30%, #7c5e3c 70%, #a07850 100%);
    position: relative;
    overflow: hidden;
    padding: 3.5rem 1rem 3rem;
    margin-bottom: 2rem;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.015) 20px, rgba(255,255,255,0.015) 40px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255,255,255,0.015) 20px, rgba(255,255,255,0.015) 40px);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,110,0.12), transparent 70%);
    top: -150px;
    right: -80px;
    pointer-events: none;
}

.hero-section h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    position: relative;
}

.hero-section .lead {
    color: rgba(255,255,255,0.8) !important;
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    font-weight: 400;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.hero-search .form-control {
    border: none;
    border-radius: 50px;
    padding: 0.8rem 3rem 0.8rem 1.3rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.95);
    color: var(--text-primary);
}

.hero-search .form-control:focus {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    background: #fff;
}

.hero-search .form-control::placeholder { color: #999; }

.hero-search .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.hero-search .btn:hover { background: var(--primary-dark); }

/* ── Section ───────────────────────────────────────────────────── */
.section-title {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.section-link:hover { color: var(--primary-dark); }

/* ── Category Cards with Images ────────────────────────────────── */
a.category-card,
a.category-card:link,
a.category-card:visited {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0;
    text-align: center;
    text-decoration: none !important;
    color: var(--text-primary) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
}

a.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.category-img-wrap {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: #f5f0e8;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-label {
    display: block;
    font-weight: 600;
    font-size: clamp(0.72rem, 1.8vw, 0.88rem);
    padding: 0.5rem 0.3rem 0.7rem;
    color: var(--text-primary);
}

/* ── Listing Cards ─────────────────────────────────────────────── */
.listing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary) !important;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.listing-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f5f0e8, #ede6da);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.listing-card .card-body {
    padding: 0.9rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.listing-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.listing-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.listing-price-tag {
    display: inline-block;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    margin-bottom: 0.35rem;
    width: fit-content;
}

.listing-meta {
    font-size: 0.76rem;
    color: var(--text-light);
    margin-top: auto;
}

/* ── Generic Card ──────────────────────────────────────────────── */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
    transition: background-color 0.3s, border-color 0.3s;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-light);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 1.2rem;
    transition: all 0.2s;
    color: #fff !important;
}

[data-theme="dark"] .btn-primary { color: #1a1a1a !important; }

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 4px 12px rgba(124, 94, 60, 0.3);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border-radius: var(--radius-sm);
    font-weight: 500;
    border-color: var(--border) !important;
    color: var(--text-secondary) !important;
}

.btn-outline-secondary:hover {
    background: var(--bg-main) !important;
    border-color: var(--border) !important;
    color: var(--text-primary) !important;
}

.btn-google {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.55rem 1rem;
    transition: all 0.2s;
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #ccc;
    box-shadow: var(--shadow-sm);
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

/* ── Tables ────────────────────────────────────────────────────── */
.table { font-size: 0.88rem; color: var(--text-primary); }

.table thead th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
    padding: 0.75rem;
}

.table td {
    padding: 0.8rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

.table-hover tbody tr:hover { background: rgba(201, 169, 110, 0.04); }

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
    font-weight: 600;
    font-size: 0.73rem;
    padding: 0.3em 0.65em;
    border-radius: 6px;
}

/* ── Filter Panel ──────────────────────────────────────────────── */
.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    box-shadow: var(--shadow-sm);
}

.filter-panel h5 {
    font-size: 0.92rem;
    font-weight: 700;
}

/* ── Messages / Chat ───────────────────────────────────────────── */
.message-bubble {
    max-width: 80%;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

.message-sent {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-received {
    background: #f0ebe3;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-thread-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-main);
}

.message-thread-container::-webkit-scrollbar { width: 5px; }
.message-thread-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ── Timeline ──────────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--accent);
}

/* ── Auth Cards ────────────────────────────────────────────────── */
.auth-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 1.3rem;
}

.auth-header h2 {
    font-weight: 700;
    font-size: 1.4rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.88rem;
}

.auth-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    background: linear-gradient(135deg, var(--accent-light), #f5eed9);
    color: var(--primary);
}

[data-theme="dark"] .auth-icon { background: rgba(201, 169, 110, 0.15); }

.divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Profile ───────────────────────────────────────────────────── */
.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-light);
    box-shadow: var(--shadow-md);
}

.profile-avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-light), #f5eed9);
    color: var(--primary);
    font-size: 2.2rem;
    border: 3px solid var(--accent-light);
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.5);
    padding: 1.5rem 0;
    margin-top: 2.5rem;
    font-size: 0.82rem;
}

/* ── Empty States ──────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    background: var(--border-light);
    color: var(--text-light);
}

.empty-state p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ── Alerts ────────────────────────────────────────────────────── */
.alert { border-radius: var(--radius-md); font-size: 0.88rem; }

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb { font-size: 0.82rem; background: none; padding: 0; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item a:hover { color: var(--primary-dark); }

/* ── Page Header ───────────────────────────────────────────────── */
.page-header {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.page-header i { color: var(--accent); margin-right: 0.2rem; }

/* ── Pagination ───────────────────────────────────────────────── */
.pagination .page-link {
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    background: var(--bg-card);
    transition: all 0.2s;
}

.pagination .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-main);
    border-color: var(--border-light);
    color: var(--text-light);
}

/* ── Toast ─────────────────────────────────────────────────────── */
.toast {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light) !important;
    background: var(--bg-card) !important;
}

.toast-body { color: var(--text-primary); }

/* ── Carousel ──────────────────────────────────────────────────── */
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
}

.carousel-indicators .active { background: #fff; }

/* ── Wishlist Button ──────────────────────────────────────────── */
.wishlist-btn {
    transition: transform 0.2s;
}

.wishlist-btn:hover { transform: scale(1.15); }

/* ── Star Rating ──────────────────────────────────────────────── */
.star-rating-input { display: inline-flex; gap: 0.3rem; }

/* ── Accordion (FAQ) ──────────────────────────────────────────── */
.accordion-item { background: var(--bg-card); }
.accordion-button:focus { box-shadow: none; }
.accordion-body { background: var(--bg-card); }

/* ── Misc ──────────────────────────────────────────────────────── */
.text-primary { color: var(--primary) !important; }

.ws-badge {
    font-size: 0.68rem;
    padding: 0.2em 0.5em;
    border-radius: 4px;
}

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.modal-header, .modal-footer { border-color: var(--border-light); }

/* ── Global Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .listing-img { height: 180px; }
    .listing-img-placeholder { height: 180px; }
}

@media (max-width: 992px) {
    .hero-section { padding: 2.5rem 1rem 2rem; margin-bottom: 1.5rem; }
    .filter-panel { border-radius: var(--radius-md); margin-bottom: 1.5rem; }
}

@media (max-width: 768px) {
    .hero-section { padding: 2rem 0.5rem 1.5rem; border-radius: var(--radius-md) !important; }
    .hero-section h1 { font-size: 1.7rem; }
    .hero-search .form-control { padding: 0.7rem 2.8rem 0.7rem 1rem; font-size: 0.85rem; }
    .hero-search .btn { width: 32px; height: 32px; font-size: 0.8rem; }
    .category-img-wrap { height: 100px; }
    .listing-img { height: 160px; }
    .listing-img-placeholder { height: 160px; }
    .listing-card .card-body { padding: 0.7rem 0.8rem; }
    .listing-card .card-title { font-size: 0.82rem; }
    .listing-price { font-size: 0.9rem; }
    .listing-price-tag { font-size: 0.75rem; }
    .message-bubble { max-width: 88%; font-size: 0.85rem; }
    .message-thread-container { max-height: 400px; }
    .auth-card .card-body { padding: 1.5rem; }
    .auth-header h2 { font-size: 1.25rem; }
    .profile-avatar, .profile-avatar-placeholder { width: 90px; height: 90px; }
    .table { font-size: 0.8rem; }
    .table thead th { font-size: 0.7rem; padding: 0.6rem; }
    .table td { padding: 0.6rem; }
    .cart-summary-sticky { position: static !important; }
}

@media (max-width: 576px) {
    body { font-size: 0.88rem; }
    .container { padding-left: 12px; padding-right: 12px; }
    .site-nav .navbar-brand { font-size: 1rem; }
    .site-nav .nav-link { font-size: 0.82rem; padding: 0.4rem 0.7rem !important; }
    .hero-section {
        padding: 1.5rem 0.5rem 1.2rem;
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0 !important;
    }
    .hero-section h1 { font-size: 1.45rem; letter-spacing: -0.5px; }
    .hero-section .lead { font-size: 0.82rem; margin-bottom: 1rem; }
    .hero-search { max-width: 100%; }
    .hero-search .form-control { padding: 0.65rem 2.6rem 0.65rem 0.9rem; font-size: 0.82rem; }
    .section-title { font-size: 1.05rem; }
    .category-label { font-size: 0.7rem; padding: 0.35rem 0.2rem 0.5rem; }
    .category-img-wrap { height: 70px; }
    .listing-img { height: 130px; }
    .listing-img-placeholder { height: 130px; }
    .listing-card .card-body { padding: 0.6rem 0.7rem; }
    .listing-card .card-title { font-size: 0.78rem; }
    .listing-price-tag { font-size: 0.7rem; padding: 0.1rem 0.4rem; }
    .listing-meta { font-size: 0.7rem; }
    .card { border-radius: var(--radius-md); }
    .card-body { padding: 1rem; }
    .filter-panel { padding: 1rem; }
    .filter-panel h5 { font-size: 0.85rem; }
    .page-header { font-size: 1.15rem; }
    .btn { font-size: 0.82rem; padding: 0.45rem 1rem; }
    .btn-lg { font-size: 0.88rem !important; padding: 0.5rem 1.2rem !important; }
    .empty-state { padding: 2rem 0.5rem; }
    .empty-state-icon { width: 56px; height: 56px; font-size: 1.3rem; }
    .site-footer { padding: 1.2rem 0; font-size: 0.78rem; }
    .order-item-row .row > [class*="col-md"] {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left !important;
        margin-bottom: 0.3rem;
    }
    .table-responsive { border-radius: var(--radius-md); }
}

/* ─── User Profile Links ────────────────────────────────────── */
.user-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, opacity 0.2s;
}
.user-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ─── Clickable Listing Cards ───────────────────────────────── */
.listing-card-clickable {
    cursor: pointer;
}

@media (max-width: 400px) {
    .hero-section h1 { font-size: 1.25rem; }
    .hero-section .lead { font-size: 0.78rem; }
    .category-label { font-size: 0.65rem; }
    .listing-img { height: 110px; }
    .listing-img-placeholder { height: 110px; }
    .auth-card .card-body { padding: 1.2rem; }
}
