/**
 * Bundles CSS
 * This file contains the CSS styles for the bundle & save list page (/bundles)
 */

/* Hero Section */
.hero-section {
    background-image: url('/images/products/accessories-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0A1929;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 50px 60px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: normal;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 18px;
    font-weight: 400;
    color: #D7E1E8;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #062B45;
    background-color: #BD9209;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #daaa0c;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: 400px;
    }

    .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 350px;
    }

    .hero-container {
        padding: 30px 20px;
    }


    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 18px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 26px;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }
}

/* Page Header Section */
.page-header {
    background-color: #F4F4F4;
    padding: 50px 0;
}

.page-header-container {
    padding: 0 60px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 30px 0;
    }

    .page-header-container {
        padding: 0 20px;
    }
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.breadcrumb-link {
    font-size: 14px;
    color: #A3A3A3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #1C1C1C;
}

.breadcrumb-separator {
    font-size: 14px;
    color: #A3A3A3;
}

.breadcrumb-current {
    font-size: 14px;
    color: #A3A3A3;
}

/* Page Title */
.page-title {
    font-size: 40px;
    font-weight: 700;
    color: #1C1C1C;
    margin-bottom: 10px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
}

/* Page Description */
.page-description {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 70px;
}

@media (max-width: 768px) {
    .page-description {
        font-size: 14px;
        margin-bottom: 70px;
    }
}

/* Search Section */
.search-section {
    text-align: center;
}

.search-title {
    font-size: 30px;
    font-weight: 800;
    color: #1C1C1C;
    margin-bottom: 22px;
    line-height: 1.3;
    letter-spacing: -0.75px;
}

@media (max-width: 768px) {
    .search-title {
        font-size: 20px;
    }
}

.search-form {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    color: #1C1C1C;
    background-color: white;
    border: 2px solid #D7D7D7;
    border-radius: 6px 0 0 6px;
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-btn {
    padding: 0 32px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background-color: #062B45;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #093a5e;
}

/* Bundles Section */
.bundles {
    background-color: #F4F4F4;
}

.bundles-container {
    padding: 0 60px;
    display: flex;
    gap: 30px;
}

/* Left Sidebar */
.bundles-sidebar {
    min-width: 160px;
    width: 15%;
    margin: 20px 0;
}

.sidebar-filter-content {
    position: sticky;
    top: 100px;
}

.sidebar-filter-main-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E5E5;
}

.sidebar-filter-main-title-text {
    font-size: 20px;
    font-weight: 700;
    color: #062B45;
    line-height: normal;
}

.sidebar-filter-group {
    margin-bottom: 16px;
}

.sidebar-filter-header {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    padding-right: 24px;
}

.sidebar-filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #062B45;
    line-height: normal;
}

.sidebar-filter-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #6B7B86;
    line-height: 1.4;
}

.sidebar-filter-chevron {
    position: absolute;
    right: 0;
    top: 0;
    color: #062B45;
    transition: transform 0.2s ease;
    width: 16px;
    height: 16px;
}

.sidebar-filter-group.collapsed .sidebar-filter-chevron {
    transform: rotate(180deg);
}

.sidebar-filter-group.collapsed .sidebar-filter-body {
    display: none;
}

.sidebar-filter-body {
    margin-top: 12px;
}

.sidebar-filter-options {
    display: flex;
    flex-direction: column;
}

.sidebar-filter-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    user-select: none;
}

.sidebar-filter-option:hover {
    opacity: 0.8;
}

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

.sidebar-checkbox-box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid #767676;
    border-radius: 3px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.sidebar-checkbox-box svg {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.sidebar-option-text {
    font-size: 14px;
    font-weight: 500;
    color: #334B5B;
    line-height: 1.3;
}

.sidebar-filter-option input.sidebar-filter-checkbox:checked + .sidebar-checkbox-box {
    background-color: #BE930B;
    border-color: #BE930B;
}

.sidebar-filter-option input.sidebar-filter-checkbox:checked + .sidebar-checkbox-box svg {
    opacity: 1;
}

.sidebar-filter-divider {
    border: none;
    border-top: 1px solid #E7EBED;
    margin: 16px 0;
}

.sidebar-filter-clear {
    color: #526573;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-align: left;
}

.sidebar-filter-clear:hover {
    color: #BE930B;
}

/* Right Main Content */
.bundles-main {
    width: 100%;
}

@media (max-width: 768px) {
    .bundles-container {
        padding: 0 20px;
        flex-direction: column;
        gap: 0;
    }

    .bundles-sidebar {
        display: none;
    }

    .bundles-main {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

@media (max-width: 1366px) {
    .bundles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 1000px) {
    .bundles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.bundle-card {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bundle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination-btn {
    padding: 12px 36px;
    background-color: #BE930B;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    opacity: 0.9;
}

.pagination-btn img {
    width: 16px;
    height: 16px;
}

/* Filter Section */
.filter-section {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #F4F4F4;
    padding-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (max-width: 767px) {
    .filter-section .filter-left {
        display: none;
    }
    
    .filter-section .filter-right {
        width: 100%;
    }
    
    .filter-section .mobile-buttons-container {
        width: 100%;
    }
}

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

.filter-left {
    display: flex;
    align-items: center;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Products count ===== */
.products-count {
    font-size: 14px;
    font-weight: 600;
    color: #1C1C1C;
    line-height: normal;
}

@media (max-width: 768px) {
    .products-count {
        font-size: 12px;
    }
}

/* ===== Filter button wrapper ===== */
.filter-dropdown-wrapper.desktop-filter-wrapper {
    position: relative;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: white;
    border: 1px solid #D8E0E5;
    border-radius: 10px;
    box-shadow: 0 4px 14px 0 rgba(25, 34, 40, 0.06);
    color: #1C1C1C;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.filter-btn.is-open {
    border-color: #BE930B;
}

.filter-btn.has-active {
    border-color: #BE930B;
}

.filter-btn-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.filter-btn-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: #BE930B;
    color: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Filter dropdown panel ===== */
.filter-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 650px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid #DDE4E8;
    box-shadow: 0 18px 44px 0 rgba(20, 34, 43, 0.16);
    z-index: 10;
    overflow: hidden;
}

@media (max-width: 768px) {
    .filter-panel {
        left: auto;
        right: 0;
        min-width: 90vw;
        max-width: 95vw;
    }
}

.filter-panel.hidden {
    display: none;
}

/* Filter group (section) */
.filter-group {
    padding: 22px;
}

@media (max-width: 768px) {
    .filter-group {
        padding: 10px;
    }
}

.filter-group-title {
    font-size: 18px;
    font-weight: 600;
    color: #062B45;
    margin-bottom: 4px;
    line-height: normal;
}

@media (max-width: 768px) {
    .filter-group-title {
        font-size: 16px;
    }
}

.filter-group-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #6E7D87;
    margin-bottom: 16px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .filter-group-subtitle {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

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

/* Tile-style checkbox */
.filter-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #E0E5E8;
    border-radius: 8px;
    cursor: pointer;
    background-color: white;
    transition: all 0.18s ease;
    user-select: none;
}

.filter-tile:hover {
    border-color: rgba(28, 28, 28, 0.4);
}

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

.filter-tile-box {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1.5px solid #C4C4C4;
    border-radius: 4px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.filter-tile-check {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.filter-tile-text {
    font-size: 14px;
    font-weight: 600;
    color: #263D4C;
    line-height: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.filter-tile input.desktop-filter-checkbox:checked + .filter-tile-box .filter-tile-check {
    opacity: 1;
}

.filter-tile:has(input.desktop-filter-checkbox:checked) {
    border-color: #BE930B;
    background-color: #FFFBEC;
}

/* Divider */
.filter-divider {
    border: none;
    border-top: 1px solid #E7EBED;
    margin: 0 24px;
}

/* More button */
.filter-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: none;
    border: none;
    color: #062B45;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.filter-more:hover {
    color: #BE930B;
}

/* Panel footer */
.filter-panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #E5E7EB;
    background-color: #FFF;
}

@media (max-width: 768px) {
    .filter-panel-footer {
        padding: 10px 16px;
    }
}

.filter-clear {
    padding: 10px 16px;
    background: none;
    border: none;
    color: #536875;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-apply {
    padding: 10px 16px;
    background-color: #BE930B;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-apply:hover {
    background-color: #a8840a;
}

/* ===== Sort button ===== */
.sort-dropdown-wrapper {
    position: relative;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: white;
    border: 1px solid #D8E0E5;
    border-radius: 10px;
    color: #7B8790;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px 0 rgba(25, 34, 40, 0.06);
}

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

.sort-btn.is-open {
    border-color: #BE930B;
}

.sort-btn-label {
    color: #7B8790;
    font-weight: 400;
    font-size: 16px;
}

.sort-btn-value {
    color: #1C1C1C;
    font-weight: 600;
    font-size: 16px;
}

.sort-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.sort-btn.is-open .sort-chevron {
    transform: rotate(180deg);
}

/* Sort dropdown */
.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid #DDE4E8;
    box-shadow: 0 18px 44px 0 rgba(20, 34, 43, 0.16);
    z-index: 10;
    overflow: hidden;
}

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

.sort-dropdown-content {
    padding: 8px;
}

.sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #314858;
    transition: background-color 0.15s ease;
}

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

.sort-option.selected {
    background-color: #F7F0D9;
    font-weight: 600;
    color: #062B45;
}

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

.sort-option-check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== Mobile Filter Button ===== */
.mobile-buttons-container {
    display: none;
}

.mobile-filter-button-container,
.mobile-sort-button-container {
    display: none;
}

@media (max-width: 767px) {
    .filter-left .products-count {
        font-size: 14px;
    }

    /* 移动端filter-right变为块级布局 */
    .filter-right {
        display: block;
        width: 100%;
    }

    /* 隐藏桌面端按钮，但保留下拉框面板 */
    .filter-right .desktop-filter-wrapper > .filter-btn,
    .filter-right .sort-dropdown-wrapper > .sort-btn {
        display: none;
    }

    .mobile-buttons-container {
        display: flex;
        width: 100%;
        gap: 10px;
        justify-content: space-between;
    }

    .mobile-filter-button-container,
    .mobile-sort-button-container {
        display: block;
        flex: 1;
        position: relative;
    }

    .mobile-filter-btn,
    .mobile-sort-btn {
        width: 100%;
        justify-content: center;
    }

    /* 桌面端filter-panel在移动端样式 - 通过JS动态定位到按钮下方 */
    .filter-panel {
        position: fixed;
        width: 100%;
        height: auto;
        max-height: 70vh;
        border-radius: 12px;
        overflow: hidden;
        z-index: 10;
        box-shadow: 0 18px 44px 0 rgba(20, 34, 43, 0.16);
        display: flex;
        flex-direction: column;
    }

    .filter-panel .filter-panel-content {
        flex: 1;
        overflow-y: auto;
    }

    .filter-panel .filter-panel-footer {
        flex-shrink: 0;
        border-top: 1px solid #E5E5E5;
        padding: 16px 20px;
        background: #fff;
    }

    .filter-panel.hidden {
        display: none !important;
    }

    /* 桌面端sort-dropdown-menu在移动端样式 - 通过JS动态定位到按钮下方 */
    .sort-dropdown-menu {
        position: fixed !important;
        width: 100%;
        max-height: 70vh;
        border-radius: 12px !important;
        overflow-y: auto;
        z-index: 1000 !important;
        box-shadow: 0 18px 44px 0 rgba(20, 34, 43, 0.16);
    }

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

    /* Desktop filter panel shown on mobile */
    .desktop-only-filter-panel {
        display: none;
    }
    
    .desktop-only-filter-panel:not(.hidden) {
        display: flex !important;
    }
}

.mobile-filter-btn,
.mobile-sort-btn {
    height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    border: 1px solid rgba(28, 28, 28, 0.2);
    border-radius: 8px;
    color: #1C1C1C;
    font-size: 15px;
    font-family: "Proxima Nova";
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.mobile-filter-btn:hover,
.mobile-sort-btn:hover {
    border-color: rgba(28, 28, 28, 0.5);
}

/* Mobile filter drawer */
.mobile-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
}

.drawer-content {
    width: 100%;
    max-width: 600px;
    background-color: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(100%);
    transition: transform 300ms ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.drawer-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

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

.drawer-title {
    font-size: 18px;
    font-weight: 600;
    color: #1c1c1c;
    margin: 0;
}

.mobile-filter-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s ease;
}

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

.drawer-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

/* Mobile filter sections */
.mobile-filter-section {
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

.mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    cursor: pointer;
}

.mobile-filter-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1c;
    margin: 0;
}

.mobile-filter-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.mobile-filter-content {
    margin-left: 8px;
}

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

.mobile-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    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-option span {
    font-size: 16px;
    color: #1c1c1c;
}

.mobile-filter-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.mobile-apply-btn {
    flex: 1;
    padding: 12px;
    background-color: #BE930B;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-apply-btn:hover {
    background-color: #a8840a;
}

.mobile-reset-btn {
    flex: 1;
    padding: 12px;
    background-color: #f3f4f6;
    color: #1c1c1c;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

/* Mobile sort drawer */
.mobile-sort-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
}

.drawer-content {
    width: 100%;
    max-width: 600px;
    background-color: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(100%);
    transition: transform 300ms ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.drawer-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

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

.drawer-title {
    font-size: 18px;
    font-weight: 600;
    color: #1c1c1c;
    margin: 0;
}

.mobile-sort-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s ease;
}

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

.drawer-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.mobile-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

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

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

.mobile-sort-option span {
    font-size: 16px;
    color: #1c1c1c;
}

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

/* Pagination Links */
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 16px;
    border: 1px solid #BE930B;
    border-radius: 6px;
    color: #BE930B;
    text-decoration: none;
    font-family: "Proxima Nova";
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: #BE930B;
    color: white;
}

.pagination-link.opacity-50 {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-link.opacity-50:hover {
    background-color: transparent;
    color: #BE930B;
}

/* No Results Message */
#no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
}

#no-results-message p {
    font-family: "Proxima Nova";
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    color: #68788E;
}

/* Pagination Container */
#pagination-container {
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}

#pagination-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

#pagination-links > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 767px) {
    .bundles .container {
        padding: 0 20px;
    }

    .search-form {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .search-input {
        border-radius: 8px 0 0 8px;
    }

    .search-btn {
        border-radius: 0 8px 8px 0;
        padding: 0px 16px;
    }

    .filter-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-section > div:first-child {
        flex-wrap: wrap;
    }

    .filter-right {
        width: 100%;
        gap: 10px;
        justify-content: space-between;
    }
    
    .custom-select {
        min-width: 120px;
    }
    
    .sort-dropdown-menu {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 10px;
        width: 100%;
    }
}

/* Bundle Card CSS */

/* Base styles */
.bundle-card {
    width: 100%;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bundle-card-image-container {
    width: 100%;
    height: 250px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-radius: 6px 6px 0 0;
}

.promotion-badge {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 5;
}

.promotion-badge-content {
    background-color: #BE930B;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 4px;
}

.bundle-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    max-width: 100%;
    max-height: 100%;
}

.bundle-info {
    padding: 10px 20px 10px;
    background-color: white;
    border-radius: 0 0 6px 6px;
}

.bundle-title {
    font-size: 16px;
    font-weight: 800;
    color: #1C1C1C;;
    margin-bottom: 4px;
    line-height: normal;
}

.bundle-price {
    margin-bottom: 4px;
}

.current-price {
    color: #DE2A2A;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-right: 10px;
}

.original-price {
    color: #68788E;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: line-through;
}

.bundle-rating {
    margin-bottom: 10px;
}

/* Affirm Payment Info */
.affirm-payment-info {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    padding: 12px 0;
    min-height: 32px;
    cursor: pointer;
}

.payment-text {
    color: #1C1C1C;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    align-self: center;
}

.payment-price {
    color: #1C1C1C;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    align-self: center;
}

.stars {
    color: #F6A429;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.review-count {
    color: #1C1C1C;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.bundle-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(28, 28, 28, 0.1);
}

.add-to-cart-btn {
    width: 47px;
    height: 47px;
    background-color: #BE930B;
    border-radius: 8.29px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.add-to-cart-btn:hover {
    opacity: 0.9;
}

.view-btn {
    flex: 1;
    height: 47px;
    border: 1px solid #BE930B;
    border-radius: 6px;
    color: #BE930B;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
}

.view-btn:hover {
    background-color: #BE930B;
    color: white;
}

/* Responsive styles */
@media (min-width: 768px) {
    .bundle-card-image-container {
        height: 314px;
    }
}

@media (max-width: 767px) {
    .bundle-card-image-container {
        height: 250px;
    }
    
    .bundle-info {
        padding: 10px 16px 16px;
    }
    
    .bundle-title {
        font-size: 14px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .original-price {
        font-size: 14px;
    }
    
    .stars {
        font-size: 14px;
    }
    
    .review-count {
        font-size: 14px;
    }
}

/* ===== 组合销售列表页（/bundles）补充样式 ===== */
.bundle-rating .out-of-stock-note {
    color: #DE2A2A;
    margin-left: 10px;
}
