.ps-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.ps-product-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 12px 12px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: margin-top 0.3s ease;
}
.ps-product-card:hover {
    margin-top: -5px;
}
.ps-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    margin-bottom: 12px;
    text-decoration: none;
}
.ps-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ps-product-card__media .product-tag-images {
    position: absolute;
    top: 0;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    gap: 4px;
    width: auto;
}
.ps-product-card__title {
    margin: 0 0 20px;
    min-height: 3em;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}
.ps-product-card__title a {
    color: #E6050D;
    text-decoration: none;
}
.ps-product-card__title a:hover {
    color: #E6050D;
}
.ps-product-card__desc {
    margin: 0 0 10px;
    color: #4F1D05;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
    text-align: left;
    overflow-wrap: anywhere;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(3em + 22px);
}
.ps-product-card__desc p {
    margin: 0;
}
.ps-product-card__desc--empty .product-desc-wrap {
    flex: 1 1 auto;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ps-product-card__desc-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3em;
    margin: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(251, 213, 166, 0.28), rgba(251, 213, 166, 0.1));
}
.ps-desc-placeholder-ornament {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FBD5A6;
    box-shadow: 18px 0 0 #FBD5A6, -18px 0 0 #FBD5A6;
}
.ps-product-card__price {
    margin: 0 0 8px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #E6050D;
    line-height: 28px;
    text-align: center;
}
.ps-product-card__sizes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 12px;
}
.ps-product-card__size {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.ps-product-card__size-price {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    color: #E6050D;
}
.ps-product-card__size-weight {
    font-size: 14px;
    color: #4D4D4D;
}
.ps-product-card__actions {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 10px;
}
.ps-product-card__btn,
.ps-product-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 30px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    background: #FBD5A6;
    color: #fff !important;
}
.ps-product-card__btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 12px 18px;
}
.ps-product-card__more {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
}
.ps-product-card__more-icon {
    display: block;
    width: 18px;
    height: 18px;
}
.ps-product-card__btn:hover,
.ps-product-card__more:hover {
    background: #E6050D;
    color: #fff !important;
}
.ps-catalog-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    margin: 20px 0 12px;
}
.ps-catalog-load-more-wrap[hidden] {
    display: none !important;
}
.ps-catalog-load-more {
    display: none;
}
.ps-catalog-load-more__spinner {
    display: none;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(230, 5, 13, 0.2);
    border-right-color: #E6050D;
    border-radius: 50%;
    animation: ps-catalog-spin 0.7s linear infinite;
    flex: 0 0 28px;
}
.ps-catalog-load-more-wrap.is-loading .ps-catalog-load-more__spinner {
    display: inline-block;
}
@keyframes ps-catalog-spin {
    to {
        transform: rotate(360deg);
    }
}
.ps-product-grid.filter-loading {
    opacity: 0.65;
    pointer-events: none;
}
body.ps-native-archive .elementor-widget-loop-grid .e-loop-container,
body.ps-native-archive .elementor-widget-loop-grid .elementor-loop-container,
body.ps-native-archive .e-loop__load-more,
body.ps-native-archive .e-loop-pagination {
    display: none !important;
}
@media (max-width: 1024px) {
    .ps-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (max-width: 768px) {
    .ps-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }
    .ps-product-card {
        padding: 10px 8px 14px;
        border-radius: 10px;
    }
    .ps-product-card:hover {
        margin-top: 0;
    }
    .ps-product-card__media {
        margin-bottom: 8px;
    }
    .ps-product-card__media .product-tag-images {
        left: 4px;
        gap: 2px;
        transform: scale(0.85);
        transform-origin: top left;
    }
    .ps-product-card__title {
        font-size: 14px;
        line-height: 18px;
        min-height: 0;
        margin-bottom: 8px;
        overflow-wrap: anywhere;
    }
    .ps-product-card__desc {
        font-size: 12px;
        line-height: 15px;
        min-height: 0;
        margin-bottom: 8px;
    }
    .ps-product-card__desc--empty .product-desc-wrap,
    .ps-product-card__desc-placeholder {
        min-height: 2.5em;
    }
    .ps-product-card__price,
    .ps-product-card__size-price {
        font-size: 15px;
        line-height: 20px;
        margin-bottom: 6px;
    }
    .ps-product-card__size-weight {
        font-size: 12px;
    }
    .ps-product-card__sizes {
        gap: 4px;
        margin-bottom: 8px;
    }
    .ps-product-card__btn {
        width: auto;
        flex: 1 1 auto;
        padding: 10px 12px;
        font-size: 13px;
        line-height: 16px;
        white-space: nowrap;
    }
    .ps-product-card__more {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
    }
    .ps-product-card__more-icon {
        width: 16px;
        height: 16px;
    }
    .ps-product-card__actions {
        flex-direction: row;
        gap: 8px;
        padding-bottom: 2px;
        align-items: center;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .ps-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .ps-product-card {
        padding: 8px 6px 12px;
    }
    .ps-product-card__title {
        font-size: 13px;
        line-height: 16px;
        margin-bottom: 6px;
    }
    .ps-product-card__desc {
        font-size: 11px;
        line-height: 14px;
    }
    .ps-product-card__btn {
        padding: 9px 8px;
        font-size: 12px;
    }
    .ps-product-card__more {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
    }
    .ps-product-card__more-icon {
        width: 15px;
        height: 15px;
    }
}

.ps-native-canvas .e-off-canvas__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.ps-native-canvas .e-off-canvas__main {
    position: relative;
    width: min(1080px, 96vw);
    max-height: 94vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.ps-native-canvas .e-off-canvas__content {
    position: relative;
    overflow: auto;
    max-height: 94vh;
    padding: 16px 20px 24px;
}
.ps-canvas__close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 6;
    width: 44px;
    height: 44px;
    line-height: 0;
}
.ps-canvas__close svg {
    width: 44px;
    height: 44px;
    display: block;
}
.ps-canvas__hero {
    position: relative;
    flex: 0 0 280px;
    max-width: 280px;
    margin: 0;
}
.ps-canvas__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.ps-canvas__hero .product-tag-images {
    position: absolute;
    top: 0;
    left: 8px;
    width: auto;
}
.ps-canvas__top {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin: 8px 0 16px;
}
.ps-canvas__info {
    flex: 1 1 auto;
    min-width: 0;
}
.ps-canvas__title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    position: relative;
}
.ps-canvas__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    color: #4F1D05;
}
.ps-canvas__desc {
    max-width: none;
    margin: 0 0 12px;
    text-align: left;
    color: #4F1D05;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}
.ps-canvas__kbju {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #4F1D05;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.ps-price-weight {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ps-price-weight__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(251, 213, 166, 0.28);
}

.ps-price-weight--single .ps-price-weight__row {
    justify-content: flex-start;
    gap: 16px;
}

.ps-price-weight__label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #4F1D05;
}

.ps-price-weight__meta {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ps-price-weight__price {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #E6050D;
    white-space: nowrap;
}

.ps-price-weight__weight {
    font-size: 14px;
    color: #4D4D4D;
    white-space: nowrap;
}

.ps-nutrition-bubble {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-sizing: border-box;
    align-self: flex-start;
    position: relative;
    z-index: 5;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
}

.ps-nutrition-bubble__icon {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 28px;
    height: 28px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.ps-nutrition-bubble__icon img {
    display: block;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

/* Ниже и левее иконки; fixed при .is-open задаёт JS — не раздувает модалку */
.ps-nutrition-bubble__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: -30%;
    margin: 0 6px 0 0;
    transform: none;
    width: max-content;
    max-width: min(280px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 12px;
    background: #8f8f8f;
    box-sizing: border-box;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ps-nutrition-bubble__panel::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 10px;
    left: auto;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #8f8f8f;
}

.ps-nutrition-bubble:hover .ps-nutrition-bubble__panel,
.ps-nutrition-bubble:focus-within .ps-nutrition-bubble__panel,
.ps-nutrition-bubble.is-open .ps-nutrition-bubble__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ps-nutrition-bubble.is-open .ps-nutrition-bubble__panel {
    position: fixed;
    z-index: 10060;
}

.ps-nutrition-bubble__title {
    display: none;
}

.ps-nutrition-bubble__body {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.45;
}

.ps-nutrition-bubble__body p {
    margin: 0 0 6px;
}

.ps-nutrition-bubble__body p:last-child {
    margin-bottom: 0;
}

.ps-nutrition-bubble__body strong,
.ps-nutrition-bubble__body b {
    font-weight: 700;
    color: #fff;
}

.ps-nutrition-bubble__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ps-nutrition-bubble__list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #fff;
}

.ps-nutrition-bubble__list strong {
    font-weight: 700;
    white-space: nowrap;
}

.ps-nutrition-bubble__weight {
    margin-top: 6px;
}
.ps-simple-buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0 0;
}
.ps-simple-buy .custom-quantity {
    display: flex;
    align-items: center;
    background: #C5C7C6;
    padding: 6px 8px;
    border-radius: 30px;
    gap: 5px;
}
.ps-simple-buy .qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #E6050D;
    color: #fff;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
}
.ps-simple-buy .qty-btn.qty-plus {
    background: #2BB75E;
}
.ps-simple-buy .qty-input {
    width: 36px !important;
    height: 32px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    text-align-last: center;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 32px !important;
    -moz-appearance: textfield;
    appearance: textfield;
}
.ps-simple-buy .constructor-add-to-cart,
.ps-simple-buy .ps-simple-add {
    padding: 15px 40px;
    background: #29B85C;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}
.ps-native-canvas .universal-constructor {
    margin: 8px auto 0;
}
@media (max-width: 768px) {
    .ps-native-canvas .e-off-canvas__main {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    .ps-native-canvas .e-off-canvas__content {
        max-height: 100vh;
        padding: 48px 12px 20px;
    }
    .ps-canvas__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .ps-canvas__hero {
        max-width: 220px;
        flex-basis: auto;
    }
    .ps-canvas__title-row {
        justify-content: center;
        width: 100%;
    }
    .ps-canvas__title,
    .ps-canvas__desc {
        text-align: center;
    }
    .ps-canvas__title {
        font-size: 20px;
        flex: 0 1 auto;
    }
    .ps-canvas__desc {
        font-size: 14px;
    }
    .ps-canvas__kbju {
        justify-content: center;
    }
    .ps-nutrition-bubble {
        flex: 0 0 auto;
        max-width: none;
        width: auto;
    }
    .ps-nutrition-bubble__panel {
        left: auto;
        right: -30%;
        margin-right: 6px;
        transform: none;
    }
    .ps-nutrition-bubble__panel::before {
        left: auto;
        right: 10px;
    }
    .ps-price-weight__row {
        padding: 8px 10px;
    }
    .ps-price-weight__label {
        font-size: 14px;
    }
    .ps-price-weight__price {
        font-size: 15px;
    }
    .ps-simple-buy {
        gap: 12px;
        margin-top: 12px;
    }
    .ps-simple-buy .constructor-add-to-cart,
    .ps-simple-buy .ps-simple-add {
        padding: 12px 28px;
        font-size: 16px;
    }
}

/* Canvas open preloader (category + single related carousel) */
.ps-canvas-loader {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.ps-canvas-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ps-canvas-loader__spin {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ff8a0e;
    border-radius: 50%;
    animation: ps-canvas-spin 0.7s linear infinite;
}

@keyframes ps-canvas-spin {
    to {
        transform: rotate(360deg);
    }
}

body.ps-canvas-no-scroll {
    overflow: hidden;
}

.ps-product-card.is-loading-canvas,
.main-products-item.is-loading-canvas {
    opacity: 0.55;
    pointer-events: none;
}
