/* Site overrides — loaded after public/css/site-base.css */

html {
    overflow-x: hidden;
}

body {
    font-family: "Tajawal", sans-serif;
    overflow-x: hidden;
    max-width: 100%;
}

main {
    overflow-x: hidden;
    max-width: 100%;
}

/* topbar */
.topbar {
    min-height: 38px;
    display: flex;
    align-items: center;
    background-color: #217EF8;
}

.topbar .container-fluid {
    width: min(96%, 1400px);
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
}

.topbar__inner { min-height: 38px; }

.topbar__auth {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}

.topbar a,
.topbar button {
    color: white;
    text-decoration: none;
    padding: 5px;
    font-size: 14px;
}

.lang-switch-btn {
    font-size: 12px !important;
    padding: 2px 14px !important;
    border-radius: 20px !important;
    font-family: 'Tajawal', sans-serif;
}

/* menu + search — hololpack Menu-area */
.top-menu-area {
    background-color: #fff;
    padding: 10px 0 6px;
    text-align: center;
}

.top-menu-area .container-fluid {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.Menu-area {
    padding-top: 10px;
}

.Menu-area > .row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    --bs-gutter-x: 0;
}

.Menu-area > .row > .col {
    flex: 1 1 0;
    min-width: 0;
    max-width: 33.333%;
    padding: 0 6px;
}

.Menu-area a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: rgb(63, 63, 63);
    font-weight: 900;
}

.Menu-area a:hover {
    color: #217EF8;
}

/* يلغي hololpack: .top-menu-area a i { width: 250px !important } */
.top-menu-area .Menu-area a i,
.Menu-area a i {
    width: auto !important;
    max-width: 100%;
    display: inline-block !important;
    font-size: 30px;
    line-height: 1;
}

.menu-area__icon-wrap {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.menu-area__cart-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background-color: #198754;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
}

.Menu-area a p {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.searchbar {
    padding-top: 15px;
}

.search-form {
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
}

.search-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 46px;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(33, 126, 248, 0.08);
}

.search-input-group:focus-within {
    border-color: #217EF8;
    box-shadow: 0 4px 18px rgba(33, 126, 248, 0.18);
}

.search-input-group__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 46px;
    padding-inline: 20px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #2b8cff 0%, #217EF8 55%, #1a6ad4 100%);
    cursor: pointer;
}

.search-input-group__field-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.search-input-group__field-icon {
    position: absolute;
    inset-inline-start: 14px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.search-input-group__field {
    width: 100%;
    min-height: 46px;
    padding-inline: 16px 14px;
    padding-inline-start: 42px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
}

/* category nav — hololpack */
#category-menu-area .container-fluid,
#category-menu-area {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px 12px;
}

#category-menu-area > .row {
    --bs-gutter-x: 0.25rem;
    --bs-gutter-y: 0.25rem;
}

#category-menu-area .btn-primary {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    padding: 7px 12px;
    white-space: nowrap;
    border-radius: 4px;
    background-color: #217EF8;
    border-color: #217EF8;
}

#category-menu-area .dropdown-toggle::after {
    margin-inline-start: 6px;
    vertical-align: middle;
}

#category-menu-area .dropdown-menu {
    font-size: 13px;
    min-width: 12rem;
    direction: rtl;
    text-align: right;
    right: 0;
    left: auto;
}

#category-menu-area .dropdown-item {
    white-space: normal;
    padding: 8px 14px;
    text-align: right;
    direction: rtl;
}

/* hololpack: موبايل vs ديسكتوب */
.category-menu-mobile {
    display: none;
}

.category-menu-desktop {
    display: block;
}

@media only screen and (max-width: 991.98px) {
    .header-of-desktop {
        display: none !important;
    }

    .category-menu-desktop {
        display: none !important;
    }

    .category-menu-mobile {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 6px 10px;
        background: #fff;
        border-bottom: 1px solid #e8e8e8;
    }

    .category-menu-mobile #category-menu-area {
        padding: 0;
    }

    .category-menu-mobile #category-menu-area > .row {
        flex-wrap: nowrap;
        width: max-content;
        margin: 0;
    }

    .category-menu-mobile #category-menu-area > .row > [class*="col"] {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
    }
}

@media only screen and (min-width: 992px) {
    .mobile-nav-bar,
    .category-menu-mobile {
        display: none !important;
    }
}

/* موبايل: شريط علوي */
.mobile-nav-bar {
    display: none;
    background: #217EF8;
    padding: 10px 14px;
}

.mobile-nav-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-nav-bar__logo img {
    height: 42px;
    width: auto;
    display: block;
}

.mobile-nav-bar__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-nav-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.mobile-nav-bar__icon {
    position: relative;
    font-size: 22px;
    line-height: 1;
}

.mobile-nav-bar__badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #198754;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.mobile-nav-bar__login {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

@media only screen and (max-width: 991.98px) {
    .mobile-nav-bar {
        display: block !important;
    }
}

/* home hero cards */
.container > .row.pt-3 > .col-md-4 .card .card-body {
    position: relative;
    padding: 0;
    min-height: 48px;
}

.container > .row.pt-3 > .col-md-4 .card .card-body .btn {
    border-radius: 0;
}

/* owl — منع scroll أفقي */
.owl-carousel {
    overflow: hidden;
    max-width: 100%;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

.header-slider {
    position: relative;
    margin-bottom: 0;
    min-height: 0 !important;
}

.header-slider .owl-item a {
    display: block;
    line-height: 0;
}

.header-slider .owl-item img {
    width: 100%;
    height: auto;
    display: block;
}

.header-slider .owl-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    margin: 0 !important;
    z-index: 2;
}

.product-carousel {
    position: relative;
}

.product-carousel .owl-item .col {
    width: 100%;
    max-width: 100%;
    padding: 0;
    flex: none;
}

.product-carousel .owl-item {
    padding: 0 5px;
}

.client-logos-carousel img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* product cards — تأكيد شكل hololpack */
.owl-carousel .product-item {
    border: 1px solid #217EF8 !important;
    border-radius: 10px !important;
    padding: 10px !important;
    margin: 5px !important;
    background: #fff !important;
}

.product-item > a {
    display: block;
    height: 200px;
    overflow: hidden;
}

.product-item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
}

.product-item .product-text a.product-name {
    font-weight: 900 !important;
    color: #000 !important;
    text-decoration: none !important;
}

.product-item .product-text a.product-name:hover {
    color: #000 !important;
}

.product-item .product-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #217EF8 !important;
    margin: 0 !important;
}

.product-item button.dot {
    height: 35px !important;
    width: 35px !important;
    min-width: 35px !important;
    padding: 0 !important;
    margin: 0 3px !important;
    line-height: 1 !important;
    background-color: #217EF8 !important;
    color: #fff !important;
    border-radius: 50% !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle;
    cursor: pointer;
}

.product-item button.dot i {
    font-size: 16px;
    line-height: 1;
}


/* newsletter RTL fix */
#newsletter-form .input-group .btn {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
#newsletter-form .input-group .form-control {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
