.mdp-shop-page input,
.mdp-shop-page button,
.mdp-shop-page select,
.mdp-shop-page textarea {
    /* font: inherit; */
    font-family: inherit;
}

.mdp-shop-page {
    padding-bottom: 72px;
    font-family: inherit;
}

.mdp-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    /* padding: 0px !important; */
}

.mdp-shop-hero {
    margin-bottom: 28px;
    padding: 46px 16px;
    text-align: center;
    background-color: var(--secondary-color);
}

.mdp-shop-hero h1 {
    margin-bottom: 10px;
    font-size: 48px;
    line-height: 78px;
    color: var(--dark-text-color);
}

.mdp-shop-hero__description {
    width: min(720px, 100%);
    margin: 0 auto 32px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--grey-text-color);
}

.mdp-shop-search {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: min(736px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(82, 3, 32, 0.1);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(82, 3, 32, 0.06);
}

.mdp-shop-search__field {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    padding: 0 14px;
}

.mdp-shop-search__field img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mdp-shop-search input {
    flex: 1;
    min-height: 39px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--text-color);
    outline: 0;
    font-size: 14px;
    line-height: 1.2;
}

.mdp-shop-search input::placeholder {
    color: rgba(82, 85, 96, 0.7);
}

.mdp-shop-search button,
.mdp-shop-loadmore,
.mdp-shop-card__button,
.mdp-shop-reset {
    border: 0;
    cursor: pointer;
}

.mdp-shop-search button {
    min-width: 122px;
    min-height: 39px;
    padding: 0 10px;
    border-radius: 4px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin: 6px;
}

.mdp-shop-search button:hover,
.mdp-shop-loadmore:hover,
.mdp-shop-card__button:hover {
    transform: translateY(-1px);
}

.mdp-shop-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.mdp-shop-sidebar {
    position: sticky;
    top: 24px;
    padding: 20px 16px;
    border: 1px solid rgba(219, 219, 219, 1);
    border-radius: 8px;
    background: var(--white);
}

.mdp-shop-sidebar__head,
.mdp-shop-results__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mdp-shop-sidebar__head {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(247, 247, 247, 1);
}

.mdp-shop-sidebar__head p {
    display: flex;
    gap: 10px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
}

.mdp-shop-sidebar__head p img {
    width: 18px;
    height: 18px;
}

.mdp-shop-reset {
    padding: 0;
    background: transparent;
    color: var(--grey-text-color);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: underline;
}

.mdp-shop-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mdp-shop-filter-group {
    border-bottom: 1px solid rgba(82, 3, 32, 0.08);
}

.mdp-shop-filter-group:last-child {
    border-bottom: 0;
}

.mdp-shop-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
    background: transparent;
    text-align: left;
    border: unset;
    padding: unset;
}

.mdp-shop-filter-trigger__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
}

.mdp-shop-filter-trigger__label--price {
    color: rgba(36, 36, 36, 1);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

/* .mdp-shop-filter-group:not(.is-open) .mdp-shop-filter-trigger__arrow {
    transform: rotate(-90deg);
} */

.mdp-shop-filter-panel {
    padding: 0 2px 16px;
}

.mdp-shop-filter-group:not(.is-open) .mdp-shop-filter-panel {
    display: none;
}

.mdp-shop-field-group + .mdp-shop-field-group {
    margin-top: 14px;
}

.mdp-shop-field-group label,
.mdp-shop-filter-group__title,
.mdp-shop-filter-group__title-row {
    display: block;
    margin-bottom: 4px;
    color: var(--grey-text-color);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
}

.mdp-shop-input-icon,
.mdp-shop-filter-panel select {
    position: relative;
}

.mdp-shop-input-icon input,
.mdp-shop-filter-panel select {
    width: 100%;
    /* min-height: 31px; */
    border: 1px solid rgba(219, 219, 219, 1);
    border-radius: 4px;
    background: var(--white);
    color: var(--grey-text-color);
    padding: 7px;
    outline: none;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
}

.mdp-shop-input-icon input {
    padding-right: 38px;
}

.mdp-shop-filter-panel select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(82, 85, 96, 0.7) 50%), linear-gradient(135deg, rgba(82, 85, 96, 0.7) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.mdp-shop-input-icon input::placeholder {
    color: rgba(82, 85, 96, 0.55);
}

.mdp-shop-input-icon__suffix {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-flex;
}

.mdp-shop-input-icon__suffix img {
    width: 16px;
    height: 16px;
}

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

.mdp-shop-pill {
    margin: 0;
}

.mdp-shop-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mdp-shop-pill__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(82, 3, 32, 0.12);
    border-radius: 8px;
    background: var(--white);
    color: rgba(82, 85, 96, 0.75);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mdp-shop-pill__content img {
    width: 13px;
    height: 13px;
}

.mdp-shop-pill input:checked + .mdp-shop-pill__content {
    border-color: rgba(218, 10, 86, 0.4);
    background: rgba(218, 10, 86, 0.06);
    color: var(--primary-color);
    box-shadow: 0 10px 18px rgba(218, 10, 86, 0.1);
}

.mdp-shop-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mdp-shop-check {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.mdp-shop-check input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--primary-color);
}

.mdp-shop-check__label,
.mdp-shop-check__count {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
}

.mdp-shop-check__label {
    color: var(--grey-text-color);
}

.mdp-shop-check__count {
    color: rgba(82, 85, 96, 0.78);
}

.mdp-shop-range {
    display: grid;
    gap: 8px;
    /* padding: 8px 12px 2px; */
}

.mdp-shop-range__values {
    position: relative;
    margin-bottom: 2px;
    height: 10px;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
}

.mdp-shop-range__value {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

.mdp-shop-range__slider {
    position: relative;
    height: 34px;
}

.mdp-shop-range__track,
.mdp-shop-range__progress {
    position: absolute;
    top: 50%;
    height: 14px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.mdp-shop-range__track {
    left: 0;
    right: 0;
    background: rgba(241, 190, 212, 1);
}

.mdp-shop-range__progress {
    background: var(--primary-color);
}

.mdp-shop-range__slider input[type="range"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 30px;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    border: unset;
}

.mdp-shop-range__slider input[type="range"]::-webkit-slider-runnable-track {
    height: 14px;
    background: transparent;
}

.mdp-shop-range__slider input[type="range"]::-moz-range-track {
    height: 14px;
    background: transparent;
}

.mdp-shop-range__slider input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -5px;
    border: 1.5px solid var(--primary-color);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(82, 3, 32, 0.12);
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
}

.mdp-shop-range__slider input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--primary-color);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(82, 3, 32, 0.12);
    cursor: pointer;
    pointer-events: auto;
}

.mdp-shop-range__slider input[type="range"]:focus {
    outline: none;
}

.mdp-shop-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
}

.mdp-shop-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mdp-shop-toggle__track {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(82, 3, 32, 0.14);
    transition: background-color 0.2s ease;
}

.mdp-shop-toggle__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(32, 24, 30, 0.18);
    transition: transform 0.2s ease;
}

.mdp-shop-toggle input:checked + .mdp-shop-toggle__track {
    background: #6cbf3c;
}

.mdp-shop-toggle input:checked + .mdp-shop-toggle__track::after {
    transform: translateX(18px);
}

.mdp-shop-results {
    min-width: 0;
}

.mdp-shop-results__top {
    margin-bottom: 12px;
}

.mdp-shop-results__top h2 {
    font-size: 28px;
    line-height: 1.2;
    color: var(--dark-text-color);
}

.mdp-shop-results__top p {
    margin-top: 6px;
    color: var(--grey-text-color);
}

.mdp-shop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 36px;
    margin-bottom: 20px;
}

.mdp-shop-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(218, 10, 86, 0.15);
    border-radius: 999px;
    background: var(--secondary-color);
    color: var(--dark-text-color);
    font-size: 13px;
    font-weight: 700;
}

.mdp-shop-tag button {
    padding: 0;
    background: transparent;
    border: unset;
    color: inherit;
    font-size: 16px;
    line-height: 1;
}

.mdp-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mdp-shop-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgba(219, 219, 219, 1);
    border-radius: 14px;
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.mdp-shop-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    padding: 20px;
    background: rgba(255, 247, 248, 1);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.mdp-shop-card__media img {
    width: 100%;
    max-width: 180px;
    max-height: 170px;
    height: auto;
    object-fit: contain;
}

.mdp-shop-card__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(82, 3, 32, 0.08);
}

.mdp-shop-card__placeholder img {
    width: 42px;
    height: 42px;
    opacity: 0.55;
}

.mdp-shop-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 14px 12px;
}

.mdp-shop-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.mdp-shop-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(109, 153, 42, 0.14);
    color: #63991d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mdp-shop-card__delivery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.mdp-shop-card__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dark-text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.mdp-shop-card__title a {
    color: var(--dark-text-color);
}

.mdp-shop-card__farm {
    margin: 0 0 4px;
    color: var(--dark-text-color);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.mdp-shop-card__excerpt {
    margin: 0 0 14px;
    color: var(--grey-text-color);
    font-size: 13px;
    line-height: 1.45;
    min-height: 19px;
}

.mdp-shop-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(219, 219, 219, 0.7);
}

.mdp-shop-card__price {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 800;
}

.mdp-shop-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* min-height: 38px; */
    padding: 5.5px 8px;
    border: 1px solid rgba(188, 188, 188, 1);
    border-radius: 4px;
    color: rgba(188, 188, 188, 1);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
}

.mdp-shop-card__button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.mdp-shop-loadmore-wrap {
    margin-top: 28px;
    text-align: center;
}

.mdp-shop-loadmore {
    min-height: 48px;
    padding: 0 28px;
    border-radius: 10px;
    background: var(--dark-text-color);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(82, 3, 32, 0.15);
}

.mdp-shop-loadmore.is-hidden {
    display: none;
}

.mdp-shop-empty {
    grid-column: 1 / -1;
    padding: 42px 24px;
    border: 1px dashed rgba(218, 10, 86, 0.2);
    border-radius: 18px;
    background: var(--white);
    text-align: center;
    color: var(--grey-text-color);
}

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

@media (max-width: 920px) {
    .mdp-shop-layout {
        grid-template-columns: 1fr;
    }

    .mdp-shop-sidebar {
        position: static;
    }

    .mdp-shop-sidebar__head,
    .mdp-shop-results__top {
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .mdp-shop-page {
        padding-bottom: 56px;
    }

    .mdp-shop-hero h1 {
        font-size: 36px;
    }

    .mdp-shop-search {
        flex-direction: column;
        gap: 12px;
    }

    .mdp-shop-search button {
        width: 100%;
    }

    .mdp-shop-sidebar,
    .mdp-shop-results {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .mdp-shop-filter-trigger {
        gap: 12px;
        padding: 18px 0;
    }

    .mdp-shop-filter-trigger__label--price {
        font-size: 26px;
        line-height: 1.2;
    }

    .mdp-shop-tag {
        width: 100%;
        justify-content: space-between;
    }

    .mdp-shop-grid {
        grid-template-columns: 1fr;
    }

    .mdp-shop-card__meta,
    .mdp-shop-card__footer,
    .mdp-shop-results__top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .mdp-shop-page {
        padding-top: 24px;
    }

    .mdp-shop-hero {
        margin-bottom: 24px;
    }

    .mdp-shop-hero h1 {
        font-size: 28px;
    }

    .mdp-shop-sidebar,
    .mdp-shop-results {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .mdp-shop-filter-trigger__label--price {
        font-size: 22px;
    }

    .mdp-shop-range__value {
        font-size: 14px;
    }
}
