/* Nahrain — visual polish, lead capture and mobile safety net */

/* Product cards: keep photos cropped consistently instead of stretched */
.oe_product_image_img_wrapper img,
.o_wsale_product_grid_wrapper .oe_product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.oe_product_image_img_wrapper:hover img {
    transform: scale(1.03);
}

/* Hero: keep the two call-to-action buttons tidy, especially on mobile */
.s_cover .btn {
    margin-bottom: 0.5rem;
}

/* Product page: quote button sits next to "add to cart" */
#o_wsale_cta_wrapper .btn-outline-primary {
    white-space: nowrap;
}

/* ---------------------------------------------------------------
   Floating contact buttons (WhatsApp / Telegram / phone)
   --------------------------------------------------------------- */
.nahrain-fab-group {
    position: fixed;
    left: 16px;
    right: auto;
    bottom: 18px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nahrain-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.nahrain-fab:hover,
.nahrain-fab:focus {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
}

.nahrain-fab-wa { background: #25d366; }
.nahrain-fab-tg { background: #229ed9; }
.nahrain-fab-tel { background: #0b3b6b; }

/* ---------------------------------------------------------------
   Lead capture form
   --------------------------------------------------------------- */
.nahrain-lead-card {
    box-shadow: 0 8px 26px rgba(11, 59, 107, .08);
}

.nahrain-lead-card .form-control:focus {
    border-color: #0b3b6b;
    box-shadow: 0 0 0 .2rem rgba(11, 59, 107, .15);
}

/* ---------------------------------------------------------------
   Mobile / tablet: prevent any horizontal overflow.
   A single wide element used to push the whole page sideways
   (the "page collapses to one side" symptom).
   --------------------------------------------------------------- */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

#wrapwrap {
    overflow-x: hidden;
}

img,
iframe,
video,
embed,
object {
    max-width: 100%;
}

/* content tables that are not wrapped in .table-responsive */
.s_text_block table,
.o_wysiwyg_loader table,
#wrap table:not(.table) {
    display: block;
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 991.98px) {
    .o_header_sales_two_top .navbar-nav {
        flex-wrap: wrap;
    }

    .o_header_language_selector .list-inline {
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .s_cover h1.h3 {
        font-size: 1.25rem;
        line-height: 1.7;
    }

    .s_cover .btn {
        display: block;
        width: 100%;
        margin-inline-start: 0 !important;
    }

    .nahrain-fab-group {
        left: 10px;
        right: auto;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }

    .nahrain-fab {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .nahrain-lead-card {
        padding: 1rem !important;
    }

    /* long e-mails / phone strings in the footer must wrap */
    .o_footer,
    .o_footer a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 575.98px) {
    /* product ribbon used to stick out of the card on phones */
    .o_ribbon {
        display: none !important;
    }
}
/* ---------------------------------------------------------------
   Header logo: keep a square mark readable and never clipped
   --------------------------------------------------------------- */
.navbar-brand.logo img,
.navbar-brand .o_navbar_logo img {
    height: 46px !important;
    width: auto !important;
    max-width: 190px;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .navbar-brand.logo img,
    .navbar-brand .o_navbar_logo img {
        height: 38px !important;
    }
}

/* ---------------------------------------------------------------
   Price CTA block (site-wide) and shop intro
   --------------------------------------------------------------- */
.nahrain-cta {
    background: #f6f8fb;
    border-color: #dfe6f1 !important;
}

.nahrain-shop-intro {
    font-size: 0.96rem;
    line-height: 1.9;
    color: #33415c;
}

.nahrain-shop-intro ul {
    padding-inline-start: 1.1rem;
}

.nahrain-shop-intro a {
    text-decoration: underline;
}
.nahrain-iraq {
    background: #f2f7f3;
    border-color: #d6e6da !important;
}
.nahrain-iraq ul {
    padding-inline-start: 1.1rem;
}
