/* ── Outer wrapper ── */
.ps-block {
    margin-bottom: 0;
}

/* ── Decorative borders ── */
.ps-border {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
    background: #fff;

    @media (max-width: 700px) {
        flex-direction: column;
    }
}

.ps-border-top {
    padding-top: 16px;
    padding-bottom: 0;
}

.ps-border-bottom {
    padding-top: 0;
    padding-bottom: 16px;
}

.ps-border-img {
    flex: 0 0 auto;
    max-height: 30px;
    object-fit: none;
    object-position: center;

    @media (max-width: 950px) {
        object-fit: contain;
        max-height: 24px;
    }

    @media (max-width: 850px) {
        object-fit: contain;
        max-height: 16px;
    }

    @media (max-width: 700px) {
        object-fit: contain;
    }
}

.ps-border-img-flipped {
    transform: scaleX(-1);
}

.ps-title {
    white-space: nowrap;
    font-size: 28px;
    font-weight: 900;
    font-family: 'Gelo', Arial, sans-serif;;
    text-transform: uppercase;
    color: #b0001f;
    margin: 0;
    padding: 0 16px;
    letter-spacing: 0.04em;

    @media (max-width: 600px) {
        font-size: 20px;
    }
}

/* ── Body: three-zone layout ── */
.ps-body {
    font-size: 0;
}

/* ── Pattern bands (top & bottom) ── */
.ps-pattern-band {
    width: 100%;
    line-height: 0;
    display: block;
    margin: 0;
    padding: 0;
}

.ps-pattern-band img {
    width: 100%;
    display: block;
    object-fit: fill;
    margin: 0;
    padding: 0;
}

.ps-pattern-band-bottom {
    margin-top: -2px !important;
    padding-top: 0px;
    background-image: url(/dona-maria/wp-content/themes/maria-theme/inc/assets/img/product-pattern-bottom.png);
    background-repeat: repeat-x;
    background-size: auto 80px;
    background-position: top center;
    height: 80px;
    margin-bottom: 40px;
}

.ps-pattern-band-top {
    margin-bottom: -2px !important;
    padding-top: 0px;
    background-image: url(/dona-maria/wp-content/themes/maria-theme/inc/assets/img/product-pattern-top.png);
    background-repeat: repeat-x;
    background-size: auto 80px;
    background-position: top center;
    height: 80px;
    margin-top: 40px;
}

/* ── Gray product grid zone ── */
.ps-background {
    background-color: #eeebea;
}
.ps-grid {
    padding: 20px 20px;
    box-sizing: border-box;
    font-size: 16px;
    margin: 0;
    overflow: visible;
}

.ps-grid-inner {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 40px 80px;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .ps-grid-inner {
        grid-template-columns: 1fr;
    }
}

.ps-grid-inner>*:only-child {
    grid-column: 1 / -1;
}

/* ── Product card ── */
.ps-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 300px;
    text-decoration: none !important;
    color: inherit !important;
}

.ps-product-img {
    width: 100%;
    max-width: 250px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.ps-card:hover .ps-product-img {
    transform: translateY(-4px);
}

.ps-card:hover .ps-product-name,
.ps-card:hover .ps-product-flavor,
.ps-card:hover .ps-size {
    color: #b0001f;
}

.ps-card:hover .ps-product-img-wrapper {
    background-image: url('../../inc/assets/img/product-hover-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.ps-product-name {
    font-size: 12px;
    font-family: 'Gelo', Arial, sans-serif;
    font-weight: bold;
    color: #108140;
    display: block;
    text-transform: uppercase;
}

.ps-product-flavor {
    font-size: 23px;
    font-family: 'Gelo', Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: #108140;
    line-height: 1.2;
}

.ps-size {
    font-size: 12px;
    font-family: 'Gelo', Arial, sans-serif;
    font-weight: bold;
    color: #7e6aa5;
    display: block;
    text-transform: uppercase;
}

/* ── Buy now / SmartButton ── */
.buy-now-button {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
}

.buy-now-button > div {
    width: auto;
}

div[data-sc-id][data-sc-type="SmartButton"] {
    min-width: unset !important;
    max-width: unset !important;
    width: auto !important;
    margin: 0 auto;
    position: relative;
    margin-bottom: 10px;
}

button.sc-btn-ec {
    min-width: 150px !important;
    max-width: 150px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    font-size: 1rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* ── Responsive ── */
@media (max-width: 600px) {

    .ps-card {
        width: 160px;
    }

    .ps-product-img {
        max-width: 130px;
    }

    .ps-title {
        font-size: 16px;
    }
}