
/* Keep native pagination clear of product rows in both grid and list modes.
   Padding does not collapse through the preceding comparison form. */
html .st-modernized #product-listing-container > form[data-product-compare],
html .st-modernized #product-listing-container > form[data-product-compare] > .productGrid {
    margin-bottom: 0;
}
html .st-modernized #product-listing-container > .pagination,
html .st-modernized #search-results-content > .pagination {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 24px;
    margin: 0 0 32px;
    padding: 32px 0 0;
    width: 100%;
}
html .st-modernized #product-listing-container > .pagination .pagination-info,
html .st-modernized #search-results-content > .pagination .pagination-info {
    display: block;
    margin: 0 auto 0 0;
    padding: 0;
    color: #40566a;
    line-height: 1.5;
}
html .st-modernized #product-listing-container > .pagination .pagination-list,
html .st-modernized #search-results-content > .pagination .pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}
html .st-modernized #product-listing-container > .pagination .pagination-item,
html .st-modernized #search-results-content > .pagination .pagination-item {
    float: none;
    margin: 0;
    position: static;
}
html .st-modernized #product-listing-container > .pagination .pagination-link,
html .st-modernized #search-results-content > .pagination .pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px !important;
    color: #173d54;
    line-height: 1.4;
}
html .st-modernized #product-listing-container > .pagination .pagination-link .icon,
html .st-modernized #search-results-content > .pagination .pagination-link .icon {
    margin: 0;
    width: 14px;
    height: 14px;
}
html .st-modernized #product-listing-container > .pagination .pagination-item--current,
html .st-modernized #search-results-content > .pagination .pagination-item--current {
    border-color: #173d54;
    background: #edf3f6;
}
html .st-modernized #product-listing-container > .pagination .pagination-item--current .pagination-link,
html .st-modernized #search-results-content > .pagination .pagination-item--current .pagination-link {
    font-weight: 700;
}
@media (max-width: 800px) {
    html .st-modernized #product-listing-container > .pagination,
    html .st-modernized #search-results-content > .pagination {
        padding-top: 24px;
        margin-bottom: 24px;
        gap: 12px;
    }
    html .st-modernized #product-listing-container > .pagination .pagination-info,
    html .st-modernized #search-results-content > .pagination .pagination-info {
        flex-basis: 100%;
        margin: 0;
        text-align: center;
    }
}

        /* The phone search row sits outside the header. Keep it and its suggestions
   out of the open category menu without changing the closed-menu layout. */
@media (max-width: 800px) {
    body.has-activeNavPages > .emthemesModez-quickSearch--mobileOnly,
    body.has-activeNavPages > .emthemesModez-quickSearch--mobileOnly #quickSearch {
        visibility: hidden;
        pointer-events: none;
    }
}

        
/* The native category menu fills the phone screen. Temporarily hide the
   purchase dock so it cannot cover menu links or receive taps through them. */
@media (max-width: 800px) {
    body.has-activeNavPages > .st-mobilePurchase {
        visibility: hidden;
        pointer-events: none;
    }
}
/* Store refinements. Use the existing search-price orange for selling prices. */
html .st-categoryModern .productGrid .card .price--main,
html .papaSupermarket-page--pages-search .productGrid .card .price--main,
html .papaSupermarket-page--pages-search #product-listing-container.mode-1 .card-aside .price--main {
    color: #cc5500;
    font-size: 22px;
    font-weight: 700;
}
html .st-categoryModern .productGrid .card > .card-figcaption > .card-text--price {
    margin: 0 0 12px;
}
html .st-categoryModern #product-listing-container.mode-1 .productGrid .card > .card-figcaption {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #e1e7ec;
    background: #f8fafb;
    padding: 20px 16px;
}
html .st-categoryModern #product-listing-container.mode-1 .productGrid .card .card-figcaption-body {
    height: auto;
}

/* Mobile account shortcut sits beside the existing cart, with its own target. */
.header .st-mobile-account { display: none; }
@media (max-width: 800px) {
    .header .st-mobile-account {
        display: inline-flex;
        position: absolute;
        top: 6px;
        right: 66px;
        z-index: 5;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 6px;
        color: #173c56;
    }
    .header .st-mobile-account svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .header .st-mobile-account:focus-visible { outline: 3px solid #2673b8; outline-offset: 1px; }
    .header .header-logo {
        position: absolute;
        top: 0;
        left: 52px;
        right: auto;
        transform: none;
        margin: 0;
        padding: 0;
        width: calc(100% - 168px);
        max-width: 230px;
        height: 56px;
        display: flex;
        align-items: center;
        text-align: left;
    }
    .header .header-logo > a { padding: 0; width: 100%; height: 44px; }
    .header .header-logo-image { max-width: 100%; max-height: 38px; object-fit: contain; }

    html .st-categoryModern #product-listing-container.mode-1 .productGrid .card > .card-figcaption {
        border-left: 0;
        border-top: 1px solid #e1e7ec;
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(140px,1fr);
        align-items: center;
        gap: 12px;
        padding: 14px;
    }
    html .st-categoryModern #product-listing-container.mode-1 .productGrid .card > .card-figcaption > .card-text--price { margin: 0; }
    html .st-categoryModern #product-listing-container.mode-1 .productGrid .card .card-buttons { flex-direction: column; }
    html .st-categoryModern #product-listing-container.mode-1 .productGrid .card .card-figcaption-button { width: 100%; min-width: 0; }
    html .st-categoryModern .productGrid .card .price--main,
    html .papaSupermarket-page--pages-search .productGrid .card .price--main { font-size: 19px; }
}

/* Full cart: a contained summary and orange totals, without changing formulas. */
html #st-cart-page .st-cart-layout > .st-cart-summary {
    padding: 24px;
    border: 1px solid #dbe3e8;
    border-radius: 12px;
    background: #f8fafb;
}
html #st-cart-page .st-cart-grand-total .cart-total-value,
html #st-cart-page .st-cart-line-total .cart-item-value,
html #st-cart-drawer .st-cart-drawer__subtotal strong,
html #st-cart-drawer .st-cart-drawer__price strong { color: #cc5500; }
html #st-cart-page .st-cart-line-total .cart-item-value,
html #st-cart-drawer .st-cart-drawer__price strong { font-size: 19px; font-weight: 700; }

/* Balanced footer links. The second cell appears only for an eligible basket. */
html #st-cart-drawer .st-cart-drawer__footer-links {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
}
html #st-cart-drawer .st-cart-drawer__view-cart,
html #st-cart-drawer .st-cart-drawer__affirm {
    display: flex;
    flex: 1 1 50%;
    box-sizing: border-box;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border: 0;
    font-size: 14px;
    color: #173c56;
    text-decoration: none;
    line-height: 1.4;
}
html #st-cart-drawer .st-cart-drawer__affirm { border-left: 1px solid #c5d4df; }
html #st-cart-drawer .st-cart-drawer__view-cart:hover span,
html #st-cart-drawer .st-cart-drawer__affirm:hover span { text-decoration: underline; }
html #st-cart-drawer .st-cart-drawer__view-cart svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
html #st-cart-drawer .st-cart-drawer__affirm img { width: 64px; height: 26px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 480px) {
    html #st-cart-page .st-cart-layout > .st-cart-summary { padding: 20px 16px; }
    html #st-cart-drawer .st-cart-drawer__view-cart,
    html #st-cart-drawer .st-cart-drawer__affirm { gap: 6px; padding: 8px 4px; font-size: 12px; }
    html #st-cart-drawer .st-cart-drawer__affirm img { width: 58px; height: 24px; }
}
        