*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}
body{
    background:var(--bg);
    color:var(--text);
}

.stock-clearance-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 32px;
}

.stock-clearance-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.stock-clearance-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.stock-clearance-panel {
    margin-top: 18px;
}

.stock-clearance-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff7ed;
}

.stock-clearance-eyebrow {
    margin-bottom: 4px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stock-clearance-heading h1 {
    color: #9a3412;
    font-size: 28px;
}

.stock-clearance-heading > p {
    color: #9a3412;
    font-weight: 700;
    white-space: nowrap;
}

.stock-clearance-products {
    margin-top: 20px;
}

a.product-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.stock-clearance-empty {
    margin-top: 20px;
    padding: 46px 20px;
    border: 1px dashed #fed7aa;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    text-align: center;
}

.stock-clearance-empty i {
    margin-bottom: 12px;
    color: #ea580c;
    font-size: 28px;
}

.stock-clearance-empty h2 {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 19px;
}
 /* allover section  */

 .all-over{
    display: flex;
    width:100%;
    max-width:1440px;
    margin:0 auto 20px;
    padding:0 24px;
    gap:28px;
    align-items:flex-start;
    margin-bottom: 20px;
 }
/* side bar  */


.sidebar{
    width:250px;
    flex:0 0 250px;
    background:#fff;
    padding:20px;
    margin-top: 30px;
    border:1px solid var(--border);
    border-radius:8px;
}

.sidebar h3{
    margin-bottom:16px;
    font-size: 20px;
    color:var(--text);
}

.category-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size: 16px;
    cursor:pointer;
    padding:12px 14px;
    font-weight:600;
    background:#fff6e7;
    border:1px solid #dbe5f3;
    border-radius:8px;
    color:var(--primary);
}

.category-list{
    list-style:none;
    display:none;
    margin:10px 0 18px;
    /* border-bottom:1px solid #555; */
}

.category-list.show{
    display:block;
}

.category-list li{
    padding:9px 12px;
    margin-bottom:6px;
    border-radius:6px;
    font-size: 14px;
    font-weight:600;
    cursor:pointer;
    color:#555;
}

.category-list li:hover{
    background-color:#f3f4f6;
    color: #000;
}

.category-list li.active{
    background-color: var(--primary);
    color: white;
}
.category-list li.active{
    background-color: var(--primary);
    color: white;
}
.category-list h3{
    margin-left: 30px;
}

/* .active.active{
    background:#888;
    color:#7c3aed;
    border-radius:6px;

    font-weight:600;
    font-size: 20px;
} */

/* filters  */
.filt h3{
    margin-top: 24px;
    margin-bottom:10px;
    border-top: 1px solid var(--border);
    padding: 18px 0 0;
    /* width: 65px; */
}
.filters{
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-items:center;
    font-size: 16px;
    cursor:pointer;
    padding:12px 14px;
    font-weight:600;
    background:#fff;
    border:1px solid var(--border);
    border-radius:8px;
}
.filters span{
    font-size: 16px;
}
.filter-list{
    display: none;
    margin-top: 10px;
    padding:14px;
    align-items: center;
    background:#fafafa;
    border:1px solid var(--border);
    border-radius:8px;
    color:#444;
    line-height:1.3;

}
.filter-list input{
    color: black;
    width: 16px;
    height: 16px;
    margin-right:8px;
    accent-color:var(--primary);
}
.filter-list.show{
    display: block;
}

/* color select  */
.color-selection h3{
    margin-top: 30px;
    margin-bottom: 5px;
}
.colors{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.color{
    margin-top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}
.color:hover{
    transform: scale(1.15);
}
.navy{
    background:#0b2d5c;
}

.red{
    background:#b00000;
}

.pink{
    background:#ff2d7a;
}

.green{
    background:#6db400;
}

.beige{
    background:#d2b48c;
}

.purple{
    background:#8a2be2;
}

.lavender{
    background:#9f8cff;
}

.white{
    background:#fff;
    border:1px solid #ccc;
}

.gray{
    background:#9e9e9e;
}

/* size select  */

.size-select{
    display: flex;
    margin-top: 10px;
    gap: 10px;
}
.size{
    width: 40px;
    height: 25px;
    padding: 3px;
    background: transparent;
    border: 0.5px solid black;
}
.size-head{
    margin-top: 30px;
}

/* Home section  */

.right-section{
    flex:1;
    min-width:0;
}

.home-sec{
    display: flex;
    gap: 20px;
    margin-top: 30px;
    font-size: 20px;
    align-items: center;
}
.home-sec a{
    color: black;
    text-decoration: none;
    color: #1f4a91;
    font-weight: bold;
}
.home-sec .active{
    color:#333;
    font-weight:bold;
}

/* Dresses head  */

.dress-head{
    display: flex;
    margin-top: 30px;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:8px;
    padding:6px 18px;
}
.heading{
    display: flex;
    align-items: center;
    gap: 20px;
    min-width:0;
}
.heading h1{
    font-size: 20px;
    line-height:1.2;
    white-space:nowrap;
}
.heading p{
    font-size: 20px;
    font-weight: bold;
    color:#666 ;
    white-space:nowrap;
}
.top-controls{
    display:flex;
    justify-content:flex-end;
    gap:15px;
    flex-shrink:0;
}

.sort-box,
.show-box{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border:2px solid #ddd;
    border-radius:6px;
    background:#fff;
    min-height:30px;
}

.sort-box label,
.show-box label{
    color:#666;
    font-size:14px;
}

.sort-box select,
.show-box select{
    border:none;
    outline:none;
    cursor:pointer;
    font-weight:600;
    background:transparent;
    min-width:150px;
}

/* dress-product  */
.products{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin-top: 30px;
    gap:20px;
}

.product-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:8px;
    overflow:hidden;
    transition:0.3s;
    cursor:pointer;
    min-width:0;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 20px rgba(0,0,0,0.1);
}

.product-card img{
    width:100%;
    height:auto;
    aspect-ratio:4 / 5;
    object-fit:contain;
    object-position:center;
    background:#fff;
    display:block;
}

.combo-catalog-card .combo-offer-images {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
}
.combo-catalog-card .combo-offer-images img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

.product-card h3{
    padding:10px;
    font-size:16px;
}

.price{
    padding:0 10px;
    display:flex;
    gap:8px;
    align-items:center;
}

.current{
    font-size:22px;
    font-weight:bold;
}

.old{
    color:#888;
    text-decoration:line-through;
}

.price .offer{
    color:green;
    font-weight:600;
    position:static;
    display:inline;
    min-width:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
}

.product-card-color{
    display:flex;
    align-items:center;
    min-height:28px;
    padding:4px 10px 0;
}

.product-card-color-swatch{
    display:block;
    width:18px;
    height:18px;
    border:1px solid #cbd5e1;
    border-radius:50%;
    box-shadow:0 0 0 1px #fff inset;
}

.product-card p{
    padding:10px;
    color:#666;
}

@media (max-width: 1200px) {
    .products {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .all-over {
        gap:20px;
    }

    .sidebar {
        width:230px;
        flex-basis:230px;
    }
}

@media (max-width: 900px) {
    .stock-clearance-page {
        padding: 0 16px 24px;
    }

    .stock-clearance-breadcrumb {
        margin-top: 20px;
    }

    .all-over {
        display:block;
        padding:0 16px;
    }

    .sidebar {
        width:100%;
        margin-top:18px;
        padding:16px;
    }

    .category-header,
    .filters {
        font-size:16px;
    }

    .category-list li {
        font-size:14px;
        padding:9px 12px;
    }

    .colors {
        gap:10px;
    }

    .size-select {
        flex-wrap:wrap;
    }

    .home-sec {
        margin-top:20px;
        gap:10px;
        font-size:14px;
        flex-wrap:wrap;
    }

    .dress-head {
        flex-direction:column;
        align-items:stretch;
        margin-top:18px;
        gap:14px;
    }

    .top-controls {
        justify-content:flex-start;
        flex-wrap:wrap;
    }

    .sort-box,
    .show-box {
        flex:1 1 180px;
    }

    .products {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:14px;
        margin-top:20px;
    }
}

@media (max-width: 560px) {
    .stock-clearance-page {
        padding: 0 12px 20px;
    }

    .stock-clearance-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .all-over {
        padding:0 12px;
    }

    .sidebar {
        padding:14px;
    }

    .sidebar h3 {
        font-size:18px;
    }

    .heading {
        justify-content:space-between;
        gap:10px;
    }

    .heading h1 {
        font-size:20px;
    }

    .heading p {
        font-size:13px;
    }

    .top-controls {
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
    }

    .sort-box,
    .show-box {
        width:100%;
        justify-content:space-between;
    }

    .products {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .product-card h3 {
        padding:9px;
        font-size:14px;
    }

    .price {
        padding:0 9px;
        gap:5px;
        flex-wrap:wrap;
    }

    .current {
        font-size:16px;
    }

    .old,
    .price .offer,
    .product-card p {
        font-size:12px;
    }

    .product-card p {
        padding:9px;
    }
}

@media (max-width: 380px) {
    .products {
        grid-template-columns:1fr;
    }

    .product-card img {
        aspect-ratio:1 / 1;
    }
}

/* Compact product controls */
.sidebar h3{
    font-size:18px;
}

.category-header,
.filters,
.filters span{
    font-size:15px;
}

.category-list li{
    padding:8px 12px;
    font-size:13px;
    font-weight:600;
}

.category-arrow{
    width:20px;
    text-align:center;
    color:var(--primary);
    font-size:12px;
}

.products{
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:16px;
}

.product-card img{
    aspect-ratio:4 / 4.6;
}

.product-card h3{
    padding:9px 10px 6px;
    font-size:14px;
}

.price{
    gap:6px;
    flex-wrap:wrap;
}

.current{
    font-size:17px;
}

.old{
    font-size:12px;
}

.price .offer{
    font-size:11px;
}

.product-card p{
    padding:7px 10px;
    font-size:12px;
}

.product-actions{
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    gap:7px;
    padding:0 10px 10px;
}

.wishlist-btn,
.add-cart-btn{
    height:34px;
    border:1px solid var(--primary);
    border-radius:6px;
    background:#fff;
    color:var(--primary);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    font-size:12px;
    font-weight:700;
    transition:background .2s ease,color .2s ease;
}

.wishlist-btn:hover,
.add-cart-btn:hover,
.add-cart-btn.selected{
    background:var(--primary);
    color:#fff;
}

.wishlist-btn.selected{
    color:var(--red);
    border-color:var(--red);
}

@media (min-width:901px){
    .navbar .list li a.active{
        color:var(--accent);
        font-weight:700;
    }

    .navbar .list li a.active::after{
        width:100%;
        background:var(--accent);
    }
}

@media (max-width:1200px){
    .products{
        grid-template-columns:repeat(auto-fill,minmax(175px,1fr));
    }
}

@media (max-width:560px){
    .products{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .product-card h3{
        font-size:13px;
    }

    .current{
        font-size:15px;
    }

    .product-actions{
        grid-template-columns:32px minmax(0,1fr);
        padding:0 8px 8px;
        gap:6px;
    }

    .wishlist-btn,
    .add-cart-btn{
        height:32px;
        font-size:11px;
    }
}

@media (max-width:380px){
    .products{
        grid-template-columns:1fr;
    }
}

/* Storefront sidebar filter cards */
.sidebar h3{
    margin-bottom:12px;
}

.filt h3{
    margin-top:18px;
    margin-bottom:8px;
    padding-top:14px;
}

.sidebar > div[id$="-category"],
.filter-section{
    overflow:hidden;
    border:1px solid #dbe5f3;
    border-radius:8px;
    background:#fafafa;
}

.category-header,
.filters{
    min-height:44px;
    padding:8px 12px;
    border:0;
    border-radius:0;
    box-shadow:none;
}

.category-header{
    background:#fff;
    color:var(--text);
}

.category-list{
    margin:0;
    padding:6px 12px;
    border:0;
    border-top:1px solid #dbe5f3;
    border-radius:0;
    background:#fafafa;
}

.category-list li{
    margin:0;
    padding:7px 6px;
    border-radius:6px;
    color:#334155;
}

.category-list li + li{
    margin-top:2px;
}

.category-list li:hover{
    background:#eaf1fb;
    color:var(--primary);
}
 
.category-list li.active{
    background:transparent;
    color:#334155;
}

.selected-category .category-header{
    background:#fff;
    color:var(--text);
}

.filter-section{
    margin-top:8px;
}

.filter-section + .filter-section{
    margin-top:8px;
}

.filters{
    width:100%;
    min-height:44px;
    color:var(--text);
    background:#fff;
    font:inherit;
    text-align:left;
    transition:border-color .2s ease, box-shadow .2s ease;
}

.filters:hover{
    background:#f8fbff;
}

.filters:focus-visible{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(31, 74, 145, .12);
}

.filter-arrow{
    width:20px;
    flex:0 0 20px;
    color:var(--primary);
    font-size:12px;
    text-align:center;
}

.filter-list,
.filter-panel{
    margin:0;
    padding:8px 12px;
    border:0;
    border-top:1px solid #dbe5f3;
    border-radius:0;
    background:#fafafa;
    color:#334155;
}

.filter-list.show,
.filter-panel.show{
    display:block;
}

.filter-options{
    display:grid;
    gap:4px;
}

.filter-option{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:32px;
    padding:3px 0;
    color:#334155;
    cursor:pointer;
    line-height:1.35;
}

.filter-option:hover{
    color:var(--primary);
}

.filter-option-label{
    min-width:0;
    overflow-wrap:anywhere;
}

.filter-list input[type="checkbox"],
.filter-panel input[type="checkbox"]{
    width:18px;
    height:18px;
    flex:0 0 18px;
    margin:0;
    cursor:pointer;
    accent-color:var(--primary);
}

.filter-option:has(input:checked){
    color:var(--primary);
    font-weight:600;
}

.filter-color-swatch{
    width:18px;
    height:18px;
    flex:0 0 18px;
    border:1px solid #94a3b8;
    border-radius:50%;
    background:var(--swatch-color, transparent);
    box-shadow:inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.filter-option:has(input:checked) .filter-color-swatch{
    box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--primary);
}

.filter-empty{
    margin:0;
    padding:8px 0 2px;
    color:#64748b;
    font-size:13px;
    line-height:1.45;
}

@media (max-width:560px){
    .filter-list,
    .filter-panel{
        padding:8px 10px;
    }
}
