.cs-page-header {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 20px 40px 32px;
    margin: 28px 0 32px;
}

.cs-page-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #002D3F;
    margin-bottom: 6px;
}

.cs-page-header .subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 560px;
}

/* unified search bar */
.cs-search-bar {
    display: flex;
    align-items: stretch;
    border: 2px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    background: #fff;
    transition: border-color 0.15s;
}

.cs-search-bar:focus-within {
    border-color: #007DB5;
}

.cs-search-bar.invalid {
    border-color: #dc3545;
}

#cs-native-picker {
    width: 58px;
    height: 54px;
    border: none;
    border-right: 2px solid #ddd;
    border-radius: 0;
    cursor: pointer;
    padding: 6px;
    background: none;
    flex-shrink: 0;
}

#cs-hex-input {
    flex: 1;
    border: none;
    font-family: monospace;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    padding: 0 14px;
    color: #333;
    background: transparent;
    min-width: 0;
}

#cs-search-btn {
    height: 54px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0 10px 10px 0 !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* colour family presets */
.cs-colour-family {
    margin-top: 22px;
}

.cs-colour-family-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
}

.cs-colour-family-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 14px 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-colour-family-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.cs-colour-family-list li button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.12);
    cursor: pointer;
    padding: 0;
    transition: box-shadow 0.15s, transform 0.1s;
    background: none;
    outline: none;
}

.cs-colour-family-list li button:hover,
.cs-colour-family-list li button.active {
    box-shadow: 0 0 0 3px #002D3F;
    transform: scale(1.12);
}

.cs-colour-family-list li span {
    font-size: 11px;
    color: #555;
    line-height: 1;
}

/* product type filter (category / sub-category) */
.cs-category-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

#cs-category-select {
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    min-width: 220px;
    max-width: 100%;
}

#cs-clear-filters {
    font-size: 13px;
    font-weight: 600;
    color: #007DB5;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
}

#cs-clear-filters:hover {
    color: #002D3F;
}

.cs-subcat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.cs-subcat-btn {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    background: #f5f5f5;
    border: 2px solid #e5e5e5;
    border-radius: 40px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.cs-subcat-btn:hover {
    border-color: #007DB5;
    color: #002D3F;
}

.cs-subcat-btn.active {
    background: #002D3F;
    border-color: #002D3F;
    color: #fff;
}

#cs-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

/* matched colour pill */
#cs-matched-info {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 40px;
    font-size: 13px;
    color: #444;
    width: fit-content;
}

#cs-matched-info.visible {
    display: flex;
}

.cs-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* results area */
#cs-results-area {
    min-height: 120px;
    padding-bottom: 40px;
}

#cs-spinner {
    display: none;
    text-align: center;
    padding: 48px 0;
    color: #555;
    font-size: 20px;
    font-weight: 600;
}

#cs-spinner .spinner-border {
    width: 2rem;
    height: 2rem;
    margin-bottom: 12px;
}

#cs-count-line {
    font-size: 14px;
    color: #444;
    font-weight: 400;
}

#cs-count-line .cs-count-num {
    font-size: 24px;
    font-weight: 700;
    color: #002D3F;
    margin-right: 5px;
}

/* standard product grid styles (matches search/category pages) */
#cs-results-area .list-product {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

#cs-results-area .item-product-par {
    display: block !important;
    padding: 10px;
}


#cs-results-area .item-product {
    background: #fff;
    border: 4px solid transparent !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.16);
    padding: 0;
    height: 100%;
    min-height: 480px;
    position: relative;
}

#cs-results-area .eco-view {
    position: absolute;
    left: 6px;
    top: 6px;
    max-width: 35px;
    z-index: 9;
}

#cs-results-area .eco-view img {
    max-height: 80px;
}

#cs-results-area .item-product:hover {
    border: 4px solid #D61C5B !important;
}

#cs-results-area .item-product h3 {
    font-family: muller_medium;
    font-size: 20px;
    position: relative;
    margin-bottom: 30px;
}

#cs-results-area .item-product .desc {
    font-family: 'muller_medium';
    font-size: 18px;
}

#cs-results-area .item-product .color-picker {
    display: block !important;
    position: static;
    min-height: 52px;
    margin-top: 10px;
}

#cs-results-area .item-product .color-picker ul li button {
    width: 15px;
    border: 1px solid #ddd;
    height: 15px;
    outline: 0;
    border-radius: 50%;
    overflow: hidden;
    transition: box-shadow 0.15s;
}

#cs-results-area .item-product .color-picker ul li button:hover,
#cs-results-area .item-product .color-picker ul li button.active,
#cs-results-area .item-product .color-picker ul li button.selected {
    box-shadow: 0 0 0 2px #000;
}

#cs-results-area .item-product .desc .color-picker span {
    background-color: rgb(0, 0, 0);
    width: 100% !important;
    border-top-width: 13px !important;
    border-right-width: 13px !important;
}

#cs-results-area .minqty {
    color: #535353 !important;
}

#cs-results-area .item-product .color-picker ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

#cs-results-area .item-product .color-picker ul li {
    display: flex;
    align-items: center;
}

#cs-results-area a.mcolor {
    font-size: 11px;
    color: #000;
    line-height: 15px;
}

.content {
    background: #F1F1F1;
}

@media screen and (max-width: 767px) {
    #cs-results-area .item-product-par {
        width: 50%;
        padding: 5px;
        margin-bottom: 0;
        flex: 50% !important;
    }
    #cs-results-area .item-product h3 {
        top: 0;
        margin-bottom: 0 !important;
        font-size: 12px;
    }
    #cs-results-area .item-product .desc {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .cs-page-header { padding: 5px 20px 5px; margin: 65px 0 24px; }
    .cs-page-header h1 { font-size: 22px; }
    .cs-search-bar { max-width: 100%; }
    #cs-native-picker { width: 48px; height: 48px; }
    #cs-search-btn { padding: 0 18px; font-size: 14px; }
    .cs-category-row { flex-direction: column; align-items: stretch; }
    #cs-category-select { min-width: 0; width: 100%; }
    .cs-subcat-list { gap: 6px; }
    .cs-subcat-btn { padding: 6px 12px; font-size: 12px; }

    .cs-colour-family-list {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        justify-items: center;
        gap: 16px 0;
    }
}

#cs-loadmore-wrap {
    text-align: center;
    padding: 20px 0 40px;
}

#cs-showing-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

#cs-loadmore-btn {
    padding: 10px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
}
