/* start global  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: capitalize;
}

a {
    text-decoration: none;
}

body {
    background-color: #F6F7F9;
    font-family: "Rajdhani", sans-serif;
}

:root {
    --main-color: #1421AB;
    --transition: all .5s ease;
}

li {
    list-style: none;
}

.text-main {
    color: #1421AB !important;
}

.bg-main {
    background-color: #1421AB !important;
}

.fs-8 {
    font-size: 8px !important;
}

.fs-10 {
    font-size: 10px !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-14 {
    font-size: 14px !important;
}

.fs-18 {
    font-size: 18px !important;
}

.fs-20 {
    font-size: 20px !important;
}

.gap-6 {
    gap: 8rem !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.flex {
    display: flex !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-start {
    justify-content: flex-start !important;
}

.justify-end {
    justify-content: flex-end !important;
}

.flex-col {
    flex-direction: column !important;
}

.items-center {
    align-items: center !important;
}

.items-start {
    align-items: flex-start !important;
}

.items-end {
    align-items: flex-end !important;
}

.w-fit {
    width: fit-content !important;
}

.text-gray {
    color: #7C7C8D !important;
}

.text-light {
    color: #c2c1c1 !important;
}

.bg-gray {
    background-color: #F5F5F5 !important;
}

.text-black {
    color: #34343C !important;
}

.line-border {
    border: 1px solid #7c7c8d80 !important;
    border-radius: 20px !important;
}

.main-title {
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    line-height: 32.4px;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px #1421AB;
    transition: opacity 0.4s, transform 0.3s;
    opacity: 0;
    pointer-events: none;
}

#scrollToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background: #F1EAFA;
    transform: scale(1.1);
    color: var(--main-color);
}

/* Floating Cart Button */
#floatingCartBtn {
    bottom: 120px;
    left: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px #1421AB;
    transition: opacity 0.4s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

html.rtl #floatingCartBtn {
    left: auto;
    right: 30px;
}

#floatingCartBtn .floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

html.rtl #floatingCartBtn .floating-cart-count {
    right: auto;
    left: -5px;
}

#floatingCartBtn:hover {
    background: #F1EAFA;
    transform: scale(1.1);
    color: var(--main-color);
}

.object-cover {
    object-fit: cover !important;
}

/* ---------- RTL MODE ---------- */
html.rtl {
    direction: rtl;
    text-align: right;
    font-family: "Tajawal", sans-serif;
}

/* ---------- LTR MODE ---------- */
html.ltr {
    direction: ltr;
    text-align: left;
    font-family: "Poppins", sans-serif;
}

/* End global  */

/* start top-ads   */
.top-ads img {
    object-fit: cover;
}

/* end top-ads   */

/* start home banner slider */
.banner .banner-swiper {
    width: 100%;
}

.banner .banner-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner .banner-swiper img {
    width: 100%;
    height: 360px;
    max-height: 360px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .banner .banner-swiper img {
        height: 260px;
        max-height: 260px;
    }
}

@media (max-width: 576px) {
    .banner .banner-swiper img {
        height: 200px;
        max-height: 200px;
    }
}

/* end home banner slider */

/* start services section */
.services .service-icon {
    height: 60px;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}
/* end services section */

/* start top bar   */
.top-bar {
    position: relative;
    z-index: 1100;
    border-bottom: 1px solid #f0f0f0;
}

.top-bar .right-side-container {
    gap: 24px;
    align-items: center;
}

.top-bar .right-side-container > * {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-bar .brand-logo {
    width: auto;
    max-width: 280px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}

.top-bar .right-side-container .cart-count {
    width: 15px;
    height: 15px;
    top: -10px;
    right: -10px;
}

html.rtl .top-bar .right-side-container .cart-count {
    right: -auto;
    left: -10px;
}

.top-bar .right-side-container .cart-dropdown {
    display: none;
    top: 100%;
    width: 350px;
    right: 0;
    border-radius: 8px;
    z-index: 9999;
}

html.rtl .top-bar .right-side-container .cart-dropdown {
    right: auto;
    left: 0;
}

.top-bar .right-side-container .cart-container .product-item img {
    width: 100px;
}

.top-bar .right-side-container .cart-container .checkout-box button {
    background-color: var(--main-color);
    color: white;
    border-radius: 20px;
    border: none;
    padding: 5px 15px;
}

.top-bar .right-side-container .cart-container .fa-xmark:hover,
.top-bar .right-side-container .cart-container .fa-pen:hover {
    background-color: white !important;
    color: var(--main-color) !important;
    border: 1px solid var(--main-color);
    transition: var(--transition);
}

.top-bar .right-side-container .cart-container .fa-pen,
.top-bar .right-side-container .cart-container .fa-xmark {
    width: 20px;
    text-align: center;
    border: 1px solid transparent;

}

.top-bar .right-side-container .cart-container .product-name:hover {
    color: var(--main-color) !important;
}

.top-bar .right-side-container .cart-container .cart-crud {
    top: 10px;
    left: 0;
}

.top-bar .right-side-container .cart-container {
    position: relative;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.top-bar .right-side-container .cart-container:hover {
    background-color: #f5f5f5;
}

.top-bar .right-side-container a[href*="wishlist"] {
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.top-bar .right-side-container a[href*="wishlist"]:hover {
    background-color: #f5f5f5;
}

.top-bar .right-side-container a[href*="login"],
.top-bar .right-side-container #profile-dropdown-toggle {
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.top-bar .right-side-container a[href*="login"]:hover,
.top-bar .right-side-container #profile-dropdown-toggle:hover {
    background-color: #f5f5f5;
}

.top-bar #lang-toggle {
    user-select: none;
    position: relative;
}

.top-bar .lang-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    height: 100%;
}

.top-bar .lang-button:hover {
    background-color: #f5f5f5;
}

.top-bar #lang-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 160px;
    top: 100%;
    right: 0;
    margin-top: 8px;
    position: absolute;
    z-index: 1100;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: left;
}

html.rtl .top-bar #lang-menu {
    right: auto;
    left: 0;
}

.top-bar #lang-menu .lang-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 14px;
}

.top-bar #lang-menu .lang-item:hover {
    background-color: var(--main-color);
    color: #fff;
}

.top-bar #lang-menu .lang-item:first-child {
    border-radius: 8px 8px 0 0;
}

.top-bar #lang-menu .lang-item:last-child {
    border-radius: 0 0 8px 8px;
}

.top-bar .lang-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

/* Theme5 Language Dropdown Style - Using theme1 functionality */
.top-bar .t-h-dropdown {
    position: relative;
}

.top-bar .t-h-dropdown .main-link {
    padding: 0;
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar .t-h-dropdown .main-link:hover {
    color: inherit;
}

.top-bar .t-h-dropdown .t-h-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

html.rtl .top-bar .t-h-dropdown .t-h-dropdown-menu {
    right: auto;
    left: 0;
}

.top-bar .t-h-dropdown:hover .t-h-dropdown-menu,
.top-bar .t-h-dropdown.active .t-h-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-bar .t-h-dropdown .t-h-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.top-bar .t-h-dropdown .t-h-dropdown-menu a:hover {
    background-color: var(--main-color);
    color: #fff;
}

.top-bar .t-h-dropdown .t-h-dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.top-bar .t-h-dropdown .t-h-dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.top-bar .t-h-dropdown .t-h-dropdown-menu a.active {
    background-color: var(--main-color);
    color: #fff !important;
}

.top-bar .t-h-dropdown .t-h-dropdown-menu a i {
    margin-right: 8px;
    font-size: 12px;
}

html.rtl .top-bar .t-h-dropdown .t-h-dropdown-menu a i {
    margin-right: 0;
    margin-left: 8px;
}

.top-bar .profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1100;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 8px 0;
    margin-top: 8px;
}

html.rtl .top-bar .profile-dropdown {
    right: auto;
    left: 0;
}

.top-bar .profile-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    gap: 10px;
}

.top-bar .profile-dropdown a i {
    width: 18px;
    font-size: 14px;
}

.top-bar .profile-dropdown a:hover {
    background-color: var(--main-color);
    color: #fff;
}

.top-bar .profile-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.top-bar .profile-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
}

/* end top bar   */

/* start desktop navbar  */
.desktop-navbar {
    background-color: #fff;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid #e0e0e0;
}

/* Navbar cart icon */
.desktop-navbar .navbar-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.desktop-navbar .navbar-cart-icon.order-first {
    order: -1;
}

html.rtl .desktop-navbar .navbar-cart-icon.order-first {
    order: 999;
}

.desktop-navbar .navbar-cart-icon a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px;
}

.desktop-navbar .navbar-cart-icon a:hover {
    color: var(--main-color);
}

.desktop-navbar .navbar-cart-count {
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: bold;
    font-size: 11px;
}

html.rtl .desktop-navbar .navbar-cart-count {
    right: auto;
    left: -5px;
}

.desktop-navbar .main-link {
    color: #333;
    font-size: 14px;
    padding: 10px;
    text-align: center;
}

.desktop-navbar .more-menu button {
    color: #333;
    font-size: 20px;
    padding: 10px;
    text-align: center;
    background-color: transparent;
    border: none;
}

.desktop-navbar .main-link:hover {
    color: #0159aa;
}

.desktop-navbar a.active {
    background-color: transparent;
    color: #0159aa;
    border-bottom: 2px solid #0159aa;
    padding-bottom: 8px;
}

.desktop-navbar .hot-border {
    position: absolute;
    top: 9px;
    right: 6px;
    left: auto;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #FF8000;
}

html.rtl .desktop-navbar .hot-border {
    left: 6px;
    right: auto;
}

.desktop-navbar .hot-link {
    position: absolute;
    background-color: #FF8000;
    color: #D02906;
    text-align: center;
    font-size: 11px;
    right: -5px;
    top: -5px;
    width: 30px;
    height: 14px;
}

html.rtl .desktop-navbar .hot-link {
    left: -5px;
    right: auto;
}

.desktop-navbar .mega-parent {
    display: inline-block;
    padding: 10px 0;
}

.desktop-navbar .mega-menu {
    position: absolute;
    left: 50%;
    top: 55px;
    width: 90%;
    transform: translate(-50%, 20px);
    background: #fff;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: 0.3s ease;
    z-index: 999;
}

.desktop-navbar .mega-parent:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.desktop-navbar .mega-content-links a {
    display: block;
    font-size: 14px;
    text-decoration: none;
    color: #7c7c8df6;
    transition: 0.2s;
    text-align: left;
    padding: 0;
    text-transform: capitalize;
}

.desktop-navbar .mega-content-links a:hover {
    color: var(--main-color) !important;
    background-color: transparent;
}

.desktop-navbar .mega-content-links-head {
    text-transform: uppercase !important;
}

.desktop-navbar .mega-menu img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 4px;
}

.desktop-navbar .mega-menu .col-md-6 img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.desktop-navbar .mega-menu .flex {
    flex-wrap: wrap;
}

.desktop-navbar .mega-menu .gap-6 {
    gap: 2rem !important;
}

html.rtl .desktop-navbar .mega-content-links a {
    text-align: right;
}

.desktop-navbar .featured-brands img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #7c7c8d93;
    padding: 5px;
}

.desktop-navbar .built-in img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.desktop-navbar .featured-brands {
    border-left: 1px solid #7c7c8d93;
    padding: 5px;
}

.desktop-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
    white-space: nowrap;
}

.desktop-navbar .more-menu .dropdown-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: var(--main-color);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 160px;
    z-index: 10;
}

.desktop-navbar .dropdown-menu {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 18px;
    background: #2D2D2D !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
}

.desktop-navbar .more-menu .dropdown-menu {
    left: 0 !important;
    right: auto;
    min-width: 100%;

}

html.rtl .desktop-navbar .dropdown-menu {
    left: 0 !important;
    right: auto;
}

.desktop-navbar .dropdown-menu.show {
    display: block;
}

/* Remove icon inside input - only show in search button */
.desktop-navbar .fa-magnifying-glass:not(.search-btn i) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
}

html.rtl .desktop-navbar .fa-magnifying-glass:not(.search-btn i) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.desktop-navbar .navbar-search {
    width: 300px;
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border-color: #e0e0e0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    background-image: none !important;
    background-position: unset !important;
    background-repeat: no-repeat !important;
    background-size: unset !important;
}

.desktop-navbar .navbar-search:focus {
    background-color: #fff !important;
    color: #333 !important;
    border-color: var(--main-color) !important;
    box-shadow: 0 0 0 2px rgba(20, 33, 171, 0.1) !important;
    outline: none !important;
}

/* Remove any icons inside search input - Override all possible CSS */
.desktop-navbar .navbar-search::before,
.desktop-navbar .navbar-search::after,
.desktop-navbar .form-control::before,
.desktop-navbar .form-control::after,
.desktop-navbar input[type="search"]::before,
.desktop-navbar input[type="search"]::after,
.desktop-navbar .navbar-search::before,
.desktop-navbar .navbar-search::after {
    display: none !important;
    content: "" !important;
    background: none !important;
    background-image: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove any icon elements inside search container */
.desktop-navbar .position-relative .fa-magnifying-glass:not(.search-btn i),
.desktop-navbar .search-icon-inside,
.desktop-navbar form .fa-magnifying-glass:not(.search-btn i),
.desktop-navbar .search-setting .fa-magnifying-glass:not(.search-btn i) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Remove background images from search input */
.desktop-navbar .navbar-search {
    background-image: none !important;
    background-position: unset !important;
    background-repeat: no-repeat !important;
    background-size: unset !important;
}

.desktop-navbar .search-btn {
    background-color: transparent !important;
    border: none !important;
    color: #333 !important;
    padding: 8px 15px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    min-width: 40px;
    height: 100%;
}

.desktop-navbar .search-btn:hover {
    opacity: 0.9;
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px;
}

.desktop-navbar .search-btn:active {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.desktop-navbar .search-btn i {
    color: #333 !important;
    font-size: 20px !important;
    display: block !important;
    visibility: visible !important;
}

.desktop-navbar .navbar-search::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

.desktop-navbar .navbar-search::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

.desktop-navbar .navbar-search::-moz-placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

.desktop-navbar .navbar-search:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* end desktop navbar  */

/* start mobile navbar  */

.mobile-navbar .mobile-logo img {
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.mobile-navbar .searchDropdown {
    display: none;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    width: 90vw;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-navbar .cart-box span {
    width: 15px;
    height: 15px;
    top: -10px;
    right: -10px;
}

html.rtl .mobile-navbar .cart-box span {
    left: -10px;
    right: auto;
}

.mobile-navbar #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1100;
}

.mobile-navbar #sidebar {
    position: fixed;
    top: 0;
    left: -85%;
    width: 85%;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 0 20px;
    transition: 0.3s;
    z-index: 1101;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-navbar #sidebar ul {
    list-style: none;
    padding: 0;
}

.mobile-navbar #sidebar ul li {
    margin: 5px 0;
}

.mobile-navbar #sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.mobile-navbar #sidebar.show {
    left: 0;
}

.mobile-navbar #overlay.show {
    display: block;
}

.mobile-navbar .fa-bars-staggered {
    font-size: 24px;
    color: var(--main-color);
}

.mobile-navbar .nav-tabs .nav-link {
    padding: 20px 10px !important;
    margin-right: 5px;
}

.mobile-navbar .nav-tabs {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.mobile-navbar .nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    border-color: var(--main-color) !important;
    color: var(--main-color);

}

.mobile-navbar .toggle-icon {
    transition: transform 0.3s;
}

.mobile-navbar .toggle-icon.rotate {
    transform: rotate(45deg);
}

.mobile-navbar .accordion-item .submenu {
    display: none;
}

.mobile-navbar .accordion-item .toggle-icon.rotate {
    transform: rotate(45deg);
}

.mobile-navbar .submenu {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
}

.mobile-navbar .account-box li {
    margin: 25px 0 !important;
    border-bottom: 1px solid rgba(128, 128, 128, 0.747);
}

.mobile-navbar .toggle-icon {
    font-size: 30px;
}

.mobile-navbar .lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
}

/* end mobile navbar  */

/* start appliances-deals */
.product-box .offer-badge {
    background-color: #FFA500;
    position: absolute;
    top: 5px;
    right: 5px;
    color: white;
    border-radius: 3px;
    padding: 2px 5px;
    font-weight: 600;
}

.product-box .product-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-box .product-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.product-box .product-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.product-box .product-card .text-center {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-box .product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}

.product-box .product-card .desc {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

.product-box .product-card .hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* counter على طرف والأيقونات على الطرف الآخر */
    align-items: center;
    flex-direction: row;
    padding: 6px 14px;
    opacity: 0;
    background: var(--main-color);
    border-radius: 50px;
    direction: ltr;
    z-index: 2;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.product-box .product-card:hover .hover-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.product-box .product-card .desc {
    transition: all 0.3s ease;
}

.product-box .product-card:hover .desc {
    opacity: 0;
    transform: translateY(-20px);
}

.product-box .counter-box button,
.product-box .hover-content-actions button {
    border: none;
    background-color: transparent;
    font-size: 18px;
}

.product-box .hover-content-actions button {
    color: white;
}

.product-box .fa-minus,
.product-box .fa-plus {
    color: #2D2D2D;
}

.product-box .counter-box {
    background-color: white;
    border-radius: 50px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-box .product-card .fa-eye {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--main-color);
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 3;
    pointer-events: none;
}

.product-box .product-card:hover .fa-eye {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
    top: 40%;
}

.product-box .fa-eye:hover {
    background-color: var(--main-color);
    color: #fff !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}


.product-box .product-card .hover-content:hover {
    background-color: white;
    border: 1px solid var(--main-color);

    transition: background-color 0.3s ease, color 0.3s ease;
}

.product-box .product-card .hover-content:hover .counter-box button .fa-minus,
.product-box .product-card .hover-content:hover .counter-box .fa-plus,
.product-box .product-card .hover-content:hover .counter-box span {
    color: white !important;
}

.product-box .product-card .hover-content:hover .counter-box {
    background-color: var(--main-color);
}

.product-box .product-card .hover-content:hover .hover-content-actions button {
    color: var(--main-color);
}

html.rtl .product-box .product-card .hover-content {
    direction: ltr;
}

.product-box .product-swiper {
    direction: rtl;
}

html.rtl .product-box .product-swiper {
    direction: ltr;
}

.product-box .swiper-button-next,
.product-box .swiper-button-prev {
    background-color: var(--main-color);
    width: 40px;
    padding: 10px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-box .product-swiper:hover .swiper-button-next,
.product-box .product-swiper:hover .swiper-button-prev {
    opacity: 1;
}

.product-box .swiper-horizontal>.swiper-pagination-bullets,
.product-box .swiper-pagination-horizontal.swiper-pagination-bullets {
    display: none !important;
}

.product-box .brand-img {
    width: 100%;
    /* width: 150px; */
    height: 130px;
    object-fit: cover;
}

/* start two column category - using same style as product-box */
.product-box .col-xl-4,
.product-box .col-lg-6 {
    margin-bottom: 30px;
}

/* Ensure swiper works correctly in two column category */
.product-box .product-swiper {
    position: relative;
}

.product-box .product-swiper .swiper-slide {
    height: auto;
}

/* For two column category - products stacked vertically in each slide */
.product-box .col-xl-4 .product-swiper .swiper-slide .d-flex.flex-column,
.product-box .col-lg-6 .product-swiper .swiper-slide .d-flex.flex-column {
    gap: 15px;
}

.product-box .col-xl-4 .product-card,
.product-box .col-lg-6 .product-card {
    margin-bottom: 0;
}

/* Ensure product cards in two column category have same dimensions as appliances-deals */
.product-box .col-xl-4 .product-card,
.product-box .col-lg-6 .product-card {
    min-height: auto;
    height: auto;
}

.product-box .col-xl-4 .product-card img,
.product-box .col-lg-6 .product-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

.product-box .col-xl-4 .product-card .desc,
.product-box .col-lg-6 .product-card .desc {
    min-height: auto;
    padding: 0;
}

.product-box .col-xl-4 .product-card .desc p,
.product-box .col-lg-6 .product-card .desc p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: auto;
}

@media (max-width: 991px) {
    .product-box .col-lg-6 {
        margin-bottom: 25px;
    }
}

@media (max-width: 575px) {
    .product-box .col-xl-4,
    .product-box .col-lg-6 {
        margin-bottom: 20px;
    }
}

/* end two column category */

/* end appliances-deals */

/* start preloader - from theme1 */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999999999;
    background: #fff;
}

#preloader img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 200px;
}
/* end preloader */

/* start category  */
.category .row {
    display: flex;
    flex-wrap: wrap;
}

.category .col-md-3 {
    display: flex;
    margin-bottom: 15px;
}

.category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
    border-radius: 5px;
    transition: var(--transition);
    width: 100%;
    height: 100%;
}

.category-card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    flex-shrink: 0;
}

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

.cat-name {
    background-color: #F0F2F7;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #000000;
    transition: var(--transition);
    margin: 0;
    padding: 12px 8px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.category-card:hover .cat-name {
    background-color: var(--main-color);
    color: white;
}

.featured-category-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
}

/* end category  */

.brand-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .brand-image {
    transform: scale(1.1);
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
    transition: color 0.3s ease;
}

.product-card:hover .brand-name {
    color: var(--main-color, #007bff);
}

/* start footer  */
/* Override theme1 footer styles for theme5 */
body.body_theme5 footer,
body.body_theme5 .site-footer {
    background-color: #000000 !important;
    color: white !important;
}

body.body_theme5 footer a,
body.body_theme5 footer p,
body.body_theme5 footer h2,
body.body_theme5 footer h3,
body.body_theme5 footer h4,
body.body_theme5 footer span,
body.body_theme5 footer li,
body.body_theme5 footer strong {
    color: white !important;
}

body.body_theme5 footer a:hover {
    text-decoration: underline;
    color: rgba(255, 255, 255, 0.8) !important;
}

body.body_theme5 footer .footer-input {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid white !important;
    width: 100%;
    padding: 10px;
    color: white !important;
}

body.body_theme5 footer .footer-input:focus {
    outline: none;
    color: white !important;
}

body.body_theme5 footer .footer-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.body_theme5 footer .fa-arrow-right-long {
    position: absolute;
    right: 0;
    bottom: 10px;
    color: white !important;
}

body.body_theme5 footer .fa-youtube:hover,
body.body_theme5 footer .fa-whatsapp:hover,
body.body_theme5 footer .fa-facebook-f:hover {
    background-color: white !important;
    color: var(--main-color) !important;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 2px 0 20px var(--main-color);
}

body.body_theme5 footer .fa-facebook-f {
    padding: 7px 10px !important;
}

body.body_theme5 footer .app-download img {
    width: 140px;
    border-radius: 5px;
}

/* Footer payment methods image */
body.body_theme5 footer img[alt="payment methods"] {
    max-width: 160px;
    height: auto;
    display: block;
}

body.body_theme5 footer {
    background-color: #000000 !important;
    color: white !important;
}

/* Notification styles - make them more visible and closer to right */
body.body_theme5 .notifyjs-container {
    right: 20px !important;
    left: auto !important;
}

body.body_theme5 .notifyjs-bootstrap-base,
body.body_theme5 .notifyjs-bootstrap-success {
    opacity: 1 !important;
    background-color: #28a745 !important;
    background: #28a745 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    font-weight: 500 !important;
    min-width: 300px !important;
}

body.body_theme5 .notifyjs-bootstrap-base *,
body.body_theme5 .notifyjs-bootstrap-success * {
    opacity: 1 !important;
}

body.body_theme5 .notifyjs-bootstrap-base strong,
body.body_theme5 .notifyjs-bootstrap-success strong {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    opacity: 1 !important;
}

body.body_theme5 .notifyjs-bootstrap-base .notifyjs-bootstrap-icon,
body.body_theme5 .notifyjs-bootstrap-success .notifyjs-bootstrap-icon {
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 20px !important;
}

body.body_theme5 .notifyjs-bootstrap-base .notifyjs-close,
body.body_theme5 .notifyjs-bootstrap-success .notifyjs-close {
    opacity: 1 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

/* Remove any transparency from notification wrapper */
body.body_theme5 .notifyjs-wrapper,
body.body_theme5 .notifyjs-container {
    opacity: 1 !important;
}

/* Ensure solid background - no transparency */
body.body_theme5 .notifyjs-bootstrap-base::before,
body.body_theme5 .notifyjs-bootstrap-success::before,
body.body_theme5 .notifyjs-bootstrap-base::after,
body.body_theme5 .notifyjs-bootstrap-success::after {
    opacity: 1 !important;
}

body.body_theme5 .footer-input {
    padding: 12px 50px 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 5px;
}

body.body_theme5 .footer-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.body_theme5 .btn-submit-footer {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: white !important;
    color: #1e3a8a !important;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

body.body_theme5 .btn-submit-footer:hover {
    background: #f0f0f0 !important;
}

body.body_theme5 footer a {
    text-decoration: none;
    transition: opacity 0.3s;
    color: white !important;
}

body.body_theme5 footer a:hover {
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8) !important;
}


.app-badge {
    height: 50px;
    width: auto;
}

/* end footer  */

/* start category product  */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
}

.breadcrumb-item,
.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-separator i {
    color: #6c757d;
    margin: 0 8px;
    font-size: 0.9em;
}

html[dir="rtl"] .breadcrumb,
html.rtl .breadcrumb {
    direction: rtl;
}

html[dir="rtl"] .breadcrumb-separator i,
html.rtl .breadcrumb-separator i {
    content: "";
}

html[dir="rtl"] .breadcrumb-separator i::before,
html.rtl .breadcrumb-separator i::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f104";
}


.category-product .cursor-pointer {
    cursor: pointer !important;
}

.category-product .accordion-choose:hover {
    color: var(--main-color) !important;
}

.category-product .grid-box {
    width: 35px;
    height: 35px;
    background-color: var(--main-color);
}

.category-product .grid-box img {
    object-fit: cover;
}

.category-product .page-item a {
    background-color: transparent;
    color: black;
    border: 1px solid #E9EAEC;
}

.category-product .offcanvas {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.category-product .active>.page-link,
.category-product .page-link.active {

    background-color: var(--main-color);
    color: white;
    border-radius: 0 !important;
}

.category-product .grid-box-light {
    background-color: transparent;
    border: 1px solid #D1D1D1;
}

.category-product .breadcrumb-item a {
    color: #000000;
}

.category-product .breadcrumb-item.active {
    color: var(--main-color);
}

.category-product .category-items img {
    width: 100%;
    transition: var(--transition);
}

.category-product .category-items img:hover {
    transform: scale(1.1);
}

.category-product .category-hero img {
    width: 400px;
    height: 150px;
    object-fit: cover;
}

.category-product .category-hero h2 {
    color: var(--main-color) !important;
    font-weight: 600;
    font-size: 42px;
    text-transform: uppercase;
}

.category-product .shop-by .title {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.category-product .accordion-button:not(.collapsed)::after {
    filter: invert(50%);
}

.category-product .accordion {
    margin-bottom: 10px;
}

.category-product .range-slider-container {
    position: relative;
}

.category-product input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 0;
    position: absolute;
    pointer-events: none;
}

.category-product #minRange {
    z-index: 2;
    pointer-events: auto;
    background: #DADADA;
    border-radius: 20px;
    height: 7px;
}

.category-product input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 8px;
    background: #F98B25;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 3;
    margin-top: -2px;
}

.category-product .range-values input {
    width: 50px;
    border: none;
    border-bottom: 1px solid #E1E1E1;
    text-align: center;
}

.category-product .range-values input:focus {
    outline: none;
}

.category-product .go-btn {
    border: 1px solid #D1D1D1;
    border-radius: 25px;
    background-color: white;
    color: var(--main-color);
    width: 64px;
    height: 30px;
    margin-top: 20px;
}

.category-product .go-btn:hover {
    background-color: var(--main-color);
    color: white;
}

.category-product .line-dotted {
    border-top: 1px dashed #E9EAEC;
}

.line-dotted {
    border-top: 1px dashed #E9EAEC;
}

.category-product .top-rounded {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

@media (min-width: 768px) {
    .category-product .btn[data-bs-toggle="offcanvas"] {
        display: none;
    }

    .category-product .offcanvas {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        visibility: visible !important;
    }

}

@media (max-width: 768px) {
    .category-product .category-hero img {
        width: 200px;
    }

    .category-product .category-hero h2 {
        color: var(--main-color) !important;
        font-size: 30px;
    }

    .category-product .offcanvas {
        background-color: white !important;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
        border: 1px solid #7C7C8D !important;
    }

}

/* .list-view .product-card {
    display: flex;
    align-items: center;
    gap: 20px;
} */
/* end category product  */

/* start advanced search  */

.advanced-search .search-btn {
    border: none;
    width: 120px;
    height: 40px;
    border-radius: 30px;
}

/* end advanced search  */

/* start product-details  */
.product-details .brand-img img {
    width: 100px;
}

.product-details .add-btn {
    width: 180px;
    height: 40px;
    border: 1px solid var(--main-color);
    border-radius: 20px;
    background-color: var(--main-color);
    transition: var(--transition);
    color: white;
}

.product-details .buy-btn {
    width: 180px;
    height: 40px;
    border: 1px solid var(--main-color);
    border-radius: 20px;
    background-color: white;
    transition: var(--transition);
    color: var(--main-color);
}

.product-details .buy-btn:hover {
    color: white;
    background-color: var(--main-color);
}

.product-details .wishlist-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--main-color);
    border-radius: 50%;
    background-color: white;
    transition: var(--transition);
    color: var(--main-color);
    font-size: 20px;
}

.product-details .wishlist-btn:hover {
    color: white;
    background-color: var(--main-color);
}

.product-details .calculate-btn {
    width: 80px;
    height: 30px;
    border: 1px solid var(--main-color);
    border-radius: 20px;
    background-color: white;
    transition: var(--transition);
}

.product-details .calculate-btn:hover {
    background-color: var(--main-color);
    color: white;
}

.product-details .quick-overview li {
    list-style: disc;
    margin-left: 10px;
    margin-right: 10px;
}

.product-details .shipping-links:hover {
    color: var(--main-color) !important;
}

.product-details .door-step {
    background-color: #F6F7F9 !important;
}

.product-details .door-step a {
    color: #000;
    text-decoration: underline;
}

.product-details .door-step a:hover {
    color: var(--main-color);
}

.product-details .more-btn {
    border: 2px solid var(--main-color);
    color: var(--main-color);
    width: 120px;
    height: 40px;
    border-radius: 10px;
    background-color: white;
    transition: var(--transition);
}

.product-details .review-btn {
    border: 2px solid var(--main-color);
    background-color: var(--main-color);
    width: 150px;
    height: 40px;
    border-radius: 20px;
    color: white;
    transition: var(--transition);
}

.product-details .new-product-btn {
    border: 2px solid var(--main-color);
    background-color: var(--main-color);
    width: 150px;
    height: 40px;
    border-radius: 10px;
    color: white;
    transition: var(--transition);
}

.product-details .review-btn:hover,
.product-details .new-product-btn:hover,
.product-details .add-btn:hover {
    color: var(--main-color);
    background-color: white;
}

.product-details .more-btn .fa-plus {
    border: 1px solid var(--main-color);
    color: var(--main-color);
    padding: 1px 2px;
    border-radius: 5px;
    background-color: white;
    transition: var(--transition);
}

.product-details .more-btn:hover {
    background-color: var(--main-color);
    color: white;
}

.product-details .review-range {
    height: 10px;
    border: 1px solid gray;
    width: 100%;
}

.product-details .star-rating {
    display: flex;
    gap: 5px;
    cursor: pointer;
}

.product-details .star-rating i {
    font-size: 18px;
    color: #ccc;
    transition: color 0.2s ease;
}

.product-details .star-rating i.hover,
.product-details .star-rating i.active {
    color: #ffc107;
}

/* end product-details  */

/* start shipping  */
.shipping .facebook-btn {
    background-color: #3B5998;
    color: white;
    width: 220px;
    height: 40px;
    border: none;
    border-radius: 4px;
    margin: auto;
}

.shipping .place-order-btn {
    color: white;
    background-color: var(--main-color);
    width: 100%;
    height: 40px;
    border: 1px solid var(--main-color);
    border-radius: 20px;
    transition: var(--transition);
}

.shipping .place-order-btn:hover {
    background-color: white;
    color: var(--main-color);
}

.shipping .coupon-btn {
    background-color: white;
    color: var(--main-color);
    width: 180px;
    height: 35px;
    border: 1px solid var(--main-color);
    border-radius: 4px;
    transition: var(--transition);
}

.shipping .coupon-btn:hover {
    color: white;
    background-color: var(--main-color);
}

.shipping .fa-question {
    cursor: pointer;
    background-color: #BBBBBB;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.shipping .payment-method-img {
    width: 80px;
    height: 30px;
    object-fit: contain;
}

.shipping .cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.shipping .fa-question:hover {
    background-color: #000;
    color: white;
}

.shipping .shipping-title {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

html.ltr .shipping .fa-facebook-f {
    border-right: 1px solid #fff !important;
    padding-right: 10px;
}

html.rtl .shipping .fa-facebook-f {
    border-left: 1px solid #fff !important;
    padding-left: 10px;
}

/* end shipping  */

.accordion-button {
    direction: ltr;
    text-align: left;
}

html.rtl .accordion-button {
    direction: rtl;
    text-align: right;
    justify-content: space-between;
}

html.rtl .accordion-button::after {
    margin-left: 0;
    margin-right: auto;
    transform: rotate(180deg);
}

html.rtl .swiper-wrapper {
    flex-direction: row-reverse;
}