/*
 * AL Shop Homepage + Existing Footer Cleanup V1.4
 * One brand color, one footer, no extra footer sections.
 */

:root {
    --alshop-orange: #ff4b1f;
    --alshop-orange-dark: #d93610;
    --alshop-orange-soft: #fff1eb;
    --alshop-ink: #172033;
    --alshop-footer: #202129;
    --alshop-footer-soft: #272932;
    --alshop-footer-text: #e2e5eb;
    --alshop-footer-muted: #adb5c2;
}

/* Global scrollbar retained. */
html.alshop-global-scrollbar-v14 {
    scrollbar-width: auto !important;
    scrollbar-color: var(--alshop-orange) #e8edf3 !important;
    scrollbar-gutter: stable !important;
    -ms-overflow-style: scrollbar !important;
}

html.alshop-global-scrollbar-v14::-webkit-scrollbar {
    display: block !important;
    -webkit-appearance: none !important;
    width: 15px !important;
    min-width: 15px !important;
    background: #e8edf3 !important;
}

html.alshop-global-scrollbar-v14::-webkit-scrollbar-track {
    display: block !important;
    background: #e8edf3 !important;
    box-shadow: inset 0 0 0 1px #dce2ea !important;
}

html.alshop-global-scrollbar-v14::-webkit-scrollbar-thumb {
    display: block !important;
    min-height: 76px !important;
    border: 3px solid #e8edf3 !important;
    border-radius: 999px !important;
    background: linear-gradient(
        180deg,
        #ff6840,
        var(--alshop-orange-dark)
    ) !important;
    background-clip: padding-box !important;
}

html.alshop-global-scrollbar-v14::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        var(--alshop-orange),
        #b92809
    ) !important;
    background-clip: padding-box !important;
}

@media (min-width: 992px) {
    html.alshop-global-scrollbar-v14 {
        overflow-y: scroll;
    }
}

html.alshop-global-scrollbar-v14.alshop-modal-scroll-lock-v14 {
    overflow: hidden !important;
}

/* Category icons: one AL Shop orange family only. */
.agm-home-v4 .agm-premium-cat-icon,
.agm-home-v4 .agm-premium-cat-icon--beauty,
.agm-home-v4 .agm-premium-cat-icon--food,
.agm-home-v4 .agm-premium-cat-icon--books,
.agm-home-v4 .agm-premium-cat-icon--perfume,
.agm-home-v4 .agm-premium-cat-icon--accessory,
.agm-home-v4 .agm-premium-cat-icon--clothing,
.agm-home-v4 .agm-premium-cat-icon--default {
    --agm-cat-icon-color: var(--alshop-orange) !important;
    --agm-cat-icon-soft: var(--alshop-orange-soft) !important;
    --agm-cat-icon-glow: rgba(255, 75, 31, .14) !important;
    color: var(--alshop-orange) !important;
    border-color: rgba(255, 75, 31, .11) !important;
    background:
        radial-gradient(
            circle at 25% 18%,
            rgba(255, 255, 255, .98),
            rgba(255, 255, 255, .52) 34%,
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #fff0e9,
            #fff
        ) !important;
}

.agm-home-v4 .agm-cat-list > li > a:hover {
    color: var(--alshop-orange) !important;
    background: linear-gradient(
        90deg,
        rgba(255, 75, 31, .065),
        rgba(255, 255, 255, .45)
    ) !important;
}

/* Mobile category rail stays removed/hidden. */
@media (max-width: 991.98px) {
    .agm-home-v4 .agm-mobile-category-rail {
        display: none !important;
    }
}

/* Equal hero height retained. */
@media (min-width: 1200px) {
    .agm-home-v4 .agm-verified-hero-card,
    .agm-home-v4 .agm-verified-hero-slider,
    .agm-home-v4 .agm-verified-hero-slider .slick-list,
    .agm-home-v4 .agm-verified-hero-slider .slick-track,
    .agm-home-v4 .agm-verified-hero-slider .slick-slide,
    .agm-home-v4 .agm-verified-hero-slider .slick-slide > div {
        min-height: 390px !important;
        height: 390px !important;
        max-height: 390px !important;
    }

    .agm-home-v4 .agm-verified-slide {
        height: 390px !important;
        min-height: 390px !important;
        max-height: 390px !important;
        padding: 28px 34px !important;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .agm-home-v4 .agm-verified-hero-card,
    .agm-home-v4 .agm-verified-hero-slider,
    .agm-home-v4 .agm-verified-hero-slider .slick-list,
    .agm-home-v4 .agm-verified-hero-slider .slick-track,
    .agm-home-v4 .agm-verified-hero-slider .slick-slide,
    .agm-home-v4 .agm-verified-hero-slider .slick-slide > div {
        min-height: 360px !important;
        height: 360px !important;
        max-height: 360px !important;
    }

    .agm-home-v4 .agm-verified-slide {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
        padding: 22px 24px !important;
    }
}

/* Copy layout: CTA can never be clipped. */
@media (min-width: 992px) {
    .agm-home-v4 .agm-verified-slide {
        grid-template-columns:
            minmax(285px, .82fr)
            minmax(430px, 1.18fr) !important;
        align-items: center !important;
    }

    .agm-home-v4 .agm-verified-slide-copy {
        display: grid !important;
        grid-template-rows:
            auto
            auto
            minmax(38px, auto)
            48px !important;
        align-content: center !important;
        align-items: start !important;
        gap: 9px !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .agm-home-v4 .agm-verified-slide-badge {
        margin: 0 !important;
        max-width: 100% !important;
    }

    .agm-home-v4 .agm-verified-slide-copy h1 {
        display: -webkit-box !important;
        min-height: 0 !important;
        max-height: 2.05em !important;
        margin: 0 !important;
        overflow: hidden !important;
        font-size: clamp(34px, 3.4vw, 53px) !important;
        line-height: 1.01 !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .agm-home-v4 .agm-verified-slide-copy h1::after {
        margin-top: 10px !important;
    }

    .agm-home-v4 .agm-verified-slide-copy p {
        display: -webkit-box !important;
        min-height: 0 !important;
        max-height: 3.15em !important;
        margin: 0 !important;
        overflow: hidden !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .agm-home-v4 .agm-verified-slide-actions {
        display: flex !important;
        align-items: center !important;
        min-height: 48px !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .agm-home-v4 .agm-verified-slide-cta {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 150px !important;
        min-height: 44px !important;
        padding: 0 17px !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }

    .agm-home-v4 .agm-verified-slide-note {
        display: none !important;
    }

    /* Products centered with controlled premium rhythm. */
    .agm-home-v4 .agm-verified-products {
        display: flex !important;
        align-items: center !important;
        align-self: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 3px 0 12px !important;
        gap: clamp(8px, .85vw, 13px) !important;
        overflow: visible !important;
    }

    .agm-home-v4 .agm-verified-product {
        flex: 0 1 126px !important;
        width: min(100%, 126px) !important;
        max-width: 126px !important;
        height: auto !important;
        max-height: none !important;
        transform-origin: center center !important;
    }

    .agm-home-v4 .agm-verified-product:nth-child(1) {
        transform: translateY(15px) !important;
    }

    .agm-home-v4 .agm-verified-product:nth-child(2) {
        transform: translateY(-17px) !important;
    }

    .agm-home-v4 .agm-verified-product:nth-child(3) {
        transform: translateY(12px) !important;
    }

    .agm-home-v4 .agm-verified-product:nth-child(4) {
        transform: translateY(-13px) !important;
    }

    .agm-home-v4 .agm-verified-product-image-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 164px !important;
        aspect-ratio: 1 / 1.08 !important;
        padding: 6px !important;
        border-radius: 14px 14px 8px 8px !important;
        background: rgba(255, 255, 255, .94) !important;
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, .95),
            0 10px 22px rgba(31, 41, 55, .09) !important;
    }

    .agm-home-v4 .agm-verified-product img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    .agm-home-v4 .agm-verified-product-name {
        min-height: 29px !important;
        max-height: 29px !important;
        margin-top: 6px !important;
        font-size: 9.3px !important;
        line-height: 1.28 !important;
    }
}

/* Preserve the existing good mobile layout. */
@media (max-width: 991.98px) {
    .agm-home-v4 .agm-verified-product,
    .agm-home-v4 .agm-verified-product:nth-child(1),
    .agm-home-v4 .agm-verified-product:nth-child(2),
    .agm-home-v4 .agm-verified-product:nth-child(3),
    .agm-home-v4 .agm-verified-product:nth-child(4) {
        transform: none !important;
    }

    .agm-home-v4 .agm-verified-slide-actions {
        overflow: visible !important;
    }

    .agm-home-v4 .agm-verified-slide-cta {
        min-height: 44px !important;
        overflow: visible !important;
    }
}

/* Edit only the existing footer. */
footer.alshop-footer-clean-v14 {
    position: relative !important;
    margin-top: 30px !important;
    overflow: hidden !important;
    border-top: 3px solid var(--alshop-orange) !important;
    color: var(--alshop-footer-text) !important;
    background:
        radial-gradient(
            circle at 91% 7%,
            rgba(255, 75, 31, .08),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            var(--alshop-footer),
            var(--alshop-footer-soft)
        ) !important;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, .065) !important;
}

footer.alshop-footer-clean-v14,
footer.alshop-footer-clean-v14 .bg-dark,
footer.alshop-footer-clean-v14 .bg-black,
footer.alshop-footer-clean-v14 .bg-white,
footer.alshop-footer-clean-v14 .bg-soft-primary {
    color: var(--alshop-footer-text) !important;
    background-color: transparent !important;
    background-image: none !important;
}

footer.alshop-footer-clean-v14 .container {
    width: 100% !important;
    max-width: 1180px !important;
    padding-right: 18px !important;
    padding-left: 18px !important;
}

footer.alshop-footer-clean-v14 section.py-4,
footer.alshop-footer-clean-v14 section.py-5,
footer.alshop-footer-clean-v14 > .py-4,
footer.alshop-footer-clean-v14 > .py-5 {
    padding-top: 30px !important;
    padding-bottom: 25px !important;
}

footer.alshop-footer-clean-v14 .row {
    align-items: flex-start !important;
    row-gap: 22px !important;
}

footer.alshop-footer-clean-v14 .row > [class*="col-"] {
    min-width: 0 !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
}

footer.alshop-footer-clean-v14 h1,
footer.alshop-footer-clean-v14 h2,
footer.alshop-footer-clean-v14 h3,
footer.alshop-footer-clean-v14 h4,
footer.alshop-footer-clean-v14 h5,
footer.alshop-footer-clean-v14 h6,
footer.alshop-footer-clean-v14 .footer-title {
    margin: 0 0 14px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    line-height: 1.3 !important;
}

footer.alshop-footer-clean-v14 h1::after,
footer.alshop-footer-clean-v14 h2::after,
footer.alshop-footer-clean-v14 h3::after,
footer.alshop-footer-clean-v14 h4::after,
footer.alshop-footer-clean-v14 h5::after,
footer.alshop-footer-clean-v14 h6::after,
footer.alshop-footer-clean-v14 .footer-title::after {
    display: block !important;
    width: 30px !important;
    height: 3px !important;
    margin-top: 7px !important;
    border-radius: 999px !important;
    background: var(--alshop-orange) !important;
    content: "" !important;
}

footer.alshop-footer-clean-v14 p,
footer.alshop-footer-clean-v14 address,
footer.alshop-footer-clean-v14 .text-muted,
footer.alshop-footer-clean-v14 .text-secondary,
footer.alshop-footer-clean-v14 .text-light {
    color: var(--alshop-footer-muted) !important;
    font-size: 13.5px !important;
    line-height: 1.68 !important;
}

footer.alshop-footer-clean-v14 ul {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

footer.alshop-footer-clean-v14 li {
    margin-bottom: 7px !important;
}

footer.alshop-footer-clean-v14 a {
    color: var(--alshop-footer-text) !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    text-decoration: none !important;
}

footer.alshop-footer-clean-v14 a:hover,
footer.alshop-footer-clean-v14 a:focus {
    color: #ff8c68 !important;
}

footer.alshop-footer-clean-v14 .border-top,
footer.alshop-footer-clean-v14 .border-bottom {
    border-color: rgba(255, 255, 255, .09) !important;
}

/*
 * Aggressive logo guard:
 * even width/height utility classes from the theme cannot enlarge it.
 */
footer.alshop-footer-clean-v14 .alshop-footer-logo-link-v14 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 174px !important;
    min-width: 174px !important;
    max-width: 174px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 0 14px !important;
    padding: 8px 11px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .74) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15) !important;
}

footer.alshop-footer-clean-v14 img.alshop-footer-logo-v14 {
    display: block !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: none !important;
    opacity: 1 !important;
}

footer.alshop-footer-clean-v14 input,
footer.alshop-footer-clean-v14 select,
footer.alshop-footer-clean-v14 textarea {
    min-height: 42px !important;
    border: 1px solid rgba(255, 255, 255, .13) !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .065) !important;
    box-shadow: none !important;
}

footer.alshop-footer-clean-v14 button,
footer.alshop-footer-clean-v14 .btn-primary,
footer.alshop-footer-clean-v14 .btn-soft-primary {
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: linear-gradient(
        135deg,
        #ff6338,
        var(--alshop-orange-dark)
    ) !important;
}

footer.alshop-footer-clean-v14 .social a,
footer.alshop-footer-clean-v14 [class*="social"] a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    margin: 2px !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .055) !important;
}

footer.alshop-footer-clean-v14 .copyright,
footer.alshop-footer-clean-v14 [class*="copyright"] {
    color: #939cab !important;
    font-size: 12px !important;
}

@media (max-width: 991.98px) {
    footer.alshop-footer-clean-v14 {
        padding-bottom: 72px !important;
    }
}

@media (max-width: 575.98px) {
    footer.alshop-footer-clean-v14 .container {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    footer.alshop-footer-clean-v14 .row {
        row-gap: 18px !important;
    }

    footer.alshop-footer-clean-v14 .row > [class*="col-"] {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}
