/* =========================================================
   ANWAR & SONS
   HOMEPAGE PRODUCT SHOWCASE
========================================================= */

.anwar-home-showcase,
.anwar-home-showcase * {
    box-sizing: border-box;
}

.anwar-home-showcase {
    --as-blue: #2654b1;
    --as-blue-dark: #1f4695;
    --as-text: #0e1f3d;
    --as-muted: #66758f;
    --as-border: #dce4ef;
    --as-soft: #f5f8ff;
    --as-white: #ffffff;

    width: 100%;
    padding: 80px 20px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );
}

.anwar-home-showcase-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.anwar-home-showcase-heading {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.anwar-home-showcase-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;
    padding: 8px 18px;

    border-radius: 999px;

    background: #edf5ff;
    color: var(--as-blue);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.anwar-home-showcase-heading h2 {
    margin: 0 0 14px;

    color: var(--as-text);

    font-size: clamp(32px, 3.8vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.anwar-home-showcase-heading p {
    max-width: 760px;
    margin: 0 auto;

    color: var(--as-muted);

    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   FAMILY GRID
========================================================= */

.anwar-home-family-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    align-items: stretch;
}


/* =========================================================
   FAMILY CARD
========================================================= */

.anwar-home-family-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--as-border);
    border-radius: 14px;

    background: var(--as-white);

    box-shadow:
        0 8px 28px rgba(20, 48, 95, .06);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .anwar-home-family-card:hover {
        transform: translateY(-3px);

        box-shadow:
            0 16px 38px rgba(20, 48, 95, .10);
    }
}


/* =========================================================
   FAMILY VISUAL
========================================================= */

.anwar-home-family-visual {
    position: relative;

    min-height: 300px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f6f9ff,
            #edf4ff
        );

    isolation: isolate;
}

.anwar-home-family-image {
    position: absolute;

    inset: 0;

    z-index: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transform: scale(1.01);

    transition:
        transform .55s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
    .anwar-home-family-card:hover
    .anwar-home-family-image {
        transform: scale(1.045);
    }
}

.anwar-home-family-placeholder {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    padding: 32px;
}

.anwar-home-family-placeholder svg {
    width: 140px;
    height: 140px;

    fill: none;

    stroke: rgba(38, 84, 177, .15);
    stroke-width: 1.8;
}

.anwar-home-family-gradient {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(247, 250, 255, .98) 0%,
            rgba(247, 250, 255, .93) 42%,
            rgba(247, 250, 255, .52) 70%,
            rgba(247, 250, 255, .10) 100%
        );
}

.anwar-home-family-copy {
    position: relative;

    z-index: 2;

    width: 70%;
    min-height: 300px;

    padding: 34px 28px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.anwar-home-family-copy > span {
    margin-bottom: 10px;

    color: var(--as-blue);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.anwar-home-family-copy h3 {
    margin: 0 0 14px;

    color: var(--as-text);

    font-size: clamp(27px, 2.25vw, 36px);
    font-weight: 700;
    line-height: 1.08;
}

.anwar-home-family-copy p {
    margin: 0 0 18px;

    color: #4f6079;

    font-size: 14px;
    line-height: 1.55;
}

.anwar-home-family-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--as-blue) !important;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none !important;
}

.anwar-home-family-link span {
    transition: transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .anwar-home-family-link:hover span {
        transform: translateX(4px);
    }
}


/* =========================================================
   CHILD TABS
========================================================= */

.anwar-home-child-tabs {
    padding: 18px 16px 14px;

    display: flex;

    gap: 8px;

    overflow-x: auto;

    scrollbar-width: none;
}

.anwar-home-child-tabs::-webkit-scrollbar {
    display: none;
}

.anwar-home-child-tab {
    flex: 0 0 auto;

    min-height: 38px;

    padding: 9px 15px;

    border: 1px solid transparent;
    border-radius: 999px;

    background: #f3f5f8;
    color: #64728a;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;

    box-shadow: none;

    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.anwar-home-child-tab.is-active {
    border-color: var(--as-blue);

    background: var(--as-blue);
    color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
    .anwar-home-child-tab:not(.is-active):hover {
        border-color: rgba(38, 84, 177, .18);

        color: var(--as-blue);
        background: #edf4ff;

        transform: translateY(-1px);
    }
}


/* =========================================================
   PRODUCT LIST HEADING
========================================================= */

.anwar-home-products-heading {
    margin: 0 16px;

    padding: 14px 0 12px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-top: 1px solid #edf0f5;
}

.anwar-home-products-label {
    min-width: 0;

    color: var(--as-text);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.anwar-home-products-view-all {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--as-blue) !important;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none !important;
}

.anwar-home-products-view-all span {
    transition: transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .anwar-home-products-view-all:hover span {
        transform: translateX(3px);
    }
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.anwar-home-products-grid {
    position: relative;

    min-height: 230px;

    padding: 0 16px 18px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    transition:
        opacity .22s ease,
        transform .22s ease;
}

.anwar-home-products-grid.is-loading {
    opacity: .45;

    transform: translateY(2px);

    pointer-events: none;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.anwar-home-product-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid #e0e7f0;
    border-radius: 9px;

    background: #ffffff;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.anwar-home-product-card-link {
    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    color: inherit !important;

    text-decoration: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .anwar-home-product-card:hover {
        border-color: rgba(38, 84, 177, .25);

        box-shadow:
            0 10px 22px rgba(38, 84, 177, .08);

        transform: translateY(-2px);
    }
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.anwar-home-product-image {
    width: 100%;
    height: 125px;

    padding: 8px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #fbfcff;
}

.anwar-home-product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    transition: transform .3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .anwar-home-product-card:hover
    .anwar-home-product-image img {
        transform: scale(1.04);
    }
}

.anwar-home-product-placeholder {
    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #dce4ef;
    border-radius: 50%;

    background: var(--as-soft);
    color: var(--as-blue);

    font-size: 11px;
}


/* =========================================================
   PRODUCT CONTENT
========================================================= */

.anwar-home-product-content {
    flex: 1;

    padding: 10px 11px 12px;

    display: flex;

    flex-direction: column;
    align-items: flex-start;
}

.anwar-home-product-maker {
    margin-bottom: 5px;

    color: var(--as-blue);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.anwar-home-product-content h4 {
    width: 100%;

    margin: 0 0 9px;

    color: var(--as-text);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.28;
    text-align: left;

    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

.anwar-home-product-link {
    margin-top: auto;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--as-blue);

    font-size: 11px;
    font-weight: 700;
}

.anwar-home-product-arrow {
    transition: transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .anwar-home-product-card:hover
    .anwar-home-product-arrow {
        transform: translateX(3px);
    }
}


/* =========================================================
   EMPTY PRODUCT RESULT
========================================================= */

.anwar-home-products-empty {
    grid-column: 1 / -1;

    min-height: 170px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    border: 1px dashed #dce4ef;
    border-radius: 9px;

    background: #fafcff;
    color: var(--as-muted);

    font-size: 13px;
    text-align: center;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.anwar-home-showcase-footer {
    margin-top: 28px;

    padding: 22px 26px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    border: 1px solid #dce7f5;
    border-radius: 13px;

    background:
        linear-gradient(
            90deg,
            #edf6ff 0%,
            #f7fbff 100%
        );
}

.anwar-home-showcase-footer > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.anwar-home-showcase-footer strong {
    color: var(--as-text);
    font-size: 15px;
}

.anwar-home-showcase-footer span {
    color: var(--as-muted);
    font-size: 13px;
}

.anwar-home-showcase-cta {
    flex: 0 0 auto;

    min-height: 48px;

    padding: 12px 24px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 1px solid var(--as-blue);
    border-radius: 9px;

    background: var(--as-blue);
    color: #ffffff !important;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none !important;

    transition:
        background-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.anwar-home-showcase-cta span {
    color: inherit;
}

@media (hover: hover) and (pointer: fine) {
    .anwar-home-showcase-cta:hover {
        background: var(--as-blue-dark);

        box-shadow:
            0 10px 20px rgba(38, 84, 177, .16);

        transform: translateY(-1px);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1279px) {
    .anwar-home-family-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .anwar-home-showcase {
        padding: 58px 14px;
    }

    .anwar-home-showcase-heading {
        margin-bottom: 28px;
    }

    .anwar-home-showcase-heading p {
        font-size: 14px;
    }

    .anwar-home-family-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .anwar-home-family-visual {
        min-height: 250px;
    }

    .anwar-home-family-copy {
        width: min(78%, 420px);
        min-height: 250px;

        padding: 28px 22px;
    }

    .anwar-home-child-tabs {
        padding: 15px 13px 12px;
    }

    .anwar-home-products-heading {
        margin: 0 13px;
    }

    .anwar-home-products-grid {
        min-height: 215px;

        padding: 0 13px 15px;

        display: grid;

        grid-auto-flow: column;
        grid-auto-columns: minmax(145px, 72%);

        grid-template-columns: none;

        overflow-x: auto;

        scroll-snap-type: x proximity;

        scrollbar-width: none;
    }

    .anwar-home-products-grid::-webkit-scrollbar {
        display: none;
    }

    .anwar-home-product-card {
        scroll-snap-align: start;
    }

    .anwar-home-product-image {
        height: 135px;
    }

    .anwar-home-showcase-footer {
        margin-top: 20px;

        padding: 20px;

        flex-direction: column;

        align-items: stretch;
    }

    .anwar-home-showcase-cta {
        width: 100%;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .anwar-home-showcase {
        padding-left: 10px;
        padding-right: 10px;
    }

    .anwar-home-family-copy {
        width: 84%;

        padding: 24px 18px;
    }

    .anwar-home-products-grid {
        grid-auto-columns:
            minmax(140px, 82%);
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .anwar-home-family-card,
    .anwar-home-family-image,
    .anwar-home-child-tab,
    .anwar-home-products-grid,
    .anwar-home-product-card,
    .anwar-home-product-image img,
    .anwar-home-product-arrow,
    .anwar-home-showcase-cta {
        transition: none !important;
    }
}


/* =========================================================
   PARENT CATEGORY SLIDER
   Shows all eligible parent categories.
========================================================= */

.anwar-home-family-slider {
    position: relative;
    width: 100%;
    min-width: 0;
}

.anwar-home-family-grid {
    width: 100%;

    display: flex;
    align-items: stretch;

    gap: 18px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 4px 4px 10px;
    margin: -4px -4px 0;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.anwar-home-family-grid::-webkit-scrollbar {
    display: none;
}

.anwar-home-family-card {
    flex: 0 0 calc((100% - 36px) / 3);

    scroll-snap-align: start;
    scroll-snap-stop: normal;
}


/* =========================================================
   SLIDER CONTROLS
========================================================= */

.anwar-home-family-slider-controls {
    margin-top: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;
}

.anwar-home-family-slider-controls.is-hidden {
    display: none;
}

.anwar-home-family-arrow {
    width: 42px;
    height: 42px;

    min-width: 42px;
    min-height: 42px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--as-blue);
    border-radius: 50%;

    background: #ffffff;
    color: var(--as-blue);

    font: inherit;
    font-size: 18px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(38, 84, 177, .06);

    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        opacity .25s ease;
}

.anwar-home-family-arrow:disabled {
    opacity: .34;
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {

    .anwar-home-family-arrow:not(:disabled):hover {
        background: var(--as-blue);
        color: #ffffff;

        transform: translateY(-1px);
    }
}

.anwar-home-family-dots {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}

.anwar-home-family-dot {
    width: 8px;
    height: 8px;

    min-width: 8px;
    min-height: 8px;

    padding: 0;

    border: 0;
    border-radius: 999px;

    background: #cad4e4;

    cursor: pointer;

    transition:
        width .25s ease,
        background-color .25s ease,
        transform .25s ease;
}

.anwar-home-family-dot.is-active {
    width: 22px;

    background: var(--as-blue);
}


/* =========================================================
   SLIDER — TABLET
========================================================= */

@media (max-width: 1279px) {

    .anwar-home-family-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}


/* =========================================================
   SLIDER — MOBILE
========================================================= */

@media (max-width: 767px) {

    .anwar-home-family-grid {
        gap: 12px;

        padding-bottom: 8px;
    }

    .anwar-home-family-card {
        flex-basis: 88%;
    }

    .anwar-home-family-slider-controls {
        margin-top: 16px;

        gap: 11px;
    }

    .anwar-home-family-arrow {
        width: 38px;
        height: 38px;

        min-width: 38px;
        min-height: 38px;
    }
}


@media (max-width: 420px) {

    .anwar-home-family-card {
        flex-basis: 91%;
    }
}
/* =========================================================
   PARENT CATEGORY SLIDER
   DOTS ONLY
========================================================= */


/* Remove any old controls/arrows */

.anwar-home-slider-controls,
.anwar-home-slider-arrow,
.anwar-home-slider-prev,
.anwar-home-slider-next {
    display: none !important;
}


/* Slider track */

.anwar-home-family-slider-track {
    width: 100%;

    display: flex !important;

    gap: 18px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    -ms-overflow-style: none;
}


.anwar-home-family-slider-track::-webkit-scrollbar {
    display: none;
}


/* Desktop: 3 cards */

.anwar-home-family-slider-track
.anwar-home-family-card {
    flex:
        0 0
        calc(
            (100% - 36px)
            / 3
        );

    scroll-snap-align: start;
}


/* =========================================================
   SMALL DOTS
========================================================= */

.anwar-home-slider-dots {
    width: 100%;

    margin-top: 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;
}


.anwar-home-slider-dot {
    width: 7px !important;
    height: 7px !important;

    min-width: 7px !important;
    min-height: 7px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: block;

    border: 0 !important;
    outline: 0 !important;

    border-radius: 50% !important;

    background:
        #cbd3dc !important;

    box-shadow:
        none !important;

    cursor: pointer;

    transition:
        width .25s ease,
        background-color .25s ease,
        transform .25s ease;
}


.anwar-home-slider-dot.is-active {
    width: 18px !important;

    background:
        #2654b1 !important;

    border-radius:
        20px !important;
}


@media (hover: hover) and (pointer: fine) {

    .anwar-home-slider-dot:hover {
        background:
            #2654b1 !important;

        transform:
            scale(1.1);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1279px) {

    .anwar-home-family-slider-track
    .anwar-home-family-card {

        flex:
            0 0
            calc(
                (100% - 18px)
                / 2
            );
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .anwar-home-family-slider-track {
        gap: 12px;
    }


    .anwar-home-family-slider-track
    .anwar-home-family-card {

        flex:
            0 0 90%;
    }


    .anwar-home-slider-dots {
        margin-top: 14px;

        gap: 6px;
    }


    .anwar-home-slider-dot {
        width: 6px !important;
        height: 6px !important;

        min-width: 6px !important;
        min-height: 6px !important;
    }


    .anwar-home-slider-dot.is-active {
        width: 16px !important;
    }

}

/* =========================================================
   HOMEPAGE CATEGORY SLIDER
   DOTS ONLY — NO ARROWS
========================================================= */

.anwar-home-family-arrow,
.anwar-home-family-prev,
.anwar-home-family-next {
    display: none !important;
}


/* Keep controls only for dots */

.anwar-home-family-slider-controls {
    width: 100%;

    margin-top: 18px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    gap: 0 !important;
}


/* Small clean dots */

.anwar-home-family-dots {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;
}


.anwar-home-family-dot {
    width: 7px !important;
    height: 7px !important;

    min-width: 7px !important;
    min-height: 7px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;

    border-radius: 50% !important;

    background: #cbd3dc !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        width .25s ease,
        background-color .25s ease,
        transform .25s ease;
}


/* Active dot */

.anwar-home-family-dot.is-active {
    width: 18px !important;

    border-radius: 20px !important;

    background: #2654b1 !important;
}


/* Desktop hover */

@media (hover: hover) and (pointer: fine) {

    .anwar-home-family-dot:hover {
        background: #2654b1 !important;

        transform: scale(1.1);
    }

}


/* Mobile */

@media (max-width: 767px) {

    .anwar-home-family-slider-controls {
        margin-top: 14px;
    }


    .anwar-home-family-dots {
        gap: 6px;
    }


    .anwar-home-family-dot {
        width: 6px !important;
        height: 6px !important;

        min-width: 6px !important;
        min-height: 6px !important;
    }


    .anwar-home-family-dot.is-active {
        width: 16px !important;
    }

}