/* Catalog Page CSS */

/* Filter Section */
.filter-section {
    background-color: #F4F4F4;
}

.filter-section-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .filter-section-container {
        padding: 0;
    }
}

.filter-section-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    background-color: #F4F4F4;
}

@media (min-width: 768px) {
    .filter-section-header {
        padding: 30px 0;
    }
}

/* Banner Section */
.catalog-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.catalog-banner-container {
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 0;
}

@media (min-width: 768px) {
    .catalog-banner-container {
        border-radius: 6px;
    }
}

.catalog-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(/images/all-bikes.png) no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.catalog-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%);
    z-index: 2;
}

@media (min-width: 768px) {
    .catalog-banner-overlay {
        display: none;
    }
}

.catalog-banner-content {
    position: relative;
    padding: 0;
    height: 300px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 3;
}

@media (max-width: 767px) {
    .catalog-banner-content {
        flex-direction: column;
        justify-content: center;
    }
}

.catalog-banner-text {
    max-width: 800px;
    color: white;
    animation: fade-in 0.5s ease-in;
    text-align: center;
}

@media (max-width: 767px) {
    .catalog-banner-text {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .catalog-banner-text {
        text-align: left;
    }
}

.catalog-banner-title {
    font-size: 36px;
    font-weight: bold;
    font-style: italic;
    line-height: normal;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .catalog-banner-title {
        font-size: 36px;
    }
}

@media (min-width: 768px) {
    .catalog-banner-title {
        font-size: 50px;
    }
}

.catalog-banner-description {
    font-size: 14px;
    color: #e8e8e8;
    line-height: normal;
}

@media (min-width: 768px) {
    .catalog-banner-description {
        font-size: 16px;
    }
}

.catalog-banner-description + .catalog-banner-description {
    margin-top: 8px;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sort Options Section */
.sort-options-container {
    display: none;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .sort-options-container {
        display: flex;
    }
}

.products-count {
    font-size: 14px;
    font-weight: 600;
    color: #1C1C1C;
}

.sort-by-text {
    font-size: 16px;
    color: #C3C3C3;
}

.sort-dropdown-wrapper {
    position: relative;
}

.sort-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    color: #1C1C1C;
    font-size: 16px;
    text-decoration: underline;
}

.sort-arrow {
    width: 18px;
    height: 18px;
    transition: transform 200ms ease;
}

.sort-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 2px;
    width: 262px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid rgba(28, 28, 28, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 10;
    max-height: 345px;
}

.sort-dropdown-menu.hidden {
    display: none;
}

.sort-dropdown-content {
    padding: 8px;
    overflow-y: auto;
    max-height: 345px;
}

.sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
}

.sort-option:hover {
    background-color: #f9fafb;
}

.sort-option-text {
    color: #1c1c1c;
    font-family: 'Proxima Nova';
    font-weight: 400;
    font-size: 16px;
    line-height: 1.218;
}

.check-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon.hidden {
    display: none;
}

.sort-option.selected .check-icon {
    display: flex;
}

/* Sort option styles */
.sort-option span {
    font-weight: 400 !important;
}

.sort-option.selected span {
    font-weight: 600 !important;
}

/* Mobile sort option styles */
.mobile-sort-option span {
    font-weight: 400 !important;
}

.mobile-sort-option.selected span {
    font-weight: 600 !important;
}

/* Custom scrollbar styles for dropdown menus and mobile drawers */
/* Add padding to the right of scrollable containers */
.filter-dropdown-menu .overflow-y-auto {
    padding-right: 16px !important;
}

.sort-dropdown-menu .overflow-y-auto {
    padding-right: 16px !important;
}

/* Custom scrollbar styles */
.filter-dropdown-menu .overflow-y-auto::-webkit-scrollbar,
.sort-dropdown-menu .overflow-y-auto::-webkit-scrollbar,
.mobile-filter-drawer::-webkit-scrollbar,
.mobile-sort-drawer::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown-menu .overflow-y-auto::-webkit-scrollbar-track,
.sort-dropdown-menu .overflow-y-auto::-webkit-scrollbar-track,
.mobile-filter-drawer::-webkit-scrollbar-track,
.mobile-sort-drawer::-webkit-scrollbar-track {
    background: transparent;
}

.filter-dropdown-menu .overflow-y-auto::-webkit-scrollbar-thumb,
.sort-dropdown-menu .overflow-y-auto::-webkit-scrollbar-thumb,
.mobile-filter-drawer::-webkit-scrollbar-thumb,
.mobile-sort-drawer::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 3px;
}

.filter-dropdown-menu .overflow-y-auto::-webkit-scrollbar-thumb:hover,
.sort-dropdown-menu .overflow-y-auto::-webkit-scrollbar-thumb:hover,
.mobile-filter-drawer::-webkit-scrollbar-thumb:hover,
.mobile-sort-drawer::-webkit-scrollbar-thumb:hover {
    background: #D1D5DB;
}

/* Catalog banner background blur effect */
.catalog-banner-bg {
    transform: scale(1.0);
}

/* Mobile Filter Button */
.mobile-filter-button-container {
    display: block;
}

@media (min-width: 768px) {
    .mobile-filter-button-container {
        display: none;
    }
}

.mobile-filter-btn {
    width: 42vw;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background-color: white;
    border-radius: 6px;
    color: #1c1c1c;
    font-size: 16px;
    border: 1px solid transparent;
    transition: all 200ms ease;
}

.mobile-filter-btn:hover {
    border-color: #be930b;
}

.mobile-filter-btn svg {
    width: 18px;
    height: 18px;
}

/* Mobile Sort Button */
.mobile-sort-button-container {
    display: block;
}

@media (min-width: 768px) {
    .mobile-sort-button-container {
        display: none;
    }
}

.mobile-sort-btn {
    width: 42vw;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background-color: white;
    border-radius: 6px;
    color: #1c1c1c;
    font-size: 16px;
    border: 1px solid transparent;
    transition: all 200ms ease;
}

.mobile-sort-btn:hover {
    border-color: #be930b;
}

.mobile-sort-btn svg {
    width: 18px;
    height: 18px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Desktop Filters */
.desktop-filters {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .desktop-filters {
        display: flex;
    }
}

.filter-label {
    font-size: 16px;
    color: #C3C3C3;
}

.filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-dropdown-wrapper {
    position: relative;
}

.filter-dropdown-btn {
    width: 138px;
    height: 47px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 6px;
    color: #1C1C1C;
    font-size: 16px;
    border: 1px solid transparent;
    transition: all 200ms ease;
}

.filter-dropdown-btn:hover {
    border-color: #be930b;
}

.filter-dropdown-btn svg {
    width: 18px;
    height: 18px;
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 2px;
    width: 262px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid rgba(28, 28, 28, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 10;
    max-height: 306px;
}

.filter-dropdown-menu.hidden {
    display: none;
}

.filter-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(28, 28, 28, 0.3);
}

.filter-selected-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-selected-count .count {
    color: #1c1c1c;
    font-weight: 600;
    font-family: 'Proxima Nova';
    font-size: 16px;
    line-height: 1.218;
}

.filter-selected-count .label {
    color: #1c1c1c;
    font-weight: 400;
    font-family: 'Proxima Nova';
    font-size: 16px;
    line-height: 1.218;
}

.filter-clear-all {
    color: #1c1c1c;
    transition: color 0.2s ease;
    font-family: 'Proxima Nova';
    font-weight: 400;
    font-size: 16px;
    line-height: 1.218;
}

.filter-clear-all:hover {
    color: #be930b;
}

.filter-dropdown-content {
    padding: 8px 2px;
    overflow-y: auto;
    max-height: 200px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
}

.filter-option:hover {
    background-color: #f9fafb;
}

.checkbox-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

.desktop-filter-checkbox {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.desktop-checkbox-span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    border: 2px solid #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms ease;
}

.desktop-checkbox-checkmark {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.desktop-filter-checkbox:checked + .desktop-checkbox-span {
    background-color: #BE930B;
    border-color: #BE930B;
}

.desktop-filter-checkbox:checked + .desktop-checkbox-span .desktop-checkbox-checkmark {
    opacity: 1;
}

.filter-option-text {
    color: #1c1c1c;
    font-family: 'Proxima Nova';
    font-weight: 400;
    font-size: 16px;
    line-height: 1.218;
}

/* Mobile Filter Drawer */
.mobile-filter-drawer {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
}

.mobile-filter-drawer .drawer-content {
    background-color: white;
    width: 100%;
    max-width: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 300ms ease-in-out;
}

.mobile-filter-drawer .drawer-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(28, 28, 28, 0.3);
    flex-shrink: 0;
}

.mobile-filter-drawer .drawer-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-filter-drawer .drawer-title {
    font-size: 16px;
    font-weight: bold;
    color: #1C1C1C;
}

.mobile-filter-close {
    color: #1c1c1c;
    transition: color 0.2s ease;
}

.mobile-filter-close:hover {
    color: #be930b;
}

.mobile-filter-drawer .drawer-body {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    color: #1C1C1C;
}

/* Mobile Filter Sections */
.mobile-filter-section {
    border-bottom: 1px solid rgba(28, 28, 28, 0.3);
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
}

.mobile-filter-header h4 {
    font-weight: 600;
}

.mobile-filter-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-filter-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.mobile-filter-content {
    display: none;
}

.mobile-filter-content:not(.hidden) {
    display: block;
}

/* Mobile Filter Options */
.mobile-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
}

.mobile-filter-option:hover {
    background-color: #f9fafb;
}

.mobile-filter-checkbox {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.mobile-checkbox-span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    border: 2px solid #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms ease;
}

.mobile-checkbox-checkmark {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-filter-checkbox:checked + .mobile-checkbox-span {
    background-color: #BE930B;
    border-color: #BE930B;
}

.mobile-filter-checkbox:checked + .mobile-checkbox-span .mobile-checkbox-checkmark {
    opacity: 1;
}

/* Mobile Filter Buttons */
.mobile-filter-buttons {
    padding: 12px;
    border-top: 1px solid rgba(28, 28, 28, 0.3);
    flex-shrink: 0;
}

.mobile-filter-buttons-container {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.mobile-apply-btn {
    flex: 1;
    padding: 8px 20px;
    background-color: #BE930B;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.2s ease;
}

.mobile-apply-btn:hover {
    opacity: 0.9;
}

.mobile-reset-btn {
    flex: 1;
    padding: 8px 20px;
    background-color: transparent;
    border-radius: 6px;
    border: 1px solid #1c1c1c;
    color: #1c1c1c;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease;
}

.mobile-reset-btn:hover {
    background-color: #f4f4f4;
}

/* Mobile Sort Drawer */
.mobile-sort-drawer {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mobile-sort-drawer .drawer-content {
    background-color: white;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 300ms ease-in-out;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.mobile-sort-drawer .drawer-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(28, 28, 28, 0.3);
}

.mobile-sort-drawer .drawer-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sort-drawer .drawer-title {
    font-size: 16px;
    font-weight: bold;
    color: #1C1C1C;
}

.mobile-sort-close {
    color: #1C1C1C;
    transition: color 0.2s ease;
}

.mobile-sort-close:hover {
    color: #be930b;
}

.mobile-sort-drawer .drawer-body {
    padding: 10px 8px;
    font-size: 14px;
    color: #1C1C1C;
}

.mobile-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
}

.mobile-sort-option:hover {
    background-color: #f9fafb;
}

/* Feature Cards Section */
.feature-cards-section {
    background-color: white;
    padding: 30px 0;
}

@media (min-width: 768px) {
    .feature-cards-section {
        padding: 50px 0;
    }
}

.feature-cards-container {
    max-width: 1440px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .feature-cards-container {
        padding: 0 20px;
    }
}

.feature-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .feature-cards {
        flex-direction: row;
        gap: 30px;
    }
}

.feature-card {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    height: 223px;
}

@media (min-width: 768px) {
    .feature-card {
        flex: 1;
        height: 310px;
    }
}

.feature-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,1) 100%);
}

.feature-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 20px;
    gap: 10px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .feature-card-content {
        padding: 30px;
    }
}

.feature-card-content-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

@media (min-width: 768px) {
    .feature-card-content-inner {
        flex-direction: row;
        align-items: flex-end;
    }
}

.feature-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-card-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

@media (min-width: 768px) {
    .feature-card-title {
        font-size: 24px;
    }
}

.feature-card-description {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

@media (min-width: 768px) {
    .feature-card-description {
        font-size: 16px;
    }
}

.feature-card-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background-color: transparent;
    border-radius: 6px;
    border: 1px solid white;
}

@media (min-width: 768px) {
    .feature-card-button {
        gap: 30px;
        padding: 14px 30px;
    }
}

.feature-card-button span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

@media (min-width: 768px) {
    .feature-card-button span {
        font-size: 16px;
    }
}