/* fisrt #section */
.consumer-brand-pill-pro {
    position: relative;
    width: 76px;
    height: 67px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    cursor: pointer;
}

.consumer-brand-pill-pro-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.consumer-brand-pill-pro > img {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 38px;
    object-fit: contain;
}

.consumer-brand-pill-popup {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 100px;
    padding: 14px;
    background: #fff;
    border: 1px solid #887755;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(40, 30, 20, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px) scale(0.92);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.consumer-brand-pill-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background: #fff;
    border-right: 1px solid #887755;
    border-bottom: 1px solid #887755;
    transform: translateX(-50%) rotate(45deg);
}

.consumer-brand-pill-popup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.consumer-brand-pill-pro:hover .consumer-brand-pill-popup,
.consumer-brand-pill-pro:focus-within .consumer-brand-pill-popup,
.consumer-brand-pill:hover .consumer-brand-pill-popup,
.consumer-brand-pill:focus-within .consumer-brand-pill-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .consumer-brand-pill-popup {
        transition: none;
    }
}

html[dir="rtl"] .consumer-brand-pill-pro-bg {
    transform: scaleX(-1);
    transform-origin: center;
}
.consumer-brand-strip-dh {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}


/* Mobile (<576px): wrap into centered rows so the badges stay legible. */
.consumer-brand-strip-dh.dhahabi-flour-products-brand-strip {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: clamp(10px, 3vw, 16px);
}

.dhahabi-flour-products-brand-strip .consumer-brand-pill-pro {
    flex: 0 0 auto;
    width: clamp(56px, 17vw, 68px);
    height: auto;
    aspect-ratio: 70 / 60;
}

.dhahabi-flour-products-brand-strip .consumer-brand-pill-pro > img {
    width: 62%;
    height: 62%;
}

.dhahabi-flour-products-brand-strip {
    overflow: visible;
}

/* Small tablets and up: single line that fills the full column width. */
@media (min-width: 576px) {
    .consumer-brand-strip-dh.dhahabi-flour-products-brand-strip {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: clamp(8px, 1.8vw, 22px);
    }

    .dhahabi-flour-products-brand-strip .consumer-brand-pill-pro {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }
}

.dhahabi-flour-hero-svg {
    display: block;
    width: min(100%, 430px);
    height: auto;
    max-width: 430px;
    margin-inline: auto;
}

.our-brands-chain-svg {
    display: block;
    width: min(100%, 603px);
    height: auto;
    max-width: 603px;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .dhahabi-flour-intro-row {
        align-items: flex-start;
    }

    .dhahabi-flour-intro-copy {
        padding-bottom: 0;
    }

    .dhahabi-flour-hero-col {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .dhahabi-flour-products-brand-strip {
        justify-content: flex-start;
    }
}

/* fisrt #section  end */

/* Dhahabi product list:= */
.product-img-box {
    position: relative;
    width: min(290px, 100%);
    aspect-ratio: 233 / 197;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}

.product-img-shape path {
    fill: #fff;
}

html[dir="rtl"] .product-img-shape {
    transform: scaleX(-1);
    transform-origin: center;
}

.product-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 56%;
    height: 69%;
    max-width: 74%;
    max-height: 78%;
    object-fit: contain;
    object-position: center;
}
/* width of text */
.product-copy-col .product-desc {
    max-width: 42ch;
}

.flour-guide-section .guide-desc {
    max-width: 59ch;
}

.dhahabi-tab-btn {
    background-color: var(--light-brown);
    color: var(--primary-dark);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dhahabi-tab-btn--active {
    background-color: var(--orange);
    color: var(--secondary);
}

.dhahabi-tab-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-dark);
    flex: 0 0 auto;
}

.dhahabi-tab-icon path {
    fill: currentColor;
}

.dhahabi-tab-btn--active .dhahabi-tab-icon {
    color: var(--secondary);
}


html[dir="rtl"] .dhahabi-range-content {
    text-align: right;
}

html[dir="rtl"] .dhahabi-range-tabs {
    direction: rtl;
}

html[dir="rtl"] .dhahabi-range-tabs .nav-item {
    direction: rtl;
}

html[dir="rtl"] .product-copy-col {
    text-align: right;
}



html[dir="rtl"] .watani-range-content {
    text-align: right;
}

@media (max-width: 991.98px) {
    .product-img-box {
        width: min(255px, 100%);
    }

    .product-img {
        width: 72%;
        height: 76%;
        max-width: 72%;
        max-height: 76%;
    }

    .product-copy-col .product-desc {
        max-width: 100%;
    }

    .flour-guide-section .guide-desc {
        max-width: 100%;
    }

    .best-for {
        font-size: 1.25rem;
    }
}


/* end */

/*  Wide Range of Animal Feed */
.barakat-brand-strip {
    justify-content: flex-start;
    overflow: visible;
}

.barakat-brand-strip .consumer-brand-pill-pro {
    width: 90px;
    height: 80px;
}

.barakat-brand-strip .consumer-brand-pill-pro > img {
    width: 64px;
    height: 56px;
}

.barakat-feed-section h2 {
    line-height: 1.2;
}

.barakat-feed-section .watani-range-desc,
.watani-range-section .watani-range-desc,
.bonvivant-range-section .watani-range-desc,
.alpha-premix-intro-section .watani-range-desc {
    max-width: 890px;
}

.alpha-premix-page .our-brands-chain-svg {
    display: block;
    width: min(100%, 520px);
    height: auto;
    margin-inline: auto;
}

.barakat-tabs-spacing {
    margin-top: 4rem;
}

.alpha-products-offset {
    margin-top: 4.5rem;
}



@media (max-width: 767.98px) {
    .barakat-feed-section .watani-range-desc,
    .watani-range-section .watani-range-desc,
    .bonvivant-range-section .watani-range-desc {
        max-width: 100%;
        line-height: 1.55;
    }

    .barakat-tabs-spacing {
        margin-top: 3rem;
    }

    .alpha-products-offset {
        margin-top: 3.5rem;
    }
}

@media (max-width: 575.98px) {
    .watani-feed-products-section .watani-range-grid .row {
        gap: 1rem;
    }

    .watani-feed-products-section .product-img-box {
        margin-inline: auto;
    }

    .watani-feed-products-section .product-copy-col {
        text-align: center !important;
    }

    .watani-feed-products-section .product-title {
        margin-bottom: 0.75rem !important;
    }

    .watani-feed-products-section .product-desc {
        margin-inline: auto;
        max-width: 34ch;
    }
}

/* Feed solutions overview block */
.feed-solutions-overview-section .primary-text {
    line-height: 1.6;
}

.feed-solution-item-icon {
    width: 52px;
    height: 52px;
    background-color: #fff;
    border: 1px solid rgba(82, 43, 58, 0.08);
}

.feed-solution-item-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.feed-solutions-overview-section .our-brands-chain-svg {
    width: min(100%, 480px);
    max-width: 480px;
}

@media (max-width: 767.98px) {
    .feed-solutions-overview-section h2 {
        font-size: 1.75rem;
    }

    .feed-solutions-overview-section .primary-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}



@media (max-width: 575.98px) {
    .feed-solutions-overview-section h2 {
        font-size: 1.5rem;
    }

    .feed-solutions-overview-section .primary-text {
        font-size: 0.9rem;
    }

    .feed-solutions-overview-section .row.g-3.g-md-4 {
        row-gap: 1.5rem !important;
    }

    .feed-solution-item-icon {
        width: 48px;
        height: 48px;
    }

    .feed-solution-item-icon img {
        width: 28px;
        height: 28px;
    }
}

/* Our brands value-chain block */



