/* Modern Reset & Variables */
:root {
    --color-primary: #FFD700;
    /* Yellow */
    --color-primary-dark: #e6c200;
    --color-bg-dark: #121212;
    --color-bg-card: #1E1E1E;
    --color-text-white: #ffffff;
    --color-text-gray: #b3b3b3;
    --color-text-dark: #1a1a1a;

    --font-main: 'Outfit', sans-serif;

    --transition-fast: 0.3s ease;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--color-primary);
}

.btn-primary,
.btn-outline,
.btn-text {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}

.btn-text {
    color: var(--color-primary);
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}

.full-width {
    width: 100%;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--color-text-gray);
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    /* Remove gray background and make it blend with dark navbar */
    filter: brightness(1.2) contrast(1.1);
    mix-blend-mode: screen;
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-white);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links .btn-primary {
    padding: 10px 24px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-white);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Initial position */
    z-index: -2;
    transform: scale(1.1);
    animation: zoomOut 20s infinite alternate;
}

/* Animation for the background */
@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: slideUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Tabs */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-white);
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    font-family: inherit;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-dark);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product List – Card Grid */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-item {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 4px;
}

.price-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.price-item span {
    font-size: 0.72rem;
    color: var(--color-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-item strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-header-mobile {
    display: none;
}

/* Feature/About Section */
.about-dark {
    background-color: #0d0d0d;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
}

.feature-item p {
    color: var(--color-text-gray);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.info-list {
    list-style: none;
    margin: 30px 0;
}

.info-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-list a {
    color: var(--color-text-white);
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-list a:hover {
    color: var(--color-primary);
}

.working-hours {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.working-hours h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.contact-form {
    background: var(--color-bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--color-text-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Map Section */
.map-section {
    background-color: #0d0d0d;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.map-wrapper:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 12px 50px rgba(255, 215, 0, 0.1);
}

.map-wrapper iframe {
    display: block;
}

/* Footer */
.footer {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    justify-self: start;
}

.copyright {
    text-align: center;
    margin: 0;
}

.social-links {
    justify-self: end;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--color-text-gray);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-primary);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 960px) {

    .section-header h2,
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .tabs-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .tabs-nav::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }

    .tab-btn {
        flex: 0 0 auto;
        /* Prevent shrinking */
        white-space: nowrap;
    }

    /* Product grid: 2 columns on tablet */
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .product-info h3 {
        font-size: 0.9rem;
    }

    .price-item strong {
        font-size: 0.9rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--color-bg-card);
        flex-direction: column;
        justify-content: center;
        padding: 50px;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    .nav-links.active {
        right: 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-logo {
        justify-self: center;
    }

    .social-links {
        justify-self: center;
    }

    /* Product grid: 1 column on small mobile */
    .product-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- Categories Section (Refactored Index) --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: #1e1e1e;
    border-radius: var(--border-radius, 10px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-primary, #ffc107);
}

.category-card .card-image {
    height: 200px;
    background: #2a2a2a;
    overflow: hidden;
    position: relative;
}

.category-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.category-card .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}

.category-card p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.category-card .btn-text {
    margin-top: auto;
    color: var(--color-primary, #ffc107);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Horizontal Slider for Categories on Index */
.category-slider {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-bottom: 20px; /* Space for the scrollbar */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,215,0,0.5) rgba(255,255,255,0.05);
    -webkit-overflow-scrolling: touch;
}

.category-slider::-webkit-scrollbar {
    height: 8px;
}

.category-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.category-slider::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
}

.category-slider .category-card-small {
    flex: 0 0 auto;
    width: 240px;
    scroll-snap-align: start;
}

.category-card-small {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card-small:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    background: rgba(255, 215, 0, 0.05);
}

.category-card-small span {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.category-card-small .card-arrow {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.category-card-small:hover .card-arrow {
    transform: translateX(4px);
}

/* Category Filters for Index */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-filter {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--color-text-white);
}

.btn-filter:hover,
.btn-filter.active {
    background-color: var(--color-primary, #ffc107);
    color: var(--color-text-dark, #1a1a1a);
    border-color: var(--color-primary, #ffc107);
}

/* Fix Contact Form Dropdown Background */
.contact-form select option {
    background-color: #1E1E1E;
    color: #ffffff;
    padding: 10px;
}

/* Navbar scroll effect */
#navbar { transition: background .2s ease, box-shadow .2s ease; }
#navbar.is-scrolled { background: rgba(18,18,18,0.98); box-shadow: 0 5px 20px rgba(0,0,0,.5); }

/* Komunikaty formularza */
.form-msg { display:none; padding:12px 14px; border-radius:10px; }
.form-msg.is-success { display:block; background: rgba(76,175,80,0.15); color:#4CAF50; border:1px solid #4CAF50; }
.form-msg.is-error { display:block; background: rgba(244,67,54,0.15); color:#f44336; border:1px solid #f44336; }

/* ============= TAB LAYOUT (sidebar + content) ============= */
.tab-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* --- Sidebar --- */
.subcat-sidebar {
    flex-shrink: 0;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 120px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 12px;
    max-height: calc(100vh - 160px);
    margin-bottom: 40px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

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

.subcat-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.subcat-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.subcat-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 215, 0, 0.4);
}


.sidebar-parent-cat {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text-white);
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-parent-cat:first-of-type { margin-top: 5px; }
.sidebar-parent-cat:hover { background: rgba(255, 255, 255, 0.05); }
.sidebar-parent-cat.active {
    color: var(--color-text-dark);
    background: var(--color-primary);
}
.sidebar-parent-cat.active .parent-arrow {
    color: var(--color-text-dark);
}
.sidebar-subcats-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 10px;
    margin-bottom: 5px;
    border-left: 1px dashed rgba(255,255,255,0.1);
    margin-left: 16px;
    padding-top: 6px;
}


.subcat-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text-gray);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.35;
}

.subcat-nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--color-text-white);
}

.subcat-nav-item.active {
    background: rgba(255,215,0,0.12);
    color: var(--color-primary);
    font-weight: 700;
    border-left: 3px solid var(--color-primary);
}

.snav-label {
    flex: 1;
}

/* --- Content area --- */
.subcat-content {
    flex: 1;
    min-width: 0;
}

/* ============= SUBCATEGORY SECTIONS ============= */
.subcat-sections {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.subcat-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,215,0,0.25);
}

.subcat-heading span:first-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-white);
    letter-spacing: 0.02em;
}

.subcat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,215,0,0.15);
    color: var(--color-primary);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 10px;
    min-width: 28px;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
}

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

.sidebar-header-mobile h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

.close-sidebar-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden;
}

/* ============= RESPONSYWNOŚĆ ============= */
@media (max-width: 900px) {
    .tab-layout {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 25px;
        right: 20px;
        left: auto;
        transform: none;
        background: var(--color-primary);
        color: var(--color-text-dark);
        border: none;
        padding: 14px 24px;
        border-radius: 50px;
        font-size: 1.05rem;
        font-weight: 700;
        box-shadow: 0 5px 20px rgba(255,193,7,0.4);
        z-index: 998;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .mobile-filter-btn:active {
        transform: translateX(-50%) scale(0.95);
    }
    
    .mobile-filter-btn i {
        margin-right: 8px;
    }

    .subcat-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 85vh;
        background: #1a1a1a;
        z-index: 1001;
        transform: translateY(110%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 20px 20px 0 0;
        padding: 20px;
        margin-bottom: 0;
        border: none;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    
    .subcat-sidebar.modal-open {
        transform: translateY(0);
    }
    
    .sidebar-header-mobile {
        display: flex;
    }

    .subcat-sections {
        gap: 36px;
    }
}
@media (max-width: 560px) {
    .subcat-heading span:first-child {
        font-size: 1rem;
    }
}