body {
    direction: rtl;
    text-align: right;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header-right {
    padding: 1rem;
}

.header-left {
    padding: 1rem;
}

header nav ul {
    list-style-type: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-left: 10px;
}

.header-6 .header-bottom .menu > li > a {
    margin-left: 5px;
}

.header-6 .header-bottom .menu > li > a > i {
    font-size: 1.5rem;
    font-weight: bold;
}

.header-6 .menu ul, .header-6 .menu .megamenu {
    margin-top: 0px;
}

.menu ul {
    min-width: 15rem;
}

.menu .megamenu li {
    display: inline-block;
}
.menu .megamenu li a {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    min-width: 15rem;
}

header nav ul li a {
    text-decoration: none;
    color: #000;
}

/* category */
.breadcrumb-item {
    margin-left: 1rem;
}

.breadcrumb-item + .breadcrumb-item:before {
    color: #999999;
    content: "\f112"; /* Your current icon code */
    font-family: "molla";
    padding-right: 0.7rem;
    font-size: 1.1rem;
    vertical-align: middle;
    margin-top: -0.1rem;
    display: inline-block; /* Ensure the transform works */
    transform: rotate(180deg); /* Rotate 180 degrees */
}

.product-media {
    max-height: 30rem;
}

.product.product-7 .product-nav-thumbs {
    max-height: 5rem;
    overflow: hidden;
}

.widget-collapsible .widget-body {
    padding: 1rem 2.7rem;
}

.sidebar-shop .custom-control {
    padding-left: 0rem;
}

.sidebar-shop .custom-control-label {
    width: 100%;
}

.sidebar-shop .color label span {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    border-radius: 1rem;
    margin-left: 0.5rem;
}

.page-header h1 span {
    color: var(--main-color);
    height: 1px;
    width: 20px;
    background: var(--main-color);
    margin: auto;
    margin-top: 2rem;
}

.product-price del {
    color: #888; /* Color for the crossed-out price */
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.offer-price {
    color: var(--main-color); /* Color for the offer price */
    font-weight: bold;
}


/* footer */
footer {
    text-align: center;
    background-color: #f1f1f1;
}

/* product */
.product-main-image {
    max-height: 50rem;
    overflow: hidden;
}

#product-gallery-modal .product-main-image {
    height: auto;
    max-height: none;
    margin: 0;
}

#product-gallery-modal .product-image-gallery {
    margin: 0;
    padding-top: 1rem;
}

.ratings:before, .ratings-val:before {
    content: "";
}

.ratings i {
    color: #f8ce0b; /* Gold color for full stars */
    margin-right: 2px; /* Space between stars */
}

.ratings i.fa-star-o {
    color: #ddd; /* Color for empty stars */
}

.ratings .fa-star, 
.ratings .fa-star-half-alt {
    color: #f1c40f; /* Set the color of full/half stars to yellow */
}

.ratings .fa-regular.fa-star {
    color: #ddd; /* Set the color of empty stars to a light gray */
}

.details-filter-row label.dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    border: 2px solid transparent; 
    transition: border-color 0.3s ease;
    opacity: 0.7;
}

.details-filter-row label.dot.active {
    border-color: #df3434;
    opacity: 1;
}
.btn-product:hover span{
    color: #fff;
}

.product-details-extended .nav.nav-pills .nav-link {
    padding: 2rem;
}

.main .nav.nav-pills .nav-item.show .nav-link, .main .nav.nav-pills .nav-item .nav-link.active {
    font-size: 1.5rem;
    color: var(--main-color);
}

.main .nav.nav-pills .nav-link::before {
    background-color: var(--main-color);
}

.product-desc-row {
    background-color: #ffffff;
    min-height: 0;
    margin: 0;
    padding: 0;
}
.modal-content {
    padding: 1rem;
}

.modal-header .close {
    margin-left: 0;
}

.modal-content .modal-body {
    padding: 3rem 1rem;
}

#product-gallery-modal .modal-content .modal-body {
    padding: 0;
}

.product-gallery-item img {
    cursor: pointer;
    transition: transform 0.3s;
}

.product-gallery-item img:hover {
    transform: scale(1.1);
}

.product-gallery-item.active img {
    border: 2px solid #007bff;
}

.product-price .main-price-offer {
    text-decoration: line-through;
    color: #888;
    margin-left: 0.5rem;
}

.product-price .main-price {
    color: var(--main-color) !important;
}

.product-price .offer-price {
    color: var(--main-color);
    font-weight: bold;
}

/**** Cart ****/
.table.table-cart .total-col {
    text-align: center;
}

.table.table-cart .quantity-col form {
    justify-content: center;
    width: 100px;
}
.table.table-cart .quantity-col form button {
    width: 100% !important;
    min-width: 0 !important;
}
.summary.summary-cart a i {
    margin-right: 0.5rem;
}
.color-col span {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    border-radius: 1rem;
    margin-left: 0.5rem;
}

/**** Checkout ****/
.checkout {

}

.checkout input[type="text"], .checkout input[type="email"], .checkout input[type="password"] {
    direction: rtl !important;
    text-align: right !important;
}

/********* Home Page *********/
.home-part:first-child {
    margin-top: 4rem;
}

.footer .widget-about p  { 
    max-width: none;
}


/* For larger screens (desktop and tablet) */
@media (min-width: 992px) {
    .header-right {
        display: block;
    }
    .header-search {
        display: block;
    }
}

/* For mobile screens */
@media (max-width: 991px) {
    .header-search {
        display: none; /* Hide search */
    }
    .header-center {
        order: 1; /* Place the logo in the center */
        width: 100%;
        text-align: right; /* Align logo to the right */
    }
    .header-left {
        order: 2; /* Place the cart to the left */
        width: 100%;
        text-align: left; /* Align cart to the left */
    }
    .header-right {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header-6 .header-middle .header-left {
        display: inline-block;
    }
    .header-6 .header-middle .header-center {
        display: inline-block;
    }
    .header-6 .logo {
        position: static;
        transform: none;
    }
    .header-left, .header-center, .header-right {
        display: inline-block;
        text-align: left;
    }
}

/********* Users Pages *********/
.user-order {
    box-shadow: 1px 1px 5px 1px #93939330;
    border-radius: 10px;
}

.user-order-header {
    padding: 2rem 4rem 1.8rem 1.2rem;
}

.user-order-table-info  thead th {
    color: #fff !important;
    background: var(--main-color) !important;
}

.user-order-table {
    text-align: center;
}

.user-order-table thead th {
    text-align: center;
    font-weight: bold;
    color: #000;
    background: #f1f1f1;
}

.user-order-table tbody td img {
    width: 50px;
    display: inline-block;
    margin: auto;
}

/******** Whatsapp Chat *********/
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-chat a {
    font-size: 4rem;
    background: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 5rem;
    box-shadow: 0px 0px 5px 0px #00000025;
}

@media (max-width: 991px) {
    .whatsapp-chat a {
        font-size: 3rem;
        padding: 0.5rem 1.3rem;
    }
}