/* ===================================================
   Victorie - Shop Page
   =================================================== */

.vs-shop {
    background: var(--v-surface, #fbfafa);
    min-height: 60vh;
}

.vs-shop__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 120px;
}

/* ---- Top bar ---- */
.vs-shop__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ede6e7;
    margin-bottom: 32px;
}

.vs-shop__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    flex-wrap: wrap;
}

.vs-shop__breadcrumb a {
    color: #3e3133;
    opacity: .7;
    text-decoration: none;
    transition: opacity .15s;
}

.vs-shop__breadcrumb a:hover { opacity: 1; }

.vs-shop__bc-sep { opacity: .4; }

.vs-shop__bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vs-shop__count {
    font-size: .85rem;
    color: #9a8f91;
}

.vs-shop__count p { margin: 0; }

/* WC ordering override */
.vs-shop .woocommerce-ordering { margin: 0; }
.vs-shop .woocommerce-ordering select,
.vs-shop__sort-wrap select {
    border: 1px solid #d0c8c9;
    border-radius: 6px;
    padding: 8px 32px 8px 12px;
    font-size: .85rem;
    color: #3e3133;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%233e3133' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    outline: none;
}

/* Mobile filter button */
.vs-shop__mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #d0c8c9;
    border-radius: 6px;
    background: #fff;
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
    color: #3e3133;
}

.vs-shop__filter-badge {
    background: #500814;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: .68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ---- Layout ---- */
.vs-shop__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

.vs-shop__layout--no-sidebar { grid-template-columns: 1fr; }

/* ---- Sidebar ---- */
.vs-shop__sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #d0c8c9 transparent;
}

.vs-shop__sidebar-inner { padding-bottom: 24px; }

.vs-sidebar__mobile-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #ede6e7;
    font-weight: 600;
    font-size: 1rem;
}

.vs-sidebar__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: #3e3133;
    padding: 0 4px;
}

.vs-sidebar__active-count {
    font-weight: 400;
    font-style: normal;
    font-size: .875rem;
    color: #500814;
}

/* ---- Filter groups (accordion) ---- */
.vs-filter-group {
    border-bottom: 1px solid #ede6e7;
}

.vs-filter-group__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: .9rem;
    font-weight: 600;
    color: #1e1e1e;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    letter-spacing: -.02em;
}

.vs-filter-group__arrow {
    flex-shrink: 0;
    transition: transform .2s;
    opacity: .6;
}

.vs-filter-group--open .vs-filter-group__arrow {
    transform: rotate(90deg);
}

.vs-filter-group__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease, padding .28s ease;
    padding-bottom: 0;
}

.vs-filter-group--open .vs-filter-group__body {
    max-height: 600px;
    padding-bottom: 16px;
}

/* ---- Category filter ---- */
.vs-filter__cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vs-filter__cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .875rem;
    color: #3e3133;
    opacity: .75;
    text-decoration: none;
    padding: 3px 0;
    transition: opacity .15s, color .15s;
    letter-spacing: -.02em;
}

.vs-filter__cat-link:hover { opacity: 1; }

.vs-filter__cat-link.is-active {
    opacity: 1;
    color: #500814;
    font-weight: 600;
}

.vs-filter__cat-count {
    font-size: .75rem;
    opacity: .5;
}

/* ---- Price range slider ---- */
.vs-price-range { padding: 4px 0; }

.vs-price-range__display {
    font-size: .9rem;
    font-weight: 600;
    color: #500814;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}

.vs-price-range__slider-wrap {
    position: relative;
    padding: 10px 0;
}

.vs-price-range__track {
    background: #ffdede;
    border-radius: 10px;
    height: 7px;
    position: relative;
    overflow: hidden;
}

.vs-price-range__fill {
    background: #500814;
    height: 100%;
    position: absolute;
    left: 0;
    border-radius: 10px;
    transition: width .05s;
}

.vs-price-range__input {
    position: absolute;
    width: calc(100% + 16px);
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    height: 20px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.vs-price-range__thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #500814;
    border: 2.5px solid #FAF9F9;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: left .05s;
    box-shadow: 0 1px 4px rgba(80,8,20,.3);
}

.vs-price-range__labels {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: #3e3133;
    opacity: .6;
    margin-top: 6px;
    letter-spacing: -.01em;
}

.vs-filter__clear-link {
    font-size: .78rem;
    color: #500814;
    opacity: .75;
    display: block;
    margin-top: 8px;
    text-decoration: none;
}

.vs-filter__clear-link:hover { opacity: 1; text-decoration: underline; }

/* ---- Checkbox filters (color, season) ---- */
.vs-filter__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vs-filter__checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    color: #3e3133;
    cursor: pointer;
    user-select: none;
    letter-spacing: -.02em;
}

.vs-filter__checkbox-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vs-filter__checkbox-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #c0b5b7;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    transition: background .13s, border-color .13s;
}

.vs-filter__checkbox-box::after {
    content: "";
    display: block;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    position: absolute;
    top: 3px;
    left: 2px;
    opacity: 0;
    transition: opacity .12s;
}

.vs-filter__checkbox-label input:checked ~ .vs-filter__checkbox-box {
    background: #500814;
    border-color: #500814;
}

.vs-filter__checkbox-label input:checked ~ .vs-filter__checkbox-box::after {
    opacity: 1;
}

.vs-filter__count {
    margin-left: auto;
    font-size: .72rem;
    opacity: .45;
}

/* ---- Size filter ---- */
.vs-filter__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vs-filter__size-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c0b5b7;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: .8rem;
    color: #3e3133;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
}

.vs-filter__size-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vs-filter__size-label.is-active {
    border-color: #500814;
    color: #500814;
    font-weight: 600;
    background: rgba(80,8,20,.04);
}

/* ---- Filter actions ---- */
.vs-filter__actions {
    display: flex;
    gap: 10px;
    padding: 20px 0 8px;
    align-items: center;
}

.vs-filter__apply-btn {
    background: #500814;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: .875rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    flex: 1;
    letter-spacing: .02em;
}

.vs-filter__apply-btn:hover { background: #3d0610; }

.vs-filter__reset-btn {
    color: #500814;
    text-decoration: none;
    font-size: .82rem;
    opacity: .75;
    flex-shrink: 0;
}

.vs-filter__reset-btn:hover { opacity: 1; }

/* ---- Product grid ---- */
.vs-shop__grid {
    display: grid;
    gap: 24px;
}

.vs-shop__grid--cols-1 { grid-template-columns: 1fr; }
.vs-shop__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.vs-shop__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.vs-shop__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Product card (shop-specific overrides) ---- */
.vs-shop .victorie-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.vs-shop .victorie-product-card:hover {
    box-shadow: 0 8px 28px rgba(62,49,51,.1);
    transform: translateY(-2px);
}

.vs-shop .victorie-product-card__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    border-radius: 8px 8px 0 0;
    background: #f5eff0;
}

.vs-shop .victorie-product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.vs-shop .victorie-product-card:hover .victorie-product-card__img-wrap img {
    transform: scale(1.04);
}

.vs-shop .victorie-product-card__badge {
    position: absolute;
    z-index: 1;
    font-size: .75rem;
    line-height: 1;
}

.vs-shop .victorie-product-card__badge--bestseller {
    top: 8px;
    left: 8px;
    background: #FAF9F9;
    color: #000;
    border-radius: 32px;
    padding: 6px 10px;
    font-family: inherit;
    font-weight: 400;
    letter-spacing: -.02em;
}

.vs-shop .victorie-product-card__badge--discount {
    right: 0;
    bottom: calc(83px + 8px);
    left: auto;
    top: auto;
    background: #000;
    color: #fff;
    border-radius: 32px 0 0 32px;
    padding: 6px 10px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.vs-shop .victorie-product-card__info {
    padding: 16px;
    min-height: 83px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.vs-shop .victorie-product-card__price {
    font-size: 1rem;
    opacity: .7;
    color: #000;
    letter-spacing: -.02em;
}

.vs-shop .victorie-product-card__price .woocommerce-Price-amount {
    font-size: inherit;
}

.vs-shop .victorie-product-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -.03em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vs-shop .victorie-product-card__title a {
    color: #1e1e1e;
    text-decoration: none;
    transition: color .15s;
}

.vs-shop .victorie-product-card__title a:hover { color: #500814; }

/* ---- Pagination ---- */
.vs-shop__pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.vs-shop__pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.vs-shop__pagination .page-numbers li a,
.vs-shop__pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d0c8c9;
    border-radius: 6px;
    font-size: .875rem;
    color: #3e3133;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}

.vs-shop__pagination .page-numbers li .current {
    background: #500814;
    border-color: #500814;
    color: #fff;
}

.vs-shop__pagination .page-numbers li a:hover {
    border-color: #500814;
    color: #500814;
}

.vs-shop__pagination .page-numbers .prev,
.vs-shop__pagination .page-numbers .next {
    font-size: 1rem;
}

/* ---- Empty state ---- */
.vs-shop__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.vs-shop__empty p {
    color: #9a8f91;
    font-size: 1.05rem;
    margin: 0;
}

.vs-shop__empty-btn {
    display: inline-block;
    background: #500814;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    transition: background .2s;
}

.vs-shop__empty-btn:hover { background: #3d0610; color: #fff; }

/* Mobile overlay */
.vs-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 200;
    cursor: pointer;
}

.vs-sidebar-overlay.is-open { display: block; }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .vs-shop__container { padding: 32px 60px; }
    .vs-shop__grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
    .vs-shop__container { padding: 24px 32px; }
    .vs-shop__layout { grid-template-columns: 220px 1fr; gap: 32px; }
}

@media (max-width: 860px) {
    .vs-shop__container { padding: 20px 20px; }
    .vs-shop__layout { grid-template-columns: 1fr; }

    .vs-shop__sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 210;
        transition: right .28s ease;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: none;
        padding: 0 20px 32px;
        box-shadow: -4px 0 24px rgba(0,0,0,.15);
    }

    .vs-shop__sidebar.is-open { right: 0; }
    .vs-shop__mobile-filter-btn { display: flex; }
    .vs-sidebar__mobile-head { display: flex; }

    .vs-shop__grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
    .vs-shop__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .vs-shop__grid--cols-2,
    .vs-shop__grid--cols-3,
    .vs-shop__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
    .vs-shop__grid { gap: 12px; }
    .vs-shop__container { padding: 16px 16px; }
    .vs-shop .victorie-product-card__info { padding: 10px 10px; }
    .vs-shop .victorie-product-card__title { font-size: .9rem; }
    .vs-shop .victorie-product-card__price { font-size: .85rem; }
}
/* ================================================================
   Suppress WC default result-count + ordering inside product area
   (rendered in custom .vs-shop__bar — not needed here)
   ================================================================ */
.vs-shop__main .woocommerce-result-count,
.vs-shop__main .woocommerce-ordering {
    display: none !important;
}

/* Ensure main area contains WC float elements */
.vs-shop__main {
    overflow: hidden;
    min-width: 0;
}