/* Route-scoped presentation formerly embedded in storefront view markup. */
.page-home .storefront-no-gutter {
    padding: 0;
}

body.shell-scroll-locked {
    overflow: hidden;
}

/* Product collection count and ecommerce sorting toolbar. */
.page-product .shop-part .top-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-color: #dbe8df;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(22, 59, 43, .06);
}

.page-product .catalog-sort-filter {
    width: auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.page-product .top-filter .filter-label {
    display: block;
    margin: 0;
    color: #29483a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.2;
    text-transform: uppercase;
}

.page-product .catalog-sort-control {
    position: relative;
    width: 190px;
}

.page-product .catalog-sort-control > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 13px;
    color: #2d7a57;
    font-size: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.page-product .top-filter .catalog-sort-control .form-control {
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin: 0;
    border: 1px solid #cfe0d5;
    border-radius: 12px;
    background-color: #f8fbf9;
    color: #173b2b;
    font-size: 13px;
    line-height: normal;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.page-product .top-filter .catalog-sort-control .form-control {
    padding: 0 32px 0 36px !important;
    cursor: pointer;
}

.page-product .top-filter .form-control:focus {
    border-color: #2d7a57;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 122, 87, .13);
}

.page-product .catalog-toolbar-status {
    display: inline-flex;
    min-height: 40px;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    color: #3f594c;
    font-size: 12px;
    white-space: nowrap;
}

.page-product .catalog-toolbar-status strong {
    color: #1e6a48;
    font-size: 14px;
}

.page-product .top-filter.is-loading {
    cursor: progress;
}

.page-product .top-filter.is-loading .catalog-toolbar-status {
    opacity: .65;
}

.catalog-filter-error {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #efc7c7;
    border-radius: 10px;
    background: #fff4f4;
    color: #8a2525;
    font-size: 13px;
}

@media (max-width: 767px) {
    .page-product .shop-part .top-filter {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
        padding: 11px 12px !important;
        align-items: center !important;
    }

    .page-product .shop-part .top-filter .filter-label {
        display: block !important;
        margin: 0 !important;
        font-size: 10px !important;
    }

    .page-product .catalog-sort-filter {
        gap: 6px;
    }

    .page-product .catalog-sort-control {
        width: min(172px, 44vw);
    }

    .page-product .top-filter .catalog-sort-control .form-control {
        height: 42px !important;
        min-height: 42px !important;
        font-size: 12px !important;
        line-height: normal !important;
    }

    .page-product .catalog-toolbar-status {
        min-height: 42px;
        padding: 0 6px;
        font-size: 11px;
    }
}

.header-nav-icon {
    margin-right: 6px;
}

.header-subnav-icon {
    width: 14px;
    margin-right: 8px;
    font-size: 12px;
    text-align: center;
}

.menu-icon-color-default { color: var(--sh-color-accent) !important; }
.menu-icon-color-00796b { color: #00796b !important; }
.menu-icon-color-00897b { color: #00897b !important; }
.menu-icon-color-0288d1 { color: #0288d1 !important; }
.menu-icon-color-2e7d32 { color: #2e7d32 !important; }
.menu-icon-color-37474f { color: #37474f !important; }
.menu-icon-color-388e3c { color: #388e3c !important; }
.menu-icon-color-43a047 { color: #43a047 !important; }
.menu-icon-color-546e7a { color: #546e7a !important; }
.menu-icon-color-558b2f { color: #558b2f !important; }
.menu-icon-color-6d4c41 { color: #6d4c41 !important; }
.menu-icon-color-795548 { color: #795548 !important; }
.menu-icon-color-8d6e63 { color: #8d6e63 !important; }
.menu-icon-color-8e24aa { color: #8e24aa !important; }
.menu-icon-color-d84315 { color: #d84315 !important; }
.menu-icon-color-e53935 { color: #e53935 !important; }
.menu-icon-color-e65100 { color: #e65100 !important; }
.menu-icon-color-e91e63 { color: #e91e63 !important; }
.menu-icon-color-ef6c00 { color: #ef6c00 !important; }
.menu-icon-color-f44336 { color: #f44336 !important; }
.menu-icon-color-fb8c00 { color: #fb8c00 !important; }
.menu-icon-color-fbc02d { color: #fbc02d !important; }
.menu-icon-color-ff8f00 { color: #ff8f00 !important; }

.app-nav-drawer .app-nav-category-list.is-expanded {
    display: block;
}

.mobile-nav-badge.is-empty {
    display: none !important;
}

.page-home .home-product-grid {
    padding: 16px 0;
}

.page-home .home-category-scroll {
    padding: 16px 0;
}

.page-home .home-product-grid-bottom {
    padding-bottom: 16px;
}

.page-home .home-wide-gutters {
    padding-right: 2rem;
    padding-left: 2rem;
}

.page-home .home-promo-slider {
    position: relative;
}

.page-home .home-promo-card {
    margin: 0 10px;
}

.page-home .home-promo-link {
    text-decoration: none;
}

.page-home .home-promo-cta-dark {
    background: #2b3d36;
    color: #fff;
}

.page-home .home-trust-banner {
    padding: 24px 16px;
}

.route-product-grid {
    padding: 16px 0;
}

.route-product-grid-bottom {
    padding-bottom: 16px;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.cart-subtotal-label {
    color: #333;
    font-size: 16px;
    font-weight: 700;
}

.cart-subtotal .cart-subtotal-value {
    color: var(--sh-color-primary);
    font-size: 18px;
    font-weight: 700;
}

.page-detail .details-tabs-heading {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 0;
}

.page-detail .details-tab-link {
    font-size: 18px;
    font-weight: 600;
}

.page-detail .review-login-prompt {
    margin-top: 20px;
    padding: 50px 20px;
    border: 1px dashed #c1d6b0;
    border-radius: 12px;
    background: #fcfdfa;
    text-align: center;
}

.page-detail .review-login-prompt__icon {
    margin-bottom: 15px;
    color: #76a746;
    font-size: 50px;
}

.page-detail .review-login-prompt__title {
    margin-bottom: 12px;
    color: #333;
    font-size: 26px;
    font-weight: 700;
    text-transform: none;
}

.page-detail .review-login-prompt__copy {
    max-width: 500px;
    margin-right: auto;
    margin-bottom: 25px;
    margin-left: auto;
    color: #666;
    font-size: 16px;
}

.page-detail .review-login-prompt__action {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
}

/* Legacy storefront views: static declarations moved out of templates. */
.page-about .legacy-about-team-box {
    height: 322px;
}

.legacy-content-action-end {
    float: right;
}

.page-blog .legacy-blog-fade-media {
    border-radius: 1rem !important;
    -webkit-mask-image: linear-gradient(rgb(0, 14, 1) 10%, rgb(0, 15, 9) 80%, transparent 100%);
    mask-image: linear-gradient(rgb(0, 14, 1) 10%, rgb(0, 15, 9) 80%, transparent 100%);
}

.page-contact .legacy-contact-map {
    border: 0;
}

.account-deactivate-spacer {
    margin-top: 12% !important;
}

.account-deactivate-submit {
    float: right;
}

/* Legacy password recovery view. The active /forgot route uses forgotpass.php. */
.legacy-forgot-page .login-form {
    width: 340px;
    margin: 50px auto;
}

.legacy-forgot-page .login-form form {
    margin-bottom: 15px;
    padding: 30px;
    background: #f7f7f7;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .3);
}

.legacy-forgot-page .login-form h2 {
    margin: 0 0 15px;
}

.legacy-forgot-page .form-control,
.legacy-forgot-page .btn,
.legacy-forgot-modal .form-control,
.legacy-forgot-modal .btn {
    min-height: 38px;
    border-radius: 2px;
}

.legacy-forgot-page .input-group-addon .fa {
    font-size: 18px;
}

.legacy-forgot-page .btn,
.legacy-forgot-modal .btn {
    font-size: 15px;
    font-weight: 700;
}

.legacy-forgot-input {
    width: 95%;
}

.legacy-modal-top {
    z-index: 9999;
}

/* Legacy subscription/payment modal. */
.subscription-modal-dialog--desktop {
    max-width: 35% !important;
}

.subscription-modal-dialog--mobile {
    max-width: 90% !important;
}

.subscription-modal-close {
    float: right;
}

.subscription-modal-body {
    padding: 2rem !important;
}

.subscription-plan-summary {
    display: flex;
    justify-content: space-between;
    padding: 1rem !important;
    border-radius: .375rem;
    background-color: rgba(255, 255, 255, 1);
}

.subscription-payment-logo {
    width: 125px;
    height: 32px;
    background: url('../images/ez.jpg') no-repeat center;
    background-size: contain;
}

.subscription-status-message {
    color: #da3035 !important;
}

.cart-progress {
    display: grid;
    gap: 10px;
    margin: 12px 0 18px;
}

.cart-sidebar .cart-progress {
    margin: 0;
    padding: 12px 16px;
    background: #f7fbf7;
}

.cart-progress-item {
    padding: 12px 14px;
    border: 1px solid #d7e9dc;
    border-radius: 12px;
    background: #f8fcf8;
    color: #164b36;
}

.cart-progress-item[hidden] {
    display: none !important;
}

.cart-progress-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.cart-progress-heading i {
    color: #219653;
}

.cart-progress-item progress {
    display: block;
    width: 100%;
    height: 6px;
    margin: 9px 0 5px;
    border: 0;
    border-radius: 20px;
    accent-color: #1d8754;
}

.cart-progress-item progress::-webkit-progress-bar {
    border-radius: 20px;
    background: #dfebe2;
}

.cart-progress-item progress::-webkit-progress-value {
    border-radius: 20px;
    background: #1d8754;
}

.cart-progress-detail {
    display: block;
    color: #557366;
    font-size: 11px;
    line-height: 1.4;
}

/* Keep the cart actions visible even when progress and product rows grow. */
.cart-sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.cart-sidebar .cart-header,
.cart-sidebar .cart-progress,
.cart-sidebar .cart-footer {
    flex: 0 0 auto;
}

/* The drawer clips overflow so its close control must sit inside the header. */
.cart-sidebar .cart-close {
    left: 12px;
}

.cart-sidebar .cart-list {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-y: auto;
}

.cart-sidebar .cart-footer {
    margin-top: auto;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: #fff;
}

.cart-sidebar .cart-progress {
    padding: 9px 14px;
}

.cart-sidebar .cart-progress-item {
    padding: 9px 11px;
}

.cart-sidebar .cart-item-title {
    font-size: 14px;
    line-height: 1.3;
}

.cart-sidebar .cart-unit-line,
.cart-sidebar .cart-info p {
    font-size: 12px;
}

.cart-sidebar .cart-line-total {
    font-size: 16px !important;
}

.search-results-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.search-results-eyebrow {
    color: #268657;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.search-results-intro h2 {
    margin: 5px 0 3px;
    color: #183c2d;
    font-size: clamp(23px, 3vw, 34px);
}

.search-results-intro p {
    margin: 0;
    color: #61786c;
}

.search-results-count {
    flex-shrink: 0;
    color: #446856;
    font-size: 13px;
}

.search-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.search-refine-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 480px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #dcebe1;
    border-radius: 10px;
    background: #fff;
    color: #278755;
}

.search-refine-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #183c2d;
}

@media (max-width: 600px) {
    .search-results-intro { align-items: start; flex-direction: column; }
    .search-filter-bar { align-items: stretch; flex-direction: column; }
    .search-refine-field { max-width: none; }
}
