/* RTL Overrides */
body {
    text-align: right;
    font-family: 'Vazirmatn', sans-serif;
}

section {
    direction: rtl;
}

.navbar-nav {
    padding-right: 0; /* Override Bootstrap's default padding */
}

.card {
    text-align: right;
}

/* Float overrides */
.float-start {
    float: right !important;
}

.float-end {
    float: left !important;
}

/* Text align overrides */
.text-start {
    text-align: right !important;
}

.text-end {
    text-align: left !important;
}

/* Margin and padding utilities */
.me-1 {
    margin-left: 0.25rem !important;
    margin-right: inherit !important;
}

.ms-1 {
    margin-right: 0.25rem !important;
    margin-left: inherit !important;
}

/* Add similar overrides for other spacing utilities as needed */

/* Custom RTL styles */
.product-price {
    direction: rtl; /* Keep numbers LTR even in RTL layout */
    display: inline-block;
}

/* Pagination RTL fixes */
.pagination {
    padding-right: 0;
}

/* Form controls */
.form-control, .form-select {
    text-align: right;
}

/* Product Show Page Styles */
.product-image-main {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

#mainProductImage {
    transition: transform 0.3s;
}

#mainProductImage:hover {
    transform: scale(1.05);
}

.nav-tabs .nav-link {
    color: #495057;
}

.nav-tabs .nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid #0d6efd;
}

.input-group button {
    width: 40px;
}

#quantity {
    width: 40px;
}

/* Rating stars */
.ratings {
    color: #ffc107;
}

/* Related products */
.card {
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.text-rtl {
    text-align: right;
    direction: rtl;
}

.btn-buy {
    color: white;
    background-color: #b3d100;
}

.btn-buy:hover {
    color: white;
    background-color: #4e6c00;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

a {
    text-decoration: transparent;
}

.page-link-orange {
    color: orange;
}