/* BrandedUK desktop catalogue polish. Scoped to shop-pc.html only. */
:root {
    --shop-ink: #172033;
    --shop-muted: #687386;
    --shop-line: #e4e8ef;
    --shop-soft: #f5f7fa;
    --shop-brand: #273469;
    --shop-accent: #9c27b0;
}

body {
    background: #f4f6f9;
    color: var(--shop-ink);
}

/* Brand results: editorial context between the heading and product grid. */
.brand-editorial[hidden] {
    display: none;
}

.brand-editorial {
    margin: 0 0 18px;
}

.brand-editorial-copy {
    min-height: 132px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: minmax(170px, 25%) minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
    border: 1px solid #d9dde3;
    border-radius: 10px;
    background: #eef0f3;
    text-align: left;
}

.brand-editorial-logo-card {
    min-height: 106px;
    display: grid;
    place-items: center;
    padding: 8px 14px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    background: #fff;
}

.brand-editorial-logo-card img {
    display: block;
    width: min(240px, 100%);
    height: 72px;
    object-fit: contain;
}

.brand-editorial-copy p {
    align-self: center;
    max-width: none;
    margin: 0;
    color: #5f6b7a;
    font-size: clamp(10px, .78vw, 12px);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .brand-editorial-copy {
        grid-template-columns: minmax(120px, 30%) minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .brand-editorial-logo-card {
        min-height: 90px;
    }

    .brand-editorial-copy p {
        font-size: 10px;
        line-height: 1.32;
    }
}

.shop-wrapper {
    max-width: 1600px;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    padding: 32px 28px 56px;
}

@media (max-width: 1440px) {
    .shop-wrapper {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 18px;
        padding: 22px 18px 42px;
    }
}

@media (max-width: 1180px) {
    .shop-wrapper {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 14px 36px;
    }

}

.filters-sidebar,
.products-section {
    border: 1px solid var(--shop-line);
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.045);
}

.filters-sidebar {
    top: 18px;
    max-height: calc(100vh - 36px);
    padding: 0 22px 24px;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: #b9c2ce transparent;
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #b9c2ce;
    border-radius: 999px;
}

.filters-header {
    position: sticky;
    top: 0;
    z-index: 8;
    margin: 0 -22px 18px;
    padding: 20px 22px 16px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--shop-line);
    backdrop-filter: blur(8px);
}

.filters-header h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.clear-all-btn,
.filter-section-clear {
    color: var(--shop-brand);
    font-weight: 700;
}

.clear-all-btn:hover,
.filter-section-clear:hover {
    text-decoration: underline;
}

/* The desktop catalogue starts with useful search and price controls. */
.special-filters-dropdown {
    display: none !important;
}

.filter-group {
    margin-bottom: 8px;
    padding: 0 0 20px;
}

.filter-group h4,
.price-range-header h4,
.filter-expandable-row h4 {
    color: var(--shop-ink);
    font-size: 14px;
    font-weight: 700;
}

.filter-search,
.filter-list-search {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
    color: var(--shop-ink);
    font: inherit;
    font-size: 13px;
}

.filter-search:focus,
.filter-list-search:focus {
    outline: 0;
    border-color: var(--shop-brand);
    box-shadow: 0 0 0 3px rgba(39, 52, 105, 0.1);
}

.price-range-section {
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--shop-line);
}

.filter-expandable-row {
    min-height: 52px;
    padding: 0;
    border-bottom-color: var(--shop-line);
}

.filter-expandable-row:hover {
    margin: 0 -10px;
    padding: 0 10px;
    background: #f8f9fb;
}

.filter-title-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
}

.filter-selection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef0f7;
    color: var(--shop-brand);
    font-size: 11px;
    font-weight: 800;
}

.filter-row-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.filter-section-clear {
    padding: 5px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 11px;
}

.filter-expandable-arrow {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c8798;
    font-size: 0;
}

.filter-expandable-arrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform 0.18s ease;
}

.filter-expandable-row.expanded .filter-expandable-arrow {
    transform: none;
    color: var(--shop-brand);
}

.filter-expandable-row.expanded .filter-expandable-arrow::before {
    transform: rotate(225deg) translate(-1px, -1px);
}

.filter-expandable-content {
    padding: 12px 0 18px;
    border-bottom: 1px solid var(--shop-line);
}

.filter-list-search {
    margin: 0 0 10px;
    padding: 9px 11px;
}

.filter-checkbox-list {
    gap: 3px;
    padding: 0;
}

.filter-checkbox-item {
    min-height: 34px;
    padding: 5px 6px;
    gap: 9px;
}

.filter-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.filter-checkbox-item > span:not(.count) {
    min-width: 0;
    color: #394457;
    font-size: 13px;
    line-height: 1.35;
}

.filter-checkbox-item .count {
    color: #8792a4;
    font-size: 11px;
}

.filter-checkbox-item.is-zero:not(.is-selected) {
    opacity: 0.42;
}

.filter-checkbox-item.is-hidden-by-limit,
.filter-checkbox-item.is-hidden-by-search {
    display: none;
}

.filter-list-toggle {
    margin-top: 8px;
    padding: 5px 6px;
    border: 0;
    background: transparent;
    color: var(--shop-brand);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.filter-list-toggle:hover {
    text-decoration: underline;
}

.filter-color-swatches {
    gap: 10px 7px;
}

.products-section {
    padding: 28px 30px 34px;
    border-radius: 12px;
}

#cat-desc-banner {
    padding: 18px 20px;
    margin-bottom: 20px;
    text-align: left;
    background: #f8f7fc;
    border-color: #e7e3f4;
    border-radius: 8px;
}

#cat-desc-banner.visible {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    align-items: center;
    gap: 24px;
}

#cat-desc-title {
    margin: 0 0 12px;
    color: #0f1b3d;
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

#cat-desc-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: #ff7a00;
}

#cat-desc-text {
    max-width: 760px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.cat-desc-help {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-left: 24px;
    border-left: 1px solid #e2def0;
}

.cat-desc-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff1e5;
    color: #ff7a00;
}

.cat-desc-help-icon svg {
    width: 24px;
    height: 24px;
}

.cat-desc-help-body h3 {
    margin: 0 0 4px;
    color: var(--shop-ink);
    font-size: 15px;
    font-weight: 700;
}

.cat-desc-help-body p {
    margin: 0 0 6px;
    color: #596477;
    font-size: 13px;
    line-height: 1.45;
}

.cat-desc-help-body p a {
    color: #ff7a00;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cat-desc-help-phone {
    color: var(--shop-ink);
    font-size: 13px;
    text-decoration: none;
}

.cat-desc-help-phone strong {
    color: #ff7a00;
    white-space: nowrap;
}

.cat-desc-help-phone:hover strong,
.cat-desc-help-body p a:hover {
    color: #e56d00;
}

@media (max-width: 1180px) {
    #cat-desc-banner.visible {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .cat-desc-help {
        padding: 14px 0 0;
        border-left: 0;
        border-top: 1px solid #e2def0;
    }
}

.products-header {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    grid-template-areas: "summary controls pagination";
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.products-header-left {
    grid-area: summary;
    flex: initial;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.products-header-right {
    grid-area: controls;
    min-width: 0;
}

.products-header > #paginationTop {
    grid-area: pagination;
    justify-self: end;
}

.products-header h1 {
    overflow: hidden;
    max-width: min(38vw, 440px);
    margin: 0;
    color: var(--shop-ink);
    font-size: 20px;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.products-count {
    flex-shrink: 0;
    color: var(--shop-muted);
    font-size: 13px;
    line-height: 1.2;
}

/* header.css adds margin-bottom: 16px, which lifts Back above the title. */
.back-btn {
    height: 40px;
    margin: 0;
    padding: 0 14px;
    background: #fff;
    border-color: #dfe3ea;
    color: var(--shop-brand);
    font-weight: 600;
    line-height: 1;
}

.back-btn:hover {
    background: var(--shop-soft);
    border-color: #cfd5df;
    color: var(--shop-brand);
}

.control-select {
    min-width: 128px;
    height: 32px;
    padding: 0 28px 0 10px;
    border-color: #dfe3ea;
    border-radius: 6px;
    font-size: 12px;
}

#viewSelect {
    min-width: 104px;
}

.pagination-pages,
.pagination-page-numbers {
    gap: 4px;
}

.pagination-button,
.pagination-page {
    min-width: 30px;
    width: 30px;
    height: 30px;
    border-color: #dfe3ea;
    border-radius: 6px;
}

.products-header .control-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L6 6L10.5 1.5' stroke='%23ff7a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}

#paginationBottom {
    justify-content: flex-end;
    margin: 28px 0 8px;
}

.products-header #paginationTop .pagination-button,
#paginationBottom .pagination-button,
.pagination-container .pagination-button {
    color: #ff7a00;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.products-header #paginationTop .pagination-button:hover:not(:disabled),
#paginationBottom .pagination-button:hover:not(:disabled),
.pagination-container .pagination-button:hover:not(:disabled) {
    background: #fff4ea;
    border-color: #ff7a00;
    color: #ff7a00;
}

.products-header #paginationTop .pagination-button:disabled,
#paginationBottom .pagination-button:disabled,
.pagination-container .pagination-button:disabled {
    background: #fff;
    color: #ff7a00;
    opacity: .45;
}

.pagination-page.active {
    background: #fff;
    border-color: var(--shop-brand);
    color: var(--shop-brand);
    box-shadow: inset 0 0 0 1px var(--shop-brand);
}

.product-card {
    border-color: #e4e8ef;
    border-radius: 10px;
    box-shadow: 0 2px 9px rgba(17, 24, 39, 0.035);
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #cfd5df;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.09);
}

.badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 9px;
}

@media (max-width: 1320px) {
    .shop-wrapper {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 18px;
        padding-inline: 18px;
    }

    .products-section {
        padding-inline: 22px;
    }

    .products-header {
        grid-template-columns: minmax(230px, 1fr) auto auto;
        grid-template-areas: "summary controls pagination";
        gap: 10px;
    }

    .products-header-left {
        gap: 8px;
    }

    .products-header h1 {
        max-width: 210px;
        font-size: 18px;
    }

    .products-controls {
        gap: 8px;
    }

    .control-group {
        gap: 5px;
    }

    .control-select {
        min-width: 118px;
    }

    #viewSelect {
        min-width: 96px;
    }

    .pagination-pages,
    .pagination-page-numbers {
        gap: 3px;
    }

    .pagination-button,
    .pagination-page {
        min-width: 28px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 1080px) {
    .shop-wrapper {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .products-header {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "summary summary"
            "controls pagination";
    }

    .products-header-right {
        justify-self: start;
    }
}

/* Filter By sidebar: orange accent theme. */
.filters-sidebar {
    --filter-orange: #ff7a00;
    --filter-orange-soft: #fff1e5;
    --filter-navy: #1f2a44;
    --filter-line: #eceef2;
    padding: 0 18px 18px;
    border-radius: 14px;
    background: #fff;
}

.filters-header {
    margin: 0 -18px 12px;
    padding: 18px 18px 10px;
    border-bottom: 0;
}

.filters-header h3 {
    color: var(--filter-navy);
    font-size: 18px;
    font-weight: 800;
}

.clear-all-btn {
    padding: 0;
    color: var(--filter-orange);
    font-size: 12px;
    font-weight: 700;
}

.filter-section-clear {
    color: var(--filter-orange);
    font-size: 12px;
    font-weight: 700;
}

.clear-all-btn:hover,
.filter-section-clear:hover {
    color: #e56d00;
}

.filters-sidebar .filter-group {
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--filter-line);
}

.filters-sidebar .filter-group > h4 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.filters-sidebar .filter-search {
    min-height: 38px;
    margin: 0;
    padding: 8px 12px 8px 34px;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center / 15px 15px;
    color: var(--filter-navy);
    font-size: 13px;
}

.filters-sidebar .filter-search::placeholder,
.filters-sidebar .filter-list-search::placeholder {
    color: #9aa3b2;
}

.filters-sidebar .filter-search:focus,
.filters-sidebar .filter-list-search:focus {
    border-color: var(--filter-orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.filters-sidebar .price-range-section {
    padding: 14px 0 16px;
    border-bottom: 1px solid var(--filter-line);
}

.filters-sidebar .price-range-header h4,
.filters-sidebar .filter-expandable-row h4 {
    margin: 0;
    color: var(--filter-navy);
    font-size: 13px;
    font-weight: 700;
}

.filters-sidebar .price-range-arrow,
.filters-sidebar .filter-expandable-arrow {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #8a93a3;
    font-size: 0;
    transform: none;
}

.filters-sidebar .price-range-arrow::before,
.filters-sidebar .filter-expandable-arrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.75px solid currentColor;
    border-bottom: 1.75px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform 0.18s ease;
}

.filters-sidebar .price-range-section.expanded .price-range-arrow,
.filters-sidebar .filter-expandable-row.expanded .filter-expandable-arrow {
    transform: none;
    color: var(--filter-orange);
}

.filters-sidebar .price-range-section.expanded .price-range-arrow::before,
.filters-sidebar .filter-expandable-row.expanded .filter-expandable-arrow::before {
    transform: rotate(225deg) translate(-1px, -1px);
}

.filters-sidebar .price-range-section:not(.expanded) .price-range-display,
.filters-sidebar .price-range-section:not(.expanded) .price-range-slider-container,
.filters-sidebar .price-range-section:not(.expanded) .price-range-inputs {
    display: none;
}

.filters-sidebar .price-range-display {
    margin: 6px 0 0;
    color: var(--filter-orange);
    font-size: 13px;
    font-weight: 800;
}

.filters-sidebar .price-range-slider-container {
    width: auto;
    height: 4px;
    margin: 16px 9px 18px;
}

.filters-sidebar .price-range-track,
.filters-sidebar .price-range-selected,
.filters-sidebar .price-slider {
    height: 4px;
    border-radius: 999px;
}

.filters-sidebar .price-range-track {
    background: #e5e7eb;
}

.filters-sidebar .price-range-selected {
    background: var(--filter-orange);
}

.filters-sidebar .price-slider::-webkit-slider-thumb {
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--filter-orange);
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.28);
}

.filters-sidebar .price-slider::-moz-range-thumb {
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--filter-orange);
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.28);
}

.filters-sidebar .price-range-inputs {
    margin-top: 0;
}

.filters-sidebar .price-input-group label {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
}

.filters-sidebar .price-input {
    width: 58px;
    height: 30px;
    padding: 4px 6px;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    color: var(--filter-navy);
    font-size: 12px;
    font-weight: 600;
}

.filters-sidebar .price-input:focus {
    border-color: var(--filter-orange);
}

.filters-sidebar .filter-expandable-row {
    min-height: 36px;
    border-bottom: 1px solid var(--filter-line);
}

.filters-sidebar .filter-expandable-row:hover {
    margin: 0;
    padding: 0;
    background: transparent;
}

.filters-sidebar .filter-expandable-row:hover h4 {
    color: var(--filter-orange);
}

.filters-sidebar .filter-row-actions {
    gap: 10px;
}

.filters-sidebar .filter-selection-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--filter-orange-soft);
    color: var(--filter-orange);
    font-size: 11px;
    font-weight: 800;
}

.filters-sidebar .filter-expandable-content {
    padding: 8px 0 12px;
    border-bottom: 1px solid var(--filter-line);
}

.filters-sidebar .filter-expandable-row.expanded {
    border-bottom-color: transparent;
}

.filters-sidebar .filter-checkbox-list {
    gap: 2px;
}

.filters-sidebar .filter-checkbox-item {
    min-height: 30px;
    padding: 4px 2px;
    gap: 10px;
    border-radius: 6px;
}

.filters-sidebar .filter-checkbox-item:hover {
    background: #fafafa;
}

.filters-sidebar .filter-checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0;
    border: 1.5px solid #c8ced8;
    border-radius: 4px;
    background: #fff no-repeat center / 11px 11px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.filters-sidebar .filter-checkbox-item input[type="checkbox"]:hover {
    border-color: var(--filter-orange);
}

.filters-sidebar .filter-checkbox-item input[type="checkbox"]:checked {
    border-color: var(--filter-orange);
    background-color: var(--filter-orange);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5.2'/%3E%3C/svg%3E");
}

.filters-sidebar .filter-checkbox-item input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(255, 122, 0, 0.35);
    outline-offset: 2px;
}

.filters-sidebar .filter-checkbox-item input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.filters-sidebar .filter-checkbox-item > span:not(.count) {
    color: var(--filter-navy);
    font-size: 13px;
    font-weight: 500;
}

.filters-sidebar .filter-checkbox-item .count {
    color: #8a93a3;
    font-size: 12px;
}

.filters-sidebar .filter-list-toggle {
    color: var(--filter-orange);
}
