@media (max-width: 1040px) {
    .store-hero-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .category-card {
        padding: 22px;
    }

    .category-symbol {
        width: 70px;
        height: 70px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .purchase-layout,
    .track-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-sticky {
        position: static;
    }
}

@media (max-width: 860px) {
    .announcement-bar {
        display: none;
    }

    .header-inner {
        min-height: 64px;
    }

    .menu-toggle {
        display: grid;
    }

    .header-track-link {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        right: 16px;
        left: 16px;
        display: grid;
        gap: 4px;
        padding: 10px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 18px 48px var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav a {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
    }

    .category-strip {
        display: none;
    }

    .store-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-product {
        min-height: 460px;
    }

    .category-grid,
    .product-grid,
    .confidence-grid,
    .help-center-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-showcase {
        grid-template-columns: 1fr;
    }

    .product-gallery,
    .product-information {
        min-height: auto;
    }

    .product-information {
        padding: 34px;
    }

    .footer-main {
        grid-template-columns: 1.2fr 1fr;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1240px);
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .brand-copy small {
        display: none;
    }

    .theme-control {
        padding: 0 7px;
    }

    .theme-control select {
        width: 62px;
        font-size: 11px;
    }

    .store-hero {
        padding-top: 20px;
    }

    .store-hero-copy,
    .hero-product {
        border-radius: 16px;
    }

    .store-hero-copy {
        padding: 30px 22px;
    }

    .store-hero-copy h1 {
        font-size: 35px;
        line-height: 1.35;
    }

    .store-hero-copy > p {
        font-size: 14px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-benefits {
        display: grid;
        gap: 8px;
    }

    .hero-product {
        min-height: 390px;
    }

    .hero-product-top {
        min-height: 285px;
    }

    .section {
        padding: 52px 0;
    }

    .section-tight {
        padding-top: 38px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .category-grid,
    .product-grid,
    .confidence-grid,
    .catalog-grid,
    .help-center-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 200px;
    }

    .product-visual {
        min-height: 220px;
    }

    .support-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 22px;
    }

    .support-banner .button {
        width: 100%;
    }

    .catalog-hero,
    .simple-page-hero {
        padding-top: 26px;
    }

    .catalog-hero-inner,
    .simple-page-hero-inner {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .catalog-hero h1,
    .simple-page-hero h1 {
        font-size: 34px;
    }

    .filter-chips {
        width: 100%;
        overflow-x: auto;
    }

    .catalog-card {
        min-height: 0;
    }

    .product-page-head {
        padding-top: 24px;
    }

    .product-gallery-main {
        min-height: 280px;
    }

    .product-gallery-main svg {
        width: 120px;
        height: 120px;
    }

    .gallery-info-row {
        min-height: 60px;
    }

    .gallery-info-row span {
        font-size: 10px;
    }

    .product-information {
        padding: 26px 22px;
    }

    .product-information h1 {
        font-size: 34px;
    }

    .purchase-panel,
    .order-summary-sticky {
        padding: 20px;
        border-radius: 14px;
    }

    .purchase-panel-heading h2 {
        font-size: 19px;
    }

    .package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .package-card {
        min-height: 145px;
        padding: 15px;
    }

    .package-number {
        font-size: 25px;
    }

    .track-card,
    .track-help-card,
    .help-center-card {
        padding: 24px 20px;
    }

    .track-input-row {
        grid-template-columns: 1fr;
    }

    .track-input-row .button {
        width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 0 28px;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-bottom {
        min-height: 70px;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 390px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* Compact storefront cards on phones */
@media (max-width: 620px) {
    body {
        font-size: 13px;
        line-height: 1.65;
    }

    .store-hero-copy {
        padding: 25px 19px;
    }

    .store-hero-copy h1 {
        margin-block: 9px 11px;
        font-size: clamp(27px, 8.5vw, 32px);
        line-height: 1.28;
    }

    .store-hero-copy > p {
        font-size: 12px;
        line-height: 1.75;
    }

    .hero-benefits {
        font-size: 10px;
    }

    .section {
        padding: 38px 0;
    }

    .section-heading {
        margin-bottom: 16px;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .category-grid,
    .product-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card {
        min-height: 164px;
        align-items: flex-start;
        flex-direction: column-reverse;
        justify-content: space-between;
        gap: 8px;
        padding: 15px;
        border-radius: 13px;
    }

    .category-card-copy > span {
        font-size: 8px;
    }

    .category-card h3 {
        margin: 4px 0;
        font-size: 15px;
        line-height: 1.45;
    }

    .category-card p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 9px;
        line-height: 1.65;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .category-symbol {
        width: 48px;
        height: 48px;
        align-self: flex-end;
    }

    .product-card,
    .catalog-card {
        min-height: 0;
        border-radius: 13px;
    }

    .product-visual {
        min-height: 142px;
        gap: 3px;
        padding: 15px 10px;
    }

    .product-diamond {
        width: 52px;
        height: 52px;
    }

    .product-visual strong {
        margin-top: 4px;
        font-size: 22px;
    }

    .product-badge,
    .catalog-status {
        min-height: 20px;
        top: 8px;
        right: 8px;
        padding-inline: 7px;
        font-size: 7px;
    }

    .product-content,
    .catalog-content {
        padding: 12px;
    }

    .product-title-row {
        gap: 7px;
    }

    .product-title-row h3,
    .catalog-content h2 {
        margin-top: 2px;
        font-size: 14px;
        line-height: 1.45;
    }

    .product-category {
        font-size: 8px;
    }

    .product-arrow {
        width: 25px;
        height: 25px;
        font-size: 11px;
    }

    .product-content > p,
    .catalog-content p {
        min-height: 0;
        display: -webkit-box;
        overflow: hidden;
        margin: 7px 0 10px;
        font-size: 9px;
        line-height: 1.6;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .product-status-row,
    .catalog-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        margin-top: 9px;
        padding-top: 9px;
        font-size: 8px;
    }

    .product-status-row strong,
    .catalog-footer strong {
        font-size: 9px;
    }

    .catalog-hero-inner {
        padding: 22px 17px;
    }

    .catalog-hero h1,
    .simple-page-hero h1 {
        font-size: 27px;
        line-height: 1.35;
    }

    .catalog-hero p {
        font-size: 11px;
    }

    .catalog-visual {
        min-height: 140px;
        gap: 5px;
        padding: 14px 10px;
    }

    .catalog-visual svg {
        width: 52px;
        height: 52px;
    }

    .catalog-visual strong {
        font-size: 9px;
        letter-spacing: .06em;
    }

    .catalog-request-card {
        min-height: 220px;
        padding: 17px;
    }

    .catalog-request-copy h2 {
        font-size: 19px;
    }

    .catalog-request-copy p {
        font-size: 10px;
    }

    .catalog-request-card .button {
        min-height: 36px;
        padding-inline: 13px;
        font-size: 10px;
    }

    .builder-section {
        padding: 36px 0;
    }

    .builder-product-card {
        flex-basis: 156px;
    }

    .builder-product-grid {
        gap: 10px;
        margin-inline: -2px;
        padding-inline: 2px;
    }

    .builder-product-heading-actions {
        width: 100%;
        justify-content: space-between;
    }

    .support-banner {
        min-height: 150px;
        padding: 23px 18px;
    }

    .support-banner h2 {
        font-size: 22px;
    }
}

@media (max-width: 350px) {
    .category-grid,
    .product-grid,
    .catalog-grid {
        gap: 8px;
    }

    .category-card,
    .product-content,
    .catalog-content {
        padding: 10px;
    }
}


/* =========================================================
   Phone-only bottom bar and mobile badge spacing
   ========================================================= */
@media (max-width: 820px) {
    body:not(.visual-editor-enabled) {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 180;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        pointer-events: none;
    }

    .mobile-bottom-nav-inner {
        pointer-events: auto;
    }

    .site-footer {
        margin-bottom: calc(-1 * env(safe-area-inset-bottom));
    }
}

@media (max-width: 620px) {
    /*
     * در کارت‌های دارای تگ، فضای بالای محتوا رزرو می‌شود تا تگ روی
     * عدد، عنوان یا تصویر محصول قرار نگیرد.
     */
    .product-visual.has-product-badge {
        padding-top: 40px;
    }

    .product-visual.has-product-badge .product-diamond {
        margin-top: 2px;
    }

    .product-badge {
        top: 8px;
        right: 8px;
        left: auto;
        max-width: calc(100% - 16px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /*
     * قانون قبلی موبایل padding کل کارت را کم می‌کرد و فضای تگ
     * پیشنهاد Adler از بین می‌رفت.
     */
    .package-card-popular {
        padding-top: 44px;
    }

    .package-card-popular .package-number {
        margin-top: 2px;
    }

    .package-badge {
        top: 9px;
        right: 9px;
        left: auto;
        max-width: calc(100% - 18px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 7px;
    }

    .mobile-bottom-nav-inner {
        min-height: 65px;
        padding-inline: 4px;
    }

    .mobile-bottom-nav-item {
        font-size: 7px;
    }

    .mobile-bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-nav-home-shell {
        width: 52px;
        height: 52px;
    }
}

/* Wallet responsive */
@media (max-width: 820px) {
    .account-wallet-card,
    .wallet-balance-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-wallet-card-actions {
        justify-items: stretch;
        width: 100%;
        min-width: 0;
    }

    .wallet-balance-mark {
        position: absolute;
        inset: 24px auto auto 24px;
        width: 82px;
        height: 82px;
        font-size: 34px;
        border-radius: 26px;
        opacity: .72;
    }

    .account-payment-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .account-wallet-card,
    .wallet-balance-hero {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .wallet-transaction-row {
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: start;
    }

    .wallet-transaction-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .wallet-transaction-amount {
        grid-column: 2;
        min-width: 0;
        text-align: right;
    }

    .account-payment-method-head {
        display: grid;
    }
}

@media (max-width: 760px) {
    .home-announcement-grid {
        grid-template-columns: 1fr;
    }

    .home-announcement-card {
        grid-template-columns: 8px minmax(0, 1fr);
        padding: 18px;
    }

    .home-announcement-card > a {
        grid-column: 2;
        justify-self: start;
        margin-top: 2px;
    }

    .floating-cart-button {
        left: 14px;
        bottom: calc(88px + env(safe-area-inset-bottom));
        grid-template-columns: 40px auto 28px;
        min-width: 0;
        max-width: calc(100vw - 28px);
        min-height: 56px;
        border-radius: 19px;
    }

    .floating-cart-icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .floating-cart-copy small {
        display: none;
    }

    .cart-modal {
        padding: 12px;
    }

    .cart-modal-card {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 24px;
    }

    .cart-modal-header,
    .cart-modal-body,
    .cart-modal-footer {
        padding-right: 17px;
        padding-left: 17px;
    }

    .cart-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .cart-item-icon {
        width: 42px;
        height: 42px;
    }

    .cart-item-actions {
        grid-column: 2;
        grid-template-columns: auto auto;
        align-items: center;
        justify-self: stretch;
        justify-content: space-between;
    }

    .order-cart-item,
    .public-order-item-list > div,
    .checkout-item-information-list header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ========================================================================
   Final mobile homepage, product rails and compact Why Adler fixes
   ======================================================================== */

/* Stable full-width hero on desktop: copy and character never overlap. */
.adler-home-hero-carousel,
.adler-home-hero-slide {
    min-height: clamp(500px, 36vw, 570px);
}

.adler-home-hero-default {
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
}

.adler-home-hero-copy {
    width: auto;
    min-width: 0;
    padding: clamp(38px, 4vw, 58px) clamp(30px, 3.4vw, 50px) 86px;
}

.adler-home-hero-copy h1 {
    font-size: clamp(36px, 4.2vw, 62px);
}

.adler-home-hero-visual {
    width: 50%;
}

.adler-home-hero-visual img {
    height: 100%;
    object-position: 61% 22%;
    transform: translate3d(
        var(--premium-character-x, 0),
        var(--premium-character-y, 0),
        0
    ) scale(1.015);
}

/* Reliable horizontal product rail with complete first-to-last travel. */
.builder-product-carousel {
    overflow: hidden;
    isolation: isolate;
}

.builder-product-grid {
    direction: ltr !important;
    display: flex !important;
    flex-direction: row !important;
    gap: clamp(12px, 1.5vw, 18px) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 12px 12px 24px !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    scrollbar-width: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.builder-product-grid::-webkit-scrollbar {
    display: none;
}

.builder-product-grid {
    cursor: grab;
}

.builder-product-grid.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.builder-product-card {
    direction: rtl;
    flex: 0 0 min(300px, 76vw) !important;
    min-width: min(300px, 76vw) !important;
    min-height: 420px !important;
    opacity: .76;
    filter: saturate(.76) brightness(.92);
    transform: translateY(7px) scale(.94);
    transform-origin: center;
    transition:
        opacity .44s ease,
        filter .44s ease,
        transform .62s cubic-bezier(.16, .84, .24, 1),
        box-shadow .44s ease !important;
}

.builder-product-card.is-carousel-current {
    z-index: 3;
    opacity: 1;
    filter: saturate(1) brightness(1);
    transform: translateY(-5px) scale(1);
    box-shadow: 0 24px 54px rgba(12, 7, 31, .32), 0 0 0 1px rgba(48, 210, 170, .18);
}

.builder-product-card.is-carousel-entering {
    animation: adlerProductRailMorph .68s cubic-bezier(.16, .84, .24, 1) both;
}

.builder-product-card.is-carousel-before,
.builder-product-card.is-carousel-after {
    opacity: .72;
}

.builder-product-grid.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.builder-product-grid.is-dragging .builder-product-card {
    transition-duration: .12s !important;
}

@keyframes adlerProductRailMorph {
    0% {
        opacity: .58;
        transform: translateY(10px) scale(.91);
        filter: blur(2px) saturate(.68);
    }
    48% {
        opacity: 1;
        transform: translateY(-8px) scale(1.025);
        filter: blur(0) saturate(1.08);
    }
    100% {
        opacity: 1;
        transform: translateY(-5px) scale(1);
        filter: blur(0) saturate(1);
    }
}

@media (max-width: 700px) {
    /* Mobile hero: compact, readable, and no controls/content collision. */
    .adler-home-stage-section {
        padding: 12px 0 30px !important;
    }

    .adler-home-stage {
        gap: 12px !important;
    }

    .adler-home-hero-carousel,
    .adler-home-hero-slide {
        width: 100%;
        min-height: clamp(520px, 142vw, 610px) !important;
        height: clamp(520px, 142vw, 610px) !important;
        border-radius: 24px !important;
    }

    .adler-home-hero-default {
        display: block !important;
        grid-template-columns: none !important;
    }

    .adler-home-hero-default::before {
        inset-inline-start: 20px !important;
        top: 20px !important;
        font-size: 62px !important;
    }

    .adler-home-hero-grid-pattern {
        opacity: .1;
        mask-image: linear-gradient(180deg, #000, transparent 70%);
    }

    .adler-home-hero-copy,
    .adler-home-custom-copy {
        position: relative !important;
        inset: auto !important;
        z-index: 5 !important;
        width: 100% !important;
        min-height: 100% !important;
        justify-content: flex-start !important;
        padding: 24px 20px 86px !important;
        background:
            linear-gradient(180deg, rgba(11, 6, 29, .82) 0%, rgba(11, 6, 29, .58) 42%, rgba(11, 6, 29, .9) 100%) !important;
    }

    .adler-home-hero-brand {
        min-height: 38px !important;
        margin: 0 0 16px !important;
        padding: 4px 9px 4px 5px !important;
    }

    .adler-home-hero-brand img {
        width: 28px !important;
        height: 28px !important;
    }

    .adler-home-hero-brand span {
        font-size: 11px !important;
    }

    .adler-home-hero-eyebrow,
    .adler-home-custom-copy > span {
        margin: 0 0 8px !important;
        font-size: 11px !important;
    }

    .adler-home-hero-copy h1,
    .adler-home-custom-copy h2 {
        max-width: 100% !important;
        margin: 0 !important;
        font-size: clamp(31px, 9vw, 42px) !important;
        line-height: 1.28 !important;
        letter-spacing: -.035em !important;
    }

    .adler-home-hero-copy h1 strong {
        margin-top: 5px;
        font-size: .72em !important;
        line-height: 1.45 !important;
    }

    .adler-home-hero-copy > p,
    .adler-home-custom-copy p {
        display: -webkit-box !important;
        max-width: 100% !important;
        max-height: 76px !important;
        margin: 15px 0 0 !important;
        overflow: hidden !important;
        color: rgba(243, 238, 255, .78) !important;
        font-size: 11px !important;
        line-height: 1.9 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .adler-home-hero-cta,
    .adler-home-custom-copy > a {
        width: auto !important;
        min-width: 178px !important;
        min-height: 48px !important;
        margin-top: 18px !important;
        padding-inline: 22px !important;
        align-self: flex-start !important;
        font-size: 12px !important;
    }

    .adler-home-hero-benefits {
        display: none !important;
    }

    .adler-home-hero-visual {
        top: 0 !important;
        right: 0 !important;
        z-index: 1 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: .55 !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        transform: none !important;
    }

    .adler-home-hero-visual::before {
        background:
            linear-gradient(180deg, rgba(14, 7, 36, .48) 0%, rgba(14, 7, 36, .14) 44%, rgba(14, 7, 36, .7) 100%) !important;
    }

    .adler-home-hero-visual::after {
        background: linear-gradient(90deg, rgba(13, 6, 33, .72), transparent 74%) !important;
    }

    .adler-home-hero-visual img {
        width: 100% !important;
        height: 100% !important;
        object-position: 63% 30% !important;
        transform: scale(1.02) !important;
    }

    .adler-home-hero-custom::after {
        z-index: 1;
        background: linear-gradient(180deg, rgba(10, 5, 26, .42), rgba(10, 5, 26, .82)) !important;
    }

    .adler-home-custom-media img {
        object-position: 62% center !important;
    }

    .adler-home-custom-price {
        margin-top: 14px !important;
        font-size: 18px !important;
    }

    .adler-home-hero-navigation {
        right: 16px !important;
        bottom: 15px !important;
        gap: 9px !important;
    }

    .adler-home-hero-arrows {
        gap: 6px !important;
    }

    .adler-home-hero-arrows button {
        width: 35px !important;
        height: 35px !important;
    }

    /* Recommended products: a readable swipe row instead of collapsed pills. */
    .home-recommended-section .product-grid {
        direction: ltr;
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        margin-inline: -12px;
        padding: 4px 12px 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .home-recommended-section .product-grid::-webkit-scrollbar {
        display: none;
    }

    .home-recommended-section .product-card {
        direction: rtl;
        flex: 0 0 min(78vw, 300px) !important;
        width: min(78vw, 300px) !important;
        min-height: 392px !important;
        border-radius: 26px !important;
        scroll-snap-align: center;
    }

    .home-recommended-section .product-card-link,
    .builder-product-card .product-card-link {
        position: absolute !important;
        inset: 8px !important;
        display: block !important;
    }

    .home-recommended-section .product-visual,
    .builder-product-card .product-visual {
        position: absolute !important;
        inset: 8px !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .home-recommended-section .product-content,
    .builder-product-card .product-content {
        position: absolute !important;
        right: 8px !important;
        bottom: 8px !important;
        left: 8px !important;
    }

    /* Discount/product builder rail cards remain full cards on phones. */
    .builder-product-card {
        flex-basis: min(80vw, 304px) !important;
        min-width: min(80vw, 304px) !important;
        min-height: 400px !important;
        border-radius: 26px !important;
    }

    .builder-product-grid {
        margin-inline: -12px !important;
        padding-inline: 18px !important;
    }

    .builder-product-controls button {
        width: 40px !important;
        height: 40px !important;
    }

    /* Four compact Why Adler choices in one row. */
    .why-adler-placards {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .why-adler-placard {
        min-width: 0 !important;
        min-height: 116px !important;
        padding: 11px 7px !important;
        border-radius: 15px !important;
    }

    .why-adler-placard::after,
    .why-placard-rivet {
        display: none !important;
    }

    .why-placard-meta {
        align-items: center !important;
        justify-content: space-between !important;
        gap: 3px !important;
    }

    .why-adler-placard .why-adler-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 10px !important;
    }

    .why-adler-placard .why-adler-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .why-adler-placard .why-adler-number {
        font-size: 7px !important;
    }

    .why-adler-placard h3 {
        margin: 10px 0 0 !important;
        font-size: 10px !important;
        line-height: 1.55 !important;
        text-align: center;
    }

    .why-adler-placard p {
        display: none !important;
    }
}

@media (max-width: 380px) {
    .adler-home-hero-carousel,
    .adler-home-hero-slide {
        min-height: 540px !important;
        height: 540px !important;
    }

    .adler-home-hero-copy,
    .adler-home-custom-copy {
        padding-inline: 17px !important;
    }

    .adler-home-hero-copy h1,
    .adler-home-custom-copy h2 {
        font-size: 30px !important;
    }

    .why-adler-placards {
        gap: 5px !important;
    }

    .why-adler-placard {
        min-height: 108px !important;
        padding-inline: 5px !important;
    }

    .why-adler-placard h3 {
        font-size: 9px !important;
    }
}


/* ========================================================================
   Desktop hero CTA visibility + true automatic RTL product rail
   ======================================================================== */
@media (min-width: 701px) {
    .adler-home-hero-carousel,
    .adler-home-hero-slide {
        min-height: clamp(550px, 38vw, 610px) !important;
    }

    .adler-home-hero-copy {
        justify-content: center !important;
        padding-top: 34px !important;
        padding-bottom: 78px !important;
        overflow: visible !important;
    }

    .adler-home-hero-brand {
        margin-bottom: 0 !important;
    }

    .adler-home-hero-eyebrow {
        margin-top: 17px !important;
        margin-bottom: 0 !important;
    }

    .adler-home-hero-copy h1 {
        margin-top: 9px !important;
        font-size: clamp(34px, 3.55vw, 55px) !important;
        line-height: 1.13 !important;
    }

    .adler-home-hero-copy > p {
        display: -webkit-box !important;
        max-width: 560px !important;
        max-height: 62px !important;
        margin-top: 15px !important;
        overflow: hidden !important;
        line-height: 1.85 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .adler-home-hero-cta {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        min-height: 54px !important;
        margin-top: 18px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .adler-home-hero-benefits {
        margin-top: 18px !important;
    }
}

/* The rail uses a normal LTR scroll axis. Product markup is reversed server-side,
   preserving the RTL visual order without Safari's negative-scroll dead zone. */
.builder-product-grid {
    scroll-behavior: auto !important;
    will-change: scroll-position;
}

.builder-product-carousel.is-carousel-moving .builder-product-card,
.builder-product-carousel.is-carousel-moving .builder-product-card.is-carousel-current {
    transition:
        opacity .42s ease,
        filter .42s ease,
        transform .62s cubic-bezier(.16, .84, .24, 1),
        box-shadow .42s ease !important;
}

@media (max-width: 560px) {
    .footer-trust-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-trust-actions > a {
        width: 100%;
        justify-content: flex-start;
    }
}
