/* =========================================
   WEB EXPORT - CATEGORY PRODUCT LISTING
   Brand: Blue + White + Orange CTA
========================================= */

.we-category-page {
    --we-primary: #1769AA;
    --we-primary-dark: #0D477A;
    --we-accent: #FF8C52;
    --we-accent-hover: #F47738;
    --we-heading: #173451;
    --we-text: #526579;
    --we-muted: #78899A;
    --we-border: #DCE5ED;
    --we-surface: #FFFFFF;
    --we-page-bg: #F5F8FB;

    padding: 30px 0 55px;
    background: var(--we-page-bg);
    color: var(--we-text);
}

.we-category-page,
.we-category-page * {
    box-sizing: border-box;
}

.we-category-page a {
    text-decoration: none;
}

.we-category-page .we-category-heading,
.we-category-page .we-product-filter-bar,
.we-category-page .we-listing-toolbar,
.we-category-page .we-product-listing,
.we-category-page .we-product-pagination {
    width: min(1200px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

/* Category heading */

.we-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.we-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--we-muted);
}

.we-breadcrumb a {
    color: var(--we-primary);
}

.we-breadcrumb i {
    font-size: 10px;
}

.we-category-heading h1 {
    margin: 0 0 7px;
    color: var(--we-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
}

.we-category-heading p {
    margin: 0;
    font-size: 14px;
}

.we-category-count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border: 1px solid var(--we-border);
    border-radius: 10px;
    background: #fff;
    color: var(--we-primary);
    font-size: 13px;
    font-weight: 700;
}

/* Single horizontal search and filter bar */

.we-product-filter-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid var(--we-border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(23, 52, 81, 0.04);
}

.we-filter-search,
.we-filter-location {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    height: 43px;
    padding: 0 11px;
    border: 1px solid var(--we-border);
    border-radius: 7px;
    background: #fff;
}

.we-filter-search {
    flex: 2 1 240px;
}

.we-filter-location {
    flex: 1 1 140px;
}

.we-filter-search i,
.we-filter-location i {
    flex-shrink: 0;
    color: var(--we-primary);
}

.we-filter-search input,
.we-filter-location input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--we-heading);
    font: inherit;
    font-size: 13px;
}

.we-product-filter-bar select {
    flex: 1 1 120px;
    min-width: 0;
    height: 43px;
    padding: 0 8px;
    border: 1px solid var(--we-border);
    border-radius: 7px;
    outline: none;
    background-color: #fff;
    color: var(--we-heading);
    font: inherit;
    font-size: 12px;
}

.we-filter-search:focus-within,
.we-filter-location:focus-within,
.we-product-filter-bar select:focus {
    border-color: var(--we-primary);
}

.we-filter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    height: 43px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: var(--we-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.we-filter-submit:hover {
    background: var(--we-primary-dark);
}

/* Product listing toolbar */

.we-listing-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.we-listing-toolbar h2 {
    margin: 0 0 5px;
    color: var(--we-heading);
    font-size: 20px;
    font-weight: 800;
}

.we-listing-toolbar p {
    margin: 0;
    font-size: 13px;
}

.we-listing-result {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--we-muted);
}

/* Individual product listing */

.we-product-listing {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--we-border);
    border-radius: 12px;
    background: var(--we-surface);
    box-shadow: 0 4px 15px rgba(23, 52, 81, 0.035);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.we-product-listing:hover {
    border-color: #B9D2E7;
    box-shadow: 0 7px 22px rgba(23, 52, 81, 0.075);
}

.we-product-main {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 255px;
    gap: 20px;
    align-items: stretch;
}

/* Product image */

.we-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 185px;
    overflow: hidden;
    border: 1px solid #EDF1F5;
    border-radius: 9px;
    background: #F8FAFC;
}

.we-product-image img {
    display: block;
    width: 100%;
    height: 185px;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.25s ease;
}

.we-product-image:hover img {
    transform: scale(1.04);
}

/* Product information */

.we-product-info {
    min-width: 0;
    padding: 3px 0;
}

.we-product-tag {
    display: inline-block;
    margin-bottom: 9px;
    padding: 5px 9px;
    border-radius: 5px;
    background: #EAF3FB;
    color: var(--we-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.we-product-info h3 {
    margin: 0 0 9px;
    color: var(--we-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.we-product-info h3 a {
    color: inherit;
}

.we-product-info h3 a:hover {
    color: var(--we-primary);
}

.we-product-description {
    margin: 0 0 14px;
    color: var(--we-text);
    font-size: 13px;
    line-height: 1.7;
}

.we-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 14px;
}

.we-product-specs span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--we-muted);
    font-size: 11px;
}

.we-product-specs i {
    color: var(--we-primary);
    font-size: 13px;
}

.we-product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.we-product-price strong {
    color: var(--we-primary-dark);
    font-size: 22px;
    font-weight: 800;
}

.we-product-price span {
    color: var(--we-muted);
    font-size: 12px;
}

/* Supplier information panel */

.we-product-supplier {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #E5EDF5;
    border-radius: 9px;
    background: #F7FAFD;
}

.we-supplier-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--we-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.we-supplier-label i {
    font-size: 14px;
}

.we-product-supplier h4 {
    margin: 0 0 12px;
    color: var(--we-heading);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.we-product-supplier>p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 9px;
    color: var(--we-text);
    font-size: 12px;
    line-height: 1.5;
}

.we-product-supplier>p i {
    margin-top: 2px;
    color: var(--we-primary);
}

/* Supplier action buttons */

.we-supplier-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
}

.we-view-supplier,
.we-send-inquiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.we-view-supplier {
    border: 1px solid var(--we-primary);
    background: #fff;
    color: var(--we-primary);
}

.we-view-supplier:hover {
    background: var(--we-primary);
    color: #fff;
}

.we-send-inquiry {
    border: 1px solid var(--we-accent);
    background: var(--we-accent);
    color: #fff;
}

.we-send-inquiry:hover {
    border-color: var(--we-accent-hover);
    background: var(--we-accent-hover);
    color: #fff;
}

/* Pagination */

.we-product-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.we-page-number,
.we-page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--we-border);
    border-radius: 7px;
    background: #fff;
    color: var(--we-heading);
    font-size: 13px;
    font-weight: 700;
}

.we-page-number:hover,
.we-page-arrow:hover,
.we-page-number.active {
    border-color: var(--we-primary);
    background: var(--we-primary);
    color: #fff;
}

.we-page-dots {
    padding: 0 4px;
    color: var(--we-muted);
}

/* Tablet */

@media (max-width: 1100px) {
    .we-product-filter-bar {
        flex-wrap: wrap;
    }

    .we-filter-search {
        flex: 2 1 240px;
    }

    .we-filter-location {
        flex: 1 1 180px;
    }

    .we-product-filter-bar select {
        flex: 1 1 130px;
    }

    .we-product-main {
        grid-template-columns: 150px minmax(0, 1fr) 225px;
        gap: 15px;
    }

    .we-product-image,
    .we-product-image img {
        min-height: 160px;
        height: 160px;
    }

    .we-product-listing {
        padding: 14px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .we-category-page {
        padding-top: 22px;
    }

    .we-category-heading {
        align-items: flex-start;
    }

    .we-category-heading h1 {
        font-size: 24px;
    }

    .we-category-count {
        padding: 8px 10px;
        font-size: 11px;
    }

    .we-product-filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        padding: 10px;
        margin-bottom: 23px;
    }

    .we-filter-search,
    .we-filter-location {
        grid-column: 1 / -1;
        width: 100%;
    }

    .we-product-filter-bar select {
        width: 100%;
    }

    .we-filter-submit {
        width: 100%;
    }

    .we-listing-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .we-listing-toolbar h2 {
        font-size: 18px;
    }

    .we-product-listing {
        padding: 12px;
    }

    .we-product-main {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 13px;
    }

    .we-product-image,
    .we-product-image img {
        min-height: 120px;
        height: 120px;
    }

    .we-product-info h3 {
        font-size: 15px;
    }

    .we-product-description {
        font-size: 12px;
    }

    .we-product-specs {
        gap: 7px 10px;
    }

    .we-product-specs span {
        font-size: 10px;
    }

    .we-product-price strong {
        font-size: 19px;
    }

    .we-product-supplier {
        grid-column: 1 / -1;
        padding: 13px;
    }

    .we-supplier-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .we-product-pagination {
        gap: 5px;
    }

    .we-page-number,
    .we-page-arrow {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 380px) {
    .we-category-count {
        display: none;
    }

    .we-product-main {
        grid-template-columns: 1fr;
    }

    .we-product-image,
    .we-product-image img {
        height: 190px;
    }

    .we-product-supplier {
        grid-column: auto;
    }
}