/* Global non-breaking typography refinements for admin and customer UI */
input::placeholder,
textarea::placeholder,
select::placeholder {
    font-size: 10px !important;
    opacity: .85;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    font-size: 10px !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    font-size: 10px !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    font-size: 10px !important;
}

.admin-shell .form-select,
.admin-shell .select-field-placeholder,
.storefront-shell .modal .form-select {
    font-size: 12px !important;
}

.admin-shell input.form-control,
.admin-shell select.form-select {
    height: 42px !important;
    min-height: 42px !important;
    line-height: 1.4 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.admin-shell textarea.form-control {
    min-height: 42px !important;
    line-height: 1.4 !important;
}

.subtitle,
.sub-title,
.section-subtitle,
.card-subtitle,
.page-subtitle,
.form-text,
.text-muted,
.small-title {
    font-size: 14px !important;
    line-height: 1.4;
}

.search-box input,
.header-search input,
.global-search input {
    height: 40px !important;
    font-size: 14px !important;
    padding: 8px 14px !important;
}

.search-box,
.header-search {
    max-width: 420px;
    width: 100%;
}

/* Hide decorative helper copy across admin, vendor, and customer views without removing markup. */
.sf-kicker,
.sf-how-badge,
.sf-category-strip-header p,
.sf-section-header p,
.sf-hero-card p,
.sf-banner-copy p,
.sf-mini-step .text-secondary.small,
.storefront-shell .modal-header .text-secondary.small,
.storefront-shell .form-text,
.storefront-shell .subtitle,
.storefront-shell .sub-title,
.storefront-shell .section-subtitle,
.storefront-shell .card-subtitle,
.storefront-shell .page-subtitle,
.storefront-shell .small-title,
.admin-shell .form-text,
.admin-shell .subtitle,
.admin-shell .sub-title,
.admin-shell .section-subtitle,
.admin-shell .card-subtitle,
.admin-shell .page-subtitle,
.admin-shell .small-title,
.admin-shell .hero-card p.text-secondary,
.admin-dashboard .hero-card p,
.admin-dashboard .hero-card .badge,
.admin-dashboard .soft-panel > .d-flex > div > .text-secondary.small:last-child,
.admin-dashboard .soft-panel .admin-mini-stat-grid + .text-secondary.small,
.admin-dashboard .admin-kpi-card .text-secondary.small:last-child,
.admin-dashboard h5 + .text-secondary.small,
.admin-dashboard .admin-disabled-analytics span {
    display: none !important;
}

.admin-shell .card,
.admin-shell .shell-card,
.admin-shell .soft-panel,
.admin-shell .metric-card,
.admin-shell .dashboard-card,
.admin-shell .module-card,
.storefront-shell .sf-info-card,
.storefront-shell .sf-product-card,
.storefront-shell .sf-mini-step,
.storefront-shell .sf-banner-card,
.storefront-shell .sf-cart-drawer,
.storefront-shell .modal-content {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.admin-shell .card *,
.admin-shell .shell-card *,
.admin-shell .soft-panel *,
.admin-shell .metric-card *,
.admin-shell .dashboard-card *,
.admin-shell .module-card *,
.storefront-shell .sf-info-card *,
.storefront-shell .sf-product-card *,
.storefront-shell .sf-mini-step *,
.storefront-shell .sf-banner-card *,
.storefront-shell .sf-cart-drawer *,
.storefront-shell .modal-content * {
    max-width: 100%;
}

/* Keep helpful sub messages visible only for storefront promo banners and how-it-works steps. */
.storefront-shell .sf-banner-copy p,
.storefront-shell .sf-how-it-works .sf-mini-step .text-secondary.small {
    display: block !important;
}

.storefront-shell .sf-banner-copy p {
    margin-top: 6px;
    color: #fff !important;
    font-size: .92rem;
    line-height: 1.35;
}

.storefront-shell .sf-how-it-works .sf-mini-step .text-secondary.small {
    margin-top: 4px;
    color: var(--sf-muted) !important;
    font-size: .9rem;
    line-height: 1.35;
}

.admin-shell .admin-page-title {
    font-size: clamp(1.95rem, 1.85vw + 1rem, 2.35rem);
    font-weight: 500;
}

.storefront-shell .sf-promo-card-primary {
    position: relative;
}

.storefront-shell .sf-promo-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(4, 120, 87, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #047857;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .14);
    transform: translateY(-50%);
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.storefront-shell .sf-promo-nav:hover,
.storefront-shell .sf-promo-nav:focus-visible {
    background: #047857;
    color: #fff;
    box-shadow: 0 14px 28px rgba(4, 120, 87, .22);
    transform: translateY(-50%) scale(1.04);
}

.storefront-shell .sf-promo-nav-prev {
    left: 14px;
}

.storefront-shell .sf-promo-nav-next {
    right: 14px;
}

@media (max-width: 575.98px) {
    .storefront-shell .sf-promo-showcase {
        margin-top: 4px;
        margin-bottom: 10px;
    }

    .storefront-shell .sf-promo-grid {
        gap: 10px;
    }

    .storefront-shell .sf-promo-card {
        border-radius: 14px;
    }

    .storefront-shell .sf-promo-card-primary {
        touch-action: pan-y;
    }

    .storefront-shell .sf-promo-copy {
        padding: 16px;
    }

    .storefront-shell .sf-promo-eyebrow,
    .storefront-shell .sf-promo-kicker {
        margin-bottom: 6px;
        font-size: .64rem;
    }

    .storefront-shell .sf-promo-card h1 {
        font-size: 1.55rem;
    }

    .storefront-shell .sf-promo-card h2 {
        font-size: 1.38rem;
    }

    .storefront-shell .sf-promo-card p {
        margin-top: 8px;
        font-size: .82rem;
    }

    .storefront-shell .sf-promo-actions {
        margin-top: 12px;
    }

    .storefront-shell .sf-promo-actions .btn,
    .storefront-shell .sf-promo-card-deal .btn {
        min-height: 36px;
        padding-block: 7px;
        font-size: .84rem;
    }

    .storefront-shell .sf-promo-visual,
    .storefront-shell .sf-deal-basket {
        padding: 0 16px 18px;
    }

    .storefront-shell .sf-promo-offer-frame {
        width: min(100%, 240px);
        border-radius: 14px;
    }

    .storefront-shell .sf-promo-dots {
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
    }

    .storefront-shell .sf-promo-nav {
        width: 34px;
        height: 34px;
    }

    .storefront-shell .sf-promo-nav-prev {
        left: 10px;
    }

    .storefront-shell .sf-promo-nav-next {
        right: 10px;
    }

    .storefront-shell .sf-deal-product-card {
        width: min(100%, 190px);
        padding: 10px;
        border-radius: 14px;
    }

    .storefront-shell .sf-deal-basket strong {
        width: 48px;
        height: 48px;
        top: 4px;
        right: 18px;
        font-size: .54rem;
    }

    .storefront-shell .sf-promo-benefits {
        margin: 10px 0;
        gap: 6px;
    }

    .storefront-shell .sf-promo-benefits i {
        width: 26px;
        height: 26px;
        margin-bottom: 4px;
    }

    .storefront-shell .sf-banner-grid {
        gap: 10px;
    }

    .storefront-shell .sf-banner-card {
        min-height: 118px;
        padding: 16px;
        border-radius: 16px;
    }

    .storefront-shell .sf-banner-copy h2 {
        margin-top: 5px;
        margin-bottom: 4px;
        font-size: .92rem;
    }

    .storefront-shell .sf-banner-copy p {
        margin-top: 4px;
        font-size: .78rem;
        line-height: 1.25;
    }
}

/* Keep auth logos even across customer login, create account, and admin login. */
.storefront-shell .login-logo,
.admin-shell .auth-panel-logo {
    display: block;
    width: min(260px, 100%);
    height: 76px;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.storefront-shell .auth-logo {
    margin-top: 0;
}

/* Header account/cart actions as stacked icon labels. */
.storefront-shell .sf-actions {
    align-items: center;
    gap: 14px;
}

.storefront-shell .sf-actions .sf-action-link {
    display: inline-grid;
    grid-template-rows: auto auto;
    place-items: center;
    min-width: 42px;
    min-height: 46px;
    padding: 0;
    gap: 2px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.05;
    text-decoration: none;
}

.storefront-shell .sf-actions .sf-action-link > i {
    color: #111;
    font-size: 1.75rem;
    line-height: 1;
}

.storefront-shell .sf-actions .js-open-cart > i {
    font-size: 1.9rem;
}

.storefront-shell .sf-actions .sf-cart-badge {
    top: -3px;
    right: 2px;
}

/* Compact category listing typography without changing link/filter behavior. */
.storefront-shell .sf-category-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
}

.storefront-shell .sf-category-sidebar {
    padding: 14px;
    border-radius: 18px;
}

.storefront-shell .sf-category-sidebar h4 {
    margin-bottom: 12px !important;
    font-size: .88rem;
    line-height: 1.22;
}

.storefront-shell .sf-category-sidebar .sf-side-links {
    gap: 7px;
    margin-top: 10px;
}

.storefront-shell .sf-category-sidebar .sf-side-links a {
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: .68rem;
    line-height: 1.18;
}

.storefront-shell .sf-category-sidebar .sf-side-links a img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.storefront-shell .sf-category-sidebar .sf-side-links a span {
    min-width: 0;
}

/* Reduce category/subcategory filter wording size without changing links or form behavior. */
.storefront-shell .sf-filter-row .sf-filter-pill {
    font-size: .8rem;
    line-height: 1.15;
}

.storefront-shell .sf-filter-row .form-select {
    font-size: .8rem !important;
}

@media (max-width: 991.98px) {
    .storefront-shell .sf-category-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Align the home page "Shop by categories" rail without changing its scroll behavior. */
.storefront-shell .sf-category-rail-wrap {
    --sf-category-tile: clamp(92px, 6.2vw, 124px);
    padding-right: 42px;
}

.storefront-shell .sf-category-rail-wrap .sf-chip-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--sf-category-tile);
    grid-template-columns: none;
    align-items: start;
    gap: clamp(12px, 1vw, 20px);
    overflow-x: auto;
    padding-bottom: 8px;
}

.storefront-shell .sf-category-rail-wrap .sf-chip {
    width: var(--sf-category-tile);
    justify-items: center;
    align-content: start;
    gap: 8px;
    font-size: clamp(.72rem, .24vw + .72rem, .88rem);
}

.storefront-shell .sf-category-rail-wrap .sf-chip-image {
    width: var(--sf-category-tile);
    height: var(--sf-category-tile);
    flex: 0 0 var(--sf-category-tile);
}

.storefront-shell .sf-category-rail-wrap .sf-chip > span:last-child {
    display: -webkit-box;
    min-height: 2.45em;
    max-height: 2.45em;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.22;
    text-align: center;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
}

.storefront-shell .sf-category-rail-wrap.has-overflow .sf-rail-arrow-right {
    display: inline-flex;
    right: 2px;
    top: calc(var(--sf-category-tile) / 2);
    width: 38px;
    height: 38px;
}

.storefront-shell .sf-category-rail-wrap.has-overflow .sf-rail-arrow-left {
    left: 2px;
    top: calc(var(--sf-category-tile) / 2);
    width: 38px;
    height: 38px;
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-50%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.storefront-shell .sf-category-rail-wrap.has-overflow:not(.can-scroll-left) .sf-rail-arrow-left,
.storefront-shell .sf-category-rail-wrap.has-overflow:not(.can-scroll-right) .sf-rail-arrow-right {
    display: none !important;
}

.storefront-shell .sf-category-rail-wrap.has-overflow.can-scroll-left .sf-rail-arrow-left {
    display: inline-flex !important;
}

.storefront-shell .sf-category-rail-wrap.has-overflow::after {
    height: var(--sf-category-tile);
    opacity: 0;
}

.storefront-shell .sf-category-rail-wrap.has-overflow.can-scroll-right::after {
    opacity: 1;
}

.storefront-shell .sf-category-rail-wrap.has-overflow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 92px;
    height: var(--sf-category-tile);
    pointer-events: none;
    background: linear-gradient(270deg, rgba(249, 249, 249, 0), var(--sf-bg) 72%);
    opacity: 0;
}

.storefront-shell .sf-category-rail-wrap.has-overflow.can-scroll-left::before {
    opacity: 1;
}

/* Show the category header beside the home category rail without changing rail scrolling. */
.storefront-shell .sf-category-showcase {
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, 1.4vw, 24px);
    margin-bottom: clamp(16px, 1.8vw, 28px);
}

.storefront-shell .sf-category-showcase .sf-category-strip-header {
    display: flex !important;
    flex: 0 0 clamp(150px, 13vw, 220px);
    min-width: 0;
    margin: 0;
    padding-top: 8px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}

.storefront-shell .sf-category-showcase .sf-category-strip-header h2 {
    margin: 0;
    font-size: clamp(1rem, .45vw + .95rem, 1.22rem);
    line-height: 1.18;
}

.storefront-shell .sf-category-showcase .sf-category-strip-header p {
    margin: 0;
    font-size: .78rem;
    line-height: 1.35;
}

.storefront-shell .sf-category-showcase .sf-category-strip-header a {
    font-size: .78rem;
    line-height: 1.2;
}

.storefront-shell .sf-category-showcase .sf-category-rail-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .storefront-shell .sf-category-showcase {
        display: block;
    }

    .storefront-shell .sf-category-showcase .sf-category-strip-header {
        margin-bottom: 10px;
        padding-top: 0;
    }
}

/* Compact the marked storefront header controls and category strip. */
.storefront-shell {
    --sf-header-control-height: 38px;
}

.storefront-shell .sf-searchbar {
    padding-block: 8px;
    gap: 12px;
}

.storefront-shell .sf-topbar .sf-brand-logo {
    height: 64px !important;
    max-width: min(320px, 100%);
}

.storefront-shell .sf-logo {
    align-items: center;
}

.storefront-shell .sf-header-controls {
    gap: 10px;
}

.storefront-shell .sf-header-controls .sf-location-btn,
.storefront-shell .sf-header-controls .sf-vendor-btn {
    padding-inline: 12px;
    font-size: 13px;
}

.storefront-shell .sf-header-controls .sf-search-form {
    grid-template-columns: var(--sf-header-control-height) minmax(0, 1fr);
}

.storefront-shell .sf-header-controls .sf-search-form > i {
    width: var(--sf-header-control-height);
}

.storefront-shell .sf-header-controls .sf-search-form input {
    font-size: 13px;
    padding-inline: 12px;
}

.storefront-shell .sf-category-showcase {
    background: var(--sf-bg);
    padding-top: 18px !important;
    padding-bottom: 6px;
}

.storefront-shell .sf-category-rail-wrap {
    background: var(--sf-bg);
}

.storefront-shell .sf-category-rail-wrap .sf-chip-image {
    background: var(--sf-surface);
}

@media (min-width: 992px) {
    .storefront-shell .sf-header-controls {
        width: min(100%, 760px);
        grid-template-columns: minmax(160px, 200px) minmax(120px, 150px) minmax(260px, 390px);
    }

    .storefront-shell .sf-header-controls .sf-vendor-selector.d-none + .sf-search-form,
    .storefront-shell .sf-header-controls .sf-search-form {
        grid-column: auto;
        max-width: none;
    }

    .storefront-shell .sf-header-controls .sf-vendor-selector.d-none + .sf-search-form {
        grid-column: span 2;
    }
}

@media (max-width: 991.98px) {
    .storefront-shell .sf-searchbar {
        padding-block: 8px;
    }

    .storefront-shell .sf-topbar .sf-brand-logo {
        height: 58px !important;
        max-width: min(230px, 100%);
    }
}

@media (max-width: 767.98px) {
    .storefront-shell .sf-topbar {
        transition: box-shadow .18s ease;
    }

    .storefront-shell .sf-topbar .sf-logo,
    .storefront-shell .sf-topbar .sf-location-btn,
    .storefront-shell .sf-topbar .sf-vendor-selector {
        max-height: 80px;
        opacity: 1;
        overflow: hidden;
        transform: translateY(0);
        transition: max-height .2s ease, opacity .18s ease, transform .18s ease, margin .18s ease;
    }

    .storefront-shell .sf-topbar.is-mobile-compact .sf-logo,
    .storefront-shell .sf-topbar.is-mobile-compact .sf-location-btn,
    .storefront-shell .sf-topbar.is-mobile-compact .sf-vendor-selector {
        max-height: 0;
        margin: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
    }

    .storefront-shell .sf-topbar.is-mobile-compact .sf-searchbar {
        padding-block: 6px;
    }

    .storefront-shell .sf-topbar.is-mobile-compact .sf-header-controls {
        gap: 0;
    }

    .storefront-shell .sf-topbar.is-mobile-compact .sf-search-form,
    .storefront-shell .sf-topbar.is-mobile-compact .sf-actions {
        position: relative;
        z-index: 1;
    }

    .storefront-shell .sf-section-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 10px;
    }

    .storefront-shell .sf-section-header > div {
        min-width: 0;
    }

    .storefront-shell .sf-section-header > a {
        justify-self: end;
        white-space: nowrap;
    }

    .storefront-shell .sf-section-header > a i {
        display: none;
    }

    .storefront-shell .sf-searchbar {
        padding-block: 6px;
        gap: 8px;
    }

    .storefront-shell .sf-logo {
        justify-content: center;
        width: 100%;
    }

    .storefront-shell .sf-topbar .sf-brand-logo {
        height: 46px !important;
        max-width: min(190px, 100%);
    }

    .storefront-shell .sf-location-btn,
    .storefront-shell .sf-vendor-btn,
    .storefront-shell .sf-search-form,
    .storefront-shell .sf-actions .sf-action-link {
        min-height: 36px;
    }

    .storefront-shell .sf-header-controls {
        gap: 8px;
    }

    .storefront-shell .sf-header-controls .sf-location-btn,
    .storefront-shell .sf-header-controls .sf-vendor-btn {
        padding-inline: 10px;
        font-size: 12px;
    }

    .storefront-shell .sf-header-controls .sf-search-form input {
        font-size: 12px;
        padding-inline: 10px;
    }

    .storefront-shell .sf-category-rail-wrap {
        padding-right: 0;
    }

    .storefront-shell .sf-category-rail-wrap .sf-rail-arrow,
    .storefront-shell .sf-category-rail-wrap.has-overflow .sf-rail-arrow-left,
    .storefront-shell .sf-category-rail-wrap.has-overflow .sf-rail-arrow-right {
        display: none !important;
    }

    .storefront-shell .sf-category-rail-wrap.has-overflow::before,
    .storefront-shell .sf-category-rail-wrap.has-overflow::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .storefront-shell .sf-topbar .sf-brand-logo {
        height: 42px !important;
        max-width: min(180px, 100%);
    }

    .storefront-shell .sf-location-btn,
    .storefront-shell .sf-vendor-btn,
    .storefront-shell .sf-search-form,
    .storefront-shell .sf-actions .sf-action-link {
        min-height: 34px;
    }

    .storefront-shell .sf-category-rail-wrap {
        --sf-category-tile: 86px;
        padding-right: 0;
    }

    .storefront-shell .sf-category-rail-wrap.has-overflow .sf-rail-arrow-left,
    .storefront-shell .sf-category-rail-wrap.has-overflow .sf-rail-arrow-right {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    input::placeholder,
    textarea::placeholder,
    select::placeholder {
        font-size: 9px !important;
    }

    .subtitle,
    .sub-title,
    .section-subtitle,
    .card-subtitle,
    .page-subtitle,
    .form-text,
    .text-muted,
    .small-title {
        font-size: 13px !important;
    }

    .search-box input,
    .header-search input,
    .global-search input {
        height: 36px !important;
        font-size: 13px !important;
    }
}

.storefront-shell .sf-actions .sf-login-signup-link {
    min-height: 36px;
    min-width: 148px;
    padding: 0 14px 0 12px;
    border: 1px solid rgba(31, 122, 99, .28);
    border-radius: 999px;
    background: #fff;
    color: #1f7a63;
    box-shadow: 0 6px 18px rgba(31, 122, 99, .08);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

.storefront-shell .sf-actions .sf-login-signup-link > i {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(31, 122, 99, .28);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f7a63;
    font-size: 14px;
    line-height: 1;
    flex: 0 0 22px;
}

.storefront-shell .sf-actions .sf-login-signup-link__item {
    color: inherit;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    min-width: 0;
    overflow-wrap: normal;
    text-decoration: none;
    word-break: normal;
}

.storefront-shell .sf-actions .sf-login-signup-link__item:hover,
.storefront-shell .sf-actions .sf-login-signup-link__item:focus {
    color: inherit;
    text-decoration: none;
}

.storefront-shell .sf-actions .sf-login-signup-link__item:focus-visible {
    border-radius: 999px;
    outline: 2px solid rgba(31, 122, 99, .36);
    outline-offset: 2px;
}

.storefront-shell .sf-actions .sf-login-signup-link__divider {
    align-self: center;
    background: rgba(31, 122, 99, .72);
    display: inline-block;
    height: 18px;
    width: 2px;
}

.storefront-shell .sf-actions .sf-login-signup-link:hover,
.storefront-shell .sf-actions .sf-login-signup-link:focus-within {
    border-color: rgba(31, 122, 99, .48);
    color: #1f7a63;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 122, 99, .12);
}

@media (max-width: 575.98px) {
    .storefront-shell .sf-actions .sf-login-signup-link {
        min-width: 136px;
        padding-inline: 10px 12px;
        font-size: 11px;
    }
}
