/* =============================================
   LI Маркет - Main Styles (Natural Theme)
   ============================================= */

/* Google Fonts removed — using system fonts (better for RU users) */


:root {
    --primary-color: #6B7F5E;
    --primary-hover: #5A6D4E;
    --primary-light: rgba(107,127,94,0.10);
    --accent-color: #C4960A;
    --accent-warm: #FFD580;
    --cream-bg: #F5EFEA;
    --cream-light: #FAF6F2;
    --card-wood: linear-gradient(135deg, #E8DDD0 0%, #D9CDBF 30%, #E5D9CC 60%, #DDD1C3 100%);
    --card-wood-hover: linear-gradient(135deg, #DDD1C3 0%, #D0C4B5 30%, #DDD1C3 60%, #D3C7B8 100%);
    --dark-bg: #3D4A35;
    --text-dark: #2C2C2C;
    --text-muted-warm: #7A7264;
    --shadow-soft: 0 2px 16px rgba(60,50,30,0.10);
    --shadow-hover: 0 8px 32px rgba(60,50,30,0.16);
    --shadow-card: 0 2px 8px rgba(60,50,30,0.09);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --transition-base: 0.32s cubic-bezier(.4,0,.2,1);
    --transition-fast: 0.18s cubic-bezier(.4,0,.2,1);
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
    background: var(--cream-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream-bg);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    padding-bottom: 60px;
}

/* Base link transitions */
a {
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

/* Улучшенные фокус-стили для доступности */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/* ========== Navbar ========== */
.navbar {
    background: var(--primary-color) !important;
    border: none;
    padding: 0.85rem 0;
    box-shadow: 0 4px 24px rgba(61,74,53,0.13);
    border-radius: 0 0 18px 18px;
}

/* Mobile navbar collapse */
.navbar-nav {
    list-style: none !important;
    padding-left: 0 !important;
}
.navbar-nav li {
    list-style: none !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-color);
        border-radius: 0 0 14px 14px;
        padding: 0.5rem 0;
    }
    .navbar-collapse .navbar-nav {
        padding: 0.5rem 0;
        gap: 0.15rem;
    }
    .navbar-collapse .nav-link {
        padding: 0.65rem 1rem !important;
        border-radius: 10px;
        margin: 0 0.5rem;
    }
    .navbar-collapse .nav-link:hover {
        background: rgba(255,255,255,0.15);
    }
    .navbar-collapse form {
        margin: 0.5rem 0.5rem 0.25rem !important;
        max-width: 100% !important;
    }
}

/* Seller sub-navigation */
.seller-subnav {
    background: var(--primary-hover);
    border-radius: 0 0 14px 14px;
    margin-top: -18px;
    padding-top: 18px;
    box-shadow: 0 2px 12px rgba(61,74,53,0.10);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.seller-subnav .container {
    flex-wrap: nowrap;
}
.seller-subnav::-webkit-scrollbar {
    display: none;
}
.seller-subnav .btn {
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
}
.seller-subnav .btn-outline-light {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.25);
}
.seller-subnav .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.seller-subnav .btn-light {
    background: rgba(255,255,255,0.92);
    color: var(--primary-hover);
    font-weight: 600;
    border-color: transparent;
}

.navbar-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #fff !important;
    transition: opacity var(--transition-fast);
}

.navbar-brand:hover {
    opacity: 0.9;
}


.navbar .nav-link {
    transition: color var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 12px;
    padding: 0.55rem 1.1rem !important;
    margin: 0 0.15rem;
}

.navbar .nav-link:hover {
    opacity: 0.95;
    background: var(--accent-warm);
    color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(196,150,10,0.10);
}


/* Cart Badge */
.cart-badge {
    font-size: 0.7rem;
    padding: 0.22em 0.55em;
    background: var(--accent-color) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(196,150,10,0.13);
}

/* Dropdown меню стиль */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 0.7rem 0.5rem;
    background: var(--cream-light);
    animation: dropdownFade 0.2s ease;
}

/* Декоративная линия */
.section-title {
    position: relative;
    padding-bottom: 0.4em;
    margin-bottom: 1.5em;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}
.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-top: 0.5em;
}

/* Анимация появления */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Улучшение читаемости */
.card, .category-section-card {
    background: var(--card-wood);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: none;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    margin-bottom: 1.5rem;
}
.card:hover, .category-section-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px) scale(1.02);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 2px 8px rgba(196,150,10,0.10);
}
.btn-accent:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(107,127,94,0.13);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 2.5rem 0 1.2rem 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -2px 24px rgba(61,74,53,0.10);
    margin-top: 3rem;
    font-size: 1rem;
}
footer a {
    color: var(--accent-warm);
    text-decoration: underline dotted;
    transition: color var(--transition-fast);
}
footer a:hover {
    color: #fff;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 1.3em;
    margin-right: 0.3rem;
}

/* ========== Search ========== */
.search-suggestion-item:hover {
    background-color: var(--cream-light) !important;
}
.search-suggestion-item:last-of-type {
    border-bottom: none !important;
}
#searchSuggestions {
    border-top: none !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
}

/* ========== Address Autocomplete ========== */
.address-suggestion-item:hover {
    background-color: var(--cream-light) !important;
}
.address-suggestion-item:last-child {
    border-bottom: none !important;
}
.address-suggestions {
    border-top: none !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
}

/* ========== Hero Section ========== */
.hero-section {
    border-radius: 24px;
    overflow: hidden;
    padding: 0;
    position: relative;
    background: var(--primary-color);
    min-height: 200px;
}

.hero-banner-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(107,127,94,0.42) 0%, rgba(45,56,39,0.54) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.25rem;
    text-align: center;
}

/* Fallback when image fails to load */
.hero-section .hero-banner-img[style*="display: none"] ~ .hero-overlay,
.hero-section .hero-banner-img[style*="display:none"] ~ .hero-overlay {
    position: relative;
}

.hero-section.hero-no-img .hero-overlay {
    position: relative;
    min-height: 180px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}
@media (max-width: 576px) {
    .hero-section.hero-no-img .hero-overlay {
        min-height: 120px;
    }
}

.hero-overlay h1 {
    max-width: 980px;
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4.3vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.28);
}

.hero-overlay p {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1rem, 1.9vw, 2rem);
    line-height: 1.3;
    font-weight: 500;
    opacity: 0.92;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

/* ========== Product Cards ========== */
.product-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover) !important;
}

.product-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.03);
}

.product-img-placeholder {
    height: 200px;
    background: var(--cream-light) !important;
}

.product-card .card-title {
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-dark);
}

.product-card .card-title a {
    transition: color var(--transition-fast);
}

.product-card .card-title a:hover {
    color: var(--primary-color) !important;
}

/* ========== Category Cards ========== */
.category-card {
    border: none;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    background: var(--card-wood);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover) !important;
    background: var(--card-wood-hover);
}

/* Category Section Cards (Home page) */

/* -- Category Tabs (horizontal scroll) -- */
.cat-tabs-wrap {
    margin-bottom: 2.5rem;
}
.cat-tabs-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}
.cat-tabs-scroll.is-dragging { cursor: grabbing; }
.cat-tabs-scroll::-webkit-scrollbar { display: none; }

.cat-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 14px;
    background: var(--card-wood);
    border: 1.5px solid rgba(107,127,94,0.15);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(60,50,30,0.06);
}
.cat-tab:hover {
    background: var(--card-wood-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    color: var(--primary-color);
}
.cat-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(107,127,94,0.13);
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cat-tab-count {
    background: rgba(107,127,94,0.12);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* -- Category Cards (grid) -- */
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--card-wood);
    border: 1.5px solid rgba(107,127,94,0.10);
    transition: all var(--transition-base);
    height: 100%;
}
.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: var(--card-wood-hover);
    border-color: var(--primary-color);
}
.cat-card-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(107,127,94,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    overflow: hidden;
}
.cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-card-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}
.cat-card-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}
.cat-card:hover .cat-card-name {
    color: var(--primary-color);
}
.cat-card-count {
    color: var(--text-muted-warm);
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
}
.cat-card-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: auto;
}
.cat-card-sub {
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(107,127,94,0.09);
    color: var(--text-muted-warm);
    font-weight: 500;
}

/* ========== Section Titles ========== */
.section-title {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1.75rem;
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 0.6rem auto 0;
    opacity: 0.6;
}

/* ========== Order Status ========== */
.status-new { color: #3478C7; }
.status-confirmed { color: #2D8659; }
.status-preparing { color: #C4960A; }
.status-ready { color: #0AAFCF; }
.status-with_courier { color: #D17615; }
.status-delivered { color: #2D8659; }
.status-cancelled { color: #C53E3E; }

/* ========== Rating Stars ========== */
.text-warning {
    color: #E8AD13 !important;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #E8AD13;
}

/* ========== Forms ========== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: #D5CDBF;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-size: 0.93rem;
    padding: 0.55rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(107, 127, 94, 0.18);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

/* ========== Buttons ========== */
.btn {
    transition: all var(--transition-base);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    box-shadow: 0 4px 14px rgba(107,127,94,0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(107,127,94,0.25);
}

.btn-outline-secondary {
    transition: all var(--transition-fast);
}

.btn-outline-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Rounded pill buttons */
.btn.rounded-pill {
    border-radius: 50rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

/* Add to Cart Animation */
.add-to-cart-btn.adding {
    animation: cartPulse 0.3s ease;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ========== Cards General ========== */
.card {
    border-radius: var(--radius-md);
    border: none;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--transition-base);
}

.card-header {
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    background: var(--cream-light);
    border-bottom: 1px solid #E8E0D5;
    font-weight: 600;
}

/* ========== Footer ========== */
footer {
    background: var(--dark-bg) !important;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 0.85rem;
}

footer a {
    transition: color var(--transition-fast);
}

footer a:hover {
    color: #B8C9A8 !important;
}

footer .text-white-50 {
    line-height: 1.6;
}

/* ========== Alerts ========== */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.9rem;
    animation: alertSlide 0.3s ease;
}

@keyframes alertSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.88rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ========== Utility Classes ========== */
.gap-comfortable {
    gap: 1.25rem;
}

/* ========== Loading / Skeleton ========== */
.placeholder-glow .placeholder {
    border-radius: var(--radius-sm);
}

/* ========== Responsive ========== */

/* Tablet */
@media (max-width: 991px) {
    /* Seller subnav — compact on tablets */
    .seller-subnav .btn {
        font-size: 0.78rem;
        padding: 0.3rem 0.65rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.93rem;
        padding-bottom: 0;
    }
    
    .hero-section {
        border-radius: 16px;
        margin-left: -4px;
        margin-right: -4px;
        min-height: 160px;
    }
    .hero-banner-img {
        height: 200px;
    }
    .hero-overlay {
        padding: 1rem;
    }
    .hero-overlay h1 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 0.3rem;
        line-height: 1.12;
    }
    .hero-overlay p {
        font-size: 0.88rem;
        line-height: 1.3;
    }
    .product-img,
    .product-img-placeholder {
        height: 150px;
    }
    .navbar {
        padding: 0.6rem 0;
        border-radius: 0 0 14px 14px;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.1rem;
    }
    .section-title::after {
        width: 36px;
        height: 2.5px;
    }
    
    /* Card hover — disable on touch */
    .card:hover, .category-section-card:hover {
        transform: none;
    }
    .product-card:hover {
        transform: none;
    }
    .product-card:hover .product-img {
        transform: none;
    }
    
    /* Больше воздуха на мобильных */
    .container.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.75rem !important;
    }
    
    /* Seller subnav mobile */
    .seller-subnav {
        margin-top: -14px;
        padding-top: 14px;
        border-radius: 0 0 10px 10px;
    }
    .seller-subnav .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.55rem;
    }
    
    /* Category tabs compact */
    .cat-tab {
        padding: 8px 14px;
        font-size: 0.84rem;
        border-radius: 12px;
    }
    .cat-tab-icon {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }
    .cat-tabs-wrap {
        margin-bottom: 1.5rem;
    }
    
    /* Footer mobile */
    footer {
        padding: 2rem 0 1rem;
        border-radius: 16px 16px 0 0;
        font-size: 0.88rem;
    }
    footer .col-md-4 {
        text-align: center;
    }
    footer .d-flex.gap-3 {
        justify-content: center;
    }
    footer h5 {
        font-size: 1rem;
    }
    
    /* Product detail — image */
    .carousel-inner img {
        height: 280px !important;
    }
    
    /* Cart table mobile */
    .table-responsive {
        font-size: 0.85rem;
    }
    .cart-qty-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .product-card .card-title {
        font-size: 0.82rem;
    }
    .product-card .fs-5 {
        font-size: 0.95rem !important;
    }
    .hero-section {
        border-radius: 14px;
        min-height: 130px;
    }
    .hero-banner-img {
        height: 150px;
    }
    .hero-overlay {
        padding: 0.7rem;
    }
    .hero-overlay h1 {
        font-size: clamp(1.1rem, 6vw, 1.5rem);
    }
    .hero-overlay p {
        font-size: 0.82rem;
    }
    .product-img,
    .product-img-placeholder {
        height: 130px;
    }
    
    /* Product card body compact */
    .product-card .card-body {
        padding: 0.65rem 0.55rem 0.75rem;
    }
    .product-card .add-to-cart-btn {
        width: 36px;
        height: 36px;
    }
    
    /* Carousel mobile */
    .carousel-inner img {
        height: 240px !important;
    }
    
    /* Navbar compact */
    .navbar {
        border-radius: 0 0 12px 12px;
    }
    
    /* Footer compact */
    footer {
        border-radius: 14px 14px 0 0;
        padding: 1.5rem 0 0.8rem;
    }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream-bg);
}

::-webkit-scrollbar-thumb {
    background: #C5BAA8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A89E8C;
}

/* ========== Selection ========== */
::selection {
    background: var(--primary-color);
    color: white;
}

/* ========== Loading Skeleton ========== */
.skeleton {
    background: linear-gradient(90deg, #EAE3D9 25%, #DDD5C9 50%, #EAE3D9 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== Table ========== */
.table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ========== Pagination ========== */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========== Dropdown ========== */
.dropdown-menu {
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: 0 4px 20px rgba(60,50,30,0.12);
    background: #fff;
}

.dropdown-item:hover {
    background: var(--primary-light);
}

/* ========== Text helpers ========== */
.text-primary {
    color: var(--primary-color) !important;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-hover);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}
