/* ==========================================================
   PAPY SHOP - RESPONSIVE STYLES
   Theme: Papi Veterinary Clinic
========================================================== */

.papy-shop-page {
    --papy-primary: var(--color-primary, #8B5CF6);
    --papy-primary-hover: var(--color-secondary, #5B21B6);
    --papy-lilac: #F3E8FF;
    --papy-dark: var(--color-secondary, #5B21B6);
    --papy-text: var(--color-text, #333333);
    --papy-muted: #6e5e80;
    --papy-border: #e2d7f3;

    direction: rtl;
    font-family: var(--font-main, 'Vazirmatn', Tahoma, sans-serif) !important;
    color: var(--papy-text);
    background: #fff;
    overflow: hidden;
    width: 100%;
}

.papy-shop-page,
.papy-shop-page * {
    box-sizing: border-box !important;
    font-family: var(--font-main, 'Vazirmatn', Tahoma, sans-serif) !important;
}

.papy-shop-page a {
    text-decoration: none !important;
}

.papy-container {
    width: min(92%, 1380px);
    margin: 0 auto;
}

/* HERO */
.papy-hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, #fbf8ff 0%, #f4ebff 53%, #ebdcfc 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--papy-border);
}

.papy-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
    max-width: 700px;
}

.papy-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--papy-primary);
    font-size: 14px;
    font-weight: 700;
}

.papy-eyebrow:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--papy-primary);
    box-shadow: 0 0 0 5px rgba(139, 92, 246, .15);
    flex-shrink: 0;
}

.papy-small-eyebrow {
    margin-bottom: 4px;
}

.papy-page-title {
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: var(--papy-dark);
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.5;
    font-weight: 800;
}

.papy-page-title span {
    color: var(--papy-primary);
}

.papy-page-description {
    max-width: 600px;
    margin: 0;
    color: var(--papy-muted);
    font-size: 15px;
    line-height: 1.9;
}

/* SECTION HEADINGS */
.papy-category-section {
    padding: 40px 0;
}

.papy-section-heading,
.papy-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.papy-section-title {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--papy-dark);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.6;
}

.papy-clear-category {
    color: var(--papy-primary) !important;
    font-size: 13px;
    font-weight: 700;
    transition: opacity .2s ease;
}

.papy-clear-category:hover {
    opacity: .8;
}

/* CATEGORIES */
.papy-categories {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.papy-category-card {
    overflow: hidden;
    display: block;
    min-width: 0;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--papy-border);
    box-shadow: 0 7px 24px rgba(40, 24, 61, .045);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.papy-category-card:hover,
.papy-category-card.active {
    transform: translateY(-5px);
    border-color: var(--papy-primary);
    box-shadow: 0 15px 35px rgba(139, 92, 246, .12);
}

.papy-category-card.active {
    background: var(--papy-lilac);
}

.papy-category-image {
    height: 135px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle, #fff, var(--papy-lilac));
}

.papy-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

.papy-category-card:hover .papy-category-image img {
    transform: scale(1.07);
}

.papy-category-info {
    min-height: 68px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.papy-category-info strong {
    color: var(--papy-dark);
    font-size: 14px;
    font-weight: 700;
}

.papy-category-info span {
    margin-top: 4px;
    color: var(--papy-muted);
    font-size: 12px;
}

/* FILTER BOX */
.papy-filter-box {
    margin: 30px 0 50px;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--papy-lilac) 100%);
    border: 1px solid var(--papy-border);
    box-shadow: 0 10px 35px rgba(40, 24, 61, .06);
}

.papy-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--papy-border);
}

.papy-filter-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.papy-filter-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--papy-lilac);
    color: var(--papy-primary);
    flex-shrink: 0;
}

.papy-filter-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.papy-filter-title strong {
    display: block;
    color: var(--papy-dark);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
}

.papy-filter-title small {
    display: block;
    color: var(--papy-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* MOBILE ACCORDION BUTTON */
.papy-mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 11px 15px;
    border: 1px solid var(--papy-border);
    border-radius: 12px;
    background: #fff;
    color: var(--papy-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.papy-mobile-filter-toggle:hover {
    background: var(--papy-lilac);
    border-color: var(--papy-primary);
}

.papy-mobile-filter-toggle:focus-visible {
    outline: 2px solid var(--papy-primary);
    outline-offset: 3px;
}

.papy-mobile-filter-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.papy-filter-chevron {
    transition: transform .25s ease;
}

.papy-mobile-filter-toggle[aria-expanded="true"] .papy-filter-chevron {
    transform: rotate(180deg);
}

/* FILTER PANEL */
.papy-filter-panel {
    display: block;
    width: 100%;
    min-width: 0;
}

.papy-filter-form {
    display: block;
    width: 100%;
    margin: 0;
}

.papy-filter-box .papy-filter-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
    width: 100% !important;
}

.papy-filter-box .papy-filter-field {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

.papy-filter-box .papy-filter-field > label {
    color: var(--papy-dark);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    display: block;
    margin: 0;
}

.papy-filter-box .papy-filter-field input:not([type="checkbox"]),
.papy-filter-box .papy-filter-field select {
    width: 100% !important;
    height: 46px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid var(--papy-border) !important;
    outline: 0 !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    color: var(--papy-dark) !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    box-shadow: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.papy-filter-box .papy-filter-field input:focus,
.papy-filter-box .papy-filter-field select:focus {
    border-color: var(--papy-primary) !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .1) !important;
}

/* SEARCH FIELD */
.papy-filter-box .papy-input-icon {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    display: block !important;
}

.papy-filter-box .papy-input-icon input {
    padding: 0 14px 0 44px !important;
}

.papy-filter-box .papy-input-icon svg {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: var(--papy-primary) !important;
    stroke-width: 2 !important;
    pointer-events: none !important;
    margin: 0 !important;
}

/* TOGGLE FIELDS */
.papy-filter-box .papy-toggle-field {
    min-height: 46px;
    height: auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    background: #fff !important;
    border: 1px solid var(--papy-border) !important;
    display: flex !important;
}

.papy-filter-box .papy-check {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
    user-select: none;
    width: 100% !important;
    margin: 0 !important;
    white-space: normal !important;
}

.papy-filter-box .papy-check input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.papy-filter-box .papy-switch {
    width: 36px;
    height: 20px;
    border-radius: 20px;
    background: var(--papy-border);
    position: relative;
    transition: background .25s ease;
    flex-shrink: 0;
}

.papy-filter-box .papy-switch::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 2px;
    right: 2px;
    border-radius: 50%;
    background: #fff;
    transition: transform .25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.papy-filter-box .papy-check input:checked + .papy-switch {
    background: var(--papy-primary);
}

.papy-filter-box .papy-check input:checked + .papy-switch::after {
    transform: translateX(-16px);
}

.papy-filter-box .papy-check input:focus-visible + .papy-switch {
    outline: 2px solid var(--papy-primary);
    outline-offset: 3px;
}

.papy-filter-box .papy-check span:last-child {
    color: var(--papy-dark);
    font-size: 13px;
    font-weight: 600;
}

/* FILTER ACTIONS */
.papy-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--papy-border);
}

.papy-filter-submit {
    min-height: 46px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--papy-primary-hover), var(--papy-primary));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, .25);
}

.papy-filter-submit:hover {
    background: linear-gradient(135deg, var(--papy-primary), var(--papy-primary-hover));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, .35);
}

.papy-filter-submit svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.papy-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    color: var(--papy-muted) !important;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s ease;
}

.papy-filter-reset svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.papy-filter-reset:hover {
    color: var(--papy-primary) !important;
}

/* RESULTS */
.papy-results-head {
    margin-bottom: 28px;
}

.papy-result-count {
    color: var(--papy-muted);
    font-size: 14px;
}

.papy-result-count strong {
    color: var(--papy-primary);
    font-weight: 800;
}

/* PRODUCT GRID */
.papy-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.papy-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--papy-border);
    box-shadow: 0 10px 30px rgba(40, 24, 61, .05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.papy-product-card:hover {
    transform: translateY(-6px);
    border-color: var(--papy-primary);
    box-shadow: 0 18px 40px rgba(139, 92, 246, .12);
}

.papy-product-image-wrap {
    position: relative;
    height: 240px;
    padding: 14px;
    overflow: hidden;
    background: radial-gradient(circle, #fff, var(--papy-lilac));
    display: flex;
    align-items: center;
    justify-content: center;
}

.papy-product-image-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.papy-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

.papy-product-card:hover .papy-product-image {
    transform: scale(1.06);
}

.papy-sale-badge,
.papy-stock-badge {
    position: absolute;
    top: 14px;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.papy-sale-badge {
    right: 14px;
    background: var(--papy-primary);
}

.papy-stock-badge {
    left: 14px;
    background: var(--papy-muted);
}

.papy-product-view {
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--papy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.papy-product-card:hover .papy-product-view {
    opacity: 1;
    transform: translateY(0);
}

.papy-product-view svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.papy-product-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.papy-product-category {
    color: var(--papy-muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.papy-product-title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.papy-product-title a {
    color: var(--papy-dark) !important;
    transition: color .25s ease;
}

.papy-product-title a:hover {
    color: var(--papy-primary) !important;
}

.papy-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.papy-stars {
    color: var(--papy-border);
    font-size: 13px;
    display: flex;
    gap: 2px;
}

.papy-stars span.active {
    color: #ffb800;
}

.papy-rating-count {
    color: var(--papy-muted);
    font-size: 12px;
}

.papy-product-price {
    margin-top: auto;
    margin-bottom: 14px;
    color: var(--papy-primary);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    direction: rtl;
    overflow-wrap: anywhere;
}

.papy-product-price del {
    color: var(--papy-muted);
    font-size: 13px;
    font-weight: 400;
    text-decoration: line-through;
}

.papy-product-price ins {
    text-decoration: none;
    color: var(--papy-primary);
    font-weight: 800;
}

.papy-product-price .woocommerce-Price-amount {
    max-width: 100%;
}

.papy-cart-button {
    min-height: 44px;
    width: 100%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    background: var(--papy-lilac);
    color: var(--papy-primary) !important;
    font-size: 13px;
    font-weight: 700;
    transition: all .25s ease;
    text-align: center;
}

.papy-product-card:hover .papy-cart-button,
.papy-cart-button:hover {
    background: linear-gradient(135deg, var(--papy-primary-hover), var(--papy-primary));
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, .25);
}

.papy-cart-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* PAGINATION */
.papy-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 50px;
}

.papy-page-number,
.papy-page-arrow {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--papy-border);
    color: var(--papy-dark) !important;
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}

.papy-page-number.active,
.papy-page-number:hover,
.papy-page-arrow:hover {
    background: var(--papy-primary);
    border-color: var(--papy-primary);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, .25);
}

/* EMPTY STATE */
.papy-no-products {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 18px;
    border: 1px dashed var(--papy-border);
    margin-top: 20px;
}

.papy-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--papy-lilac);
    color: var(--papy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.papy-empty-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.papy-no-products h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--papy-dark);
}

.papy-no-products p {
    margin: 0 0 20px;
    color: var(--papy-muted);
    font-size: 14px;
    line-height: 1.9;
}

.papy-no-products a {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--papy-primary-hover), var(--papy-primary));
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}

.papy-no-products a:hover {
    background: linear-gradient(135deg, var(--papy-primary), var(--papy-primary-hover));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, .3);
}

/* TABLET */
@media (max-width: 1200px) {
    .papy-categories {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .papy-filter-box .papy-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .papy-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .papy-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .papy-filter-box .papy-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .papy-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .papy-container {
        width: 92%;
    }
    .papy-hero-content {
        padding: 30px 0;
    }
    .papy-page-title {
        font-size: clamp(22px, 5vw, 30px);
    }
    .papy-page-description {
        font-size: 14px;
    }
    .papy-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .papy-category-image {
        height: 115px;
    }
    .papy-category-info {
        padding: 10px;
    }
    .papy-category-info strong {
        font-size: 13px;
    }

    .papy-shop-page .papy-filter-box {
        margin: 24px 0 36px;
        padding: 16px;
        border-radius: 16px;
    }
    .papy-shop-page .papy-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 0;
        padding: 0;
        border-bottom: 0;
    }
    .papy-shop-page .papy-filter-title {
        flex: 1 1 auto;
        gap: 10px;
    }
    .papy-shop-page .papy-filter-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .papy-shop-page .papy-filter-icon svg {
        width: 19px;
        height: 19px;
    }
    .papy-shop-page .papy-filter-title strong {
        font-size: 13px;
        line-height: 1.8;
    }
    .papy-shop-page .papy-filter-title small {
        font-size: 11px;
        line-height: 1.8;
    }

    .papy-shop-page .papy-mobile-filter-toggle {
        display: inline-flex;
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .papy-shop-page .papy-filter-panel {
        display: none !important;
        width: 100%;
        min-width: 0;
        margin-top: 0;
    }

    .papy-shop-page .papy-filter-box.is-open .papy-filter-panel {
        display: block !important;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--papy-border);
        animation: papyFilterReveal .25s ease both;
    }

    @keyframes papyFilterReveal {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .papy-shop-page .papy-filter-form {
        display: block !important;
        width: 100%;
        margin: 0;
    }

    .papy-shop-page .papy-filter-box .papy-filter-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .papy-shop-page .papy-filter-box .papy-filter-field {
        width: 100% !important;
        min-width: 0 !important;
    }

    .papy-shop-page .papy-filter-box .papy-filter-field > label {
        font-size: 13px;
        white-space: normal;
    }

    .papy-shop-page .papy-filter-box .papy-filter-field input:not([type="checkbox"]),
    .papy-shop-page .papy-filter-box .papy-filter-field select {
        width: 100% !important;
        max-width: 100% !important;
        height: 46px !important;
        font-size: 14px !important;
    }

    .papy-shop-page .papy-filter-box .papy-toggle-field {
        padding: 14px !important;
        gap: 14px !important;
    }

    .papy-shop-page .papy-filter-box .papy-check {
        min-height: 24px;
    }

    .papy-shop-page .papy-filter-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 20px;
        padding-top: 16px;
    }

    .papy-shop-page .papy-filter-submit {
        width: 100%;
        min-height: 46px;
    }

    .papy-shop-page .papy-filter-reset {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }

    .papy-results-head {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .papy-section-title {
        font-size: 20px;
    }

    .papy-result-count {
        font-size: 12px;
        white-space: nowrap;
        padding-top: 24px;
    }

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

    .papy-product-image-wrap {
        height: 180px;
        padding: 10px;
    }

    .papy-product-content {
        padding: 12px;
    }

    .papy-product-title {
        font-size: 13px;
    }

    .papy-product-price {
        font-size: 14px;
        gap: 6px;
    }

    .papy-product-view {
        opacity: 1;
        transform: none;
        width: 32px;
        height: 32px;
        left: 10px;
        bottom: 10px;
    }

    .papy-cart-button {
        font-size: 12px;
        gap: 5px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .papy-shop-page .papy-container {
        width: 94%;
    }
    .papy-shop-page .papy-section-heading {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .papy-shop-page .papy-section-title {
        font-size: 18px;
    }
    .papy-shop-page .papy-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .papy-shop-page .papy-category-image {
        height: 100px;
    }
    .papy-shop-page .papy-filter-box {
        padding: 13px;
    }
    .papy-shop-page .papy-filter-header {
        gap: 8px;
    }
    .papy-shop-page .papy-filter-title {
        gap: 8px;
    }
    .papy-shop-page .papy-filter-icon {
        width: 34px;
        height: 34px;
    }
    .papy-shop-page .papy-filter-title strong {
        font-size: 12px;
    }
    .papy-shop-page .papy-filter-title small {
        font-size: 10px;
    }
    .papy-shop-page .papy-mobile-filter-toggle {
        padding: 9px;
        gap: 5px;
    }
    .papy-shop-page .papy-mobile-filter-toggle svg {
        width: 15px;
        height: 15px;
    }
    .papy-shop-page .papy-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .papy-shop-page .papy-product-image-wrap {
        height: 155px;
    }
    .papy-shop-page .papy-product-content {
        padding: 10px;
    }
    .papy-shop-page .papy-product-title {
        font-size: 12px;
        line-height: 1.8;
    }
    .papy-shop-page .papy-product-price {
        font-size: 12px;
    }
    .papy-shop-page .papy-product-price del {
        font-size: 11px;
    }
    .papy-shop-page .papy-cart-button {
        min-height: 40px;
        font-size: 11px;
    }
    .papy-shop-page .papy-results-head {
        flex-wrap: wrap;
    }
    .papy-shop-page .papy-result-count {
        padding-top: 0;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .papy-shop-page *,
    .papy-shop-page *::before,
    .papy-shop-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile filter toggle fix */
.papy-shop-page .papy-mobile-filter-toggle,
.papy-shop-page .papy-mobile-filter-toggle:focus,
.papy-shop-page .papy-mobile-filter-toggle:active,
.papy-shop-page .papy-mobile-filter-toggle:hover {
    background: #FFFFFF !important;
    color: var(--papy-primary) !important;
    border: 1px solid var(--papy-primary) !important;
    opacity: 1 !important;
    box-shadow: none !important;
    outline: none !important;
}

.papy-shop-page .papy-mobile-filter-toggle svg {
    stroke: var(--papy-primary) !important;
    color: var(--papy-primary) !important;
}

.papy-shop-page .papy-filter-box.open .papy-mobile-filter-toggle {
    background: var(--papy-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--papy-primary) !important;
}

.papy-shop-page .papy-filter-box.open .papy-mobile-filter-toggle svg {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
}

.papy-shop-page .papy-filter-box.open .papy-mobile-filter-toggle:hover,
.papy-shop-page .papy-filter-box.open .papy-mobile-filter-toggle:focus,
.papy-shop-page .papy-filter-box.open .papy-mobile-filter-toggle:active {
    background: var(--papy-primary-hover) !important;
    color: #FFFFFF !important;
    border-color: var(--papy-primary-hover) !important;
}

.papy-shop-page .papy-filter-box.open .papy-mobile-filter-toggle:hover svg,
.papy-shop-page .papy-filter-box.open .papy-mobile-filter-toggle:focus svg,
.papy-shop-page .papy-filter-box.open .papy-mobile-filter-toggle:active svg {
    stroke: #FFFFFF !important;
}