/* AUTOHEK - Main Stylesheet v2.3 - Fully Responsive */
/* Primary: #a6fc28 | Secondary: #2d2d2d */

:root {
    --primary: #a6fc28;
    --primary-dark: #8ed921;
    --secondary: #2d2d2d;
    --secondary-light: #3d3d3d;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--secondary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 1rem; }

/* ==================== HEADER ==================== */
.header {
    background: var(--secondary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    flex-shrink: 0;
}

/* Desktop Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(166, 252, 40, 0.1);
}

.nav a.nav-highlight {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.nav a.nav-highlight:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary);
    z-index: 999;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    display: block;
    color: var(--white);
    font-size: 1.125rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--secondary-light);
    font-weight: 500;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--primary);
}

.mobile-menu a.nav-highlight {
    background: var(--primary);
    color: var(--secondary);
    border-radius: var(--radius);
    text-align: center;
    margin-top: 1rem;
    border: none;
}

.mobile-menu-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--secondary); }
.btn-primary:hover { background: var(--primary-dark); color: var(--secondary); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-light); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-info { background: var(--info); color: var(--white); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--gray-700); }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(166, 252, 40, 0.2);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Voice input */
.voice-input-wrapper { position: relative; }
.voice-input-wrapper .form-control { padding-right: 3rem; }

.voice-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: color 0.2s;
    font-size: 1.25rem;
}

.voice-btn:hover { color: var(--primary-dark); }
.voice-btn.recording { color: var(--danger); animation: pulse 1s infinite; }

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

textarea.form-control { resize: vertical; min-height: 120px; }
.form-text { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.25rem; }
.form-error { color: var(--danger); font-size: 0.875rem; margin-top: 0.25rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-check input { width: 1.125rem; height: 1.125rem; }

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

.card-body { padding: 1.25rem; }

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ==================== LISTING GRID ==================== */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.listing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: var(--primary);
    color: var(--secondary);
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 999px;
}

.listing-card-featured {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: var(--warning);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 999px;
}

.listing-card-company {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: var(--info);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 999px;
}

.listing-card-content { padding: 0.75rem; }

.listing-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.listing-card-location {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

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

.listing-card-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray-500);
}

.listing-card-wear {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: var(--radius);
    margin-top: 0.25rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    padding: 2.5rem 0;
    color: var(--white);
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero-title span { color: var(--primary); }

.hero-subtitle {
    font-size: 1rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.search-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-form .form-control { flex: 1; min-width: 180px; }

/* ==================== SECTIONS ==================== */
.section { padding: 2rem 0; }
.section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
}

.badge-primary { background: var(--primary); color: var(--secondary); }
.badge-secondary { background: var(--gray-200); color: var(--gray-700); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-company { background: var(--info); color: var(--white); }

/* Rating */
.rating-stars { color: #fbbf24; letter-spacing: 1px; }
.rating-input { display: flex; gap: 0.25rem; flex-direction: row-reverse; justify-content: flex-end; }
.rating-input input { display: none; }
.rating-input label {
    font-size: 2rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.2s;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: #fbbf24; }

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.table th { font-weight: 600; color: var(--gray-600); background: var(--gray-50); font-size: 0.875rem; white-space: nowrap; }
.table tbody tr:hover { background: var(--gray-50); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.admin-table th { font-weight: 600; color: var(--gray-600); background: var(--gray-50); font-size: 0.875rem; }
.admin-table tbody tr:hover { background: var(--gray-50); }

/* ==================== PAGINATION ==================== */
.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 0.5rem; 
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span { 
    padding: 0.5rem 1rem; 
    border-radius: var(--radius); 
    font-weight: 500; 
}
.pagination a { background: var(--white); border: 1px solid var(--gray-300); }
.pagination a:hover { background: var(--gray-100); }
.pagination .active { background: var(--primary); color: var(--secondary); border: none; }

/* ==================== STATS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--secondary); }
.stat-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }

/* ==================== ADMIN LAYOUT ==================== */
.admin-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    background: var(--secondary);
    width: 240px;
    padding: 1.5rem;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-logo { color: var(--primary); font-size: 1.125rem; font-weight: 800; margin-bottom: 2rem; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: var(--gray-300);
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--secondary-light);
    color: var(--primary);
}

.admin-content { 
    flex: 1; 
    margin-left: 240px; 
    padding: 1.5rem;
    min-width: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Admin mobile toggle */
.admin-menu-toggle {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 101;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--secondary);
    color: var(--gray-400);
    padding: 2rem 0 1rem;
    margin-top: auto;
}

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

.footer-title { color: var(--white); font-weight: 600; margin-bottom: 0.75rem; font-size: 0.9rem; }
.footer-links a { display: block; color: var(--gray-400); padding: 0.2rem 0; font-size: 0.875rem; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { padding-top: 1rem; border-top: 1px solid var(--secondary-light); text-align: center; font-size: 0.8rem; }
.footer-services { 
    border-top: 1px solid var(--secondary-light); 
    padding-top: 1.5rem; 
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.footer-services .footer-links { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem 1.5rem; 
}
.footer-services .footer-links a { 
    display: inline; 
    padding: 0; 
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--gray-500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* Hide on mobile/desktop */
.hide-mobile { display: block; }
.hide-desktop { display: none; }
.show-mobile { display: none; }

/* Wear condition colors */
.wear-A { background: #dcfce7; color: #166534; }
.wear-B { background: #dbeafe; color: #1e40af; }
.wear-C { background: #fef3c7; color: #92400e; }
.wear-D { background: #fee2e2; color: #991b1b; }

/* Benefits page */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.benefit-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.benefit-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.benefit-text { color: var(--gray-600); font-size: 0.875rem; }

/* Two column layout */
.two-col-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Listing Detail Page */
.listing-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.listing-detail-main { min-width: 0; }
.listing-detail-sidebar { min-width: 0; }

/* Video Gallery Display */
.video-gallery-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.video-gallery-display .video-item video {
    width: 100%;
    border-radius: var(--radius);
    background: var(--gray-800);
}

/* Page wrapper for sticky footer */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper main {
    flex: 1;
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (max-width: 1200px) {
    .listing-grid { grid-template-columns: repeat(4, 1fr); }
    .two-col-layout { grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }
    .listing-detail-grid { grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
}

@media (max-width: 992px) {
    .listing-grid { grid-template-columns: repeat(3, 1fr); }
    
    .nav { display: none; }
    .header-actions .btn:not(.btn-primary) { display: none; }
    .hamburger { display: flex; }
    
    .admin-content { margin-left: 0; padding: 1rem; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .admin-menu-toggle { display: block; }
    
    .two-col-layout { grid-template-columns: 1fr; }
    .listing-detail-grid { grid-template-columns: 1fr; }
    
    /* Reorder on mobile: sidebar first (price/actions), then main content */
    .listing-detail-sidebar { order: -1; }
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 768px) {
    .container { padding: 0 0.75rem; }
    
    .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    
    .header { padding: 0.75rem 0; }
    .logo { font-size: 1.25rem; }
    
    .hero { padding: 1.5rem 0; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.9rem; }
    
    /* MOBILE FILTERS FIX - COMPACT */
    .search-form { 
        flex-direction: column; 
        gap: 0.5rem; 
    }
    .search-form .form-control,
    .search-box .form-control { 
        min-width: 100%; 
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        line-height: 1.4 !important;
    }
    .search-form select.form-control,
    .search-box select.form-control {
        padding-right: 2rem !important;
        background-position: right 0.5rem center !important;
    }
    .search-box {
        padding: 0.75rem;
    }
    .search-box .btn,
    .search-form .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        height: 42px;
    }
    .card-body:has(.search-form) {
        padding: 0.75rem;
    }
    
    .section { padding: 1.5rem 0; }
    .section-title { font-size: 1.125rem; }
    
    .card-header, .card-body { padding: 1rem; }
    
    .btn { padding: 0.625rem 1.25rem; }
    .btn-lg { padding: 0.875rem 1.5rem; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 1.25rem; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
    
    /* Listing detail responsive */
    .listing-card-title { font-size: 0.8rem; }
    .listing-card-price { font-size: 0.9rem; }
    
    /* Tables scroll on mobile */
    .table-responsive { margin: 0 -0.75rem; padding: 0 0.75rem; }
    .admin-table { min-width: 500px; }
    .table { min-width: 500px; }
    
    /* Forms on mobile */
    .d-flex.gap-1 { flex-wrap: wrap; }
    .d-flex.gap-2 { flex-wrap: wrap; }
}

/* ==================== RESPONSIVE - SMALL MOBILE ==================== */
@media (max-width: 480px) {
    .listing-grid { grid-template-columns: 1fr; }
    
    .hero-title { font-size: 1.25rem; }
    
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 1.125rem; }
    
    .footer-grid { grid-template-columns: 1fr; }
    
    .benefits-grid { grid-template-columns: 1fr; }
    
    .pagination { gap: 0.25rem; }
    .pagination a, .pagination span { padding: 0.4rem 0.75rem; font-size: 0.875rem; }
    
    /* Full width buttons on small screens */
    .btn-block-mobile { width: 100%; }
}

/* ==================== FLOATING NOTIFICATIONS ==================== */
#notification-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 350px;
}

.floating-notification {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
}

.floating-notification:hover {
    transform: translateX(-5px);
}

.floating-notification.notification-hide {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.notification-sender {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.notification-preview {
    color: var(--gray-600);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-listing {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    color: var(--gray-600);
}

@media (max-width: 480px) {
    #notification-container {
        left: 0.5rem;
        right: 0.5rem;
        max-width: none;
    }
}

/* ==================== HOMEPAGE AUTOSLUŽBY ==================== */
.services-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-tag {
    background: var(--white);
    padding: 0.4rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.services-homepage-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.service-homepage-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-homepage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-homepage-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-homepage-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-homepage-icon {
    font-size: 3rem;
}

.service-homepage-content {
    flex: 1;
    margin-bottom: 1rem;
}

.service-homepage-category {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

.service-homepage-name {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: var(--secondary);
}

.service-homepage-desc {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .services-homepage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-homepage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-category-tags {
        display: none;
    }
}

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

/* ==================== PRINT STYLES ==================== */
@media print {
    .header, .footer, .hamburger, .mobile-menu, .sidebar { display: none; }
    .admin-content { margin-left: 0; }
    body { background: white; }
}
