/* BGI final UI gap-closing layer v1.8 */
:root {
    --bgi-primary: #E5233F;
    --bgi-primary-dark: #C9142E;
    --bgi-ink: #111827;
    --bgi-muted: #6B7280;
    --bgi-border: #E8EAEE;
    --bgi-soft: #F8F8F9;
    --bgi-radius: 18px;
    --bgi-shadow: 0 18px 45px rgba(17, 24, 39, .08)
}

body {
    font-family: "Yekan Bakh", IRANYekanX, Tahoma, Arial, sans-serif !important;
    background: #fff;
    color: var(--bgi-ink)
}

.bgi-header,
.bgi-header *,
.bgi-products-mega,
.bgi-products-mega *,
.bgi-mobile-drawer,
.bgi-mobile-drawer * {
    font-family: "IRANSans BGI", Tahoma, Arial, sans-serif !important
}

.bgi-footer,
.bgi-footer * {
    font-family: "Yekan Bakh", IRANYekanX, Tahoma, Arial, sans-serif !important
}

.bgi-container {
    width: min(1320px, calc(100% - 48px));
    max-width: none;
    margin-inline: auto
}

.bgi-section {
    padding: 46px 0
}

.bgi-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px
}

.bgi-section__head h2,
.bgi-section__center h2 {
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -.02em;
    color: #111827
}

.bgi-section__head>a,
.bgi-section__nav>a {
    font-size: 13px;
    font-weight: 900;
    color: var(--bgi-primary)
}

.bgi-section__nav {
    display: flex;
    align-items: center;
    gap: 8px
}

.bgi-section__nav button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--bgi-border);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .04)
}

.bgi-section__nav button:hover {
    border-color: var(--bgi-primary);
    color: var(--bgi-primary)
}

/* Header exact feel */
.bgi-header {
    backdrop-filter: saturate(160%) blur(16px);
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid rgba(229, 231, 235, .78);
    box-shadow: 0 10px 28px rgba(17, 24, 39, .035)
}

.bgi-header__inner {
    min-height: 82px
}

.bgi-logo img {
    max-height: 48px
}

.bgi-menu>li>a {
    position: relative;
    padding: 30px 4px 27px;
    color: #111827;
    font-size: 13px;
    font-weight: 800
}

.bgi-menu>li.current-menu-item>a,
.bgi-menu>li>a:hover {
    color: var(--bgi-primary)
}

.bgi-menu>li>a:after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--bgi-primary);
    transform: scaleX(0);
    transition: .25s
}

.bgi-menu>li.current-menu-item>a:after,
.bgi-menu>li>a:hover:after {
    transform: scaleX(1)
}

.bgi-order-btn {
    height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(229, 35, 63, .22)
}

.bgi-icon-btn,
.bgi-proforma-btn,
.bgi-account-link {
    transition: .22s
}

.bgi-icon-btn:hover,
.bgi-proforma-btn:hover,
.bgi-account-link:hover {
    transform: translateY(-2px)
}

/* Hero exact */
.bgi-hero {
    padding: 30px 0 24px;
    background: linear-gradient(180deg, #fff 0%, #fff 68%, #FAFAFB 100%)
}

.bgi-hero__panel {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--bgi-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(17, 24, 39, .06);
    display: grid;
    grid-template-columns: .8fr 1.22fr !important;
    align-items: stretch
}

.bgi-hero__media {
    order: 2;
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 20px 0 0 20px
}

.bgi-hero__media picture,
.bgi-hero__media img {
    width: 100%;
    height: 100%;
    display: block
}

.bgi-hero__media img {
    object-fit: cover;
    object-position: center
}

.bgi-hero__media:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(-90deg, rgba(255, 255, 255, 1.0) 0%, rgba(255, 255, 255, .82) 22%, rgba(255, 255, 255, .02) 38%);
    pointer-events: none
}

.bgi-hero__content {
    order: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: right;
    padding: 54px 58px 54px 24px;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .96) 70%, rgba(255, 255, 255, .55) 100%)
}

.bgi-hero__content:before {
    content: "تولید مستقیم از کارخانه";
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    margin-bottom: 22px;
    border-radius: 9px;
    background: var(--bgi-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 950
}

.bgi-hero__content h1 {
    font-size: 43px;
    line-height: 1.55;
    letter-spacing: -.045em;
    margin: 0 0 15px;
    color: #111827;
    font-weight: 950
}

.bgi-hero__content h1 span {
    color: var(--bgi-primary)
}

.bgi-hero__content p {
    font-size: 17px;
    line-height: 2.1;
    color: #555D69;
    font-weight: 750;
    margin: 0 0 34px
}

.bgi-hero__actions {
    display: flex;
    gap: 14px
}

.bgi-btn {
    min-height: 54px;
    border-radius: 12px;
    font-weight: 950;
    font-size: 14px
}

.bgi-btn--primary {
    background: linear-gradient(135deg, #E5233F, #C9142E);
    box-shadow: 0 15px 28px rgba(229, 35, 63, .24)
}

.bgi-btn--ghost {
    border: 1px solid #D8DCE2;
    background: #fff;
    color: #111827
}

.bgi-hero__video {
    right: 28px;
    bottom: 28px;
    height: 54px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(8px);
    font-weight: 900
}

.bgi-hero__video span {
    background: #fff;
    color: var(--bgi-primary)
}

.bgi-hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 30px;
    box-shadow: 0 15px 35px rgba(17, 24, 39, .14);
    cursor: pointer
}

.bgi-hero-arrow--prev {
    right: 18px
}

.bgi-hero-arrow--next {
    left: 18px
}

.bgi-feature-bar {
    position: relative;
    z-index: 5;
    margin: -38px auto 0;
    width: min(1160px, calc(100% - 64px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--bgi-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(17, 24, 39, .09)
}

.bgi-feature-bar div {
    min-height: 92px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 1px solid #EEF0F4
}

.bgi-feature-bar div:last-child {
    border-left: 0
}

.bgi-feature-bar i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--bgi-primary);
    font-size: 24px;
    background: #FFF1F3;
    font-style: normal
}

.bgi-feature-bar strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 950
}

.bgi-feature-bar span {
    display: block;
    margin-top: 4px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 750
}

/* Horizontal carousels */
.bgi-exact-slider {
    display: flex !important;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 18px;
    scrollbar-width: none
}

.bgi-exact-slider::-webkit-scrollbar {
    display: none
}

.bgi-category-card {
    flex: 0 0 176px;
    min-height: 188px;
    scroll-snap-align: start;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .045)
}

.bgi-category-card img {
    transition: .25s
}

.bgi-category-card:hover img {
    transform: scale(1.05)
}

.bgi-product-card {
    flex: 0 0 214px;
    scroll-snap-align: start;
    border-radius: 16px;
    transition: .22s
}

.bgi-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(17, 24, 39, .11);
    border-color: #FFD2DA
}

.bgi-product-card__media {
    height: 178px
}

.bgi-product-card__action {
    border-radius: 12px
}

.bgi-product-card__action:hover {
    filter: brightness(.98)
}

/* Process */
.bgi-process-grid div {
    border: 1px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #fff, #FFE3E7) border-box;
    border-radius: 18px;
    box-shadow: 0 15px 36px rgba(17, 24, 39, .045);
    transition: .22s
}

.bgi-process-grid div:hover {
    transform: translateY(-4px)
}

.bgi-process-grid span {
    box-shadow: 0 8px 18px rgba(229, 35, 63, .24)
}

.bgi-contact-strip {
    border-radius: 16px
}

.bgi-stats__inner {
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(229, 35, 63, .18), transparent 38%), linear-gradient(135deg, #151B26, #060A12)
}

.bgi-stats__inner i {
    font-size: 22px;
    color: var(--bgi-primary);
    background: rgba(229, 35, 63, .06)
}

/* Proforma and about */
.bgi-products-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px
}

.bgi-proforma-box {
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(229, 35, 63, .09);
    background: linear-gradient(135deg, #FFF0F3, #fff 70%)
}

.bgi-about__content,
.bgi-about__video,
.bgi-trust-grid div,
.bgi-client-grid div {
    border-radius: 18px
}

.bgi-client-grid div {
    filter: grayscale(1);
    transition: .2s
}

.bgi-client-grid div:hover {
    filter: none;
    border-color: #FFD2DA;
    color: var(--bgi-primary)
}

/* Single product UI refinements */
.bgi-single-product {
    background: #fff
}

.bgi-b2b-product-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 520px) minmax(280px, 1fr);
    gap: 28px;
    align-items: start
}

.bgi-b2b-order-card,
.bgi-product-main-image,
.bgi-b2b-summary,
.bgi-b2b-info-grid>section,
.bgi-product-badges,
.bgi-related-card {
    border-radius: 18px;
    box-shadow: 0 15px 38px rgba(17, 24, 39, .045)
}

.bgi-product-color-picker {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid var(--bgi-border);
    border-radius: 15px;
    background: #FAFAFB
}

.bgi-product-color-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.bgi-product-color-picker__head strong {
    font-size: 13px;
    font-weight: 950;
    color: #111827
}

.bgi-product-color-picker__head span {
    font-size: 12px;
    font-weight: 950;
    color: var(--bgi-primary)
}

.bgi-product-color-picker__options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.bgi-product-color-picker__options label {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--bgi-border);
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: .18s
}

.bgi-product-color-picker__options input {
    display: none
}

.bgi-product-color-picker__options i {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--bgi-swatch);
    border: 1px solid #D1D5DB
}

.bgi-product-color-picker__options label.is-active {
    border-color: var(--bgi-primary);
    background: #FFF1F3;
    color: var(--bgi-primary);
    box-shadow: 0 8px 18px rgba(229, 35, 63, .08)
}

.bgi-bulk-row {
    grid-template-columns: 54px minmax(118px, 1fr) minmax(128px, 1fr)
}

.bgi-main-cta {
    box-shadow: 0 16px 28px rgba(229, 35, 63, .22)
}

/* Footer exact */
.bgi-footer {
    border-radius: 0;
    margin-top: 70px
}

.bgi-footer__main {
    border-top: 1px solid rgba(255, 255, 255, .08)
}

.bgi-footer__newsletter {
    border-radius: 18px
}

.bgi-footer__bottom {
    border-color: rgba(255, 255, 255, .08)
}

/* Mobile */
@media(max-width:768px) {
    .bgi-container {
        width: min(100% - 28px, 430px)
    }

    .bgi-header__inner {
        min-height: 66px
    }

    .bgi-logo img {
        max-height: 38px
    }

    .bgi-header__actions .bgi-order-btn,
    .bgi-account-link span {
        display: none
    }

    .bgi-menu-toggle {
        width: 44px;
        height: 44px
    }

    .bgi-hero {
        padding: 12px 0 14px
    }

    .bgi-hero__panel {
        display: flex;
        flex-direction: column;
        min-height: auto;
        border-radius: 18px;
        box-shadow: 0 14px 36px rgba(17, 24, 39, .07);
        overflow: hidden
    }

    .bgi-hero__media {
        order: 1;
        min-height: 0;
        height: 260px;
        border-radius: 18px 18px 0 0
    }

    .bgi-hero__media img {
        object-position: center top
    }

    .bgi-hero__media:after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, .92) 100%)
    }

    .bgi-hero__content {
        order: 2;
        align-items: center;
        text-align: center;
        padding: 20px 18px 18px;
        background: #fff
    }

    .bgi-hero__content:before {
        display: none
    }

    .bgi-hero__content h1 {
        font-size: 23px;
        line-height: 1.65;
        margin-bottom: 10px
    }

    .bgi-hero__content p {
        font-size: 12px;
        line-height: 2;
        margin-bottom: 16px
    }

    .bgi-hero__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .bgi-btn {
        min-height: 48px;
        font-size: 12px
    }

    .bgi-hero__video {
        right: 14px;
        bottom: 14px;
        height: 42px;
        font-size: 11px
    }

    .bgi-hero__video span {
        width: 34px;
        height: 34px
    }

    .bgi-hero-arrow {
        display: none
    }

    .bgi-feature-bar {
        width: 100%;
        margin: 12px 0 0;
        grid-template-columns: repeat(4, 1fr);
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(17, 24, 39, .045)
    }

    .bgi-feature-bar div {
        min-height: 92px;
        padding: 12px 6px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        text-align: center
    }

    .bgi-feature-bar i {
        width: 34px;
        height: 34px;
        font-size: 20px
    }

    .bgi-feature-bar strong {
        font-size: 10.5px
    }

    .bgi-feature-bar span {
        font-size: 9px;
        line-height: 1.6
    }

    .bgi-mobile-quote {
        display: block
    }

    .bgi-section {
        padding: 28px 0
    }

    .bgi-section__head h2,
    .bgi-section__center h2 {
        font-size: 18px
    }

    .bgi-section__nav button {
        display: none
    }

    .bgi-category-card {
        flex-basis: 124px;
        min-height: 158px
    }

    .bgi-category-card img {
        height: 86px
    }

    .bgi-category-card strong {
        font-size: 11px
    }

    .bgi-category-card span {
        font-size: 10px
    }

    .bgi-process-grid {
        display: block;
        position: relative
    }

    .bgi-process-grid div {
        display: grid;
        grid-template-columns: 48px 1fr;
        align-items: center;
        text-align: right;
        min-height: 96px;
        margin-bottom: 10px;
        padding: 14px 14px;
        border-radius: 16px
    }

    .bgi-process-grid div:after {
        display: none
    }

    .bgi-process-grid span {
        position: static;
        width: 38px;
        height: 38px;
        grid-row: 1/3
    }

    .bgi-process-grid i {
        display: none
    }

    .bgi-process-grid strong {
        font-size: 13px;
        margin: 0
    }

    .bgi-process-grid p {
        font-size: 11px
    }

    .bgi-contact-strip {
        grid-template-columns: 1fr;
        margin-top: 16px
    }

    .bgi-contact-strip div:first-child {
        border-left: 0;
        border-bottom: 1px solid rgba(229, 35, 63, .16)
    }

    .bgi-stats__inner {
        grid-template-columns: repeat(4, 1fr);
        border-radius: 15px
    }

    .bgi-stats__inner div {
        min-height: 82px;
        padding: 10px 4px;
        flex-direction: column;
        gap: 5px;
        text-align: center
    }

    .bgi-stats__inner i {
        width: 34px;
        height: 34px;
        font-size: 17px
    }

    .bgi-stats__inner strong {
        font-size: 15px
    }

    .bgi-stats__inner span {
        font-size: 9px
    }

    .bgi-products-layout {
        display: block
    }

    .bgi-product-card {
        flex-basis: 152px
    }

    .bgi-product-card__media {
        height: 128px
    }

    .bgi-product-card__body {
        padding: 0 10px 10px
    }

    .bgi-product-card__body h3 {
        font-size: 11px
    }

    .bgi-product-card__body p,
    .bgi-product-card__body span {
        font-size: 9px
    }

    .bgi-product-card__body strong {
        font-size: 10px
    }

    .bgi-product-card__action {
        min-height: 38px;
        margin: 0 9px 9px;
        font-size: 10px
    }

    .bgi-proforma-box {
        position: relative;
        top: auto;
        margin-top: 18px;
        display: block;
        min-height: 0;
        padding: 20px;
        border-radius: 18px
    }

    .bgi-proforma-box__paper {
        display: none
    }

    .bgi-about__grid {
        display: flex;
        flex-direction: column
    }

    .bgi-about__video {
        order: 1
    }

    .bgi-about__content {
        order: 2;
        padding: 20px
    }

    .bgi-about__video img {
        height: 180px
    }

    .bgi-client-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .bgi-trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .bgi-trust-grid div {
        min-height: 86px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 14px
    }

    .bgi-floating-whatsapp {
        display: none
    }

    .bgi-b2b-product-layout {
        display: flex;
        flex-direction: column
    }

    .bgi-b2b-order-card {
        order: 2;
        width: 100%
    }

    .bgi-b2b-gallery {
        order: 1;
        width: 100%
    }

    .bgi-b2b-summary {
        order: 3;
        width: 100%
    }

    .bgi-product-color-picker__options label {
        height: 44px;
        font-size: 11px
    }

    .bgi-bulk-row {
        grid-template-columns: 44px minmax(96px, 1fr) minmax(105px, 1fr);
        gap: 6px
    }

    .bgi-dozen-price {
        font-size: 11px;
        white-space: nowrap
    }

    .bgi-footer {
        padding-bottom: 70px
    }
}

.bgi-video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bgi-video-modal.active {
    display: flex;
}

.bgi-video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
}

.bgi-video-modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.bgi-video-modal__content iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.bgi-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: #fff;
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}

/* BGI 2.0.0 accessibility hardening */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #cb132e;
  outline-offset: 3px;
}
.bgi-video-modal[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.bgi-video-modal[aria-hidden="false"] { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
