/* ============================================================
   Egoire – Luxury Products Listing Styles
   File:  public/css/products.css
   ============================================================

   Table of Contents:
   1.  Design Tokens
   2.  Container & Section Base
   3.  Hero / Toolbar
   4.  Sort Control
   5.  Active Filters
   6.  Sticky Filter Trigger
   7.  Filter Panel & Overlay
   8.  Accordion
   9.  Custom Checkbox
   10. Price Range
   11. Filter Actions
   12. Product Grid
   13. Product Card
   14. Card Badges
   15. Card Body
   16. Quantity Stepper
   17. Pagination
   18. Empty State
   19. Buttons
   20. Tablet  (≤ 1199px)
   21. Mobile  (≤ 767px)
   22. Small Mobile (≤ 479px)
   23. Reduced Motion
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
    /* Brand palette */
    --ep-gold:        #C6A75E;
    --ep-gold-light:  #D4BA7A;
    --ep-gold-dark:   #A8893E;
    --ep-beige:       #EAD8CF;
    --ep-beige-light: #F5EDE8;
    --ep-beige-pale:  #FAF6F3;
    --ep-black:       #0a0a0a;
    --ep-dark:        #1a1a1a;

    /* Neutral palette */
    --ep-gray-900: #222222;
    --ep-gray-700: #555555;
    --ep-gray-500: #888888;
    --ep-gray-300: #cccccc;
    --ep-gray-200: #e0e0e0;
    --ep-gray-100: #f0f0f0;
    --ep-white:    #ffffff;

    /* Typography */
    --ep-font-display: 'Playfair Display', Georgia, serif;
    --ep-font-heading: 'Cormorant Garamond', Georgia, serif;
    --ep-font-body:    'Inter', -apple-system, sans-serif;

    /* Spacing */
    --ep-section-py: 100px;
    --ep-container-px: 40px;
    --ep-container-max: 1360px;

    /* Shape */
    --ep-radius-sm: 6px;
    --ep-radius:    10px;
    --ep-radius-lg: 14px;

    /* Animation */
    --ep-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ep-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ============================================================
   2. CONTAINER & SECTION BASE
   ============================================================ */

.ep-container {
    max-width: var(--ep-container-max);
    margin: 0 auto;
    padding-left: var(--ep-container-px);
    padding-right: var(--ep-container-px);
}

.ep-section {
    padding: var(--ep-section-py) 0;
    padding-top: 40px;
}


/* ============================================================
   3. HERO / TOOLBAR
   ============================================================ */

.ep-hero {
    padding: 48px 0 0;
    background: var(--ep-beige-pale);
    border-bottom: 1px solid rgba(198, 167, 94, 0.1);
}

.ep-hero__content {
    text-align: center;
    margin-bottom: 36px;
}

.ep-hero__title {
    font-family: var(--ep-font-display);
    font-size: 42px;
    font-weight: 500;
    color: var(--ep-black);
    letter-spacing: 0.03em;
    margin: 0 0 8px;
}

.ep-hero__count {
    font-family: var(--ep-font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--ep-gray-500);
    letter-spacing: 0.04em;
    margin: 0;
}

.ep-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 28px;
}


/* ============================================================
   4. SORT CONTROL
   ============================================================ */

.ep-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.ep-sort__label {
    font-family: var(--ep-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--ep-gray-700);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.ep-sort__select-wrap {
    position: relative;
}

.ep-sort__select {
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--ep-font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--ep-gray-900);
    background: var(--ep-white);
    border: 1px solid var(--ep-gray-200);
    border-radius: var(--ep-radius-sm);
    padding: 10px 36px 10px 14px;
    cursor: pointer;
    transition: border-color 0.3s var(--ep-ease);
    outline: none;
    min-width: 200px;
}

.ep-sort__select:focus {
    border-color: var(--ep-gold);
}

.ep-sort__chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--ep-gray-500);
}


/* ============================================================
   5. ACTIVE FILTERS
   ============================================================ */

.ep-active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ep-active-filters__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ep-font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--ep-gray-700);
    background: var(--ep-white);
    border: 1px solid var(--ep-gray-200);
    border-radius: 50px;
    padding: 6px 12px;
    letter-spacing: 0.02em;
}

.ep-active-filters__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ep-gray-100);
    color: var(--ep-gray-700);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.ep-active-filters__remove:hover {
    background: var(--ep-gold);
    color: var(--ep-white);
}

.ep-active-filters__clear {
    font-family: var(--ep-font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--ep-gold-dark);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.ep-active-filters__clear:hover {
    color: var(--ep-gold);
}


/* ============================================================
   6. STICKY FILTER TRIGGER
   ============================================================ */

/* Desktop: vertical pill on left edge */
.ep-filter-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ep-white);
    border: 1px solid var(--ep-gray-200);
    border-left: none;
    border-radius: 0 var(--ep-radius) var(--ep-radius) 0;
    padding: 14px 16px;
    cursor: pointer;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s var(--ep-ease), background 0.3s var(--ep-ease);
    font-family: var(--ep-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--ep-gray-700);
    letter-spacing: 0.04em;
    writing-mode: vertical-lr;
}

.ep-filter-trigger svg {
    writing-mode: horizontal-tb;
    flex-shrink: 0;
}

.ep-filter-trigger__text {
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

.ep-filter-trigger:hover {
    background: var(--ep-beige-pale);
    box-shadow: 4px 4px 28px rgba(0, 0, 0, 0.1);
}

.ep-filter-trigger__count {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ep-gold);
    color: var(--ep-white);
    font-size: 11px;
    font-weight: 600;
}


/* ============================================================
   7. FILTER PANEL & OVERLAY
   ============================================================ */

.ep-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ep-ease), visibility 0.35s;
}

.ep-filter-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.ep-filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1110;
    width: 380px;
    max-width: 90vw;
    background: var(--ep-beige-pale);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ep-ease-out);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.08);
}

.ep-filter-panel.is-open {
    transform: translateX(0);
}

.ep-filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(198, 167, 94, 0.12);
    flex-shrink: 0;
}

.ep-filter-panel__title {
    font-family: var(--ep-font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--ep-black);
    margin: 0;
    letter-spacing: 0.02em;
}

.ep-filter-panel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ep-gray-200);
    background: var(--ep-white);
    color: var(--ep-gray-700);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.ep-filter-panel__close:hover {
    border-color: var(--ep-gold);
    color: var(--ep-gold);
}

.ep-filter-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 30px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--ep-gray-300) transparent;
}

.ep-filter-panel__actions {
    padding: 20px 28px;
    border-top: 1px solid rgba(198, 167, 94, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}


/* ============================================================
   8. ACCORDION
   ============================================================ */

.ep-accordion {
    border-bottom: 1px solid rgba(198, 167, 94, 0.1);
}

.ep-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 28px;
    font-family: var(--ep-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-gray-900);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.ep-accordion__trigger:hover {
    color: var(--ep-gold);
}

.ep-accordion__trigger svg {
    transition: transform 0.3s var(--ep-ease);
    flex-shrink: 0;
}

.ep-accordion.is-open .ep-accordion__trigger svg {
    transform: rotate(180deg);
}

.ep-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ep-ease);
    padding: 0 28px;
}

.ep-accordion.is-open .ep-accordion__content {
    max-height: 600px;
    padding-bottom: 16px;
}


/* ============================================================
   9. CUSTOM CHECKBOX / RADIO
   ============================================================ */

.ep-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    cursor: pointer;
    user-select: none;
}

.ep-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ep-checkbox__mark {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid var(--ep-gray-300);
    border-radius: 4px;
    background: var(--ep-white);
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.ep-checkbox input:checked + .ep-checkbox__mark {
    background: var(--ep-gold);
    border-color: var(--ep-gold);
}

.ep-checkbox input:checked + .ep-checkbox__mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid var(--ep-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ep-checkbox__label {
    font-family: var(--ep-font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--ep-gray-700);
    transition: color 0.2s;
}

.ep-checkbox:hover .ep-checkbox__label {
    color: var(--ep-gold-dark);
}

/* Filter sub-groups under category parents */
.ep-filter-group {
    margin-bottom: 12px;
}

.ep-filter-group__title {
    display: block;
    font-family: var(--ep-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-gold-dark);
    letter-spacing: 0.03em;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(198, 167, 94, 0.15);
    margin-bottom: 6px;
}


/* ============================================================
   10. PRICE RANGE
   ============================================================ */

.ep-price-range {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.ep-price-range__field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ep-price-range__label {
    font-family: var(--ep-font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--ep-gray-500);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ep-price-range__input {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--ep-font-body);
    font-size: 14px;
    color: var(--ep-gray-900);
    background: var(--ep-white);
    border: 1.5px solid var(--ep-gray-200);
    border-radius: var(--ep-radius-sm);
    outline: none;
    transition: border-color 0.3s;
    appearance: textfield;
    -moz-appearance: textfield;
}

.ep-price-range__input::-webkit-inner-spin-button,
.ep-price-range__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ep-price-range__input:focus {
    border-color: var(--ep-gold);
}

.ep-price-range__sep {
    font-size: 16px;
    color: var(--ep-gray-300);
    padding-bottom: 10px;
}


/* ============================================================
   12. PRODUCT GRID
   ============================================================ */

.ep-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}


/* ============================================================
   13. PRODUCT CARD
   ============================================================ */

.ep-card {
    position: relative;
    background: var(--ep-white);
    border-radius: var(--ep-radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition:
        transform 0.4s var(--ep-ease),
        box-shadow 0.4s var(--ep-ease);
}

.ep-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
}

.ep-card__visual {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--ep-beige-light);
}

.ep-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ep-ease);
}

.ep-card:hover .ep-card__img {
    transform: scale(1.04);
}

.ep-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ep-font-display);
    font-size: 24px;
    color: var(--ep-gold);
    opacity: 0.35;
    letter-spacing: 0.1em;
}

/* Hover action overlay */
.ep-card__hover-action {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.25);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.35s var(--ep-ease);
}

.ep-card:hover .ep-card__hover-action {
    opacity: 1;
}

.ep-card__hover-action span {
    font-family: var(--ep-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ep-white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 10px 24px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}


/* ============================================================
   14. CARD BADGES
   ============================================================ */

.ep-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.ep-badge {
    display: inline-block;
    font-family: var(--ep-font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    line-height: 1;
}

.ep-badge--sale {
    background: #c62828;
    color: var(--ep-white);
}

.ep-badge--best_seller {
    background: var(--ep-gold);
    color: var(--ep-white);
}

.ep-badge--new {
    background: var(--ep-black);
    color: var(--ep-white);
}


/* ============================================================
   15. CARD BODY
   ============================================================ */

.ep-card__body {
    padding: 20px 20px 24px;
}

.ep-card__brand {
    display: block;
    font-family: var(--ep-font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--ep-gray-500);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ep-card__name {
    font-family: var(--ep-font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--ep-gray-900);
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.ep-card__desc {
    font-family: var(--ep-font-body);
    font-size: 13px;
    font-weight: 300;
    color: var(--ep-gray-700);
    line-height: 1.6;
    margin: 0 0 14px;
}

.ep-card__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.ep-card__price-current {
    font-family: var(--ep-font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--ep-black);
}

.ep-card__price-old {
    font-family: var(--ep-font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--ep-gray-500);
    text-decoration: line-through;
}

.ep-card__price-sale {
    font-family: var(--ep-font-body);
    font-size: 18px;
    font-weight: 700;
    color: #c62828;
}


/* ============================================================
   16. QUANTITY STEPPER & ADD TO CART
   ============================================================ */

.ep-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ep-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ep-gray-200);
    border-radius: var(--ep-radius-sm);
    overflow: hidden;
    height: 42px;
}

.ep-stepper__btn {
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--ep-gray-700);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.ep-stepper__btn:hover {
    background: var(--ep-beige-light);
    color: var(--ep-gold);
}

.ep-stepper__input {
    width: 40px;
    height: 100%;
    text-align: center;
    font-family: var(--ep-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-gray-900);
    border: none;
    border-left: 1px solid var(--ep-gray-200);
    border-right: 1px solid var(--ep-gray-200);
    background: var(--ep-white);
    outline: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.ep-stepper__input::-webkit-inner-spin-button,
.ep-stepper__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ep-card__add-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    font-family: var(--ep-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ep-white);
    background: var(--ep-black);
    border: none;
    border-radius: var(--ep-radius-sm);
    cursor: pointer;
    transition: background 0.3s var(--ep-ease);
    white-space: nowrap;
}

.ep-card__add-btn:hover {
    background: var(--ep-gold-dark);
}

.ep-card__add-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
}


/* ============================================================
   17. PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 60px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-family: var(--ep-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-gray-700);
    background: var(--ep-white);
    border: 1px solid var(--ep-gray-200);
    border-radius: var(--ep-radius-sm);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pagination a:hover {
    border-color: var(--ep-gold);
    color: var(--ep-gold);
}

.pagination-current {
    background: var(--ep-gold) !important;
    border-color: var(--ep-gold) !important;
    color: var(--ep-white) !important;
}

.pagination-prev,
.pagination-next {
    font-weight: 400 !important;
    font-size: 13px !important;
    letter-spacing: 0.02em;
}


/* ============================================================
   18. EMPTY STATE
   ============================================================ */

.ep-empty {
    text-align: center;
    padding: 80px 20px;
}

.ep-empty__title {
    font-family: var(--ep-font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--ep-gray-900);
    margin: 20px 0 10px;
}

.ep-empty__text {
    font-family: var(--ep-font-body);
    font-size: 15px;
    color: var(--ep-gray-500);
    margin: 0 0 28px;
}


/* ============================================================
   19. BUTTONS
   ============================================================ */

.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--ep-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--ep-radius-sm);
    border: none;
    cursor: pointer;
    transition:
        background 0.3s var(--ep-ease),
        color 0.3s var(--ep-ease),
        border-color 0.3s var(--ep-ease),
        transform 0.3s var(--ep-ease);
    line-height: 1;
}

.ep-btn--primary {
    background: var(--ep-gold);
    color: var(--ep-white);
}

.ep-btn--primary:hover {
    background: var(--ep-gold-dark);
}

.ep-btn--outline {
    background: transparent;
    color: var(--ep-gold);
    border: 1.5px solid var(--ep-gold);
}

.ep-btn--outline:hover {
    background: var(--ep-gold);
    color: var(--ep-white);
}

.ep-btn--ghost {
    background: transparent;
    color: var(--ep-gray-700);
    border: 1.5px solid var(--ep-gray-200);
}

.ep-btn--ghost:hover {
    border-color: var(--ep-gold);
    color: var(--ep-gold);
}

.ep-btn--full {
    width: 100%;
}


/* ============================================================
   20. TABLET  (≤ 1199px)
   ============================================================ */

@media (max-width: 1199px) {
    :root {
        --ep-section-py: 80px;
        --ep-container-px: 28px;
    }

    .ep-hero__title {
        font-size: 36px;
    }

    .ep-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .ep-card__name {
        font-size: 18px;
    }

    .ep-card__actions {
        flex-direction: column;
    }

    .ep-card__add-btn {
        width: 100%;
    }
}


/* ============================================================
   21. MOBILE  (≤ 767px)
   ============================================================ */

@media (max-width: 767px) {
    :root {
        --ep-section-py: 60px;
        --ep-container-px: 20px;
    }

    .ep-hero {
        padding: 32px 0 0;
    }

    .ep-hero__title {
        font-size: 28px;
    }

    .ep-hero__count {
        font-size: 13px;
    }

    .ep-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 20px;
    }

    .ep-sort {
        margin-left: 0;
        width: 100%;
    }

    .ep-sort__select {
        width: 100%;
        min-width: 0;
    }

    /* Grid: 2 columns on mobile */
    .ep-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Card adjustments */
    .ep-card {
        transform: none !important;
    }

    .ep-card:hover {
        box-shadow: none;
    }

    .ep-card__hover-action {
        display: none;
    }

    .ep-card__body {
        padding: 14px 14px 18px;
    }

    .ep-card__brand {
        font-size: 10px;
    }

    .ep-card__name {
        font-size: 16px;
    }

    .ep-card__desc {
        display: none;
    }

    .ep-card__price {
        margin-bottom: 12px;
    }

    .ep-card__price-current,
    .ep-card__price-sale {
        font-size: 16px;
    }

    .ep-card__actions {
        flex-direction: column;
        gap: 8px;
    }

    .ep-card__add-btn {
        width: 100%;
        height: 48px;
        font-size: 11px;
        padding: 17px 16px;
    }

    .ep-stepper {
        width: 100%;
        height: 44px;
        justify-content: center;
    }

    .ep-stepper__btn {
        width: 44px;
        min-height: 44px;
    }

    .ep-stepper__input {
        flex: 1;
    }

    /* Filter trigger: bottom bar on mobile */
    .ep-filter-trigger {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 16px;
        top: auto;
        transform: none;
        writing-mode: horizontal-tb;
        flex-direction: row;
        justify-content: center;
        border: 1px solid var(--ep-gray-200);
        border-radius: var(--ep-radius);
        padding: 14px 20px;
        background: var(--ep-white);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    }

    .ep-filter-trigger__text {
        writing-mode: horizontal-tb;
        text-orientation: initial;
    }

    /* Filter panel: full width on mobile */
    .ep-filter-panel {
        width: 100%;
        max-width: 100%;
    }

    /* Pagination */
    .pagination {
        margin-top: 40px;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}


/* ============================================================
   22. SMALL MOBILE  (≤ 479px)
   ============================================================ */

@media (max-width: 479px) {
    .ep-hero__title {
        font-size: 24px;
    }

    .ep-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ep-card__visual {
        aspect-ratio: 4 / 5;
    }

    .ep-card__name {
        font-size: 18px;
    }

    .ep-card__desc {
        display: block;
    }
}


/* ============================================================
   23. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ep-card {
        transform: none !important;
    }

    .ep-filter-panel {
        transition: none;
    }

    .ep-filter-overlay {
        transition: none;
    }
}
