/* 
 * Keskin Motor Second Hand - Core Styles
 * Theme: Modern Professional (Dark Blue & Gold)
 */

:root {
    /* Brand Colors - Fire & Metal Theme */
    --primary-color: #121212;
    /* Dark Charcoal/Metal */
    --secondary-color: #1e1e1e;
    /* Lighter Metal */
    --tertiary-color: #2d2d2d;

    /* Fire Gradient Colors */
    --accent-color: #ff8c00;
    /* Deep Orange */
    --accent-highlight: #ffd700;
    /* Gold */
    --accent-hover: #ff4500;
    /* Red-Orange */

    /* Text Colors */
    --text-main: #e0e0e0;
    --text-heading: #ffffff;
    --text-muted: #a0a0a0;

    /* Functional Colors */
    --success: #4caf50;
    --error: #ff5555;
    --bg-body: #0a0a0a;
    /* Almost Black */
    --bg-card: rgba(30, 30, 30, 0.7);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 110px;
    /* Increased from 90px */
    --top-bar-height: 45px;
    /* Increased from 40px */
    /* Added */
    --border-radius: 4px;
    /* Sharper */

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-image: url('../assets/images/logo.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
    filter: grayscale(100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Added Page Header Global Style */
.page-header {
    padding: 160px 0 40px;
    /* Accounts for fixed top banner + header */
    text-align: center;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    /* Bolder */
    cursor: pointer;
    transition: all var(--transition-medium);
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    /* Tougher look */
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-highlight));
    color: #121212;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--accent-highlight);
    border-color: var(--accent-highlight);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

/* Glassmorphism Card Style - Rebranded */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    max-height: 90vh;
    overflow-y: auto;
}


/* -- Component Styles -- */


/* Header */
.main-header {
    position: sticky;
    /* Changed from fixed to sticky to be "frozen" at top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    /* Adjusted padding */
    transition: all var(--transition-medium);
    border: none;
    background: rgba(18, 18, 18, 0.98);
    display: flex;
    flex-direction: column;
}

.main-header.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 20px -5px rgba(0, 0, 0, 0.8);
    background: rgba(10, 10, 10, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

.logo {
    display: block;
    height: 70px;
}

.logo img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 140, 0, 0.3));
}

/*.desktop-nav ul {
    display: flex;
    gap: 20px;
}*/
/* Removed old desktop nav style */

.desktop-nav a {
    font-size: 0.85rem;
    /* Slightly smaller to fit */
    font-weight: 900;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--accent-color);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.header-search {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    /* Slightly more visible background */
    border-radius: 50px;
    padding: 8px 25px;
    /* Larger padding for better touch/click area */
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
    /* Slightly wider */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.header-search:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
    /* Enhanced glow */
    transform: scale(1.01);
    /* Subtle grow effect */
}

.header-search input {
    background: transparent;
    border: none;
    color: white;
    padding: 5px 10px;
    width: 100%;
    outline: none;
    font-size: 1.05rem;
    /* Slightly larger text */
    font-weight: 500;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.header-search button {
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.3rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy pop */
    padding-left: 15px;
    display: flex;
    align-items: center;
}

.header-search button:hover {
    transform: scale(1.2);
    color: var(--accent-highlight);
}

.header-search input {
    background: transparent;
    border: none;
    color: white;
    padding: 5px 10px;
    flex: 1; /* Changed from width: 100% to fill space properly */
    min-width: 0; /* Prevents flex item from overflowing */
    outline: none;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Mobile Admin Protection */
@media (max-width: 768px) {
    a[href*="login.html"],
    a[href*="admin.html"], 
    .footer-col ul li a[href="login.html"] {
        display: none !important;
    }
}

.header-actions {
    display: none;
}



.mobile-menu-btn {
    display: none;
    padding: 8px;
}

/* Header Bottom Bar */
.header-bottom-bar {
    background: #000000;
    /* Darker background */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    width: 100%;
}

.header-bottom-bar .main-nav {
    display: flex;
    justify-content: center;
    /* Center links */
    gap: 40px;
    /* Space between links */
    align-items: center;
    container-type: inline-size;
}

.header-bottom-bar .main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    /* Extra Bold */
    font-size: 1.1rem;
    /* Larger Text */
    text-transform: uppercase;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header-bottom-bar .main-nav a:hover,
.header-bottom-bar .main-nav a.active {
    color: var(--accent-color);
}

/* Hide Secondary Nav (Legacy) */
.secondary-nav {
    display: none;
}

.header-bottom-bar nav.main-nav a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.header-bottom-bar nav.main-nav a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Adjust Desktop Nav (Secondary Top Nav) */
.secondary-nav ul {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.secondary-nav a {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.secondary-nav a:hover {
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    /* Large hero area */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1558981806-ec527fa84c3d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    /* Motorcycle bg */
    background-size: cover;
    background-position: center;
    margin-top: -80px;
    /* Counter header height */
    padding-top: 200px;
    /* Increased to 200px to clear the fixed top bar (40px) + header (~90px) */
}

/* NEW: Top Announcement Bar */
/* NEW: Top Announcement Bar - High Visibility */
.top-announcement-bar {
    /* Standard block flow above header */
    display: flex !important;
    width: 100%;
    min-height: 90px;
    /* Doubled size */
    padding: 15px !important;
    background: linear-gradient(45deg, #cc0000, #ff8c00, #cc0000) !important;
    background-size: 200% 200% !important;
    animation: flash-banner-bg 0.8s infinite alternate !important;
    color: white !important;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem !important;
    /* Large */
    font-weight: 900 !important;
    /* Thick/Black */
    text-transform: uppercase !important;
    /* Caps */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    z-index: 1001;
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.6);
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    /* Ensure simple bold font */
}

@keyframes flash-banner-bg {
    0% {
        filter: brightness(1);
        background-position: 0% 50%;
    }

    100% {
        filter: brightness(1.3);
        background-position: 100% 50%;
    }
}

.top-announcement-bar p {
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.top-announcement-bar a {
    color: #ffd700 !important;
    /* Gold */
    text-decoration: none;
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 5px 20px !important;
    border-radius: 4px !important;
    /* Sharper */
    margin-left: 15px;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 215, 0, 0.8) !important;
    font-weight: 900 !important;
    font-size: 1.2rem !important;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.top-announcement-bar a:hover {
    background: #ffd700 !important;
    color: black !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes text-flash {
    0% {
        color: #ffffff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }

    100% {
        color: #ffd700;
        /* Gold */
        text-shadow: 0 0 15px #ffd700, 0 0 5px white;
        box-shadow: 0 0 15px #ffd700;
        background: black;
    }
}

@keyframes flash-row {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.3);
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.8), rgba(2, 12, 27, 0.95));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    margin-top: -10px;
}

/* Hero Search Box */
.hero-search-box {
    padding: 20px;
    display: inline-block;
    width: 100%;
}

.search-form {
    display: flex;
    gap: 15px;
}

.input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle white bg */
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    transition: all var(--transition-medium);
}

.input-group:focus-within {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.input-group i {
    color: var(--text-muted);
    margin-right: 10px;
}

.input-group input,
.input-group select {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    outline: none;
}

.input-group select option {
    background-color: var(--primary-color);
}

/* Categories */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.view-all {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.cat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    transition: transform var(--transition-medium);
}

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

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.condition-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
}

.btn-sm {
    padding: 6px 15px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-sm:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}


/* Trust Section */
.trust-section {
    background: var(--secondary-color);
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.trust-item i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Footer */
.main-footer {
    background: #020c1b;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-heading);
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 4px;
    color: var(--text-main);
    flex: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .desktop-nav,
    .header-bottom-bar {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .search-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating Instagram Button */
.floating-instagram {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-instagram i {
    font-size: 32px;
    color: white;
}

.floating-instagram:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .floating-instagram {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-instagram i {
        font-size: 26px;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 110px;
    /* 30px from bottom + 60px height + 20px gap */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp i {
    font-size: 32px;
    color: white;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background-color: #20b858;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 85px;
        /* 20px from bottom + 50px height + 15px gap */
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-whatsapp i {
        font-size: 26px;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: var(--success);
}

/* Footer Brand Styling */
.footer-brand {
    color: var(--accent-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
    gap: 10px;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.modal-tab-btn.active {
    color: var(--accent-color);
    font-weight: 600;
}

.modal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

.modal-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.modal-tab-content.active {
    display: block;
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF5722;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: bounce 1.5s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-3px);
    }
}

/* Header Search Bar */
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 15px;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.header-search:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
}

.header-search input {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 5px;
    outline: none;
    width: 200px;
    font-size: 0.9rem;
}

.header-search button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.header-search button:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .header-search input {
        width: 120px;
    }
}

/* GLOBAL LAYOUT GRID (Shared by Products & Scrap Bikes) */
.layout-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 60px 0;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.filter-option:hover {
    color: var(--text-main);
}

.filter-option input {
    margin-right: 10px;
    accent-color: var(--accent-color);
}

.active-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tag {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-tag i {
    cursor: pointer;
}

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

    .filters-sidebar {
        display: none;
    }
}

/* Mobile Header & Top Bar Optimization */
@media (max-width: 768px) {

    /* Top Bar: Allow natural flow, reduce size */
    .top-announcement-bar {
        position: relative;
        height: auto;
        min-height: 40px;
        flex-wrap: wrap;
        padding: 5px 10px;
        font-size: 0.8rem;
        line-height: 1.2;
        z-index: 1002;
    }

    .top-announcement-bar p {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    /* Header: STACK BELOW TOP BAR - Make Relative to flow naturally */
    .main-header {
        position: relative !important;
        top: auto !important;
        padding: 10px 0;
        background: rgba(18, 18, 18, 1);
        width: 100%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    /* Logo: Smaller */
    .logo {
        height: 40px;
    }

    /* Search: Hide in header on mobile */
    .header-search {
        display: none !important;
    }

    /* Hero: Reset padding because header is now relative and takes up space */
    .hero-section {
        margin-top: 0;
        padding-top: 20px !important;
    }

    .page-header {
        padding-top: 40px !important;
    }

    /* Font Sizes */
    h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #111;
    z-index: 2001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-nav-overlay.active .mobile-nav-content {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-nav-close:hover {
    color: var(--accent-color);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--accent-color);
    padding-left: 10px;
    /* Slide effect */
}

.mobile-nav-links i {
    width: 20px;
    text-align: center;
    font-size: 0.9em;
    color: var(--accent-color);
}