@import url('https://fonts.cdnfonts.com/css/din-condensed');

:root {
    --primary: #346739;
    --dark: #000200;
    --white: #FFFFFF;
    --light: #f7f7f7;
    --gray: #666666;
}

:root {
    --indigo: #346739;
    --indigo-dark: #5A52E0;
    --indigo-light: #EFEDFF;
    --ink: #1A1D29;
    --gray-900: #1F2333;
    --gray-700: #4B5066;
    --gray-500: #7C8094;
    --gray-300: #D8DAE3;
    --gray-100: #F3F4F8;
    --white: #FFFFFF;
    --red: #FF4757;
    --green-badge: #6C63FF;
    --radius-lg: 1.1vw;
    --radius-md: 0.7vw;
    --radius-sm: 0.45vw;
    --shadow-card: 0 0.4vw 1.6vw rgba(31, 35, 51, 0.06);
    --shadow-card-hover: 0 0.9vw 2.4vw rgba(31, 35, 51, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 1vw;
}

body {
    font-family: 'DIN Condensed', sans-serif;
    background: #F7F8FB;
    color: var(--ink);
    width: 100%;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.product-section {
    width: 100%;
    max-width: 158vw;
    margin: 0 auto;
    padding: 3.2vw 2.6vw 5vw;
    display: flex;
    align-items: flex-start;
    gap: 2vw;
}

/* ===== Sidebar ===== */
.ps-sidebar {
    width: 19vw;
    flex-shrink: 0;
    background: var(--white);
    border: 0.07vw solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 1.8vw 1.6vw 2.2vw;
    position: sticky;
    top: 2vw;
}

.ps-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6vw;
}

.ps-sidebar-header h2 {
    font-size: 1.15vw;
    font-weight: 700;
    color: var(--gray-900);
}

.ps-sidebar-clear {
    font-size: 0.85vw;
    font-weight: 700;
    color: var(--indigo);
    transition: opacity .15s ease;
}

.ps-sidebar-clear:hover,
.ps-sidebar-clear:focus {
    opacity: 0.7;
}

.ps-filter-group {
    border-bottom: 0.07vw solid var(--gray-100);
    padding: 1.3vw 0;
}

.ps-filter-group:first-of-type {
    padding-top: 0;
}

.ps-filter-group:last-of-type {
    border-bottom: none;
}

.ps-filter-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 1vw;
    user-select: none;
}

.ps-filter-group-title {
    display: flex;
    align-items: center;
    gap: 0.6vw;
    font-size: 1vw;
    font-weight: 700;
    color: var(--gray-900);
}

.ps-filter-group-title svg.icon {
    width: 1.05vw;
    height: 1.05vw;
    color: var(--indigo);
}

.ps-chevron {
    width: 0.9vw;
    height: 0.9vw;
    color: var(--gray-500);
    transition: transform .2s ease;
}

.ps-filter-group.collapsed .ps-chevron {
    transform: rotate(-90deg);
}

.ps-filter-group.collapsed .ps-filter-group-body {
    display: none;
}

/* categories: scrollable flat list (34+ terms) */
.ps-filter-group-body .ps-cat-list {
    display: block;
    max-height: 16vw;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.4vw;
    border-top: 0.07vw solid var(--gray-100);
    border-bottom: 0.07vw solid var(--gray-100);
}

.ps-cat-list::-webkit-scrollbar {
    width: 0.4vw;
}

.ps-cat-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 1vw;
}

.ps-cat-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 1vw;
}

.ps-cat-list::-webkit-scrollbar-thumb:hover {
    background: var(--indigo);
}

.ps-cat-list {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-100);
}

/* checkbox list */
.ps-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5vw 0;
    cursor: pointer;
}

/* Instant visual feedback on click — driven by the native :checked state
   itself (not just the PHP-rendered class), so selections light up right
   away instead of waiting for the page to reload after "Apply Filters". */
.ps-check-row:has(.ps-cat-input:checked) .ps-checkbox {
    background: var(--indigo);
    border-color: var(--indigo);
}

.ps-check-row:has(.ps-cat-input:checked) .ps-checkbox svg {
    opacity: 1;
}

.ps-check-left {
    display: flex;
    align-items: center;
    gap: 0.75vw;
}

.ps-checkbox {
    width: 1.1vw;
    height: 1.1vw;
    border-radius: 0.3vw;
    border: 0.1vw solid var(--gray-300);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

.ps-checkbox svg {
    width: 0.7vw;
    height: 0.7vw;
    color: var(--white);
    opacity: 0;
    transition: opacity .1s ease;
}

.ps-check-row.checked .ps-checkbox {
    background: var(--indigo);
    border-color: var(--indigo);
}

.ps-check-row.checked .ps-checkbox svg {
    opacity: 1;
}

.ps-check-label {
    font-size: 0.92vw;
    color: var(--gray-700);
    font-weight: 500;
}

.ps-check-count {
    font-size: 0.85vw;
    color: var(--gray-500);
    font-weight: 500;
}

/* fabric / pill buttons */
.ps-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6vw;
}

.ps-pill {
    padding: 0.55vw 1.1vw;
    border-radius: 50vw;
    border: 0.07vw solid var(--gray-300);
    font-size: 0.88vw;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    transition: all .15s ease;
    display: inline-block;
    cursor: pointer;
}

.ps-pill:hover,
.ps-pill:focus {
    border-color: var(--indigo);
    color: var(--indigo);
}

.ps-pill.selected {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--white);
}

.ps-pill-input:checked + .ps-pill {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--white);
}

/* pattern swatches */
.ps-pattern-group {
    display: flex;
    gap: 1vw;
    flex-wrap: wrap;
}

.ps-pattern-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.5vw;
    cursor: pointer;
}

.ps-pattern-swatch {
    width: 3.4vw;
    height: 3.4vw;
    border-radius: 50%;
    border: 0.13vw solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    overflow: hidden;
    position: relative;
}

.ps-pattern-item.selected .ps-pattern-swatch {
    border-color: var(--indigo);
    box-shadow: 0 0 0 0.13vw var(--indigo-light);
}

.ps-pattern-item:has(.ps-pattern-input:checked) .ps-pattern-swatch {
    border-color: var(--indigo);
    box-shadow: 0 0 0 0.13vw var(--indigo-light);
}

.ps-pattern-label {
    font-size: 0.78vw;
    color: var(--gray-500);
    font-weight: 600;
}

.pattern-solid {
    background: var(--gray-900);
}

.pattern-striped {
    background: repeating-linear-gradient(45deg, #E4E5EB 0 0.3vw, #C7C9D3 0.3vw 0.6vw);
}

.pattern-printed {
    background-image: radial-gradient(circle, #C7C9D3 0.18vw, transparent 0.2vw);
    background-size: 0.6vw 0.6vw;
    background-color: #EEEFF3;
}

.pattern-checked {
    background-image: repeating-linear-gradient(0deg, #C7C9D3 0 0.12vw, transparent 0.12vw 0.5vw), repeating-linear-gradient(90deg, #C7C9D3 0 0.12vw, transparent 0.12vw 0.5vw);
    background-color: #EEEFF3;
}

.pattern-floral {
    background: radial-gradient(circle at 30% 30%, #EE6FA0 0.3vw, transparent 0.32vw), radial-gradient(circle at 70% 40%, #A8D8C9 0.3vw, transparent 0.32vw), radial-gradient(circle at 50% 70%, #F2D54B 0.3vw, transparent 0.32vw), #F3F4F8;
}

/* colors */
.ps-color-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85vw;
}

.ps-color-swatch {
    width: 1.9vw;
    height: 1.9vw;
    border-radius: 50%;
    cursor: pointer;
    border: 0.13vw solid var(--white);
    box-shadow: 0 0 0 0.07vw var(--gray-300);
    transition: all .15s ease;
    flex-shrink: 0;
    display: inline-block;
}

.ps-color-swatch:hover,
.ps-color-swatch:focus {
    transform: translateY(-0.1vw);
}

.ps-color-swatch.selected {
    box-shadow: 0 0 0 0.15vw var(--indigo);
}

.ps-swatch-input:checked + .ps-color-swatch {
    box-shadow: 0 0 0 0.15vw var(--indigo);
}

.ps-color-swatch.multi {
    background: conic-gradient(from 90deg, #FF4757, #F2D54B, #6C63FF, #2ED573, #2D6BE0, #FF4757);
}

.ps-card.out-of-stock {
    opacity: .45;
}

.ps-card.out-of-stock .ps-add-cart {
    pointer-events: none;
    opacity: .5;
}

.ps-sizes {
    display: flex;
    gap: 0.5vw;
    flex-wrap: wrap;
    margin-top: 0.8vw;
    margin-bottom: 0.8vw;
}

.ps-size {
    padding: 0.35vw 0.8vw;
    border: 0.07vw solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.78vw;
    color: var(--gray-700);
    font-weight: 600;
}

/* size pills (sidebar) */
.ps-size-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6vw;
}

.ps-size-pill {
    padding: 0.65vw 0;
    text-align: center;
    border-radius: var(--radius-sm);
    border: 0.07vw solid var(--gray-300);
    font-size: 0.88vw;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    transition: all .15s ease;
    display: block;
    cursor: pointer;
}

.ps-size-pill:hover,
.ps-size-pill:focus {
    border-color: var(--indigo);
    color: var(--indigo);
}

.ps-size-input:checked + .ps-size-pill {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--white);
}

.ps-size-pill.selected {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--white);
}

/* price range */
.ps-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9vw;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1vw;
}

.ps-price-current {
    text-align: center;
    font-size: 0.88vw;
    color: var(--gray-500);
    font-weight: 600;
    margin-top: 0.5vw;
}

/* ===== Dual price-range slider ===== */
.ps-range-track {
    position: relative;
    height: 1.3vw;
    margin: 1.6vw 0.1vw 0.9vw;
}

.ps-range-track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0.35vw;
    transform: translateY(-50%);
    background: var(--gray-300);
    border-radius: 50vw;
}

.ps-range-track::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 0.35vw;
    transform: translateY(-50%);
    background: var(--indigo);
    border-radius: 50vw;
    left: var(--range-fill-start, 0%);
    right: var(--range-fill-end, 0%);
}

.ps-range-input,
input#min_price.ps-range-input,
input#max_price.ps-range-input {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.3vw;
    margin: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
    z-index: 3;
}

.ps-range-input.ps-range-max,
input#max_price.ps-range-input {
    z-index: 4;
}

.ps-range-input::-webkit-slider-runnable-track,
input#min_price.ps-range-input::-webkit-slider-runnable-track,
input#max_price.ps-range-input::-webkit-slider-runnable-track {
    -webkit-appearance: none !important;
    background: transparent !important;
    height: 1.3vw;
    border: none !important;
    box-shadow: none !important;
}

.ps-range-input::-moz-range-track,
input#min_price.ps-range-input::-moz-range-track,
input#max_price.ps-range-input::-moz-range-track {
    background: transparent !important;
    height: 1.3vw;
    border: none !important;
    box-shadow: none !important;
}

.ps-range-input::-moz-range-progress {
    background: transparent !important;
}

.ps-range-input::-webkit-slider-thumb,
input#min_price.ps-range-input::-webkit-slider-thumb,
input#max_price.ps-range-input::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: auto;
    width: clamp(14px, 1.3vw, 20px) !important;
    height: clamp(14px, 1.3vw, 20px) !important;
    aspect-ratio: 1 / 1 !important;
    background: var(--white) !important;
    border: 0.18vw solid var(--indigo) !important;
    border-radius: 50% !important;
    box-shadow: 0 0.15vw 0.4vw rgba(0, 0, 0, 0.15) !important;
    cursor: pointer;
    margin-top: 0;
}

.ps-range-input::-moz-range-thumb,
input#min_price.ps-range-input::-moz-range-thumb,
input#max_price.ps-range-input::-moz-range-thumb {
    -moz-appearance: none !important;
    appearance: none !important;
    pointer-events: auto;
    width: clamp(14px, 1.3vw, 20px) !important;
    height: clamp(14px, 1.3vw, 20px) !important;
    aspect-ratio: 1 / 1 !important;
    background: var(--white) !important;
    border: 0.18vw solid var(--indigo) !important;
    border-radius: 50% !important;
    box-shadow: 0 0.15vw 0.4vw rgba(0, 0, 0, 0.15) !important;
    cursor: pointer;
}

.ps-range-input:focus {
    outline: none;
}

.ps-range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 0.2vw var(--indigo-light);
}

.ps-range-input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 0.2vw var(--indigo-light);
}

.ps-apply-btn {
    width: 100%;
    margin-top: 1.8vw;
    padding: 1vw 0;
    border-radius: var(--radius-md);
    background: var(--indigo);
    color: var(--white);
    font-size: 0.98vw;
    font-weight: 700;
    transition: background .15s ease;
}

.ps-apply-btn:hover,
.ps-apply-btn:focus {
    background: var(--indigo-dark);
}

/* ===== Main content ===== */
.ps-main {
    flex: 1;
    min-width: 0;
}

/* ===== Header row ===== */
.ps-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.6vw;
    /*margin-bottom: 2.2vw;*/
}

.ps-heading h1 {
    font-size: 2.45vw;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03vw;
    margin-bottom: 0.55vw;
}

.ps-heading p {
    font-size: 1.05vw;
    color: var(--gray-500);
    font-weight: 500;
}

.ps-controls {
    display: flex;
    align-items: center;
    gap: 1vw;
    flex-shrink: 0;
}

/* ===== Ordering / Sort ===== */
.ps-sort {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5vw;
    /*padding: 0.75vw 1vw 0.75vw 1.3vw;*/
    background: var(--white);
    border: 0.07vw solid var(--gray-300);
    border-radius: var(--radius-md);
    white-space: nowrap;
    min-width: 16vw;
}

.ps-sort-label {
    font-size: 0.95vw;
    font-weight: 600;
    color: var(--gray-500);
    flex-shrink: 0;
}

.ps-sort select.orderby,
.ps-sort .orderby {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95vw;
    font-weight: 700;
    color: var(--gray-900);
    cursor: pointer;
    padding-right: 2.2vw;
    outline: none;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-sort-icon,
.ps-sort svg {
    width: 1vw;
    height: 1vw;
    color: var(--gray-500);
    pointer-events: none;
    flex-shrink: 0;
}

/* woocommerce_catalog_ordering() only outputs the raw <select> — give it
   a chevron since appearance:none above strips the native browser arrow. */
.ps-sort {
    position: relative;
}

.ps-sort::after {
    content: "";
    position: absolute;
    right: 1.1vw;
    top: 50%;
    width: 0.6vw;
    height: 0.6vw;
    border-right: 0.13vw solid var(--gray-500);
    border-bottom: 0.13vw solid var(--gray-500);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.woocommerce-ordering,
.ps-ordering {
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.woocommerce-ordering .select2-container,
.woocommerce-ordering .chosen-container {
    display: none !important;
}

.ps-view-toggle {
    display: flex;
    align-items: center;
    gap: 0.55vw;
}

.ps-view-btn {
    /*width: 3.2vw;*/
    /*height: 3.2vw;*/
    min-width: 3.2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 0.07vw solid var(--gray-300);
    background: var(--white);
    transition: all .15s ease;
    padding: 10px;
    flex-shrink: 0;
}

.ps-view-btn svg {
    width: 1.4vw !important;
    height: 1.4vw !important;
    color: var(--gray-500);
    display: block;
    stroke: currentColor;
}

.ps-view-btn.active,
.ps-view-btn:hover,
.ps-view-btn:focus {
    background: var(--indigo);
    border-color: var(--indigo);
}

.ps-view-btn.active svg,
.ps-view-btn:hover svg,
.ps-view-btn:focus svg {
    color: var(--white);
    stroke: var(--white);
}

/* ===== Active filters bar ===== */
.ps-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1vw;
    background: var(--white);
    border: 0.07vw solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 0.8vw;
    margin-bottom: 2.4vw;
    min-height: 4vw;
}

.ps-filters-left {
    display: flex;
    align-items: center;
    gap: 0.9vw;
    flex-wrap: wrap;
}

.ps-filters-label {
    font-size: 0.95vw;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.ps-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55vw;
    background: #efefef;
    color: var(--indigo);
    font-size: 0.9vw;
    font-weight: 600;
    padding: 0.55vw 0.55vw 0.55vw 1.05vw;
    border-radius: 50vw;
    text-transform: capitalize;
}

.ps-chip a,
.ps-chip button {
    width: 1.3vw;
    height: 1.3vw;
    min-width: 15px;
    min-height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 103, 57, 0.16);
    color: var(--indigo);
    font-size: 0.7vw;
    line-height: 1;
    padding: 0 !important;
    flex-shrink: 0;
    transition: background .15s ease;
}

.ps-chip a:hover,
.ps-chip a:focus,
.ps-chip button:hover,
.ps-chip button:focus {
    background: rgba(52, 103, 57, 0.3);
}

.ps-chip a svg,
.ps-chip button svg {
    width: 0.7vw;
    height: 0.7vw;
    min-width: 9px;
    min-height: 9px;
    display: block;
}

.ps-clear-all {
    font-size: 0.92vw;
    font-weight: 700;
    color: var(--indigo);
    white-space: nowrap;
    transition: opacity .15s ease;
}

.ps-clear-all:hover,
.ps-clear-all:focus {
    opacity: 0.7;
    color: var(--indigo);
}

/* ===== Grid ===== */
.ps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.7vw;
}

.ps-grid.list-mode {
    grid-template-columns: 1fr;
}

.ps-grid.list-mode .ps-card {
    flex-direction: row;
}

.ps-grid.list-mode .ps-card-media {
    width: 22vw;
    flex-shrink: 0;
}

.ps-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 0.07vw solid #EEF0F5;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.ps-card:hover,
.ps-card:focus-within {
    transform: translateY(-0.35vw);
    box-shadow: var(--shadow-card-hover);
}

/* ===== Card media / image slider =====
   No fixed pixel height here — aspect-ratio scales the media box at every
   breakpoint, and the slider fills it at 100% height/width so translateX
   based paging always lines up regardless of screen size. */
   
.ps-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.08;
    background: linear-gradient(160deg, #F4F5F9, #ECEDF3);
    overflow: hidden;
}

.ps-image-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .35s ease;
}

.ps-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.ps-slide img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    display: block;
}

/* Prev / Next arrows — absolutely centered on the media box at every size,
   no reliance on a fixed pixel height. */
.ps-slide-btn {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.7vw;
    pointer-events: none;
    z-index: 5;
}

.ps-prev,
.ps-next {
    pointer-events: auto;
    width: 2.4vw;
    /*height: 2.4vw;*/
    font-size: 20px;
    min-width: 26px;
    min-height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gray-900);
    box-shadow: 0 0.2vw 0.6vw rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity .2s ease, background .2s ease, color .2s ease;
}

.ps-prev svg,
.ps-next svg {
    width: 1vw;
    height: 1vw;
    min-width: 12px;
    min-height: 12px;
    stroke: currentColor;
    fill: none;
    display: block;
}

.ps-card:hover .ps-prev,
.ps-card:hover .ps-next,
.ps-prev:focus,
.ps-next:focus {
    opacity: 1;
}

.ps-prev:hover,
.ps-next:hover,
.ps-prev:focus,
.ps-next:focus {
    background: var(--indigo);
    color: var(--white);
}

.ps-card-media .hover-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: .35s;
}

.ps-card:hover .hover-image {
    opacity: 1;
}

.ps-wishlist {
    position: absolute;
    top: 1vw;
    left: 1vw;
    right: auto;
    width: 2.8vw;
    height: 2.8vw;
    min-width: 26px;
    min-height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.2vw 0.8vw rgba(0, 0, 0, 0.12);
    z-index: 10;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .15s ease;
}

.ps-wishlist svg {
    width: 1.3vw !important;
    height: 1.3vw !important;
    min-width: 14px;
    min-height: 14px;
    color: var(--gray-700);
    stroke: currentColor;
    fill: none;
    display: block;
}

.ps-wishlist:hover,
.ps-wishlist:focus {
    background: var(--white);
}

.ps-wishlist.is-active svg {
    color: var(--red);
    fill: var(--red);
    stroke: var(--red);
}

.ps-badge {
    position: absolute;
    top: 1vw;
    right: 1vw;
    font-size: 0.78vw;
    font-weight: 700;
    color: var(--white);
    padding: 0.42vw 0.95vw;
    border-radius: 50vw;
    z-index: 2;
    letter-spacing: 0.01vw;
}

.ps-badge.discount {
    background: var(--red);
}

.ps-badge.new {
    background: var(--indigo);
}

.ps-card-body {
    padding: 1.3vw 1.4vw 1.5vw;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ps-brand {
    font-size: 0.78vw;
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: 0.08vw;
    text-transform: uppercase;
    margin-bottom: 0.4vw;
}

.ps-title {
    font-size: 1.05vw;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.35;
    margin-bottom: 0.7vw;
    min-height: 2.85vw;
}

.ps-title a {
    text-decoration: none;
    color: inherit;
}

.ps-title a:hover,
.ps-title a:focus {
    color: var(--indigo);
}

.ps-rating {
    display: flex;
    align-items: center;
    gap: 0.4vw;
    margin-bottom: 0.7vw;
}

.ps-review-count {
    font-size: 0.78vw;
    color: var(--gray-500);
}

.ps-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.6vw;
    margin-bottom: 0.5vw;
}

.ps-price {
    font-size: 1.2vw;
    font-weight: 800;
    color: var(--gray-900);
}

.ps-price del {
    font-size: 0.95vw;
    font-weight: 600;
    color: var(--gray-500);
}

.ps-price ins {
    text-decoration: none;
}

.ps-discount {
    display: inline-block;
    margin-bottom: 0.8vw;
    padding: 0.3vw 0.8vw;
    border-radius: 50vw;
    background: #e8fff0;
    color: #1b8f3c;
    font-size: 0.78vw;
    font-weight: 700;
    width: fit-content;
}

.ps-short-description {
    /*margin-bottom: 0.9vw;*/
    font-size: 0.85vw;
    color: var(--gray-500);
    line-height: 1.6;
}

.ps-swatches {
    display: flex;
    align-items: center;
    gap: 0.6vw;
    /*margin-bottom: 1.3vw;*/
    flex-wrap: wrap;
}

.ps-swatch {
    width: 1.5vw;
    height: 1.5vw;
    min-width: 16px;
    min-height: 16px;
    border-radius: 50%;
    border: 0.13vw solid var(--white);
    box-shadow: 0 0 0 0.07vw var(--gray-300);
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
    flex-shrink: 0;
}

.ps-swatch:hover,
.ps-swatch:focus {
    transform: translateY(-0.1vw);
}

.ps-swatch.selected {
    box-shadow: 0 0 0 0.13vw var(--indigo);
}

.ps-card-actions {
    display: flex;
    gap: 0.6vw;
    margin-top: auto;
    padding-top: 0.4vw;
}

.ps-card-actions > * {
    flex: 1;
}

.ps-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    width: 100%;
    padding: 0.9vw 0;
    border-radius: var(--radius-md);
    border: 0.07vw solid var(--indigo);
    background: var(--white);
    color: var(--indigo);
    font-size: 0.92vw;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s ease;
}

.ps-add-cart svg {
    width: 1.1vw !important;
    height: 1.1vw !important;
    stroke: currentColor;
    fill: none;
    display: block;
    flex-shrink: 0;
}

.ps-add-cart:hover,
.ps-add-cart:focus {
    background: var(--indigo);
    color: var(--white);
}

.ps-add-cart:hover svg {
    stroke: var(--white);
}

/* ===== Pagination ===== */
.ps-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7vw;
    margin-top: 3.4vw;
    flex-wrap: wrap;
}

.ps-pagination .page-numbers {
    min-width: 2.9vw;
    height: 2.9vw;
    padding: 0 0.4vw;
    border-radius: var(--radius-md);
    border: 0.07vw solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.95vw;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    text-decoration: none;
}

.ps-pagination .page-numbers:hover,
.ps-pagination .page-numbers:focus {
    border-color: var(--indigo);
    color: var(--indigo);
}

.ps-pagination .page-numbers.current {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--white);
}

.ps-pagination .page-numbers.dots {
    border: none;
    cursor: default;
}

/* ===================== FILTER-CONTROL WRAPPER LABELS ===================== */
.ps-color-group label,
.ps-pill-group label,
.ps-pattern-group label,
.ps-size-group label {
    display: contents;
}

.ps-swatch-input,
.ps-pill-input,
.ps-pattern-input,
.ps-size-input,
.ps-cat-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* ===================== RESPONSIVE ===================== */

/* Tablet landscape */
@media (max-width: 1024px) {
    html {
        font-size: 1.4vw;
    }

    .ps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.2vw;
    }

    .product-section {
        padding: 4vw 2.8vw 6vw;
        align-items: stretch;
    }

    .ps-sidebar {
        width: 27vw;
    }

    .ps-sidebar-header h2 {
        font-size: 1.7vw;
    }

    .ps-sidebar-clear,
    .ps-clear-all,
    .ps-filters-label {
        font-size: 1.3vw;
    }

    .ps-filter-group-title {
        font-size: 1.5vw;
    }

    .ps-filter-group-title svg.icon {
        width: 1.6vw;
        height: 1.6vw;
    }

    .ps-chevron {
        width: 1.4vw;
        height: 1.4vw;
    }

    .ps-check-label {
        font-size: 1.4vw;
    }

    .ps-check-count {
        font-size: 1.3vw;
    }

    .ps-checkbox {
        width: 1.7vw;
        height: 1.7vw;
    }

    .ps-cat-list {
        max-height: 26vh;
    }

    .ps-pill,
    .ps-size-pill {
        font-size: 1.35vw;
    }

    .ps-pattern-swatch {
        width: 5.2vw;
        height: 5.2vw;
    }

    .ps-pattern-label {
        font-size: 1.2vw;
    }

    .ps-color-swatch {
        width: 2.9vw;
        height: 2.9vw;
    }

    .ps-price-labels,
    .ps-price-current {
        font-size: 1.35vw;
    }

    .ps-apply-btn {
        font-size: 1.5vw;
        padding: 1.5vw 0;
    }

    .ps-heading h1 {
        font-size: 3.6vw;
    }

    .ps-heading p {
        font-size: 1.6vw;
    }

    .ps-brand {
        font-size: 1.2vw;
    }

    .ps-title {
        font-size: 1.6vw;
        min-height: 4.4vw;
    }

    .ps-price {
        font-size: 1.9vw;
    }

    .ps-price del {
        font-size: 1.5vw;
    }

    .ps-discount,
    .ps-short-description {
        font-size: 1.3vw;
    }

    .ps-swatch {
        width: 2.2vw;
        height: 2.2vw;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    html {
        font-size: 2vw;
    }

    .ps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.6vw;
    }

    .ps-sidebar {
        width: 32vw;
    }

    .ps-grid.list-mode .ps-card {
        flex-direction: column;
    }

    .ps-grid.list-mode .ps-card-media {
        width: 100%;
    }

    .ps-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ps-controls {
        justify-content: space-between;
        width: 100%;
        margin-bottom: 10px;
    }

    .ps-sort {
        padding: 5px;
        flex: 1;
        justify-content: space-between;
        min-width: 0;
    }

    .product-section {
        padding: 5vw 3.2vw 7vw;
    }

    /*.ps-filters-bar {*/
    /*    padding: 2vw;*/
    /*}*/

    /*.ps-view-btn {*/
    /*    width: 8vw;*/
    /*    height: 8vw;*/
    /*}*/

    .ps-view-btn svg {
        width: 4vw !important;
        height: 4vw !important;
    }

    .ps-wishlist {
        width: 7vw;
        height: 7vw;
    }

    .ps-wishlist svg {
        width: 3.5vw !important;
        height: 3.5vw !important;
    }

    .ps-prev,
    .ps-next {
        width: 7vw;
        height: 7vw;
    }

    .ps-prev svg,
    .ps-next svg {
        width: 3vw;
        height: 3vw;
    }

    .ps-sort select.orderby {
        font-size: 2.5vw;
    }

    .ps-sort-label {
        font-size: 2.2vw;
    }

    .ps-add-cart {
        font-size: 2.6vw;
        padding: 2.5vw 0;
    }

    .ps-add-cart svg {
        width: 3vw !important;
        height: 3vw !important;
    }

    .ps-sidebar-header h2 {
        font-size: 2.3vw;
    }

    .ps-sidebar-clear,
    .ps-clear-all,
    .ps-filters-label {
        font-size: 1.9vw;
    }

    .ps-filter-group-title {
        font-size: 2.1vw;
    }

    .ps-filter-group-title svg.icon {
        width: 2.2vw;
        height: 2.2vw;
    }

    .ps-chevron {
        width: 2vw;
        height: 2vw;
    }

    .ps-check-label {
        font-size: 2vw;
    }

    .ps-check-count {
        font-size: 1.9vw;
    }

    .ps-checkbox {
        width: 2.4vw;
        height: 2.4vw;
    }

    .ps-checkbox svg {
        width: 1.5vw;
        height: 1.5vw;
    }

    .ps-cat-list {
        max-height: 24vh;
    }

    .ps-pill,
    .ps-size-pill {
        font-size: 1.9vw;
        padding: 1vw 1.8vw;
    }

    .ps-size-pill {
        padding: 1.2vw 0;
    }

    .ps-pattern-swatch {
        width: 7vw;
        height: 7vw;
    }

    .ps-pattern-label {
        font-size: 1.7vw;
    }

    .ps-color-swatch {
        width: 4vw;
        height: 4vw;
    }

    .ps-price-labels,
    .ps-price-current {
        font-size: 1.9vw;
    }

    .ps-apply-btn {
        font-size: 2.1vw;
        padding: 2vw 0;
    }

    .ps-heading h1 {
        font-size: 4.4vw;
    }

    .ps-heading p {
        font-size: 2.1vw;
        margin-bottom: 0 !important;
    }

    .ps-brand {
        font-size: 1.7vw;
    }

    .ps-title {
        font-size: 2.1vw;
        min-height: 5.7vw;
    }

    .ps-price {
        font-size: 2.5vw;
    }

    .ps-price del {
        font-size: 2vw;
    }

    .ps-discount,
    .ps-short-description {
        font-size: 1.8vw;
    }

    .ps-swatch {
        width: 3vw;
        height: 3vw;
    }

    .ps-chip {
        font-size: 1.8vw;
        padding: 1vw 1vw 1vw 2vw;
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 3.6vw;
    }

    .ps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.6vw;
    }

    .ps-card-body {
        padding: 2.6vw 2.6vw 3vw;
    }

    .ps-title {
        font-size: 2.5vw;
        min-height: 6.8vw;
        /*margin-bottom: 1.6vw;*/
    }

    .ps-brand {
        font-size: 1.9vw;
    }

    .ps-price {
        font-size: 2.9vw;
    }

    .ps-price del {
        font-size: 2.3vw;
    }

    .ps-swatch {
        width: 3.4vw;
        height: 3.4vw;
    }

    .ps-add-cart {
        font-size: 2.3vw;
        padding: 2.2vw 0;
    }

    .ps-add-cart svg {
        width: 2.5vw;
        height: 2.5vw;
    }

    .ps-badge {
        font-size: 1.9vw;
        top: 2.4vw;
        right: 2.4vw;
        padding: 1vw 2.3vw;
    }

    .ps-heading h1 {
        font-size: 5.6vw;
    }

    .ps-heading p {
        font-size: 2.6vw;
    }

    .ps-sort {
        font-size: 2.4vw;
        padding: 2vw 3vw;
    }

    .ps-filters-label {
        font-size: 2.4vw;
    }

    .ps-chip {
        font-size: 2.2vw;
        padding: 1.2vw 1.2vw 1.2vw 2.4vw;
    }

    .ps-chip a {
        width: 3vw;
        height: 3vw;
    }

    .ps-chip a svg {
        width: 1.6vw;
        height: 1.6vw;
    }

    .ps-clear-all {
        font-size: 2.3vw;
    }

    .ps-pagination .page-numbers {
        min-width: 7vw;
        height: 7vw;
        font-size: 2.3vw;
    }

    .product-section {
        padding: 6vw 3.6vw 9vw;
    }

    .ps-pagination {
        gap: 1.6vw;
        flex-wrap: wrap;
    }

    .ps-view-btn {
        width: 10vw;
        height: 10vw;
    }

    .ps-view-btn svg {
        width: 5vw !important;
        height: 5vw !important;
    }

    .ps-wishlist {
        width: 9vw;
        height: 9vw;
    }

    .ps-wishlist svg {
        width: 4.5vw !important;
        height: 4.5vw !important;
    }

    .ps-sidebar-header h2 {
        font-size: 4.2vw;
    }

    .ps-filter-group-title {
        font-size: 3.6vw;
    }

    .ps-filter-group-title svg.icon {
        width: 3.8vw;
        height: 3.8vw;
    }

    .ps-chevron {
        width: 3.4vw;
        height: 3.4vw;
    }

    .ps-check-label {
        font-size: 3.4vw;
    }

    .ps-check-count {
        font-size: 3.1vw;
    }

    .ps-checkbox {
        width: 4vw;
        height: 4vw;
    }

    .ps-checkbox svg {
        width: 2.6vw;
        height: 2.6vw;
    }

    .ps-cat-list {
        max-height: 28vh;
    }

    .ps-pill,
    .ps-size-pill {
        font-size: 3.2vw;
        padding: 1.6vw 2.6vw;
    }

    .ps-size-pill {
        padding: 2vw 0;
    }

    .ps-pattern-swatch {
        width: 11vw;
        height: 11vw;
    }

    .ps-pattern-label {
        font-size: 2.8vw;
    }

    .ps-color-swatch {
        width: 6.5vw;
        height: 6.5vw;
    }

    .ps-price-labels,
    .ps-price-current {
        font-size: 3.2vw;
    }



    .ps-apply-btn {
        font-size: 3.4vw;
        padding: 3vw 0;
    }

    .ps-discount,
    .ps-short-description {
        font-size: 2.9vw;
    }
}

/* Phones only — this is the sole breakpoint that stacks the sidebar
   above the products. Tablet (768–1024px) and laptop keep the
   side-by-side row layout defined above. */
@media (max-width: 600px) {
    .product-section {
        flex-direction: column;
    }

    .ps-sidebar {
        width: 100%;
        position: static;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 0.85vw;
    }
}