:root{
    --cpsc-primary:#681aa7;
    --cpsc-primary-dark:#4d0c80;
    --cpsc-primary-soft:#f5effc;
    --cpsc-pink:#f03b80;
    --cpsc-text:#171226;
    --cpsc-muted:#746d7d;
    --cpsc-line:#ebe5f0;
    --cpsc-bg:#fcfbfd;
}

.cp11-main{
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
}

.cpsc-categories{
    padding:18px 0 12px;
    background:#fff;
    border-bottom:1px solid var(--cpsc-line);
}

.cpsc-category-trigger{
    width:100%;
    display:flex;
    align-items:center;
    gap:12px;
    padding:15px 18px;
    border:1px solid #e4d8ef;
    border-radius:13px;
    background:linear-gradient(135deg,var(--cpsc-primary),#8a27c4);
    color:#fff;
    cursor:pointer;
    box-shadow:0 9px 24px rgba(104,26,167,.16);
}

.cpsc-category-trigger strong{flex:1;text-align:left;font-size:14px}
.cpsc-category-trigger__icon{font-size:20px}
.cpsc-category-trigger__arrow{font-size:18px}

.cpsc-category-strip{
    display:flex;
    gap:9px;
    margin-top:12px;
    overflow-x:auto;
    padding:2px 1px 6px;
    scrollbar-width:thin;
}

.cpsc-category-strip a{
    flex:0 0 auto;
    padding:10px 16px;
    border:1px solid var(--cpsc-line);
    border-radius:11px;
    background:#fff;
    color:var(--cpsc-text);
    text-decoration:none;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}

.cpsc-category-strip a:hover,
.cpsc-category-strip a.is-active{
    background:var(--cpsc-primary-soft);
    border-color:#cdb2e2;
    color:var(--cpsc-primary);
}

.cpsc-shop{
    padding:10px 0 64px;
    background:var(--cpsc-bg);
}

.cpsc-layout{
    display:grid;
    grid-template-columns:230px minmax(0,1fr);
    gap:18px;
    align-items:start;
}

.cpsc-sidebar{
    position:sticky;
    top:16px;
    display:grid;
    gap:12px;
}

.cpsc-offer-card{
    min-height:116px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:12px;
    align-items:center;
    padding:15px;
    border-radius:15px;
    background:linear-gradient(135deg,#6f24c5,#f05a9d);
    color:#fff;
    box-shadow:0 12px 30px rgba(104,26,167,.18);
}

.cpsc-offer-card__icon{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    border-radius:50%;
    background:rgba(255,255,255,.17);
    font-size:23px;
}

.cpsc-offer-card small,
.cpsc-offer-card strong,
.cpsc-offer-card span{display:block}
.cpsc-offer-card small{font-size:10px;opacity:.84}
.cpsc-offer-card strong{margin:3px 0;font-size:17px}
.cpsc-offer-card span{font-size:10px;opacity:.88}
.cpsc-offer-card>a{color:#fff;text-decoration:none;font-size:23px}

.cpsc-filter-panel{
    border:1px solid var(--cpsc-line);
    border-radius:15px;
    background:#fff;
    overflow:hidden;
}

.cpsc-filter-panel form{padding:15px}
.cpsc-filter-mobile-head{display:none}
.cpsc-filter-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:13px;border-bottom:1px solid var(--cpsc-line)}
.cpsc-filter-heading strong{font-size:15px}
.cpsc-filter-heading a{color:var(--cpsc-primary);font-size:10px;font-weight:900;text-decoration:none}

.cpsc-filter-group{padding:14px 0;border-bottom:1px solid var(--cpsc-line)}
.cpsc-filter-title{display:block;margin-bottom:10px;font-size:11px;font-weight:900;color:var(--cpsc-text)}
.cpsc-input{width:100%;padding:10px 11px;border:1px solid var(--cpsc-line);border-radius:9px;background:#fff;font-size:11px}

.cpsc-filter-list{display:grid;gap:8px}
.cpsc-filter-list--scroll{max-height:195px;overflow:auto;padding-right:4px}
.cpsc-filter-list label{display:flex;align-items:center;gap:7px;font-size:10px;color:#554c5e;cursor:pointer}
.cpsc-filter-list input{width:14px;height:14px;accent-color:var(--cpsc-primary)}
.cpsc-filter-list span{flex:1}
.cpsc-filter-list small{color:#9a929f}

.cpsc-price-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}

.cpsc-color-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}

.cpsc-color-option{
    display:flex;
    align-items:center;
    gap:7px;
    cursor:pointer;
    font-size:10px;
}

.cpsc-color-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.cpsc-color-dot{
    width:17px;
    height:17px;
    border-radius:50%;
    border:2px solid #fff;
    box-shadow:0 0 0 1px #d9d1df;
}

.cpsc-color-option input:checked + .cpsc-color-dot{
    box-shadow:0 0 0 2px var(--cpsc-primary);
}

.cpsc-color-option em{
    font-style:normal;
    color:#554c5e;
}

.cpsc-apply{
    width:100%;
    margin-top:14px;
    padding:11px 14px;
    border:0;
    border-radius:9px;
    background:var(--cpsc-primary);
    color:#fff;
    font-size:11px;
    font-weight:900;
    cursor:pointer;
}

.cpsc-content{min-width:0}

.cpsc-toolbar{
    display:grid;
    grid-template-columns:auto 1fr auto auto;
    align-items:center;
    gap:11px;
    margin-bottom:14px;
    padding:12px 14px;
    border:1px solid var(--cpsc-line);
    border-radius:13px;
    background:#fff;
}

.cpsc-filter-button{
    display:none;
    padding:9px 11px;
    border:1px solid var(--cpsc-line);
    border-radius:9px;
    background:#fff;
    color:var(--cpsc-text);
    font-size:11px;
    font-weight:800;
}

.cpsc-count{font-size:11px;color:var(--cpsc-muted)}
.cpsc-count strong{color:var(--cpsc-text)}

.cpsc-sort{
    display:flex;
    align-items:center;
    gap:7px;
}

.cpsc-sort span{font-size:10px;color:var(--cpsc-muted)}
.cpsc-sort select{
    min-width:150px;
    padding:9px 31px 9px 10px;
    border:1px solid var(--cpsc-line);
    border-radius:9px;
    background:#fff;
    color:var(--cpsc-text);
    font-size:11px;
}

.cpsc-view-switch{display:flex;gap:5px}
.cpsc-view-switch button{
    width:35px;
    height:35px;
    border:1px solid var(--cpsc-line);
    border-radius:9px;
    background:#fff;
    color:var(--cpsc-text);
    cursor:pointer;
}

.cpsc-view-switch button.is-active{
    background:var(--cpsc-primary);
    border-color:var(--cpsc-primary);
    color:#fff;
}

.cpsc-active-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.cpsc-active-filters span{padding:6px 9px;border-radius:999px;background:var(--cpsc-primary-soft);color:var(--cpsc-primary);font-size:9px;font-weight:800}

.cpsc-product-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
}

.cpsc-card{
    overflow:hidden;
    border:1px solid var(--cpsc-line);
    border-radius:13px;
    background:#fff;
    transition:.2s ease;
}

.cpsc-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(40,20,60,.08);
}

.cpsc-card__media{
    position:relative;
    aspect-ratio:1/1.08;
    background:#fff;
    overflow:hidden;
}

.cpsc-card__media>a{display:block;width:100%;height:100%}
.cpsc-card__media img{width:100%;height:100%;object-fit:contain;padding:10px}

.cpsc-discount{
    position:absolute;
    left:7px;
    top:7px;
    z-index:2;
    padding:4px 6px;
    border-radius:999px;
    background:#ffe4ee;
    color:#e62f70;
    font-size:8px;
    font-weight:900;
}

.cpsc-wishlist{
    position:absolute;
    right:6px;
    top:6px;
    z-index:3;
}

.cpsc-wishlist button{
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border:1px solid var(--cpsc-line);
    border-radius:50%;
    background:#fff;
    color:var(--cpsc-primary);
    font-size:15px;
    cursor:pointer;
}

.cpsc-card__body{padding:9px}
.cpsc-card__brand{min-height:12px;color:#8b8392;font-size:8px;text-transform:uppercase;letter-spacing:.05em;font-weight:800}

.cpsc-card h3{
    margin:4px 0 7px;
    min-height:33px;
    font-size:10px;
    line-height:1.35;
}

.cpsc-card h3 a{
    color:var(--cpsc-text);
    text-decoration:none;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.cpsc-price{
    display:flex;
    align-items:center;
    gap:5px;
    margin-bottom:8px;
}

.cpsc-price strong{color:var(--cpsc-text);font-size:12px}
.cpsc-price del{color:#9f98a5;font-size:8px}

.cpsc-card__actions{
    display:grid;
    grid-template-columns:1fr 35px;
    align-items:center;
    border:1px solid #eadff2;
    border-radius:9px;
    overflow:hidden;
}

.cpsc-order-link{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    color:var(--cpsc-primary);
    text-decoration:none;
    font-size:9px;
    font-weight:900;
}

.cpsc-cart-icon{
    display:grid;
    place-items:center;
    width:35px;
    height:34px;
    border:0;
    border-left:1px solid #eadff2;
    background:#fff;
    color:var(--cpsc-primary);
    font-size:15px;
    cursor:pointer;
}

.cpsc-cart-icon.is-disabled{
    color:#aaa2af;
    cursor:not-allowed;
}

.cpsc-product-grid.is-list{
    grid-template-columns:1fr;
}

.cpsc-product-grid.is-list .cpsc-card{
    display:grid;
    grid-template-columns:150px minmax(0,1fr);
}

.cpsc-product-grid.is-list .cpsc-card__media{
    aspect-ratio:auto;
    height:150px;
}

.cpsc-product-grid.is-list .cpsc-card__body{
    display:grid;
    align-content:center;
    padding:15px;
}

.cpsc-product-grid.is-list .cpsc-card h3{
    min-height:auto;
    font-size:14px;
}

.cpsc-product-grid.is-list .cpsc-card__actions{
    max-width:210px;
}

.cpsc-empty{
    grid-column:1/-1;
    padding:55px 20px;
    border:1px dashed #d8cce1;
    border-radius:13px;
    background:#fff;
    text-align:center;
}

.cpsc-empty a{
    display:inline-flex;
    margin-top:10px;
    padding:9px 13px;
    border-radius:8px;
    background:var(--cpsc-primary);
    color:#fff;
    text-decoration:none;
}


.cpsc-backdrop{display:none}

@media(max-width:1280px){
    .cpsc-product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}

@media(max-width:1080px){
    .cpsc-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:900px){
    .cpsc-layout{grid-template-columns:1fr}
    .cpsc-filter-button{display:inline-flex}
    .cpsc-toolbar{grid-template-columns:auto 1fr auto}
    .cpsc-sort{grid-column:1/-1}
    .cpsc-sort select{flex:1}
    .cpsc-sidebar{
        position:fixed;
        z-index:1003;
        left:0;
        top:0;
        bottom:0;
        width:min(88vw,350px);
        padding:10px;
        overflow:auto;
        background:#fff;
        transform:translateX(-105%);
        transition:.22s ease;
    }
    .cpsc-sidebar.is-open{transform:translateX(0)}
    .cpsc-offer-card{display:none}
    .cpsc-filter-mobile-head{
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:13px 15px;
        border-bottom:1px solid var(--cpsc-line);
    }
    .cpsc-filter-mobile-head button{
        border:0;
        background:transparent;
        font-size:23px;
    }
    .cpsc-backdrop{
        position:fixed;
        z-index:1002;
        inset:0;
        display:block;
        opacity:0;
        pointer-events:none;
        background:rgba(20,11,27,.44);
        transition:.2s;
    }
    .cpsc-backdrop.is-open{opacity:1;pointer-events:auto}
    .cpsc-lock{overflow:hidden}
}

@media(max-width:700px){
    .cpsc-categories{padding-top:10px}
    .cpsc-category-trigger{padding:13px 15px}
    .cpsc-category-strip{display:none}
    .cpsc-category-strip.is-open{display:flex}

    .cpsc-toolbar{
        grid-template-columns:1fr auto;
        gap:8px;
        padding:10px;
    }

    .cpsc-filter-button{display:inline-flex}
    .cpsc-count{grid-column:1/-1;order:-1}
    .cpsc-sort{grid-column:1/2}
    .cpsc-sort span{display:none}
    .cpsc-view-switch{grid-column:2/3}

    .cpsc-product-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:7px;
    }

    .cpsc-card__media img{padding:7px}
    .cpsc-card__body{padding:7px}
    .cpsc-card__brand{display:none}
    .cpsc-card h3{font-size:8px;min-height:30px}
    .cpsc-price{display:block}
    .cpsc-price strong{font-size:10px}
    .cpsc-price del{display:block;margin-top:1px}
    .cpsc-card__actions{grid-template-columns:1fr 29px}
    .cpsc-order-link{min-height:30px;font-size:8px}
    .cpsc-cart-icon{width:29px;height:30px;font-size:12px}
    .cpsc-wishlist button{width:24px;height:24px;font-size:13px}
    .cpsc-discount{font-size:7px}

    .cpsc-product-grid.is-list .cpsc-card{
        grid-template-columns:95px minmax(0,1fr);
    }

    .cpsc-product-grid.is-list .cpsc-card__media{
        height:105px;
    }
}

/* =========================================================
   Cosmetic Point Compact Shop Final Fix v1.0.1
   ========================================================= */

/* Category trigger: no redundant dropdown arrow */
.cpsc-category-trigger {
    justify-content: flex-start;
}

.cpsc-category-trigger strong {
    flex: 1;
}

.cpsc-category-trigger__arrow {
    display: none !important;
}

/* Keep desktop toolbar compact instead of stretching the sorter */
.cpsc-toolbar {
    grid-template-columns: minmax(180px, 1fr) auto auto !important;
}

.cpsc-filter-button {
    grid-column: auto;
}

.cpsc-count {
    min-width: 180px;
}

.cpsc-sort {
    width: auto !important;
    justify-self: end;
}

.cpsc-sort select {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
}

.cpsc-view-switch {
    justify-self: end;
}

/* Compact, framework-independent pagination */
.cpsc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    padding: 8px 0 2px;
}

.cpsc-page-button,
.cpsc-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border: 1px solid var(--cpsc-line);
    border-radius: 9px;
    background: #fff;
    color: var(--cpsc-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.cpsc-page-button {
    font-size: 23px;
    font-family: Arial, sans-serif;
    font-weight: 500;
}

.cpsc-page-button:hover,
.cpsc-page-number:hover,
.cpsc-page-number.is-current {
    border-color: var(--cpsc-primary);
    background: var(--cpsc-primary);
    color: #fff;
}

.cpsc-page-button.is-disabled {
    opacity: .38;
    cursor: not-allowed;
    pointer-events: none;
}

.cpsc-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 34px;
    color: var(--cpsc-muted);
    font-size: 14px;
}

/* Prevent any global SVG pagination rules from creating giant arrows */
.cpsc-pagination svg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Mobile toolbar remains small and balanced */
@media (max-width: 900px) {
    .cpsc-toolbar {
        grid-template-columns: auto 1fr auto !important;
    }

    .cpsc-count {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .cpsc-sort {
        grid-column: auto !important;
        justify-self: stretch;
        width: auto !important;
    }

    .cpsc-sort select {
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
    }
}

@media (max-width: 700px) {
    .cpsc-toolbar {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        align-items: center;
    }

    .cpsc-filter-button {
        grid-column: 1;
        width: auto;
        white-space: nowrap;
    }

    .cpsc-sort {
        grid-column: 2 !important;
        min-width: 0;
    }

    .cpsc-sort select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .cpsc-view-switch {
        grid-column: 3;
    }

    .cpsc-page-button,
    .cpsc-page-number {
        width: 31px;
        height: 31px;
        min-width: 31px;
        border-radius: 8px;
        font-size: 11px;
    }

    .cpsc-page-button {
        font-size: 20px;
    }

    .cpsc-page-dots {
        height: 31px;
        min-width: 16px;
    }
}

