:root {
    --dark-navy: #152838;
    --white: #fff;
    --red: #d32f2f;
    --input-border: #ccc;
    --purple: #c26dc4;
    --gold: #ceb99a;
    --gold-light: #ceb99a;
    --body-bg: #fafafa;
    --dark: #2b4f6b;
    --green-light: #e6f4f7;
    --blue-light: #ebf6fa;
    --gray-light: #f5f8fa;
    /* --kbz-text:       #334050; */
}

/* عام */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-family: "Readex Pro", "Tajawal", sans-serif;
    font-weight: 300;
}

a {
    text-decoration: none;
}

a.underlined {
    text-decoration: underline;
}

.default-text {
    font-size: 12px;
}

/* Sort Select Styling */
.sort-wrapper {
    gap: 6px;
}
.sort-label {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}
.sort-select {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    padding-inline-end: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
}
.sort-select:focus {
    outline: none;
}

/* إذا تريد تحميل CSS مُختلف لكل لغة */

body {
    /* background: var(--white);*/
    background: var(--body-bg);
    color: #333;
}

.bg-dark-navy {
    background: var(--dark-navy) !important;
}

input[type="email"] {
    text-align: right;
}

.text-white {
    color: var(--white) !important;
}

.btn-nav-cta {
    background: var(--red);
    color: var(--white);
}

.btn-nav-cta:hover {
    background: #b71b2d;
}

.search-bar {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;

    /* اختياري: تحدد أقصى عرض */
    width: 551px;
    /* يجعل العنصر يحافظ على عرضه الخاص به ويُمحور */
    margin: 0 auto;
}

.search-bar .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gold);
    flex-shrink: 0;
    border: none;
    /* إزالة أي حدود افتراضية للزر */
}

.search-bar .search-input {
    flex: 1 1 auto;
    height: 100%;
    border: none;
    /* نقل الفاصل إلى الجهة الصحيحة بعد قلب الاتجاه */
    border-right: 1px solid #e9e3d7;
    padding: 0 16px;
    font-size: 12px;
    color: #152838;
    background: transparent;
    outline: none;
}

.search-bar .search-input::placeholder {
    color: #152838;
    opacity: 0.6;
}

/* Breadcrumb */
.breadcrumb a {
    text-decoration: none;
}

.breadcrumb {
    font-size: 12px;
}

.breadcrumb-item a {
    padding: 0 0.5rem;
    color: black;
    font-size: 12px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: black;
    font-weight: bold;
    font-size: 12px;
}

/* Sidebar filters */
.filter-sidebar h6 {
    font-size: 0.9rem;
}

.filter-sidebar .form-check-label,
.filter-sidebar select {
    font-size: 0.85rem;
}

/* شريط القائمة الفرعية */
.sub-menu-navbar {
    background-color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 0;
}

.sub-menu-list {
    display: flex;
    column-gap: 1rem;
    /* مسافة أفقية بين العناصر */
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.sub-menu-list .nav-link {
    color: #333;
    padding: 0.5rem 0;
    border-left: 1px solid #ddd;
    transition: color 0.3s ease;
    cursor: pointer;
    font-family: "Readex Pro", "Tajawal", sans-serif;
    font-weight: 400;
    font-size: 13px;
}

.sub-menu-list .nav-link:first-child {
    border-left: none;
}

.sub-menu-list .nav-link:hover,
.sub-menu-list .nav-link.active {
    color: #c81e26;
    text-decoration: none;
}

/* زر بطاقة الهديّة */
/* زر بطاقة الهديّة */
/* زر بطاقة الهديّة (النمط القديم - يُستخدم في صفحة المنتج) */
.ticket-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 32px; /* Tightened height from 32px */
    margin: 0.5rem;
    padding: 0 1rem; /* Tightened padding from 1.75rem */
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    flex-direction: row-reverse;
    gap: 4px; /* Reduced gap */
}

/* في حالة اللغة العربية (RTL) للزر القديم */
[dir="rtl"] .ticket-button {
    flex-direction: row-reverse;
}

/* استعادة الـ SVG للزر القديم */
.ticket-button svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

/* زر الهديّة الجديد (خاص بالناف بار) */
.nav-gift-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 32px;
    padding: 0 1.25rem;
    background: #c82d48;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    flex-direction: row;
    gap: 8px;
    color: white; /* Ensure text is white */
}

/* في حالة اللغة العربية (RTL) للزر الجديد */
[dir="rtl"] .nav-gift-btn {
    flex-direction: row;
}

/* إخفاء الـ SVG في الزر الجديد */
.nav-gift-btn svg {
    display: none;
}

/* أيقونة الهدية - عام */
.gift-icon {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin: 0;
    pointer-events: none;
}

/* نص البطاقة */
.ticket-text {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 400; /* Less bold */
    color: #fff;
    white-space: nowrap;
}

/* .sub-menu-navbar .container {
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
}


.sub-menu-navbar .container::-webkit-scrollbar {
 display: none;
}


.sub-menu-list, .sub-menu-right {
 flex-wrap: nowrap;
 white-space: nowrap;
} */

/* ======= Mega‑Menu Overrides ======= */
.mega-nav {
    margin-top: 80px;
    z-index: 1000;
}
/* @media (min-width: 1200px) and (max-width: 1400px) {
    .mega-nav .container{
        gap: .5rem!important;
    }
    .mega-nav .container>ul{
        gap: 10px!important;
    }
    .mega-nav .container>ul,
    .mega-nav .container>button{
        zoom: 0.9;
    }
} */
@media (min-width: 1200px) {
    .mx-custom {
        margin-left: 100px !important; /* عدل الرقم حسب رغبتك */
        margin-right: 100px !important;
    }
}
.fixed-mega-menu {
    position: fixed;
    top: 0;
    left: auto;
    right: 50%;
    transform: translateX(50%);
    width: 900px;
    max-width: 100%;
    background: #fff;
    padding: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: top 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
}
/* ======= التصحيح  لطبقة الـ Overlay ======= */
.menu-overlay {
    position: fixed;
    /* Start from top of viewport */
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* درجة عتامة متوازنة */
    z-index: 900; /* يجب أن تكون أقل من z-index الخاص بـ mega-nav */
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: top 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
    pointer-events: none;
}

/* Synchronized open state for menu and overlay */
.mega-nav.menu-open .menu-overlay {
    top: var(--mega-nav-bottom, 126px) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mega-nav.gift-open .menu-overlay {
    top: var(--mega-nav-bottom, 126px) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mega-nav.menu-open .fixed-mega-menu {
    display: block !important;
    top: var(--mega-nav-bottom, 126px) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-nav .nav-gift-btn .gift-card {
    display: block !important;
    position: fixed;
    top: 0;
    left: var(--gift-card-left, 12px);
    right: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: top 0.24s ease, opacity 0.24s ease, transform 0.24s ease,
        visibility 0.24s ease;
    z-index: 1101;
}
.mega-nav.gift-open .nav-gift-btn .gift-card {
    top: var(--mega-nav-bottom, 126px) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* تأكد أن الميغا منيو والناف بار لهما z-index أعلى من 900 */
.mega-nav {
    z-index: 1000 !important;
}
.mega-nav .dropdown-menu.mega-menu {
    z-index: 1100 !important;
}
.gift-card {
    z-index: 1100 !important;
}

@keyframes slideDown {
    from {
        transform: translateX(50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(50%) translateY(0);
        opacity: 1;
    }
}

.fixed-mega-menu .sections {
    flex-grow: 1;
}

.fixed-mega-menu .menu-heading {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    font-family: "Readex Pro", "Tajawal", sans-serif;
}
.fixed-mega-menu .menu-list {
    padding-top: 0.5rem;
}
.fixed-mega-menu .menu-list li {
    margin-bottom: 0.5rem;
    font-size: 12px;
}
.fixed-mega-menu .menu-list a {
    font-size: 12px;
    color: #5e6278;
    text-decoration: none;
    transition: color 0.2s;
}
.fixed-mega-menu .menu-list a:hover {
    color: #c82d48;
}

/* تنسيق عمود البرومو */
.fixed-mega-menu .promo-col {
    flex-shrink: 0;
    max-width: 219px;
    text-align: center;
}
.fixed-mega-menu .promo-heading {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 0.75rem;
    font-family: "Readex Pro", "Tajawal", sans-serif;
}
.fixed-mega-menu .promo-img {
    width: 219px;
    height: 162px;
    object-fit: contain;
    border-radius: 0.25rem;
    margin: 0 auto;
}

.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}
.mega-nav .nav-item.dropdown > .nav-link {
    position: relative;
}

.mega-nav .nav-item.dropdown:hover > .nav-link,
.mega-nav .nav-item.dropdown.active-dropdown > .nav-link {
    color: inherit; /* أو لون مختلف إذا أردت */
}
.mega-nav .nav-item.dropdown:hover > .nav-link::after,
.mega-nav .nav-item.dropdown.active-dropdown > .nav-link::after {
    content: "";
    position: absolute;
    height: 3px;
    background: var(--gold);
    left: 10%;
    right: 10%;
    bottom: -13px;
    border-radius: 2px;
}

/* sidebar */

.sidebar-custom {
    --bs-offcanvas-width: 350px;
    height: 100vh;
}

.sidebar-custom .offcanvas-body {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.sidebar-custom .content-wrapper {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

/* عناوين الأقسام */
.sidebar-heading {
    font-family: "Readex Pro", "Tajawal", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1e252d;
    text-transform: capitalize;
    letter-spacing: 0px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    /* border-bottom: 1px solid #E5E7EB; */
}

/* روابط القائمة */
.sidebar-list {
    margin-bottom: 0;
}

.sidebar-item {
    margin-bottom: 4px;
}

.sidebar-link {
    display: block;
    padding: 8px 0;
    font-family: "Readex Pro", "Tajawal", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #4b5563;
    text-decoration: none;
}

.sidebar-link:hover {
    color: #c72c41;
}

/* الفوتر */
.offcanvas-footer {
    flex: 0 0 auto;
    padding: 20px 0;
    text-align: center;
}

.social-icon {
    display: inline-block;
}

/* تخصيص زر الإغلاق */
.sidebar-custom .btn-close {
    font-size: 20px;
    opacity: 0.7;
}

.sidebar-custom .btn-close:hover {
    opacity: 1;
}

.offcanvas-footer p {
    font-size: 0.75rem;
    margin: 0 0 0.5rem;
}

.offcanvas-footer .contact-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.offcanvas-footer .contact-link i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.offcanvas-footer .contact-link:hover {
    color: #c81e26;
}

.offcanvas-footer .social-icons a {
    color: #fff;
    font-size: 1.25rem;
    margin: 0 0.5rem;
}

.offcanvas-footer .social-icons a:hover {
    color: #c81e26;
}

.offcanvas-footer .lang-switch {
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

.offcanvas-footer .lang-switch img {
    height: 14px;
    vertical-align: middle;
    margin-left: 0.25rem;
}

/* Product cards */

/* ===== Product Card Base ===== */
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.product-card .btn-cart {
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

/* حركة خفيفة عند المرور */
.product-card:hover .btn-cart {
    opacity: 1;
}
.product-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.product-card .card-body .price-row .current {
    font-size: 18px;
}

.product-card .card-body .price-row .old-price {
    font-size: 14px;
}

.product-card .badge-discount {
    padding: 8px 6px;
    font-size: 7px;
}

/* ===== 1) صندوق الصورة ===== */
/* يمكنك استخدام aspect-ratio إذا مدعوم، أو تحدد height صريحاً */
.card-img-wrapper {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f5f5f5;

    /* هذه هي الزوايا */
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 2) جسم البطاقة ===== */
.card-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

/* عنوان المنتج */
.card-body .title {
    font-size: 12px;
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em; /* تقريباً سطرين */
}
.product-card .card-body .price-row {
    margin-top: auto;
}
.cat-product-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
}
/* عدد المنتجات أو الأقسام */
.card-body .savings,
.card-body .savings-label {
    /* UI Properties من التصميم مباشرة */
    font: normal normal normal 10px/12px "Readex Pro", sans-serif;
    /* color: #2b4f6b; */
    letter-spacing: 0px;
    margin-top: 2px;
    opacity: 1;
    font-weight: 400;
}

/* إزالة أي تزيين للرابط بالكامل */
a.text-decoration-none:hover .card-body .title {
    text-decoration: none;
}

/* خصم */
.badge-discount {
    top: 16px;
    /* width: 38px;
    height: 38px; */
    padding: 10px 8px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    text-align: center;
}

/* الوضع الافتراضي: يمين */
.badge-discount.right {
    position: absolute;
    right: 16px;
}

/* وضع اليسار */
.badge-discount.left {
    left: 16px;
}

.badge-discount span {
    font-size: 13px;
    /* font-weight: bold; */
}

/* قلب المفضلة */
.btn-fav {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid #e1f0f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-fav:hover {
    background: #f1f8fc;
}

.btn-fav svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-dark);
    fill: none;
}

/* ازر السلة في السلة في بطاقة المنتج*/
.btn-cart {
    position: absolute;
    top: 50px;
    left: 16px;
    width: 32px;
    height: 32px;
    background-color: var(--dark);
    border: 2px solid var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cart > img {
    background-color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-cart:hover {
    background: var(--dark);
}

.btn-cart png {
    width: 18px;
    height: 18px;
    stroke: var(--text-dark);
    fill: none;
}

/* صورة */
.product-card > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #fff;
}

.card-body {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.header-row {
    display: flex;
    align-items: center;
    gap: 10px; /* مسافة مناسبة بين العناصر */
    margin-bottom: 10px;
    flex-wrap: nowrap; /* منع التفاف العناصر */
    overflow: hidden; /* إخفاء النص الزائد */
}

.btn-new {
    white-space: nowrap;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 4px;
    background: #d23ed6;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    order: -1;
}

.btn-new:hover {
    background: #a858a9;
}

.bestseller {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--gold);
    font-size: 9px !important;
    /* تكبير الخط قليلاً */
}

.bestseller i {
    font-size: 10px;
    margin: 1px;
}

/* brand */

.brand-logo {
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 7.5vw;
}

.brand-logo:hover {
    transform: scale(1.1);
}

/* الوضع الافتراضي للشاشات الصغيرة (موبايل) */
.scroll-horizontal {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;

    /* إخفاء شريط التمرير */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.scroll-horizontal::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.scroll-item {
    flex: 0 0 auto;
    min-width: 180px;
    width: 50%;
}

@media (max-width: 400px) {
    .scroll-item {
        width: 60%;
    }
}

@media (min-width: 576px) {
    .scroll-item {
        width: 40%;
    }
}

@media (min-width: 768px) {
    .scroll-item {
        width: 30%;
    }
}

/* من أول تابلت وفوق: استخدم تخطيط شبكي عادي وأوقف السحب */
@media (min-width: 1400px) {
    .scroll-horizontal {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        overflow: visible;
        gap: 1rem;
    }

    .scroll-item {
        flex: none;
        width: 100%;
    }
}
@media (max-width: 1400px) and (min-width: 992px) {
    .scroll-item {
        width: 20%;
    }
}
/* العنوان */
.title {
    font-size: 12px;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 3px;
    font-weight: 500;

    /* min-height: 2.8em;
  max-height: 2.8em;   */
    overflow: hidden;
    word-break: break-word;
}

.section-title {
    display: flex;
    align-items: center;
}

.title-line {
    content: "";
    display: inline-block;
    width: 20px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 5px;
}

/* التوفير */
.savings-label,
.savings {
    font-size: 12px;
    color: var(--dark);
    margin-bottom: 4px;
}

/* Purchase panel */
.card-purchase {
    background: #fafafa 0% 0% no-repeat padding-box !important;
    border-radius: 0.5rem !important;
    border: 2px solid #e6edf5 !important;
    border-radius: 10px !important;
    opacity: 1;
    padding: 1.5rem !important;
    position: relative !important;
}

/* Details panel */
.card-details {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: relative;
}

.card-details hr {
    height: 2px;
    background-color: #ccc;
    border: none;
    margin: 1rem 0;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.product-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #6c757d;
}

.rating-stars i {
    font-size: 12px;
    margin-left: 1px;
}

.rating-stars .fa-solid {
    color: #000;
}

.rating-stars .fa-regular {
    color: #ccc;
}

.product-info .rating-count {
    color: #000;
    font-weight: 500;
    font-size: 10px;
}

.product-info .divider {
    width: 1px;
    height: 12px;
    background-color: #ccc;
    opacity: 0.5;
    margin: 0 6px;
}

.text-dark {
    color: var(--dark) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.features {
    display: flex;
    flex-wrap: wrap;
}

.features > [class*="col-"] {
    display: flex;
}

.features .feature-box {
    background: var(--blue-light);
    border-radius: 0.375rem;
    padding: 0.75rem;
    text-align: center;
    font-size: 10px !important;
    font-weight: 500 !important;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features .feature-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.specs-table {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    margin-block-end: 1rem;
}

.specs-table td {
    background: var(--green-light);
    width: 40%;
}

.specs-table td,
.specs-table th {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.875rem;
    font-weight: 400 !important;
}

.specs-table th {
    background: #fafafa;
}

.specs-table td {
    border-bottom: 1px solid white;
}

/* Gallery */
.gallery-main {
    position: relative;
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
}

.gallery-thumbs img.thumb {
    border: 2px solid transparent;
    cursor: pointer;
}

.gallery-thumbs img.thumb.active {
    border-color: #000;
    /* أو أي لون تفضله */
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* UI Properties */
    background: #fafafa 0% 0% no-repeat padding-box;
    border-radius: 6px;
    opacity: 0.8;
}

.gallery-main .gallery-nav.prev {
    left: 1rem;
}

.gallery-main .gallery-nav.next {
    right: 1rem;
}

.gallery-main .gallery-nav.prev {
    left: 1rem;
}

.gallery-main .gallery-nav.next {
    right: 1rem;
}

.gallery-main .gallery-nav.prev {
    left: 1rem;
}

.gallery-main .gallery-nav.next {
    right: 1rem;
}

.gallery-main .gallery-nav i {
    font-size: 1rem;
    color: var(--color-primary, #0a2444);
}

.gallery-thumbs-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.thumb-nav.prev {
    left: 0.25rem;
}

.thumb-nav.next {
    right: 0.25rem;
}

.thumb-nav i {
    font-size: 0.9rem;
    color: var(--color-primary, #0a2444);
}

.variant-description-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(102, 102, 102, 0.85);
    /* رمادي (#666) بشفافية 85% */
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 6px 12px;
    line-height: 1.4;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    z-index: 2;
}

/* حجم دائري */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: #e0d6bf;
    opacity: 1;
    border: none;
}

.carousel-indicators .active {
    background-color: #1b254b;
}

.carousel-indicators [data-bs-target]:hover {
    background-color: #1b254b;
    cursor: pointer;
}

/* Layout */
.product-top .col-lg-3 {
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    /* .product-top rules moved to Bootstrap grid */

    .product-top .col-lg-3,
    .product-top .col-lg-5,
    .product-top .col-lg-4 {
        flex: 1 1 auto;
    }
}

/* Footer */
.bg-gray-light {
    background-color: #f2f7fa;
}

/* ===== Questions & Answers Section ===== */
.questions-container {
    background: #fff;
    border: 1px solid #e9ecef !important;
    padding: 20px !important;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.q-label-col,
.a-label-col {
    width: 90px;
    padding-left: 10px;
}

.q-label {
    color: #c5a370;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.6;
}

.q-text {
    font-weight: 600;
    font-size: 12px;
    color: #000;
    line-height: 1.6;
}

.a-label {
    color: #222;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.6;
}

.a-text {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.6;
    font-weight: 400;
}

.answer-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

/* Newsletter Section Styles */
.newsletter-section {
    padding: 0 0 30px 0; /* Added bottom padding */
    margin-top: 40px;
}

.newsletter-section .container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.newsletter-text-section {
    display: flex;
    align-items: center;
    gap: 22px; /* Increased gap */
}

.newsletter-icon {
    width: 26px; /* Smaller icon */
    height: 26px;
    flex-shrink: 0;
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    display: block;
    font-size: 19px; /* Larger title */
    font-weight: 400;
    color: #2b4f6b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.newsletter-desc {
    font-size: 12px;
    color: #000000; /* Desc in black */
    line-height: 1.5;
}

.newsletter-input-group {
    width: 450px;
    max-width: 100%;
}

.newsletter-input {
    border-radius: 8px 0 0 8px;
    border: 1px solid #e0e6ed;
    padding: 15px 20px;
    font-size: 14px;
    height: 40px;
}

.newsletter-input:focus {
    border-color: #1b3047;
    box-shadow: 0 0 0 0.2rem rgba(27, 48, 71, 0.1);
}

.newsletter-btn {
    border-radius: 0 8px 8px 0;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 20px 0 !important;
    }

    .newsletter-text-section {
        gap: 12px;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: right;
        margin-bottom: 8px;
    }

    .newsletter-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .newsletter-text {
        text-align: right;
        flex: 1;
    }

    .newsletter-title {
        font-size: 16px;
        margin-bottom: 2px !important;
        font-weight: 600;
    }

    .newsletter-desc {
        font-size: 12px;
        line-height: 1.4;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .newsletter-input {
        border-radius: 8px;
        margin-bottom: 0;
        width: 100% !important;
        flex: 1 1 100% !important;
        font-size: 14px;
        padding: 12px 16px;
        height: 48px;
    }

    .newsletter-btn {
        border-radius: 8px;
        width: 100%;
        font-size: 14px;
        font-weight: 600;
        height: 48px;
    }
}

.bg-dark-navy {
    background-color: var(--dark-navy);
}

/* Common widget styling */
.widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-family: "Readex Pro", "Tajawal", sans-serif;
    color: #ffffff;
    white-space: nowrap;
    /* منع التفاف النص */
    overflow: hidden;
    text-overflow: ellipsis;
    /* إظهار "..." إذا طال النص */
}

.widget__body {
    text-align: right;
    line-height: 1.2;
}

.widget__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
}

.widget__icon-image {
    flex-shrink: 0;
    /* width: 28px; */
    /* عرض الأيقونة */
    /* height: 28px; */
    /* ارتفاع الأيقونة */
    object-fit: contain;
}

/* .widget__value {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: white;
} */

.widget__badger {
    padding: 5px;
    background-color: #ceb99a;
    position: absolute;
    border-radius: 20px;
    /* height: 20px; */
    line-height: 0.8rem;
    color: white;
    height: 20px;
    width: 20px;
    text-align: center;
    top: -8px;
    right: 10px;
}

/* Specific widget tweaks */

.widget__label {
    color: var(--gold);
}

/* lang */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* المسافة بين العناصر */
    color: #ffffff;
    /* لون النص */
    font-family: "Readex Pro", "Tajawal", sans-serif;
    font-size: 16px;
    /* حجم النص */
    text-decoration: none;
    cursor: pointer;
}

.lang-switcher__code {
    font-weight: 500;
}

.lang-switcher__sep {
    opacity: 0.6;
    /* لتفتيح قليلًا */
}

.lang-switcher__flag {
    width: 24px;
    /* عرض العلم */
    height: auto;
    display: block;
}

/* إذا أردت تفاعل عند المرور بالماوس */
.lang-switcher:hover {
    opacity: 0.8;
}

/* services*/

.service-box {
    color: white;
    transition: all 0.3s ease-in-out;
}

.service-box h6 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--gold);
    font-weight: 400;
}

.service-box p {
    font-size: 8px;
    margin: 0;
}

/* Service Icon */
.service-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.service-text {
    font-size: 16px;
    color: #f5f8fa;
}

/* Responsive - Mobile (< 576px) */
@media (max-width: 575.98px) {
    .service-box {
        padding: 1rem !important;
    }

    .service-icon {
        width: 30px !important;
        height: 30px !important;
        flex-shrink: 0;
    }

    .service-box h6 {
        font-size: 14px !important;
    }

    .service-text {
        font-size: 15px !important;
    }
}

/* Responsive - Tablet (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .service-icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .service-box h6 {
        font-size: 14px;
    }

    .service-text {
        font-size: 16px;
    }
}

/* Responsive - Medium (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .service-icon {
        width: 44px;
        height: 44px;
    }

    .service-box h6 {
        font-size: 15px;
    }

    .service-text {
        font-size: 15px;
    }
}

/* Responsive - Large (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .service-icon {
        width: 48px;
        height: 48px;
    }

    .service-box h6 {
        font-size: 16px;
    }

    .service-text {
        font-size: 17px;
    }
}

/* Responsive - XL (1200px+) */
@media (min-width: 1200px) {
    .service-icon {
        width: 52px;
        height: 52px;
    }

    .service-box h6 {
        font-size: 18px;
    }

    .service-text {
        font-size: 18px;
    }
}

/* .service-box img {
   filter: brightness(0) invert(1);
 } */

/* .service-box:hover {
   transform: translateY(-3px);
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
 } */
/* more button */

.button-container {
    display: flex;
    justify-content: center;
    /* توسيط أفقي */
    margin: 20px 0;
    /* مسافة فوق وتحت */
}

.btn-kbz {
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 12px;
    cursor: pointer;
    /* box-shadow: 0 4px 6px rgba(31, 48, 72, 0.3); */
    transition: background-color 0.3s ease;
}

.btn-kbz-primary {
    background-color: var(--dark);
}

.btn-kbz-primary:hover {
    background-color: #152135;
}

.btn-kbz-outline-primary {
    color: var(--dark);
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-color: var(--dark);
}

.btn-kbz-secondary {
    background-color: var(--gold);
}

.btn-kbz-secondary:hover {
    background-color: #b38b00;
    /* نسخة أغمق من --gold */
}

.btn-kbz2[disabled] {
    background-color: #c8d0d8;
    color: #fff;
}

.btn-kbz2[disabled]:hover {
    background-color: #c8d0d8;
    color: var(--dark);
}

.btn-kbz-primary:disabled {
    color: #ffffffff;
    pointer-events: none;
    background-color: #212529;
    border-color: #212529;
    opacity: 0.65;
}

.ad-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

a:hover .ad-img {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.custom-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    direction: ltr;
}

.custom-pagination .page-item {
    margin: 0;
}

.custom-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.custom-pagination .page-link:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.custom-pagination .page-item.active .page-link {
    background-color: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.custom-pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.custom-pagination .page-link svg {
    width: 8px;
    height: 14px;
}

.custom-pagination .page-item:first-child .page-link,
.custom-pagination .page-item:last-child .page-link {
    border-radius: 8px;
}

@media (max-width: 575.98px) {
    .custom-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .custom-pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
}

.arabic-wrap {
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
}

/* .fa-heart{
    color: black;
}

.brand-logo:hover {
    transform: scale(1.1);
}

/* العنوان */
.title {
    font-size: 12px;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 3px;
    font-weight: 500;

    /* min-height: 2.8em;
   max-height: 2.8em;   */
    overflow: hidden;
    word-break: break-word;
}

.section-title {
    display: flex;
    align-items: center;
}

.title-line {
    content: "";
    display: inline-block;
    width: 20px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 5px;
}

/* التوفير */
.savings-label,
.savings {
    font-size: 13px;
    color: black;
    margin-bottom: 4px;
}

/* السعر */
/* Price Layout */
.price-row {
    display: flex;
    justify-content: space-between; /* Align start (right in RTL) */
    align-items: baseline;
    gap: 8px;
    color: var(--dark);
    flex-wrap: wrap;
}
.price-row .current {
    font: normal normal normal 24px/30px "Readex Pro", sans-serif;
    color: #c72c41;
    display: flex;
    align-items: center;
    gap: 2px;
    letter-spacing: 0px;
}

/* Reduce Currency Font Size */
.price-row .current small,
.price-row .old-price small {
    font-size: 14px;
    font-weight: 400;
    color: inherit;
}

.amount sup::before {
    content: ".";
}
.amount sup {
    font-size: inherit;
    vertical-align: baseline;
    font-weight: inherit;
    line-height: inherit;
    position: static;
    top: auto;
}

/* Quantity Controls */
#quantity-selector {
    font-size: 12px;
    height: auto;
}
.card-purchase .form-label {
    font-size: 12px;
    font-weight: 400;
}
.price-row .old-price {
    font: normal normal normal 16px/24px "Readex Pro", sans-serif;
    color: #1e252d;
    opacity: 0.5;
    text-align: left;
    letter-spacing: 0px;

    /* Layout */
    display: flex;
    align-items: baseline;
    gap: 4px;
    /* font-size: 12px; REMOVED to allow larger size */
}

/* Strike through only the amount */
.price-row .old-price .amount {
    text-decoration: line-through;
}

/* Savings Label Weight */
.savings-label {
    font-weight: 300; /* Less bold */
    margin-bottom: 4px;
}

.current .amount {
    font-size: 24xpx;
    color: #c72c41 !important;
}

/* Details panel */
.card-details {
    background: #fafafa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: relative;
}

.card-details hr {
    height: 2px;
    background-color: #ccc;
    border: none;
    margin: 1rem 0;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.product-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #6c757d;
}

.rating-stars i {
    font-size: 12px;
    margin-left: 1px;
}

.rating-stars .fa-solid {
    color: #000;
}

.rating-stars .fa-regular {
    color: #ccc;
}

.product-info .rating-count {
    color: #000;
    font-weight: 500;
    font-size: 10px;
}

.product-info .divider {
    width: 1px;
    height: 12px;
    background-color: #ccc;
    opacity: 0.5;
    margin: 0 6px;
}

.text-dark {
    color: var(--dark) !important;
}

.text-gold {
    color: var(--gold) !important;
}

/* Removed duplicate features .feature-box rule */

.specs-table {
    background: #fff;
    border-radius: 1px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    margin-block-end: 1rem;
}

.specs-table td {
    background: var(--green-light);
    width: 40%;
}

.specs-table td,
.specs-table th {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 11px;
    font-weight: 500;
    font-family: "Readex Pro", "Tajawal", "sans-serif";
    letter-spacing: 0px;
    color: #1e252d;
    text-transform: capitalize;
    opacity: 1;
}

.specs-table td {
    border-bottom: 1px solid white;
}

/* Gallery */
.gallery-main {
    position: relative;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.gallery-main img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
}

.gallery-thumbs img.thumb {
    border: 2px solid transparent;
    cursor: pointer;
}

.gallery-thumbs img.thumb.active {
    border-color: #000;
    /* أو أي لون تفضله */
}

.gallery-main .gallery-nav i {
    font-size: 1rem;
    color: var(--color-primary, #0a2444);
}

.gallery-thumbs-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.thumb-nav.prev {
    left: 0.25rem;
}

.thumb-nav.next {
    right: 0.25rem;
}

.thumb-nav i {
    font-size: 0.9rem;
    color: var(--color-primary, #0a2444);
}

.variant-description-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(102, 102, 102, 0.85);
    /* رمادي (#666) بشفافية 85% */
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 6px 12px;
    line-height: 1.4;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    z-index: 2;
}

/* حجم دائري */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: #e0d6bf;
    opacity: 1;
    border: none;
}

.carousel-indicators .active {
    background-color: #1b254b;
}

.carousel-indicators [data-bs-target]:hover {
    background-color: #1b254b;
    cursor: pointer;
}

/* Layout */
.product-top .col-lg-3 {
    margin-bottom: 1.5rem;
}

/* Footer */
.bg-gray-light {
    background-color: #f2f7fa;
}

.bg-dark-navy {
    background-color: var(--dark-navy);
}

/* Common widget styling */
.widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-family: "Readex Pro", "Tajawal", sans-serif;
    color: #ffffff;
    white-space: nowrap;
    /* منع التفاف النص */
    overflow: hidden;
    text-overflow: ellipsis;
    /* إظهار "..." إذا طال النص */
}

.widget__body {
    text-align: right;
    line-height: 1.2;
}

.widget__label {
    display: block;
    font-size: 11px;
    font-weight: 500;
}

.widget__icon-image {
    flex-shrink: 0;
    /* width: 28px; */
    /* عرض الأيقونة */
    /* height: 28px; */
    /* ارتفاع الأيقونة */
    object-fit: contain;
}

.widget__value {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: white;
    font-family: "Readex Pro", "Tajawal", sans-serif;
    line-height: 1.2;
    margin-top: 4px;
}

.widget__badger {
    padding: 5px;
    background-color: #ceb99a;
    position: absolute;
    border-radius: 20px;
    font-family: "Readex Pro", "Tajawal", sans-serif;
    /* height: 20px; */
    line-height: 0.8rem;
    color: white;
    height: 20px;
    width: 20px;
    text-align: center;
    top: -8px;
    right: 10px;
}

/* Specific widget tweaks */

.widget__label {
    color: var(--gold);
}

/* lang */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* المسافة بين العناصر */
    color: #ffffff;
    /* لون النص */
    font-family: "Readex Pro", "Tajawal", sans-serif;
    font-size: 16px;
    /* حجم النص */
    text-decoration: none;
    cursor: pointer;
}

/* تعديل كود اللغة نفسه */
.lang-switcher__code {
    /* إذا كان التصميم يظهر كلمة EN أو AR بوزن أخف، اجعلها 300 */
    font-weight: 300;
}

.lang-switcher__sep {
    opacity: 0.6;
    /* لتفتيح قليلًا */
}

.lang-switcher__flag {
    width: 24px;
    /* عرض العلم */
    height: auto;
    display: block;
}

/* إذا أردت تفاعل عند المرور بالماوس */
.lang-switcher:hover {
    opacity: 0.8;
}

/* services*/

.service-box {
    color: white;
    transition: all 0.3s ease-in-out;
}

.service-box h6 {
    font-size: 12px;
    margin-bottom: 5px;
    color: var(--gold);
    font-weight: 400;
}

.service-box p {
    font-size: 8px;
    margin: 0;
}

/* .service-box img {
  filter: brightness(0) invert(1);
} */

/* .service-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
} */
/* more button */

.button-container {
    display: flex;
    justify-content: center;
    /* توسيط أفقي */
    margin: 20px 0;
    /* مسافة فوق وتحت */
}

.btn-kbz {
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(31, 48, 72, 0.3);
    transition: background-color 0.3s ease;
}

.btn-kbz-primary {
    background-color: var(--dark);
}

.btn-kbz-primary:hover {
    background-color: #152135;
}

.btn-kbz-outline-primary {
    color: var(--dark);
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-color: var(--dark);
}

.btn-kbz-secondary {
    background-color: var(--gold);
}

.btn-kbz-secondary:hover {
    background-color: #b38b00;
    /* نسخة أغمق من --gold */
}

.btn-kbz2[disabled] {
    background-color: #c8d0d8;
    color: #fff;
}

.btn-kbz2[disabled]:hover {
    background-color: #c8d0d8;
    color: var(--dark);
}

.btn-kbz-primary:disabled {
    color: #ffffffff;
    pointer-events: none;
    background-color: #212529;
    border-color: #212529;
    opacity: 0.65;
}

/* pagination */
/* تجبر الـ pagination على العرض من اليمين لليسار */
.pagination {
    display: flex;
    justify-content: center;
    /* تمركز أفقياً */
    direction: ltr;
    /* مهما كان اتجاه الصفحة، نبقي اتجاه الأرقام LTR */
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

/* عزل أزرار الصفحات عن بعضها بمسافة صغيرة */
.pagination .page-item {
    margin: 0 0.2rem;
}

/* شكل رابط الصفحة */
.pagination .page-link {
    border: none;
    /* إزالة الإطار الافتراضي */
    background-color: transparent;
    color: black;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

/* الحالة النشطة */
.pagination .page-item.active .page-link {
    background-color: #132841;
    color: #ffffff;
}

/* الحالة المعطّلة */
.pagination .page-item.disabled .page-link {
    color: #cccccc;
    pointer-events: none;
}

/* هُوفر على روابط الصفحات */
.pagination .page-link:hover {
    background-color: #f0f5f9;
    text-decoration: none;
}

/* يمكنك إذا أحببت قلب ترتيب العناصر (مثلاً للـ RTL) */
.pagination {
    direction: rtl;
    /* flex-direction: row-reverse; */
}
.about-hero-img {
    width: 100%;
    height: 20vw;
    object-fit: cover;
}
@media (min-width: 992px) {
.about-hero-img {
    height: 13vw;
}
}

.contact-form .form-label {
    font-size: 12px;
}

.contact-form .form-control {
    background-color: #F5F8FA;
    font-size: 13px;
    border-radius: 6px;
}
.contact-form input {
    height: 48px;
}

.contact-form .form-control::placeholder {
    color: #A1A5B7;
    font-size: 13px;
}

.contact-form input[type="email"] {
    direction: ltr !important;
    text-align: left !important;
}
.arabic-wrap {
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
}

/* .fa-heart{
   color: black;
} */

.btn-kbz-gold {
    background-color: var(--gold);
}

.offer-bg {
    /* background-color: #f7f9fc; */
    background-image: url("/frontend/img/decor-pattern.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 150px 150px;
    min-height: 120px;
    border-radius: 8px;
    /* إذا كنت تريد حواف منحنية هنا بدل إعادة كتابتها في HTML */
    padding: 1rem;
    /* حشوة داخلية تراعي المساحة حول النص */
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    /* مسافة أفقية بين المربعات */
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.countdown-label {
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.countdown-box {
    background-color: var(--dark);
    /* نفس لون مربع الخلفية (navy-800 تقريباً) */
    color: white;
    border-radius: 0.5rem;
    width: 3.5rem;
    padding: 0.5rem 0;
    /* للحفاظ على تناسب رقمي ـاً عموديّاً */
    text-align: center;
}

.countdown-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-unit {
    font-size: 12px;
    line-height: 1;
    margin-top: 0.25rem;
}

.bg-active-item {
    background-color: #e6f4f7 !important;
}

.navbar-toggler {
    border: none !important;
    padding: 0px;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    border: none !important;
}

.navbar-toggler img {
    height: 18px;
    filter: brightness(0) invert(1) opacity(1);
}

.navbar-brand {
    margin-left: 0px;
}

@media (max-width: 991.98px) {
    .iconat .widget__body {
        display: none;
    }

    .widget__icon-image {
        height: 30px !important;
        width: 30px !important;
    }
}

@media (max-width: 420px) {
    .iconat {
        gap: 0.5rem !important;
    }
}

/* Overlay for dimming the screen */
.dim-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /* Higher than navbar but lower than dropdown */
    display: none;
}

/* Custom dropdown styles */
.naver-dropdown {
    position: absolute;
    top: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1050;
    /* Above the overlay */
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
}

.autocomplete-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 8px;
    margin-right: unset;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

/* Shimmer effect styles */
.shimmer {
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
    overflow: hidden;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.shimmer-item {
    display: flex;
    align-items: center;
    padding: 8px;
}

.shimmer-item .img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 8px;
}

[dir="rtl"] .shimmer-item .img {
    margin-left: 8px;
    margin-right: unset;
}

.shimmer-item .text {
    height: 16px;
    width: 200px;
}

.shimmer-item .text + .text {
    width: 60%;
    margin-top: 4px;
}

.custom-shipping .btn-check:checked + .shipping-btn {
    border-color: #2abbd8;
    background-color: transparent;
    box-shadow: 0 0 0 0.25rem #2abbd8;
}

.custom-shipping .shipping-btn {
    border: none;
}

.form-control-kbz {
    padding: 0.5rem 0.75rem;
    background-color: #f5f8fa;
    border: var(--bs-border-width) solid #f5f8fa;
}

.form-select-kbz {
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    background-color: #f5f8fa;
    border: var(--bs-border-width) solid #f5f8fa;
}

.activate-btn {
    background-color: #e6edf5 !important;
    border-color: #e6edf5 !important;
}

.order-action-col {
    min-width: 180px;
}

.order-products-scroll {
    /* height: 200px; */
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* إزالة الـ animation من Offcanvas */
.user-sidebar-offcanvas {
    transition: none !important;
}

.user-sidebar-offcanvas.show {
    transform: none !important;
}

/* تأكيد تغطية الشاشة بالكامل */
.user-sidebar-offcanvas.w-100 {
    width: 100% !important;
    max-width: 100% !important;
}

.cart-success-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 95%;
    margin: 60px auto;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    padding: 32px 24px;
}

/* Cart Success Modal Styles */
#cart-success-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15);
    align-items: center;
    justify-content: center;
}

.cart-success-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 95%;
    margin: 60px auto;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    padding: 32px 24px;
}

.cart-success-modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 22px;
    color: #888;
    cursor: pointer;
}

.cart-success-modal-body {
    display: flex;
    align-items: center;
    gap: 32px;
}

#cart-success-modal-img {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    align-items: flex-start;
}

#cart-success-modal-img img {
    max-width: 180px;
    max-height: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

#cart-success-modal-message {
    margin-bottom: 18px;
}

.cart-success-modal-info {
    flex: 1;
}

.cart-success-modal-subtotal {
    font-size: 18px;
    margin-bottom: 18px;
}

.cart-success-modal-subtotal #cart-success-modal-subtotal {
    font-weight: bold;
    font-size: 22px;
    margin-right: 10px;
}

.cart-success-modal-total {
    font-size: 18px;
    margin-bottom: 18px;
}

.cart-success-modal-total #cart-success-modal-total {
    font-weight: bold;
    font-size: 22px;
    margin-right: 10px;
}

.cart-success-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-success-modal-buttons form {
    margin: 0;
}

.cart-success-btn-primary {
    background: #223046;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 8px;
    width: 100%;
}

.cart-success-btn-secondary {
    background: #cbb893;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
}

/* Responsive styles for mobile */
@media (max-width: 600px) {
    .cart-success-modal-body {
        flex-direction: column;
        gap: 16px !important;
    }

    #cart-success-modal-img img {
        max-width: 100px;
        max-height: 120px;
        object-fit: contain;
    }

    .cart-success-modal-content {
        padding: 24px 16px;
        margin: 20px auto;
    }
}

/* Payment Method UI Styles */
.payment-card-bg {
    background: #f0f8fb;
}

.payment-icons-row {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.payment-card-type-icon {
    display: inline-flex;
    align-items: center;
    width: 56px;
    justify-content: center;
    height: 24px;
}

.payment-card-type-label {
    vertical-align: middle;
    font-size: 1.1rem;
}

.payment-card-type-row {
    min-height: 40px;
}

.payment-card-form {
    background: #fff;
    border: 1px solid #e3eaf1;
    padding: 1.5rem 1.5rem;
}

.payment-card-form-img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px #e3eaf1;
}

.payment-card-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.payment-card-form-change-btn {
    font-size: 0.95rem;
    padding: 0.25rem 1rem;
}

.payment-card-form-checkbox {
    margin-top: 0.5rem;
}

/* Payment Method UI Styles (pm- prefix) */
.pm-bg-blue {
    background: #f0f8fb;
}

.pm-icons-row {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.pm-card-inner {
    background: #fff;
    border: 1px solid #e3eaf1;
}

.pm-card-type-label {
    font-size: 1.1rem;
    width: 100%;
    display: flex;
    align-items: center;
}

.pm-card-type-icon {
    width: 56px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.pm-card-type-row {
    min-height: 48px;
    margin-bottom: 1rem;
}

.pm-card-type-row:last-child {
    margin-bottom: 0;
}

.pm-card-selected-icon {
    display: inline-flex;
    align-items: center;
    width: 40px;
    justify-content: center;
}

.pm-card-selected-label {
    font-size: 1.1rem;
}

.pm-expiry-month {
    max-width: 90px;
}

.pm-expiry-year {
    max-width: 110px;
}

.pm-z-1000 {
    z-index: 1000;
}

.pm-vertical-middle {
    vertical-align: middle;
}

.pm-card-form-img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px #e3eaf1;
}

.pm-gap-2 {
    gap: 0.5rem;
}

.pm-card-img {
    height: 32px;
    max-width: 48px;
    object-fit: contain;
}

.pm-card-type-label .ps-2 {
    line-height: 32px;
}

[dir="rtl"] .timeline {
    padding-right: 40px;
}

[dir="ltr"] .timeline {
    padding-left: 40px;
}

[dir="rtl"] .timeline-step {
    position: relative;
    padding-right: 30px;
}

[dir="ltr"] .timeline-step {
    position: relative;
    padding-left: 30px;
}

[dir="rtl"] .step-icon {
    position: absolute;
    top: 5px;
    right: -20px;
    width: 28px;
    height: 28px;
    z-index: 2;
}

[dir="ltr"] .step-icon {
    position: absolute;
    top: 5px;
    left: -20px;
    width: 28px;
    height: 28px;
    z-index: 2;
}

/* شكل الدائرة المكتملة */
.completed {
    background-color: #28a745;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* شكل الدائرة غير المكتملة */
.pending {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1);
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* شكل الدائرة الملغية */
.canceled {
    background-color: #dc3545;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الخط المتقطع */
[dir="rtl"] .timeline-step::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 44px;
    width: 2px;
    height: calc(100% - 10px);
    border-right: 2px dashed #d6bfa7;
    z-index: 1;
}

[dir="ltr"] .timeline-step::after {
    content: "";
    position: absolute;
    left: -7px;
    top: 44px;
    width: 2px;
    height: calc(100% - 10px);
    border-left: 2px dashed #d6bfa7;
    z-index: 1;
}

/* إزالة الخط بعد آخر عنصر */
.timeline-step:last-child::after {
    display: none;
}

.form-gift h6 {
    font-size: 15px;
    margin-bottom: 15px;
}

.card-gift {
    margin: 0 -5px;
    padding: 10px;
    text-align: center;
    background: var(--body-bg);
}

.gift-card-container {
    background: #fafafa 0% 0% no-repeat padding-box;
    border: 0.2em solid #e6edf5;
    border-radius: 5px;
    opacity: 1;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
}

.card-gift label,
.form-gift label {
    font-size: 12px;
}

.gift-card-container label {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
}

.gift-card-container .gift-img {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-height: 85%;
    object-fit: contain;
}
.breadcrumb {
    font-size: 12px;
}
.preview-gift {
    display: flex;
    background-image: url("/frontend/img/gift-preview.png");
    background-size: 100% 100%;
    height: 180px;
    background-size: 100% 100%;
    border-radius: 7px;
    width: 380px;
}

.preview-img {
    border-left: 1px dashed #99e1f2;
    border-right: 0;
    margin: 20px 0;
}

.preview-img img {
    width: 90px;
    margin: 0 20px;
}

.preview-gift h6 {
    font-size: 12px;
}

.gift-content {
    width: 70%;
    padding: 16px;
    font-size: 10px;
}

.gift-content label {
    font-size: 11px;
    margin-bottom: 8px;
}
.product-card {
    position: relative;
}
.gift-amount {
    background: #152838;
    padding: 3px;
    color: #fff;
    width: 135px;
    margin-bottom: 4px;
    text-align: center;
    font-size: 15px;
    border-radius: 5px;
    max-width: 85%;
}

.gift-amount img {
    margin: 0 2px;
}

.code-target {
    background: #ceb99a;
    padding: 5px;
    width: 85px;
    margin: 0 5px;
    color: #fff;
    border-radius: 5px;
    max-width: 45%;
}

.amount-target {
    margin: 0 2px;
}

.gift-content h5 {
    color: var(--gold-light);
    font-size: 16px;
}

.recipient-name-target {
    height: 25px;
    overflow: hidden;
}

.message-target {
    font-size: 10px;
    height: 20px;
    overflow: hidden;
}

.accordion-item {
    border: none;
    margin-bottom: 8px;
}

/* السؤال مغلق: رمادي فاتح جدًا (#f5f7fa) */
.accordion-button.collapsed {
    background-color: #f5f7fa;
    color: #212529;
    box-shadow: none;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 400;
}

/* السؤال مفتوح: أزرق فاتح (#eaf4ff) */
.accordion-button:not(.collapsed) {
    background-color: #eaf4ff;
    color: #212529;
    box-shadow: none;
    font-size: 12px;
}

/* السهم */
.accordion-button .fa-chevron-down {
    transition: transform 0.2s ease;
}

.accordion-button:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
}

/* إزالة أي حدود داخلية للزر */
.accordion-button {
    border: none;
}

/* جسم الإجابة */
.accordion-body {
    background-color: #ffffff;
    padding: 12px 16px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.6;
}

/* خط فاصل رقيق بين السؤال والإجابة */
.accordion-collapse {
    border-top: 1px solid #dee2e6;
}

.gift-card {
    display: none;
    position: absolute;
    top: 100%;
    bottom: auto;
    background: #1e344c;
    color: #fff;
    font-size: 10px;
    width: 600px;
    min-width: 350px;
    right: auto;
    left: 0;
    text-align: right;
    padding: 0 15px;
    font-weight: 300;
    z-index: 100;
    transition: all 0.7s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gift-card h6 {
    color: var(--gold-light);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 300;
}

.gift-card-desc {
    margin-right: -3px;
    width: 60%;
    display: flex;
}

.gift-card-desc > div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gift-card-desc .btn-gold {
    margin-top: auto;
    align-self: flex-start;
}

.gift-card img {
    width: 93%;
}

.btn-gold {
    color: rgb(255, 255, 255);
    font-size: 15px;
    background: var(--gold-light);
    padding: 8px 16px;
    border-radius: 3px;
}
.btn-gold:hover {
    background: #ceb99a95;
    color: #fff;
}
.total-gift-price {
    background: #f9f8f5;
    border: 1px solid #f7ead7;
}

.box-order-preview {
    min-height: 45px;
}

.btn-kbz2 {
    background: var(--dark);
    color: #fff;
    height: 50px;
}
.mega-nav {
    z-index: 1;
}
.scroll-brands {
    overflow: auto;
}
.brands {
    display: flex;
    justify-content: space-around;
}
.form-gift .form-control {
    font-size: 12px;
}
.footer-content {
    padding: 3rem 1rem;
    color: #fff;
}
.footer-content a {
    color: #fff;
}

/* Footer list items - more vertical spacing (matching XD design) */
.footer-content .list-unstyled li {
    margin-bottom: 20px !important;
}

/* Contact/Help bar centering */
.footer-contact-bar .row {
    justify-content: space-evenly !important;
}
.mt2-after-navbar {
    margin-top: 35px;
}
.form-gift .form-control {
    font-size: 12px;
}

@media only screen and (max-width: 768px) {
    .m-mob-0 {
        margin: 0 !important;
    }
    .search-form {
        margin-top: 0.5em;
    }
    .gift-content {
        padding: 8px;
    }
    .card-gift {
        margin-bottom: 2em;
    }
    .recipient-name-target {
        font-size: 14px;
        height: 16px;
    }
    .preview-img img {
        margin: 10px;
    }
    .gift-content h5 {
        font-size: 14px;
        height: 16px;
    }
    .scroll-brands {
        overflow: auto;
    }

    .brands {
        width: fit-content;
    }
    .brand-logo {
        width: 30vw;
        margin: 0 10px;
    }
}
@media only screen and (max-width: 495px) {
    .preview-gift {
        width: 65vw;
        height: auto;
    }
}
@media only screen and (max-width: 390px) {
    .preview-gift {
        width: 70vw;
        height: auto;
    }
    .preview-img img {
        margin: 0 !important;
    }
}

.refund-item-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.refund-item-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.refund-item-card .form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.refund-quantity:disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
}

.refund-total-amount {
    /* font-size: 1.1rem; */
    color: #28a745;
    /* font-weight: bold; */
}

.select-all-items,
.deselect-all-items {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.modal-lg {
    max-width: 800px;
}

.refund-item-total {
    font-weight: 600;
    color: #495057;
}

.refund-btn {
    transition: all 0.3s ease;
}

.refund-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.quantity-display {
    cursor: default !important;
    pointer-events: none;
    opacity: 0.8;
}

.quantity-display:focus {
    box-shadow: none !important;
    border-color: #dee2e6 !important;
}
/* Gift Form Inputs */

.light-input {
    width: 100%;
    height: 48px;

    background: #f5f8fa;
    border-radius: 6px;
    border: none;

    padding: 0 14px;
    font-size: 14px;
    color: #1e344c;
}

.light-input::placeholder {
    color: #9ca3af;
}

.light-input:focus {
    background: #e0ebf5;
    border: none;
    outline: none;
    box-shadow: none;
}
.border-light {
    border-color: #f9fbfa !important;
}
.active-category {
    border-color: #2b4f6b !important;
}

.banner-img {
    width: 100%;
    aspect-ratio: 1.67; /* This is for mobile, while for web it's 4.63 */
    object-fit: cover;
    object-position: left;
}
.error-message {
    display: block;
    color: #c72c41;
    font-size: 10px;
}

.gift-explian-message {
    display: block;
    color: #c72c41;
    font-size: 10px;
}

.gift-explian-message i {
    margin: 0 5px;
    border-radius: 50%;
    border: 1px solid;
    padding: 3px 6px;
}
.gift-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 90;
    display: none !important;
}
.offcanvas-backdrop {
    width: 0 !important;
    transition: all 0.7 ease-in-out;
}
.offcanvas-backdrop.show {
    width: 100vw !important;
}

.voucher-desc {
    display: flex;
    align-items: center;
}
.vouchers-section small {
    font-size: 12px;
}
.vouchers-section * {
    transition: all 0.5 ease-in-out;
}
.wallet-section {
    font-size: 14px;
}
.card {
    border-color: #ebf6fa;
}
.offcanvas-backdrop.show {
    opacity: 0.3;
}
.currencies-dropdown {
    width: 150px !important;
}
.currencies-dropdown a {
    display: flex;
    color: black;
    padding: 5px;
}
.currencies-dropdown a .fi {
    font-size: 25px;
    border-radius: 20px;
    height: 25px;
}
.mega-nav .nav-link {
    white-space: normal; /* ممنوع يكسر السطر */
}

/* Dropdown icon animation */
.mega-nav .nav-link i {
    transition: transform 0.3s ease;
}

.mega-nav .nav-item.dropdown.active-dropdown .nav-link i {
    transform: rotate(180deg);
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    .mega-nav .nav-item.mega-hide-me-please-small-screens {
        display: none;
    }
}
.filters-scrollable {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 0.5rem;
    padding-left: 1rem;
}
.sidebar-filters {
    padding: 0;
}
.sidebar-filter-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}
.category-checkbox {
    min-height: auto;
}
.sidebar-filters .form-check-label {
    font-weight: 400;
}
/* product section */
.product-card-row {
    gap: 0.5rem !important;
}

@media (max-width: 576px) {
    .container {
        margin-left: 10px;
        margin-right: 10px;
        width: calc(100% - 20px) !important;
    }
}

/* Always-horizontal product strip with hidden scrollbar */
.product-scroll-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
    gap: 0.5rem;
}
.product-scroll-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.product-scroll-item {
    flex: 0 0 auto;
    width: calc((100% - (5 * 0.5rem)) / 6); /* 6 visible on large */
}
@media (max-width: 991.98px) {
    .product-scroll-item {
        width: calc((100% - (3 * 0.5rem)) / 4); /* 4 visible on medium */
    }
}
@media (max-width: 767.98px) {
    .product-scroll-item {
        width: calc((100% - (1 * 0.5rem)) / 2); /* 2 visible on small */
    }
}

#brandsCarousel {
    padding: 0px 40px;
    position: relative;
    background: #fff;
    /* border-radius: 15px; */
}
#brandsCarousel .brand-logo-carousel {
    cursor: pointer;
}
#brandsCarousel .carousel-control-prev,
#brandsCarousel .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.8;
    z-index: 10;
}
#brandsCarousel .carousel-control-prev {
    left: 0 !important;
    right: auto !important;
}
#brandsCarousel .carousel-control-next {
    right: 0 !important;
    left: auto !important;
}
#brandsCarousel .carousel-control-prev:hover,
#brandsCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2) !important;
}
#brandsCarousel .carousel-control-prev-icon,
#brandsCarousel .carousel-control-next-icon {
    filter: invert(1);
    width: 20px;
    height: 20px;
}
/* عكس اتجاه الأسهم في وضع RTL - السهم الأيسر يشير لليمين والسهم الأيمن يشير لليسار */
#brandsCarousel .carousel-control-prev-icon {
    transform: scaleX(-1);
}
#brandsCarousel .carousel-control-next-icon {
    transform: scaleX(-1);
}
@media (max-width: 768px) {
    #brandsCarousel {
        padding: 0 30px;
    }
    #brandsCarousel .carousel-control-prev,
    #brandsCarousel .carousel-control-next {
        width: 30px !important;
        height: 30px !important;
    }
    #brandsCarousel .carousel-control-prev-icon,
    #brandsCarousel .carousel-control-next-icon {
        width: 15px;
        height: 15px;
    }
}

/* 1. التعديلات الخاصة بالشاشات الكبيرة فقط (Desktop) */
@media (min-width: 1060px) {
    .navbar.fixed-top {
        min-height: 66px;
        background-color: #0a1e2c !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex;
        align-items: center;
    }

    .navbar > .container,
    .navbar > .container-fluid {
        height: 66px;
    }
}

/* ======= Navbar & Mega‑Menu (Fixed Hover Issues) ======= */

/* 1. الإعدادات للشاشات الكبيرة (Desktop) */
@media (min-width: 992px) {
    .mega-nav {
        width: 100%;
        height: 60px;
        background: #ffffff !important;
        margin-top: 0 !important;
        z-index: 1000;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #eee;
        font-family: "Readex Pro", sans-serif;
        position: relative;
    }

    /* --- إصلاح مشكلة الـ Hover هنا --- */

    /* منع القائمة المنسدلة من أخذ عرض الشاشة كاملاً وتشويه المحتوى */
    .mega-nav .dropdown-menu {
        position: absolute;
        top: 100% !important; /* تلتصق بالهيدر الأبيض */
        right: 85px !important; /* تبدأ من بداية القائمة */
        left: 0 !important; /* تنتهي بنهاية القائمة */
        transform: none !important; /* إزالة التوسيط */
        background: #fff !important;
        border: none !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
        margin-top: 0 !important; /* يمنع القفز عند الظهور */
        height: max-content !important;
        padding-top: 50px !important;
        display: none;
    }
}

/* 2. الإعدادات للشاشات الصغيرة (Mobile/Tablet) */
@media (max-width: 1199.98px) {
    .navbar.fixed-top {
        min-height: auto;
        padding: 10px 0 !important;
        background-color: #0a1e2c !important;
    }

    .navbar > .container,
    .navbar > .container-fluid {
        height: auto;
    }

    .mega-nav {
        position: relative;
        margin-top: 0 !important;
        height: auto;
        top: 0;
    }

    /* في الجوال، المنيو يجب أن تكون بسيطة */
    .fixed-mega-menu,
    .mega-nav .dropdown-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
        display: none; /* تظهر فقط عند النقر */
    }

    .mega-nav .nav-item.show .dropdown-menu {
        display: block !important;
    }
} /* ======= التصحيح النهائي لمشكلة الهوفر والتشوه ======= */

@media (min-width: 992px) {
    /* 1. حماية الروابط من الخلفية الرمادية والإزاحة المفاجئة */
    .mega-nav .nav-item .nav-link {
        background-color: transparent !important;
        color: #333 !important;

        border: none !important;
        transition: color 0.3s ease;
    }

    /* 2. تطبيق تأثير الهوفر باللون الأحمر المحدد في التصميم */
    .mega-nav .nav-item:hover > .nav-link,
    .mega-nav .nav-link:hover {
        color: #c81e26 !important;
        background-color: transparent !important;
        text-decoration: none !important;
    }

    /* 3. معالجة القائمة المنسدلة - تم تعديل المسافة هنا */

    /* 3. معالجة القائمة المنسدلة - تم تعديل المسافة هنا */
    .mega-nav .dropdown-menu {
        background-color: #ffffff !important;
        border: 1px solid #f0f0f0 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;

        /* تعديل الإزاحة للأسفل */

        top: 100% !important;

        z-index: 10000 !important;
    }

    /* 4. معالجة النصوص داخل المنيو لتطابق خصائص XD */
    .mega-nav .dropdown-menu b,
    .mega-nav .dropdown-menu strong {
        color: #0a1e2c !important;
        font-family: "Readex Pro", sans-serif;
        font-size: 14px;
    }
}

/* 5. إصلاحات الجوال لمنع التشوه عند فتح القائمة */
@media (max-width: 991.98px) {
    .mega-nav {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        margin-top: 0 !important; /* ضمان عدم وجود فجوة في الجوال */
    }

    .mega-nav .nav-item {
        display: inline-block;
        float: none;
    }
}

@media (min-width: 992px) {
    /* 1. إزاحة الـ Carousel لأسفل الهيدر تماماً */
    .carousel {
        /* margin-top: 126px !important; */
        background-color: #f8f8f8; /* خلفية اختيارية لملء أي فراغات جانبية */
    }

    /* 2. ضبط أبعاد حاوية الصورة لمنع القص */
    .carousel-inner {
        max-height: calc(
            100vh - 126px
        ); /* يضمن أن السلايدر لا يأخذ مساحة أكبر من المتاح تحت الهيدر */
        overflow: hidden;
    }

    /* 3. ضمان ظهور الصورة كاملة (Fit) دون اقتطاع أجزائها */
    .banner-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4.63;
        object-fit: cover !important; /* أو استخدم contain إذا كنت لا تريد قص أي جزء نهائياً */
        display: block;
    }
}
.payment-methods-title {
    /* UI Properties */
    font-family: "Readex Pro", sans-serif; /* نوع الخط */
    font-size: 12px; /* حجم الخط */
    font-weight: 500; /* Medium حسب المواصفات */
    line-height: 15px; /* ارتفاع السطر */
    color: #1e252d; /* لون النص */
    text-align: right; /* المحاذاة */
    letter-spacing: 0px; /* تباعد الأحرف */
    opacity: 1; /* الشفافية */

    /* Layout Properties (اختياري حسب موقع العنصر) */
    width: 212px; /* عرض العنصر */
    height: 15px; /* ارتفاع العنصر */
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 11px; /* Base font size */
    font-family: "Readex Pro", "Tajawal", sans-serif;
}

.breadcrumb-item {
    color: #9ca3af;
    display: inline-flex; /* Fix vertical alignment */
    align-items: center; /* Fix vertical alignment */
    font-size: 11px; /* Explicitly set size */
}

.breadcrumb-item a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 11px; /* Explicitly set size for links */
}

.breadcrumb-item a:hover {
    color: #6b7280;
}

.breadcrumb-item.active {
    color: #1e252d;
    font-weight: 400;
}

/* Zero out default Bootstrap padding on items to control gap via arrow */
.breadcrumb-item + .breadcrumb-item {
    padding-right: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›"; /* Keep original arrow */
    color: #000; /* Set arrow to black */
    padding: 0 5px; /* Equal padding on both sides */
    font-size: 11px; /* Reduced arrow size */
    line-height: 1; /* Ensure vertical centering */
}

.product-name {
    text-align: right;
    font-size: 20px;
    font-family: Readex Pro;
    font-weight: 400 !important;
    letter-spacing: 0px;
    color: #2b4f6b;
    opacity: 1;
}
.bestseller {
    text-align: right;
    font-family: "Readex Pro", "Tajawal", "sans-serif";
    font-weight: 400;
    color: #c5a370;
    opacity: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;

    font-size: 11px; /* تكبير الخط قليلاً */
}
.main-company {
    text-align: right;
    font: normal normal normal 12px/28px Readex Pro;
    letter-spacing: 0px;
    color: #2b4f6b;
}

/* Grid Stack Offers Section */
.grid-stack {
    --gs-item-margin-top: 6px !important;
    --gs-item-margin-bottom: 6px !important;
    margin-left: -6px !important;
    margin-right: -6px !important;
}

.grid-stack-item-content {
    overflow: hidden !important;
    border-radius: 5px;
}

.grid-stack-item-content a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.grid-stack-item-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

@media (max-width: 991px) {
    .grid-stack {
        margin-bottom: 20px;
    }
}

/* Sidebar Filter Checkbox Color */
.sidebar-filters .form-check-input:checked {
    background-color: #2abbd8;
    border-color: #2abbd8;
}
.sidebar-filters .form-check-input:focus {
    border-color: #2abbd8;
    box-shadow: 0 0 0 0.25rem rgba(42, 187, 216, 0.25);
}
.sidebar-filters .form-check-input:hover {
    border-color: #2abbd8;
}

/* Sidebar Filter Title Color */
.sidebar-filter-title {
    color: #2b4f6b !important;
}

/* Cart Success Modal Styling */
#cart-success-modal .cart-success-modal-message-box {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: #fff;
}

#cart-success-modal .cart-success-modal-totals-box {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

#cart-success-modal .cart-success-modal-totals-box .label {
    font-weight: 400;
    color: #333;
    font-size: 14px;
}

#cart-success-modal .cart-success-modal-totals-box .price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #1e252d;
    font-weight: 400;
}

#cart-success-modal .cart-success-modal-totals-box .amount {
    font-size: 1.05rem;
}

#cart-success-modal .cart-success-modal-totals-box .amount sup::before {
    content: ".";
}
#cart-success-modal .cart-success-modal-totals-box .amount sup {
    font-size: inherit;
    vertical-align: baseline;
    position: static;
    top: auto;
}

#cart-success-modal .cart-success-modal-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 10px;
}

#cart-success-modal .cart-success-modal-buttons button,
#cart-success-modal .cart-success-modal-buttons a {
    flex: 1;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .footer-contact-bar .service-text {
        font-size: 11px !important;
    }
    .footer-contact-bar .footer-h6 {
        font-size: 13px !important;
    }
    .footer-contact-bar .service-box {
        padding: 10px 5px !important;
    }
}

@media (max-width: 767px) {
    .footer-contact-bar .col {
        width: 100% !important;
        margin-bottom: 10px;
    }
}
.form-gift .form-label {
    font-family: "Readex Pro", sans-serif;
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;

    color: #5e6278;
    letter-spacing: 0;

    margin-bottom: 6px;
}

.gift-card .d-flex {
    flex-wrap: nowrap;
}

.buy-gifts-title {
    font-size: 24px;
}
.choose-gift-title {
    font-size: 20px;
}

.voucher-box .row {
    align-items: center;
}

.voucher-box label,
.voucher-box .col-md-5:first-child {
    font-weight: 600;
    font-size: 14px;
    color: #1e344c;
}

.voucher-box .input-group {
    display: flex;
}

.voucher-box .form-control-kbz {
    height: 48px;
    background: #f5f8fa;
    border-radius: 6px 0 0 6px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.voucher-box .activate-btn {
    height: 48px;
    padding: 0 18px;
    font-weight: 600;
    border-radius: 0 6px 6px 0;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.voucher-box .activate-btn:hover {
    background: #e5e7eb;
}

.voucher-box .voucher-applied-message {
    font-size: 13px;
}
.voucher-box .col-md-5 {
    max-width: 520px;
}
.price-wrapper {
    white-space: nowrap;
}

.order-price {
    font-size: 22px;
    /* font-weight: 700; */
}

.order-price sup::before {
    content: ".";
}
.order-price sup {
    font-size: inherit;
    vertical-align: baseline;
    position: static;
    top: auto;
}

.currency-symbol {
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
}

.pm-summary-box {
    background: #f1c07e0f;
    border: 1px solid #e5d0b0;
    border-radius: 10px;
}

.pm-order-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-preview-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
}

/* ===== Account Page Styles ===== */

/* Sidebar */
.sidebar-card .sidebar-header {
    padding: 12px 16px !important;
}

.sidebar-username {
    font-size: 18px;
    font-weight: 500;
}

.sidebar-subtitle {
    font-size: 10px;
    color: #5e6278;
}

.sidebar-tab-text {
    font-size: 13px;
}

.sidebar-arrow {
    font-size: 10px;
    color: #000;
    font-weight: 900;
    -webkit-text-stroke: 1px currentColor;
}

[dir="rtl"] .sidebar-arrow {
    transform: rotate(180deg);
}

.sidebar-arrow-active {
    color: #2abbd8;
}

.bg-active-item {
    background-color: #ebf6fa !important;
    border-radius: 6px !important;
}

.sidebar-card .list-group-item {
    padding: 12px 24px;
    border: none;
    background-color: transparent;
}

/* Account Page Title */
.account-page-title {
    font-size: 24px;
    font-weight: 500;
    color: #1e252d;
    margin-bottom: 0;
}

/* Account Form Input Labels */
.account-input-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
}

/* Account Form Inputs */
.account-input {
    background-color: #ebf5f7;
    border: 1px solid #e0eef2;
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 6px;
}

.account-input:focus {
    background-color: #ebf5f7;
    border-color: #2abbd8;
    box-shadow: 0 0 0 0.15rem rgba(42, 187, 216, 0.15);
}

/* Account input LTR override (email, phone) */
.account-input-ltr {
    direction: ltr !important;
    text-align: left !important;
}

/* Edit Button */
.btn-kbz-edit {
    background-color: #1e344c;
    font-size: 15px;
    padding: 12px 60px;
}

.btn-kbz-edit:hover {
    background-color: #152535;
}

.card-bordered{
    border: 1px solid #e9ecef;
}

@media (max-width: 991.98px) {
    .list-account-tabs li{
        background-color: var(--green-light)!important;
    }
    .sidebar-auth-header{
        background-color: var(--gray-light)!important;
    }
}

div:where(.swal2-container){
    z-index: 2000!important;
}

/* Site flash notifications */
.site-flash-wrap {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.site-flash-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(21, 40, 56, 0.1);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.site-flash-alert__body {
    flex: 1;
    min-width: 0;
}

.site-flash-alert__message {
    margin: 0;
}

.site-flash-alert__list {
    margin: 0;
    padding-inline-start: 1.15rem;
}

.site-flash-alert__list li + li {
    margin-top: 0.25rem;
}

.site-flash-alert .btn-close {
    flex-shrink: 0;
    margin: 0.125rem 0 0;
    padding: 0.5rem;
    opacity: 0.65;
}

.site-flash-alert .btn-close:hover {
    opacity: 1;
}