/* Color Variables - Based on Logo */
:root {
    --light-tan: #F5E6D3;
    --deep-brown: #8B4513;
    --accent-brown: #A0522D;
    --black: #000000;
    --white: #ffffff;
    --primary-dark: #6B3410;
}

/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--light-tan) 0%, #E8D5C0 100%);
    min-height: 100vh;
    color: var(--black);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    max-width: 100%;
    overflow-x: auto; /* Allow dropdowns to work, but prevent horizontal scroll */
}

.container-fluid {
    max-width: 100%;
    /* Don't set overflow-x: hidden on containers as it breaks dropdowns */
}

/* Container uses Bootstrap's default responsive max-widths for boxed, centered layout */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.text-primary-dark {
    color: var(--primary-dark) !important;
}

/* Chat Message Styles */
.message-item {
    margin-bottom: 1rem;
}

.message-sent {
    display: flex;
    justify-content: flex-end;
}

.message-received {
    display: flex;
    justify-content: flex-start;
}

.message-bubble {
    max-width: 90%;
    padding: 12px;
    border-radius: 12px;
    word-wrap: break-word;
    position: relative;
}

.message-sent .message-bubble {
    background-color: var(--primary-dark);
    color: white;
    border-top-right-radius: 4px;
    margin-left: auto;
}

.message-received .message-bubble {
    background-color: #f8f9fa;
    color: var(--black);
    border-top-left-radius: 4px;
    border: 1px solid #e9ecef;
}

.message-sent .message-bubble small {
    color: rgba(255, 255, 255, 0.7);
}

.message-received .message-bubble small {
    color: #6c757d;
}

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.bg-light-tan {
    background-color: var(--light-tan) !important;
}

.bg-accent {
    background-color: var(--accent-brown) !important;
}

.text-accent {
    color: var(--accent-brown) !important;
}

.btn-primary {
    background-color: var(--deep-brown);
    border-color: var(--deep-brown);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white) !important;
}

.btn-outline-primary {
    border-color: var(--deep-brown);
    color: var(--deep-brown);
}

.btn-outline-primary:hover {
    background-color: var(--deep-brown);
    border-color: var(--deep-brown);
    color: var(--white) !important;
}

.btn-accent {
    background-color: var(--accent-brown);
    border-color: var(--accent-brown);
    color: white;
}

.btn-accent:hover {
    background-color: var(--deep-brown);
    border-color: var(--deep-brown);
    color: white;
}

/* Glass Morphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.15);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(31, 38, 135, 0.25);
}

/* Top Bar */
.top-bar {
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0 !important;
    position: relative;
    z-index: 1030;
}

.top-bar a {
    font-size: 1rem;
}

.top-bar a:hover {
    color: var(--light-tan) !important;
}

.flag-emoji {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.header-lang-flag {
    padding: 2px;
    border-radius: 3px;
    transition: opacity 0.2s ease;
    opacity: 0.62;
}

/* Subtle flat flags — no drop shadows or heavy frames */
.header-lang-flag .fi.fis {
    display: inline-block;
    font-size: 1.05rem;
    line-height: 1em;
    width: 1.2em;
    height: 1.2em;
    border-radius: 2px;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.header-lang-flag:hover {
    opacity: 0.92 !important;
}

.header-lang-flag:focus-visible {
    opacity: 1;
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.header-lang-flag--active {
    opacity: 1 !important;
}

.header-lang-flag--active .fi.fis {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.top-bar .dropdown {
    position: relative;
    
    z-index: 10000 !important;
}

.top-bar .dropdown-menu {
    background: rgba(107, 52, 16, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    margin-top: 0.5rem;
    min-width: 180px;
}

.top-bar .dropdown-menu * {
    color: var(--white) !important;
}

.top-bar .dropdown-item {
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.top-bar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

.top-bar .dropdown-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
}

/* Mobile stats counter in topbar */
.mobile-topbar-stats {
    display: none;
}

@media (max-width: 768px) {
    .mobile-topbar-stats {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
    }
    
    .mobile-topbar-stats .stat-number {
        font-weight: 700;
        color: var(--light-tan);
        font-size: 1rem;
    }
    
    .mobile-topbar-stats .stat-label {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* Account Dropdown */
.account-dropdown {
    min-width: 220px !important;
    padding: 0 !important;
    z-index: 10000 !important;
}

.account-dropdown * {
    color: var(--white) !important;
}

.account-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--white) !important;
    transition: all 0.3s ease;
}

.account-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

.account-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
}

.account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.account-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.2;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.account-dropdown small {
    color: rgba(255, 255, 255, 0.8) !important;
}

.glass-nav {
    background: rgba(107, 52, 16, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1030;
    padding: 1rem 0;
}

/* Ensure navbar stays sticky */
.glass-nav.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
}

.glass-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    right: 0;
    bottom: 0;
    background-image: url('../images/logo.jpg');
    background-size: 150% auto;
    background-repeat: no-repeat;
    background-position: left center;
    opacity: 0.3;
    z-index: -1;
}

/* Hero Bar Section */
.hero-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--deep-brown) 50%, var(--accent-brown) 100%);
    padding: 2rem 0;
    height: 200px;
    display: flex;
    align-items: center;
    background: var(--primary-dark) url('../images/soldaten-banner-small.png');
    background-size: cover;
    background-position: right;
}

.hero-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
}

.hero-bar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.hero-bar-logo {height: 223px;
    margin-top: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-bar-text {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.hero-bar-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-tan);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .hero-bar {
        height: auto;
        padding: 1rem 0;
    }
    
    .hero-bar-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-bar-left {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .hero-bar-logo {
        height: 100px;
    }
    
    .hero-bar-text {
        font-size: 0.9rem;
    }
    
    .hero-bar-stats {
        gap: 1.5rem;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Hide hero-bar completely on mobile */
    .hero-bar {
        display: none !important;
    }
}

/* Category Cards */
.category-card {
    text-align: center;
    cursor: pointer;
    padding: 2.5rem 2rem;
}

.category-icon {
    font-size: 4rem;
    color: var(--deep-brown);
    margin-bottom: 1rem;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Compact Category Cards for Homepage */
.category-card-compact {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-align: center;
    padding: 1rem 0.75rem;
}

.category-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.category-icon-compact {
    font-size: 2rem;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.category-card-compact:hover .category-icon-compact {
    transform: scale(1.1);
}

.category-info-compact {
    padding: 0;
    text-align: center;
}

.category-info-compact h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-info-compact .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Product Cards */
.product-card {
    overflow: hidden;
    padding: 0;
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--light-tan) 0%, #E8D5C0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    font-size: 4rem;
    color: var(--deep-brown);
    opacity: 0.3;
}

.product-info {
    padding: 1.5rem;
}

/* Compact Product Cards for Homepage */
.product-card-compact {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.product-image-compact {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--light-tan) 0%, #E8D5C0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Listing Image Stats Overlay */
.listing-image-stats {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 20;
    pointer-events: none;
}

.listing-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
}

.listing-stat-badge:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.listing-stat-badge i {
    font-size: 0.875rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    opacity: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.listing-stat-badge span {
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    margin-left: 0.1rem;
}

.product-placeholder-compact {
    font-size: 2rem;
    color: var(--deep-brown);
    opacity: 0.3;
}

.product-info-compact {
    padding: 0.75rem;
    text-align: center;
}

/* Mobile: Force product cards to show 2 per row */
/* Exclude #listingsGrid - it has its own responsive layout */
@media (max-width: 768px) {
    /* Override Bootstrap column classes for product cards on mobile */
    /* Target all col combinations that contain product-card-compact */
    .row.g-3:not(#listingsGrid) > div.col-lg-2.col-md-4.col-sm-6,
    .row.g-3:not(#listingsGrid) > div.col-lg-5-col.col-md-4.col-sm-6,
    .row.g-3:not(#listingsGrid) > div.col-lg-3.col-md-4.col-sm-6,
    .row.g-3:not(#listingsGrid) > div.col-lg-4.col-md-6,
    .row.g-3:not(#listingsGrid) > div.col-12.col-sm-6.col-lg-4,
    .row.g-3:not(#listingsGrid) > div.col-sm-6.col-lg-4 {
        flex: 0 0 auto;
        width: calc(50% - 0.375rem) !important;
        max-width: calc(50% - 0.375rem) !important;
    }
    
    /* Also target rows without g-3 gap class */
    .row:not(#listingsGrid) > div.col-lg-2.col-md-4.col-sm-6:has(.product-card-compact),
    .row:not(#listingsGrid) > div.col-lg-5-col.col-md-4.col-sm-6:has(.product-card-compact),
    .row:not(#listingsGrid) > div.col-lg-3.col-md-4.col-sm-6:has(.product-card-compact),
    .row:not(#listingsGrid) > div.col-lg-4.col-md-6:has(.product-card-compact),
    .row:not(#listingsGrid) > div.col-12.col-sm-6.col-lg-4:has(.product-card-compact),
    .row:not(#listingsGrid) > div.col-sm-6.col-lg-4:has(.product-card-compact) {
        flex: 0 0 auto;
        width: calc(50% - 0.375rem) !important;
        max-width: calc(50% - 0.375rem) !important;
    }
    
    /* Fallback using :has() for browsers that support it */
    /* Exclude listingsGrid - it has its own mobile layout */
    @supports selector(:has(*)) {
        .row.g-3:not(#listingsGrid) > div[class*="col-"]:has(.product-card-compact),
        .row:not(#listingsGrid) > div[class*="col-"]:has(.product-card-compact) {
            flex: 0 0 auto;
            width: 100% !important;
            max-width: 100% !important;
        }
    }
}

.product-info-compact h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Improve icon styling throughout the app */
.product-info-compact .bi-clock,
.product-info-compact .bi-eye,
.product-info-compact .bi-heart,
.product-info-compact .bi-heart-fill {
    font-size: 0.875rem;
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.product-info-compact .bi-clock:hover,
.product-info-compact .bi-eye:hover,
.product-info-compact .bi-heart:hover {
    opacity: 1;
}

/* General icon improvements */
i.bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Icon spacing improvements */
.bi + span,
span + .bi {
    margin-left: 0.25rem;
}

.product-info-compact .h6 {
    font-size: 1rem;
    font-weight: 700;
}

.premium-badge-small {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--black);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Premium Badge */
.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.feature-card {
    height: 100%;
    position: relative;
}

.btn-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--black) !important;
    font-weight: bold;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: var(--black) !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.logo-nav {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-hero {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--light-tan) !important;
}

/* Language Selector */
.nav-item.dropdown .dropdown-toggle {
    cursor: pointer;
}

.nav-item.dropdown .dropdown-menu {
    background: rgba(107, 52, 16, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    margin-top: 0.5rem;
    z-index: 10000 !important;
}

.nav-item.dropdown .dropdown-item {
    color: var(--light-tan);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-item.dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-item.dropdown .dropdown-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* Search Bar */
.search-bar {
    z-index: 1029;
    position: sticky;
    top: 0;
    background: var(--light-tan) !important;
    /* Position and width will be set dynamically by JavaScript when fixed */
}

/* Category Menu Bar - sticks below search bar when scrolling */
.category-menu-bar {
    z-index: 1028;
    position: sticky;
    top: 0;
    background: var(--light-tan) !important;
    /* Position and width will be set dynamically by JavaScript when fixed */
}

/* On desktop, ensure both bars stay sticky when scrolling */
@media (min-width: 992px) {
    .search-bar {
        position: -webkit-sticky;
        position: sticky;
        /* Will switch to fixed when scrolled past original position */
    }
    
    .category-menu-bar {
        position: -webkit-sticky;
        position: sticky;
        /* Will switch to fixed when scrolled past original position */
    }
    
    /* When fixed, ensure full width */
    .search-bar.is-fixed,
    .search-bar[style*="position: fixed"],
    .search-bar.style-fixed {
        position: fixed !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .category-menu-bar.is-fixed,
    .category-menu-bar[style*="position: fixed"],
    .category-menu-bar.style-fixed {
        position: fixed !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Mobile: Hide search bar and category menu bar */
@media (max-width: 991px) {
    .search-bar {
        display: none !important;
    }
    
    /* Category menu bar is now visible on mobile */
    .category-menu-bar {
        position: sticky;
        top: 0;
        z-index: 1028;
        background: var(--light-tan) !important;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .category-menu-bar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .category-menu-bar .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }
    
    .category-menu-bar .nav-item {
        width: 100%;
    }
    
    .category-menu-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Mobile Filter Button */
.mobile-filter-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1020;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--deep-brown);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.mobile-filter-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    color: var(--white);
}

.mobile-filter-btn:active {
    transform: scale(0.95);
}

@media (max-width: 991px) {
    .mobile-filter-btn {
        display: flex;
    }
}

/* Mobile Filter Offcanvas */
.mobile-filter-offcanvas .offcanvas-header {
    background: var(--primary-dark);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-filter-offcanvas .offcanvas-body {
    background: var(--light-tan);
    padding: 1.5rem;
}

.mobile-filter-offcanvas .btn-close {
    filter: invert(1);
}

/* Container inside category menu bar - needed for dropdown positioning */
.category-menu-bar .container {
    position: relative;
    overflow: visible; /* Allow dropdowns to overflow */
}

.category-menu-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-menu-link:hover {
    background: rgba(107, 52, 16, 0.1);
    color: var(--primary-dark) !important;
}

/* Category Dropdown Menu - More prominent styling */
.category-dropdown-menu {
    min-width: 250px;
    max-width: 350px;
    border: 1px solid rgba(107, 52, 16, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem !important;
    padding: 0.5rem 0 !important;
}

.category-dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.category-dropdown-menu .dropdown-item:hover {
    background-color: rgba(107, 52, 16, 0.1);
    color: var(--primary-dark);
    padding-left: 1.25rem;
}

.category-dropdown-menu .dropdown-item.fw-bold {
    background-color: rgba(107, 52, 16, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.875rem 1rem;
}

.category-dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.2;
}

/* Mega Menu */
.mega-menu {
    width: 100vw !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    top: 100% !important;
    border: none;
    box-shadow: none !important;
    border-radius: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: var(--primary-dark) !important;
    position: absolute !important;
}

/* Category menu bar dropdowns - position static allows mega menu to work */
.category-menu-bar .dropdown {
    position: static !important;
}

/* Ensure dropdowns work properly with correct z-index */
.category-menu-bar .dropdown-menu {
    z-index: 10000 !important;
}

.category-menu-bar .dropdown-menu.mega-menu {
    z-index: 10000 !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
}

.mega-menu .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.mega-menu-category {
    color: var(--white);
}

.mega-menu-category h5 {
    font-size: 1.1rem;
    color: var(--white) !important;
    border-bottom: none;
    padding-bottom: 0;
}

.mega-menu-category .d-flex.justify-content-between {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.mega-menu-category h5 i {
    color: var(--light-tan) !important;
}

.mega-menu-category ul {
    margin-top: 1rem;
}

.mega-menu-category ul li {
    margin-bottom: 0.5rem;
}

.mega-menu-category ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease;
    display: inline-block;
}

.mega-menu-category ul li a:hover {
    color: var(--white) !important;
    transform: translateX(5px);
    font-weight: 500;
}

.mega-menu .btn-outline-primary {
    border-color: var(--light-tan) !important;
    color: var(--light-tan) !important;
}

.mega-menu .btn-outline-primary:hover {
    background-color: var(--light-tan) !important;
    color: var(--primary-dark) !important;
    border-color: var(--light-tan) !important;
}

@media (max-width: 991px) {
    .mega-menu {
        width: 100%;
        left: 0 !important;
        transform: none;
    }
    
    .category-menu-bar {
        padding: 0.4rem 0 !important;
    }
    
    .category-menu-bar .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .category-menu-bar .d-flex {
        flex-direction: column;
        gap: 0.4rem !important;
        align-items: stretch !important;
    }
    
    .category-menu-bar .nav-item {
        width: 100%;
    }
    
    .category-menu-link {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Modal */
.modal-content.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

/* Auth Modal Styles */
#loginRegisterModal .nav-tabs {
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
}

#loginRegisterModal .nav-tabs .nav-link {
    color: var(--primary-dark);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

#loginRegisterModal .nav-tabs .nav-link:hover {
    border-color: rgba(139, 69, 19, 0.3);
    color: var(--deep-brown);
}

#loginRegisterModal .nav-tabs .nav-link.active {
    color: var(--deep-brown);
    background-color: transparent;
    border-color: var(--deep-brown);
    border-bottom-color: var(--deep-brown);
    font-weight: 600;
}

#loginRegisterModal .form-control {
    border-color: rgba(139, 69, 19, 0.3);
    padding: 0.75rem;
}

#loginRegisterModal .form-control:focus {
    border-color: var(--deep-brown);
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

#loginRegisterModal .form-label {
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#loginRegisterModal .form-check-input:checked {
    background-color: var(--deep-brown);
    border-color: var(--deep-brown);
}

#loginRegisterModal .form-check-input:focus {
    border-color: var(--deep-brown);
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

/* Category Detail Cards */
.category-detail-card {
    height: 100%;
}

.category-icon-large {
    font-size: 3rem;
    color: var(--deep-brown);
}

.subcategory-link {
    display: block;
    padding: 0.5rem;
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.subcategory-link:hover {
    background: rgba(139, 69, 19, 0.1);
    color: var(--deep-brown);
    transform: translateX(5px);
}

/* Product Detail */
.product-detail-image {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--light-tan) 0%, #E8D5C0 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.15);
}

.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
}

.product-detail-image-container .glass-card {
    box-shadow: 0 2px 12px 0 rgba(31, 38, 135, 0.12);
}

.product-detail-image-container .glass-card:hover {
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.18);
}

.product-placeholder-large {
    font-size: 6rem;
    color: var(--deep-brown);
    opacity: 0.3;
}

.thumbnail-placeholder {
    width: 100%;
    height: 80px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.thumbnail-placeholder:hover {
    background: rgba(139, 69, 19, 0.2);
    transform: scale(1.05);
}

.thumbnail-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-placeholder i {
    font-size: 1.5rem;
    color: var(--deep-brown);
    opacity: 0.5;
}

/* Image Lightbox Modal */
.image-lightbox-modal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
    margin: 5vh auto;
}

.image-lightbox-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.image-lightbox-modal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    max-height: 85vh;
    position: relative;
}

.image-lightbox-modal .lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-lightbox-modal .lightbox-image-container img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.image-lightbox-modal .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 69, 19, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-lightbox-modal .lightbox-nav:hover {
    background: rgba(139, 69, 19, 1);
    transform: translateY(-50%) scale(1.1);
}

.image-lightbox-modal .lightbox-nav.prev {
    left: 20px;
}

.image-lightbox-modal .lightbox-nav.next {
    right: 20px;
}

.image-lightbox-modal .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(139, 69, 19, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-lightbox-modal .lightbox-close:hover {
    background: rgba(139, 69, 19, 1);
    transform: scale(1.1);
}

.image-lightbox-modal .lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

/* Product Detail Table - No white background */
#productSpecs {
    background: transparent !important;
}

#productSpecs tbody {
    background: transparent !important;
}

#productSpecs tr {
    background: transparent !important;
    border-color: rgba(139, 69, 19, 0.15) !important;
}

#productSpecs td {
    background: transparent !important;
    color: var(--primary-dark);
    padding: 0.5rem 0.75rem;
}

#productSpecs td.fw-bold {
    color: var(--deep-brown);
}

/* Product Title */
.product-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Product Price */
.product-price {
    font-size: 1.5rem;
}

/* Favorites Heart Button (Inline) */
.favorite-heart-btn-inline {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.favorite-heart-btn-inline:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-heart-btn-inline i {
    font-size: 1.25rem;
    color: var(--deep-brown);
    transition: all 0.3s ease;
}

.favorite-heart-btn-inline.active i,
.favorite-heart-btn-inline:hover i {
    color: #dc3545;
}

/* Share Button (Inline) */
.share-btn-inline {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: relative;
}

.share-btn-inline:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn-inline i {
    font-size: 1.25rem;
    color: var(--deep-brown);
    transition: all 0.3s ease;
}

.share-btn-inline:hover i {
    color: var(--deep-brown);
}

/* Share Tooltip */
.share-tooltip {
    position: absolute;
    bottom: 3.5rem;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    display: none;
    flex-direction: row;
    gap: 0.5rem;
    z-index: 1000;
    min-width: auto;
    animation: fadeInUp 0.3s ease;
    white-space: nowrap;
}

.share-tooltip.show {
    display: flex;
}

.share-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 1.5rem;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.share-tooltip-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.share-tooltip-btn:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: scale(1.1);
}

.share-tooltip-btn i {
    font-size: 1.5rem;
}

.share-tooltip-btn[data-share-platform="facebook"] i {
    color: #1877F2;
}

.share-tooltip-btn[data-share-platform="twitter"] i {
    color: #1DA1F2;
}

.share-tooltip-btn[data-share-platform="linkedin"] i {
    color: #0077B5;
}

.share-tooltip-btn[data-share-platform="whatsapp"] i {
    color: #25D366;
}

.share-tooltip-btn[data-share-platform="email"] i {
    color: var(--deep-brown);
}

.share-tooltip-btn[data-share-platform="copy"] i {
    color: var(--deep-brown);
}

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

/* Pagination */
.pagination .page-link {
    color: var(--deep-brown);
    border-color: rgba(139, 69, 19, 0.2);
}

.pagination .page-link:hover {
    background-color: var(--light-tan);
    border-color: var(--deep-brown);
}

.pagination .page-item.active .page-link {
    background-color: var(--deep-brown);
    border-color: var(--deep-brown);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--deep-brown);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary-dark);
}

/* Form Controls */
.form-select, .form-control {
    border-color: rgba(139, 69, 19, 0.3);
}

.form-select:focus, .form-control:focus {
    border-color: var(--deep-brown);
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

/* Upsale List */
.upsale-list {
    padding: 0;
}

.upsale-item {
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.upsale-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.upsale-item hr {
    margin: 0;
    opacity: 0.2;
}

/* Trust Indicators */
.trust-icon {
    transition: transform 0.3s ease;
}

.trust-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.pricing-card {
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-amount {
    color: var(--primary-dark);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 10;
}

.feature-card {
    display: flex;
    flex-direction: column;
}

.feature-card .mt-auto {
    margin-top: auto;
}

/* Tab Content Animation */
.tab-pane {
    animation: fadeIn 0.5s ease-in;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-card h1 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    .product-detail-image {
        height: 300px;
    }
    
    .product-placeholder-large {
        font-size: 4rem;
    }
    
    .nav-pills .nav-link {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-pills {
        flex-wrap: wrap;
    }
}

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

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

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

::-webkit-scrollbar-track {
    background: var(--light-tan);
}

::-webkit-scrollbar-thumb {
    background: var(--deep-brown);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Footer Enhanced */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-enhanced {
    padding-top: 4rem !important;
    padding-bottom: 3rem !important;
}

.footer-logo {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    border-radius: 8px;
}

.footer-brand-section {
    padding-right: 2rem;
}

.footer-stats {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links li a {
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-links li a:hover {
    color: var(--light-tan) !important;
    transform: translateX(5px);
    text-decoration: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-tan) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-info p {
    line-height: 1.8;
}

footer h5 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

footer .list-inline-item a {
    transition: color 0.3s ease;
}

footer .list-inline-item a:hover {
    color: var(--light-tan) !important;
}

@media (max-width: 768px) {
    .footer-enhanced {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }
    
    .footer-brand-section {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .footer-stats {
        justify-content: space-around;
    }
}

/* Filter Sidebar */
.filter-sidebar {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.1);
    border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--deep-brown);
    border-radius: 3px;
}

.filter-options {
    padding-left: 0.5rem;
}

.filter-options .form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--primary-dark);
    transition: color 0.2s ease;
}

.filter-options .form-check-label:hover {
    color: var(--deep-brown);
}

.filter-options .form-check-input:checked ~ .form-check-label {
    color: var(--deep-brown);
    font-weight: 600;
}

/* View Switcher */
.view-btn {
    border-color: var(--deep-brown);
    color: var(--deep-brown);
    padding: 0.5rem 0.75rem;
}

.view-btn:hover {
    background-color: var(--deep-brown);
    border-color: var(--deep-brown);
    color: var(--white);
}

.view-btn.active {
    background-color: var(--deep-brown);
    border-color: var(--deep-brown);
    color: var(--white);
}

/* List View */
.products-list-view .product-card-list {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.products-list-view .product-card-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.products-list-view .product-image-list {
    position: relative;
    width: 200px;
    height: 150px;
    background: linear-gradient(135deg, var(--light-tan) 0%, #E8D5C0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.products-list-view .product-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.products-list-view .product-info-list {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-list-view .product-info-list h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.products-list-view .product-info-list .h6 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Grid View (default) */
.products-grid-view .product-card-compact {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.products-grid-view .product-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

/* 5 columns layout for products grid */
@media (min-width: 992px) {
    .products-grid-view .col-lg-5-col {
        flex: 0 0 auto;
        width: 20%;
        max-width: 20%;
    }
}

/* Responsive adjustments for sidebar */
@media (max-width: 991px) {
    .filter-sidebar {
        position: relative !important;
        max-height: none;
        margin-bottom: 2rem;
        display: none; /* Hide on mobile, show in offcanvas */
    }
    
    /* Show filter sidebar when in offcanvas */
    .mobile-filter-offcanvas .filter-sidebar {
        display: block !important;
        position: relative !important;
        top: 0 !important;
        max-height: none;
    }
}

/* Mobile: Force product cards to show 2 per row in products grid view */
@media (max-width: 768px) {
    .products-grid-view .row.g-3 > div.col-lg-5-col.col-md-4.col-sm-6,
    .products-grid-view .row.g-3 > div.col-lg-4.col-md-6,
    .products-grid-view .row.g-3 > div[class*="col-"] {
        flex: 0 0 auto;
        width: calc(50% - 0.375rem) !important;
        max-width: calc(50% - 0.375rem) !important;
    }
}

/* Seller Information Styles */
.seller-avatar {
    flex-shrink: 0;
}

.seller-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-tan) 0%, #E8D5C0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(139, 69, 19, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.seller-avatar-placeholder i {
    font-size: 3.5rem;
    color: var(--deep-brown);
    opacity: 0.6;
}

.seller-stat-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.seller-stat-card:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.seller-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(139, 69, 19, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seller-stat-icon i {
    font-size: 1.5rem;
    color: var(--deep-brown);
}

.seller-stat-content {
    flex-grow: 1;
}

.seller-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.seller-stat-label {
    font-size: 0.75rem;
    color: var(--primary-dark);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .seller-avatar-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .seller-avatar-placeholder i {
        font-size: 2.5rem;
    }
    
    .seller-stat-card {
        padding: 0.75rem;
    }
    
    .seller-stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .seller-stat-icon i {
        font-size: 1.25rem;
    }
    
    .seller-stat-number {
        font-size: 1.25rem;
    }
}

/* Contact Information Styles */
.contact-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 69, 19, 0.15);
}

.contact-info {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.3s ease-in;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.contact-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.contact-item a {
    color: var(--primary-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--deep-brown);
    text-decoration: underline !important;
}

/* Advertisement Styles - Horizontal Banner Carousel */
.advertisements-container {
    margin-bottom: 2rem;
    overflow: hidden;
}

.ad-banners-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    padding: 1rem 0;
}

.ad-banners-track {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    /* Static display - no animation */
}

.ad-banner {
    flex: 0 0 auto;
    width: 400px;
    height: 230px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
}

.ad-banner:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 10;
    position: relative;
}

.ad-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 8px solid white;
}

/* Keyframes will be dynamically generated by JavaScript based on actual banner count */
@keyframes scrollBanners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--scroll-distance, -3600px));
    }
}

@media (max-width: 768px) {
    .ad-banners-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0;
        padding: 1rem 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .ad-banners-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .ad-banners-track {
        gap: 0;
        padding: 0 1rem;
    }
    
    .ad-banner {
        width: calc(100vw - 2rem);
        min-width: calc(100vw - 2rem);
        height: 150px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .ad-banners-wrapper {
        padding: 0.5rem 0;
    }
    
    .ad-banner {
        width: calc(100vw - 2rem);
        min-width: calc(100vw - 2rem);
        height: 125px;
    }
}

/* Reviews Section Styles */
.review-form-section {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.star-rating-input {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.star-rating-input i {
    color: #ddd;
    transition: all 0.2s ease;
}

.star-rating-input i:hover,
.star-rating-input i.active {
    color: #ffc107;
    transform: scale(1.1);
}

.star-rating-input i.bi-star-fill {
    color: #ffc107;
}

.star-rating-display {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
    justify-content: center;
}

.star-rating-display i {
    color: #ffc107;
}

.review-item {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.review-item:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.review-author {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.review-date {
    font-size: 0.875rem;
    color: var(--primary-dark);
    opacity: 0.6;
}

.review-rating {
    display: flex;
    gap: 0.125rem;
    font-size: 1rem;
}

.review-rating i {
    color: #ffc107;
}

.review-text {
    color: var(--primary-dark);
    line-height: 1.6;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .review-form-section {
        padding: 1rem;
    }
    
    .star-rating-input {
        font-size: 1.25rem;
    }
    
    .review-item {
        padding: 1rem;
    }
}

/* Warning Modal Styles */
.warning-modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
    padding: 0;
}

.warning-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.warning-icon-container i {
    font-size: 2.5rem;
    color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#warningModal .modal-body {
    padding: 2rem;
}

#warningModal .modal-body h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

#warningModal .modal-body p {
    font-size: 1rem;
    line-height: 1.6;
}

#warningModal .modal-body .lead {
    font-size: 1.1rem;
    font-weight: 500;
}

#warningModal .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    min-width: 150px;
}

#warningModal .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: var(--white);
}

#warningModal .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: var(--white);
}

@media (max-width: 576px) {
    .warning-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .warning-icon-container i {
        font-size: 2rem;
    }
    
    #warningModal .modal-body {
        padding: 1.5rem;
    }
    
    #warningModal .modal-body h4 {
        font-size: 1.25rem;
    }
    
    #warningModal .modal-body p {
        font-size: 0.9rem;
    }
    
    #warningModal .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    #warningModal .modal-footer {
        flex-direction: column;
    }
    
    #warningModal .modal-footer .btn {
        width: 100%;
    }
}

/* Auction Countdown in Header */
.auction-countdown-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auction-countdown-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--white) !important;
    text-decoration: none !important;
}

.auction-countdown-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auction-countdown-timer {
    color: var(--light-tan);
    font-size: 0.9rem;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .auction-countdown-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .auction-countdown-label {
        font-size: 0.65rem;
    }
    
    .auction-countdown-timer {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .auction-countdown-link {
        display: none !important;
    }
}

/* Mobile Auction Bar */
.mobile-auction-bar {
    position: sticky;
    top: 0;
    z-index: 1029;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-auction-link {
    transition: background-color 0.3s ease;
    border-radius: 4px;
    padding: 0.75rem 1rem !important;
    margin: 0 -1rem;
}

.mobile-auction-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

.mobile-auction-link .bi-fire {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Auction Page Styles */
.auction-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px 0 rgba(31, 38, 135, 0.25);
}

.auction-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, var(--light-tan) 0%, #E8D5C0 100%);
}

.auction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.auction-card:hover .auction-image {
    transform: scale(1.05);
}

.auction-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF4444, #CC0000);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.auction-content {
    padding: 1.5rem;
}

.auction-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    min-height: 3.2rem;
}

.auction-description {
    font-size: 0.875rem;
    line-height: 1.5;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.auction-info {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auction-countdown {
    color: var(--accent-brown);
    font-size: 0.95rem;
}

.auction-bids {
    background: rgba(139, 69, 19, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.bid-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

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

/* Previous Auction Cards */
.previous-auction-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.previous-auction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(31, 38, 135, 0.2);
}

.previous-auction-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, var(--light-tan) 0%, #E8D5C0 100%);
}

.previous-auction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.previous-auction-card:hover .previous-auction-image {
    transform: scale(1.05);
    opacity: 1;
}

.previous-auction-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(107, 52, 16, 0.9);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.previous-auction-content {
    padding: 1rem;
}

.previous-auction-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.5rem;
}

.previous-auction-info {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .auction-image-container {
        height: 200px;
    }
    
    .previous-auction-image-container {
        height: 150px;
    }
    
    .auction-title {
        font-size: 1.1rem;
        min-height: auto;
    }
}

/* Active Auction Card Styles */
.auction-card-active {
    border: 2px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.2);
    transition: all 0.3s ease;
}

.auction-card-active:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 68, 68, 0.3);
    border-color: rgba(255, 68, 68, 0.5);
}

.auction-image-container-active {
    position: relative;
    width: 100%;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-tan) 0%, #E8D5C0 100%);
}

.auction-image-active {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.auction-card-active:hover .auction-image-active {
    transform: scale(1.05);
}

.auction-badge-active {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF4444, #CC0000);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.5);
    animation: pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auction-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(107, 52, 16, 0.9);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.auction-content-active {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.auction-bid-section {
    padding: 20px 0;
    border-top: 1px solid rgba(107, 52, 16, 0.1);
}

.auction-title-active {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.auction-description-active {
    font-size: 0.9rem;
    line-height: 1.6;
}

.auction-bid-section {
    padding: 20px 0;
    border-top: 1px solid rgba(107, 52, 16, 0.1);
}

.auction-info-active {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-box {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--primary-dark);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.countdown-box {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(255, 68, 68, 0.3);
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.countdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.auction-bids-active {
    background: rgba(139, 69, 19, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.bid-list-active {
    max-height: 150px;
    overflow-y: auto;
}

.bid-item-active {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

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

.bidder-name {
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.bid-time {
    font-size: 0.75rem;
}

.bid-amount {
    font-size: 1.1rem;
}

/* Upcoming Auction Badge */
.auction-badge-upcoming {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.auction-card-upcoming {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auction-card-upcoming:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(31, 38, 135, 0.2);
}

/* Auction Info Badge */
.auction-info-badge {
    min-width: 200px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .auction-image-container-active {
        min-height: 250px;
    }
    
    .auction-content-active {
        padding: 1.5rem;
    }
    
    .auction-title-active {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .auction-card-active .row {
        flex-direction: column;
    }
    
    .auction-image-container-active {
        min-height: 200px;
        max-height: 300px;
        border-radius: 12px 12px 0 0;
    }
    
    .auction-image-active {
        min-height: 200px;
        max-height: 300px;
    }
    
    .auction-content-active {
        padding: 1rem;
    }
    
    .auction-bid-section {
        padding: 20px 0;
        border-top: 1px solid rgba(107, 52, 16, 0.1);
    }
    
    .auction-info-active {
        padding: 1rem;
    }
    
    .auction-info-active .row .col-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .info-value {
        font-size: 1.25rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .auction-info-badge {
        min-width: auto;
        width: 100%;
        margin-top: 1rem;
    }
}

/* Password Toggle Button */
.password-toggle-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(107, 52, 16, 0.6);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--primary-dark);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--primary-dark);
}

.form-control-lg + .password-toggle-btn {
    font-size: 1.25rem;
    padding: 10px;
}

.password-toggle-wrapper .form-control {
    padding-right: 45px;
}

/* WhatsApp-style Chat List */
.chat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chat-list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.chat-list-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    text-decoration: none;
    color: inherit;
}

.chat-list-item-unread {
    background-color: rgba(107, 52, 16, 0.05);
    font-weight: 500;
}

.chat-list-item-unread:hover {
    background-color: rgba(107, 52, 16, 0.08);
}

.chat-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    margin-right: 12px;
    position: relative;
}

.chat-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-brown) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.chat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.chat-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
}

.chat-preview-text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.chat-list-item-unread .chat-preview-text {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.chat-preview-sender {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
}

.chat-unread-badge {
    background-color: var(--primary-dark);
    color: white;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.chat-list-item-unread .chat-name {
    font-weight: 700;
}

/* Unread chats count badge (top indicator) */
.unread-chats-badge {
    background-color: var(--primary-dark);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

/* Unread chats count badge in header (next to user name) */
.unread-chats-badge-header {
    background-color: #A32E13;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-avatar {
        width: 48px;
        height: 48px;
        margin-right: 10px;
    }
    
    .chat-avatar-placeholder {
        font-size: 18px;
    }
    
    .chat-name {
        font-size: 15px;
    }
    
    .chat-preview-text {
        font-size: 13px;
    }
    
    .chat-list-item {
        padding: 10px 12px;
    }
}
