:root {
    --primary-color: #0d6efd;
    --secondary-color: #f8f9fa;
    --dark-color: #212529;
    --card-bg: #ffffff;
    --text-color: #495057;
    --border-radius-lg: 15px;
    --border-radius-md: 10px;
    --dark-background: #121212;
    --dark-card: #1e1e1e;
    --dark-text: #e0e0e0;
    --dark-link: #ffffff;
    --success-color: #28a745;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--secondary-color);
    direction: rtl;
    text-align: right;
    padding-bottom: 70px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-container {
    padding-top: 20px;
}

.header-modern {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.navbar-logo-modern img {
    height: 40px;
}

.cart-icon-wrap a {
    position: relative;
}

.cart-icon-wrap span {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    line-height: 1;
}

.suha-offcanvas-wrap {
    width: 80%;
    max-width: 300px;
    background-color: var(--primary-color);
}

.suha-offcanvas-wrap .btn-close {
    position: absolute;
    top: 15px;
    left: 15px;
}

.sidenav-profile {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
}

.sidenav-profile .user-name {
    font-weight: bold;
}

.sidenav-profile .available-balance {
    font-size: 0.9rem;
    opacity: 0.8;
}

.sidenav-nav {
    list-style: none;
    padding: 0;
}

.sidenav-nav li {
    margin-bottom: 10px;
}

.sidenav-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: var(--border-radius-md);
    transition: background-color 0.3s ease;
}

.sidenav-nav a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.sidenav-nav .suha-dropdown-menu > a {
    position: relative;
}

.sidenav-nav .suha-dropdown-menu > a::after {
    content: "\f104";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.sidenav-nav .suha-dropdown-menu.show > a::after {
    transform: translateY(-50%) rotate(-90deg);
}

.sidenav-nav .suha-dropdown-menu ul {
    list-style: none;
    padding-right: 20px;
    display: none;
    margin-top: 5px;
}

.sidenav-nav .suha-dropdown-menu.show ul {
    display: block;
}

.search-bar-modern {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.search-bar-modern form {
    flex-grow: 1;
    display: flex;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 10px 20px;
    font-size: 1rem;
    flex-grow: 1;
    color: var(--text-color);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-button {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    padding: 10px;
    cursor: pointer;
}

.hero-slider-section {
    padding: 20px 0;
}

.hero-carousel .hero-slide-item {
    height: 200px;
    background-size: cover !important;
    background-position: center !important;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.hero-carousel .slide-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

.hero-carousel .slide-content {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-align: right;
    z-index: 10;
}

.hero-carousel .slide-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hero-carousel .btn-action-primary {
    background-color: #ffc107;
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-carousel .btn-action-primary:hover {
    transform: scale(1.05);
    background-color: #e0a800;
}

.section-header-styled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header-styled h6 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.section-header-styled .more-link {
    text-decoration: none;
    color: var(--primary-color);
}

.category-grid-section {
    padding: 20px 0;
}

.category-card-styled {
    display: block;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    text-align: center;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    height: 100%;
}

.category-card-styled:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flash-sale-section {
    padding: 20px 0;
}

.animate-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.countdown-timer li {
    list-style: none;
    display: inline-block;
    font-size: 0.8rem;
    margin-right: 5px;
}

.product-card-vertical {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.product-card-vertical:hover {
    transform: translateY(-5px);
}

.product-card-vertical img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-price-sale {
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 5px;
}

.progress-bar-fill {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 50px;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--success-color);
    border-radius: 50px;
}

.progress-info {
    font-size: 0.8rem;
    color: #6c757d;
}

.products-grid-section {
    padding: 20px 0;
}

.product-card-small {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.product-card-small:hover {
    transform: translateY(-5px);
}

.product-card-small .badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50px;
    padding: 4px 8px;
}

.product-card-small .product-title {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.product-card-small .sale-price {
    font-weight: bold;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.product-card-small .product-rating {
    color: #ffc107;
    font-size: 0.8rem;
}

.product-card-horizontal {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.product-card-horizontal:hover {
    transform: translateY(-5px);
}

.product-card-horizontal .thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.product-card-horizontal .details {
    flex-grow: 1;
}

.product-card-horizontal .product-title {
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.product-card-horizontal .sale-price {
    font-weight: bold;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.product-card-horizontal .sale-price .old-price {
    color: #6c757d;
    text-decoration: line-through;
    font-weight: normal;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.quantity-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.quantity-btn:hover {
    background-color: #0b5ed7;
    transform: scale(1.1);
}

.quantity-btn.delete-btn {
    background-color: #dc3545;
}

.quantity-btn.delete-btn:hover {
    background-color: #c82333;
}

.quantity-value {
    font-size: 0.9rem;
    width: 40px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 3px;
}

.quantity-control .hidden {
    display: none;
}

.discount-banner-stylish {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.discount-banner-stylish .details {
    color: #fff;
}

.discount-banner-stylish .icon img {
    width: 80px;
    height: auto;
}