/* Shop Catalog Page */
.shop-catalog-page {
    /* padding-top: 100px; */
}

/* Hero Banner */
.banner-hero {
    width: 100%;
    max-height: 371px;
    overflow: hidden;
    margin-bottom: 0;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    /* object-fit: cover; */
    max-height: 371px;
}

/* Sidebar + Results layout — CSS Grid, immune to SRP overrides */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: start;
}

.catalog-sidebar {
    min-width: 0;
}

.catalog-sidebar .selected-filters {
    justify-content: flex-start;
    margin-bottom: 15px;
}

.catalog-main {
    min-width: 0;
}

/* Breadcrumb */
.catalog-breadcrumb {
    padding: 15px 0;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.breadcrumb-item {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item a {
    color: #5D5D5D;
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #A51336;
}

.breadcrumb-current {
    color: #080808;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    line-height: 24px;
}

.breadcrumb-separator {
    width: 7px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 7 12' fill='none'%3E%3Cpath d='M0.75 0.75L5.75 5.75L0.75 10.75' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

/* Title */
.catalog-title {
    font-family: "Open Sans", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #080808;
    margin-bottom: 20px;
}

/* Top Filter Bar */
.catalog-top-filter-bar {
    margin-bottom: 25px;
}

.top-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-filter-label {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #080808;
}

.top-filter-select {
    min-width: 160px;
    border-radius: 0;
    border: 1px solid #ddd;
    font-size: 14px;
    padding: 8px 12px;
    background-color: #fff;
}

.top-filter-select:focus {
    box-shadow: none;
    border-color: #080808;
}

.top-filter-btn {
    background: #A51336;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-filter-btn:hover {
    background: #8a1030;
    color: #fff;
}

/* Search/Sort Bar */
.catalog-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.catalog-results-count {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #080808;
    white-space: nowrap;
}

.catalog-search-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-search-bar {
    min-width: 250px;
}

.catalog-search-bar .form-control {
    border-radius: 4px 0 0 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.catalog-search-bar .btn {
    border-radius: 0 4px 4px 0;
}

.catalog-sort-select {
    min-width: 150px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    padding: 6px 10px;
}

.catalog-sort-select:focus {
    box-shadow: none;
    border-color: #080808;
}

/* Product Grid */
.product-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

/* Product Card */
.product-card {
    width: 213px;
    height: 272px;
    padding: 16px;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    display: inline-flex;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.product-card-image-wrapper {
    align-self: stretch;
    flex: 1 1 0;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    display: flex;
}

.product-card-image {
    align-self: stretch;
    flex: 1 1 0;
    object-fit: contain;
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
    color: #ccc;
    font-size: 48px;
}

.product-card-info {
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    display: flex;
}

.product-card-price {
    text-align: center;
    color: #BD1F3F;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    line-height: 26px;
    word-wrap: break-word;
}

.product-card-name {
    align-self: stretch;
    text-align: center;
    color: #000;
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
}

/* Pagination */
.catalog-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Empty State */
.catalog-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.catalog-empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.catalog-empty-state h3 {
    font-family: "Open Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #080808;
    margin-bottom: 10px;
}

.catalog-empty-state p {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
}

.catalog-clear-btn {
    background: #A51336;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-weight: 600;
}

.catalog-clear-btn:hover {
    background: #8a1030;
    color: #fff;
}

/* Filter Accordion Items */
.filter-accordion-item {
    background: white;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.filter-accordion-btn {
    padding: 20px 0;
    background: white;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: "Open Sans", sans-serif;
    color: #0D1521;
}

.filter-accordion-btn.collapsed {
    padding: 20px 0;
}

.filter-accordion-btn:not(.collapsed) {
    padding-top: 20px;
    padding-bottom: 10px;
}

.filter-accordion-btn:focus {
    box-shadow: none;
    border: none;
}

.filter-accordion-btn::after {
    display: none;
}

.filter-title {
    flex: 1;
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    color: #0D1521;
    text-align: left;
}

.filter-toggle-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Plus icon (collapsed state) */
.filter-accordion-btn.collapsed .filter-toggle-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z' fill='black'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Minus icon (expanded state) */
.filter-accordion-btn:not(.collapsed) .filter-toggle-icon::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #BD1F3F;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-items-wrapper {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    cursor: pointer;
    margin: 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.filter-item:hover {
    background: rgba(0, 0, 0, 0.02);
    color: inherit;
}

.filter-checkbox {
    width: 17px;
    height: 18px;
    padding: 3px;
    outline: 1px solid rgba(0, 0, 0, 0.10);
    outline-offset: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.filter-checkbox::after {
    content: '';
    width: 8.06px;
    height: 6.15px;
    background: #0D1521;
    clip-path: polygon(0 50%, 25% 75%, 100% 0, 100% 25%, 25% 100%, 0 75%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .filter-checkbox::after,
.filter-checkbox:has(input[type="checkbox"]:checked)::after {
    opacity: 1;
}

.filter-label {
    flex: 1;
    color: #0D1521;
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    line-height: 20px;
}

.filter-divider {
    width: 1px;
    height: 8.49px;
    background: rgba(0, 0, 0, 0.10);
    flex-shrink: 0;
}

.filter-count {
    color: rgba(0, 0, 0, 0.70);
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    line-height: 20px;
    flex-shrink: 0;
}

/* Division Filter Links - specific styling */
.division-filter-link.filter-item {
    text-decoration: none;
}

.division-filter-link i {
    width: 18px;
    text-align: center;
    color: #BD1F3F;
    font-size: 13px;
    flex-shrink: 0;
}

.division-filter-link:hover {
    color: #0D1521;
    text-decoration: none;
}

.division-filter-link:hover .filter-label {
    color: #BD1F3F;
}

/* Responsive */
@media only screen and (max-width: 1200px) {
    .product-results {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }

    .catalog-search-bar {
        max-width: 100%;
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .shop-catalog-page {
        padding-top: 80px;
    }

    .banner-hero {
        max-height: 250px;
    }

    .banner-image {
        max-height: 250px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .product-results {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-title {
        font-size: 24px;
    }

    .top-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .top-filter-select {
        min-width: 100%;
    }
}

@media only screen and (max-width: 480px) {
    .banner-hero {
        max-height: 180px;
    }

    .banner-image {
        max-height: 180px;
    }

    .product-results {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .product-card-image {
        height: 180px;
    }
}
