/* ===== PRODUCTS PAGE STYLES - DARK THEME ===== */

/* Breadcrumb */
.breadcrumb-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    position: relative;
    margin-bottom: 0;
}

.mobile-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mobile-filter-toggle .products-sidebar.mobile-show {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1000;
    margin: 16px 0 0;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    border-radius: 16px;
    overflow: hidden;
}

.filter-toggle-btn {
    background: #CBAB58;
    color: #fff;
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(203, 171, 88, 0.35);
}

.filter-toggle-btn:hover {
    background: #b8954a;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(203, 171, 88, 0.45);
}

.filter-toggle-btn i {
    margin: 0;
    font-size: 18px;
}

.download-btn-compact {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    height: 54px;
    border-radius: 16px;
    font-size: 14px;
    box-shadow: 0 4px 18px rgba(203, 171, 88, 0.28);
}

.download-btn-compact span {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.breadcrumb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #ccc;
}

.breadcrumb a {
    color: #CBAB58;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #fff;
    font-weight: 500;
}

.breadcrumb-logo .logo-img {
    width: 160px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.breadcrumb-logo .logo-img:hover {
    transform: translateY(-3px) scale(1.03);
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.4));
}

/* Products Layout */
.products-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    overflow: visible;
}

.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    min-height: calc(100vh - 200px);
}

/* Sidebar */
.products-sidebar {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 10px;
    padding: 30px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar for sidebar */
.products-sidebar::-webkit-scrollbar {
    width: 6px;
    display: none; /* Hide scrollbar for better UX */
}

.products-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.products-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #CBAB58, #b8954a);
    border-radius: 3px;
}

.products-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b8954a, #CBAB58);
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #CBAB58;
}

.category-list,
.collection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.collection-list li {
    margin-bottom: 10px;
}

.category-list a,
.collection-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-list a:hover,
.collection-list a:hover,
.category-list .active a {
    background: rgba(203, 171, 88, 0.1);
    color: #CBAB58;
    border-left: 3px solid #CBAB58;
}

.category-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.count {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.download-catalog {
    display: block;
    margin-top: 8px;
    padding: 8px 15px;
    background: rgba(203, 171, 88, 0.1);
    color: #CBAB58;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(203, 171, 88, 0.3);
}

.download-catalog:hover {
    background: #CBAB58;
    color: #fff;
    transform: translateY(-1px);
}

.download-catalog i {
    margin-right: 5px;
    font-size: 10px;
}

/* Products Content */
.products-content {
    min-height: 600px;
    position: relative;
    overflow: visible;
    width: 100%;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    position: relative;
    margin-bottom: 0;
}

.mobile-filter-toggle .products-sidebar.mobile-show {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1000;
    margin: 16px 0 0;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    border-radius: 16px;
    overflow: hidden;
}

.filter-toggle-btn {
    background: #CBAB58;
    color: #fff;
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(203, 171, 88, 0.35);
}

.filter-toggle-btn:hover {
    background: #b8954a;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(203, 171, 88, 0.45);
}

.filter-toggle-btn i {
    margin: 0;
    font-size: 18px;
}

.products-header {
    margin-bottom: 40px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.header-left {
    flex: 1;
}

.header-right {
    flex: 0 0 300px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
}

.products-count {
    font-size: 14px;
    color: #999;
}

/* Download Button */
.header-right .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #CBAB58;
    background: linear-gradient(135deg, #CBAB58 0%, #b8954a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(203, 171, 88, 0.3);
    position: relative;
    overflow: hidden;
}

.header-right .download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.header-right .download-btn:hover::before {
    left: 100%;
}

.header-right .download-btn:hover {
    background: linear-gradient(135deg, #b8954a 0%, #a67c3d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(203, 171, 88, 0.4);
    border-color: #b8954a;
}

.header-right .download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(203, 171, 88, 0.3);
}

.header-right .download-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.header-right .download-btn:hover i {
    transform: scale(1.1);
}

/* Accordion Styles */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
}

.accordion-button {
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 0 !important;
    padding: 15px 0;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-button:hover {
    color: #CBAB58;
}

.category-item {
    margin-bottom: 5px;
}

.category-link {
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 0 !important;
    padding: 15px 0;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.category-link:hover {
    color: #CBAB58;
    text-decoration: none;
}

.category-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: #CBAB58;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    color: #CBAB58;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23CBAB58'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(0deg);
}

.accordion-item {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-collapse {
    border: none;
    animation: none;
}

.accordion-body {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 0 15px 20px;
    margin-top: 5px;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-list li {
    margin-bottom: 2px;
}

.subcategory-list li:last-child {
    margin-bottom: 0;
}

.subcategory-list a {
    display: block;
    padding: 8px 12px;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px 0;
}

.subcategory-list a.active {
    background: rgba(203, 171, 88, 0.1);
    color: #CBAB58;
    border-left: 3px solid #CBAB58;
}

.accordion-button i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
    opacity: 0.8;
}

.accordion-button:not(.collapsed) i {
    opacity: 1;
    color: #CBAB58;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    align-items: stretch;
    width: 100%;
}

/* Ensure all product items have consistent height */
.product-item {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(203, 171, 88, 0.2);
    border-color: rgba(203, 171, 88, 0.3);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-category {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
    font-weight: 400;
}

.product-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
}

.collection {
    background: transparent;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #CBAB58;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    background: #CBAB58;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(203, 171, 88, 0.3);
}

.load-more-btn i {
    margin-right: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .products-sidebar {
        padding: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-sidebar {
        position: static;
        order: 2;
        max-height: none;
        overflow-y: visible;
    }

    .products-content {
        order: 1;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-title {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 30px 0;
    }

    .products-sidebar {
        padding: 15px;
    }

    .widget-title {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-item {
        margin: 0 auto;
        max-width: 300px;
    }

    .product-info {
        padding: 15px;
    }

    .main-nav ul {
        gap: 15px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .load-more-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .breadcrumb-section {
        margin: 10px 14px 18px;
        padding: 16px;
        border-radius: 18px;
    }

    .breadcrumb-logo .logo-img {
        width: 110px;
    }

    .mobile-filter-toggle {
        margin: 0 14px 14px;
        padding: 14px;
    }

    .mobile-actions-bar {
        gap: 12px;
    }

    .filter-toggle-btn {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .download-btn-compact {
        height: 48px;
        padding: 0 16px;
        font-size: 13px;
        border-radius: 14px;
    }

    .download-btn-compact span {
        font-size: 13px;
    }

    .products-header {
        margin: 0 14px 20px;
        padding: 20px 16px;
        border-radius: 18px;
        gap: 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 14px;
    }
}

/* Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        padding: 20px;
        border-radius: 0 0 10px 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Products Layout Mobile */
    .products-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-sidebar {
        display: none;
    }

    .products-header {
        flex-direction: column;
        gap: 18px;
        text-align: center;
        margin-bottom: 0;
        padding: 24px 20px;
        border-radius: 20px;
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.08);
        margin: 0 18px 24px;
    }

    .mobile-filter-toggle {
        display: block;
        margin: 0 18px 18px;
        padding: 18px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-actions-bar {
        gap: 16px;
    }

    .products-sidebar.mobile-show {
        display: block;
        width: 100%;
    }

    .filter-toggle-btn {
        width: 52px;
        height: 52px;
    }

    .header-left {
        order: 2;
        text-align: center;
    }

    .header-right {
        display: none;
    }

    .page-title {
        margin-bottom: 6px;
        line-height: 1.2;
        margin-top: 0;
        font-size: 26px;
        letter-spacing: 0.02em;
    }

    .page-subtitle {
        margin-bottom: 6px;
        color: #ddd;
        font-size: 15px;
    }

    .products-count {
        font-size: 13px;
        color: #b5b5b5;
    }

    .accordion-button {
        padding: 12px 0;
        font-size: 14px;
    }

    .accordion-body {
        padding: 6px 0 12px 15px;
    }

    .subcategory-list a {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Breadcrumb Mobile */
    .breadcrumb-section {
        margin: 12px 18px 22px;
        padding: 18px 20px;
        border-radius: 20px;
        background: linear-gradient(150deg, rgba(33, 33, 33, 0.95) 0%, rgba(20, 20, 20, 0.85) 100%);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .breadcrumb-container {
        flex-direction: column;
        gap: 14px;
        align-items: center;
        text-align: center;
    }

    .breadcrumb {
        display: none;
        font-size: 13px;
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
        letter-spacing: 0.03em;
    }

    .breadcrumb-logo .logo-img {
        width: 130px;
        filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.38));
    }
}