/* Salla Custom CSS with RTL Support and Enhanced Features */
:root {
    --primary-color: #03947b;
    --danger-color: #e94949;
    --gray-bg: #39766b10;
    --text-dark: #222;
    --text-light: #fff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}
.product.product--card {
    transition: transform var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.product.product--card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.product-img img {
    transition: transform var(--transition);
}
.product-img:hover img {
    transform: scale(1.05);
}
.product-price {
    font-weight: 700;
    color: var(--primary-color);
}
.product-price.sale-price {
    color: #e74c3c;
}
.s-button-danger {
    border: 1px solid var(--danger-color);
    background-color: var(--danger-color);
    transition: var(--transition);
}
.s-button-primary {
    background-color: var(--primary-color);
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.s-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 148, 123, 0.3);
}
.add-to-cart-btn {
    transition: all var(--transition);
}
.add-to-cart-btn:hover {
    background-color: var(--primary-color) !important;
}
.store-categories {
    padding: 15px 0;
}
.store-categories__item {
    transition: all var(--transition);
    border-radius: var(--border-radius);
}
.store-categories__item:hover {
    background-color: var(--gray-bg);
    transform: translateY(-2px);
}
.product-title {
    font-weight: 600;
    transition: color var(--transition);
}
.product-title:hover {
    color: var(--primary-color);
}
.site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 64px;
}
.search-input {
    border-radius: 20px;
    transition: all var(--transition);
}
.search-input:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}
.cart-icon {
    transition: transform var(--transition);
}
.cart-icon:hover {
    transform: scale(1.1);
}
.products-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product-details__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.product-details__price {
    font-size: 1.25rem;
    color: var(--primary-color);
}
.quantity-input {
    border: 2px solid var(--gray-bg);
    border-radius: var(--border-radius);
    padding: 5px;
}
.footer {
    background-color: var(--gray-bg);
    color: var(--text-dark);
    padding: 2rem 0;
}
@media (max-width: 768px) {
    .product.product--card {
        margin-bottom: 15px;
    }
    .store-categories {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}
.is-rtl {
    direction: rtl;
}
.is-rtl .product-price,
.is-rtl .product-title {
    text-align: right;
}
.is-rtl .s-button-primary {
    margin-left: 0;
    margin-right: auto;
}
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--gray-bg);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    opacity: 0;
    transform: translateY(100%);
    animation: slideUp 0.3s forwards;
}
@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}
.wishlist-icon {
    transition: all var(--transition);
}
.wishlist-icon:hover {
    transform: scale(1.2);
    color: #e74c3c;
}
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');
body {
    body, [dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.2px;
}
}
.s-block__title {
    justify-content: center;
    margin-bottom: 2rem;
}
.s-block__title h2 {
    font-size: 1.5rem;
    line-height: 2;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}
.s-block__title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}
.bg-gray-100 { background-color: var(--gray-bg); }
.text-red-400 { color: var(--danger-color); }
#mainnav {
    box-shadow: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}
.fixed-header > .inner {
    margin: 0;
    border-radius: 0;
    width: 100% !important;
    transition: var(--transition);
}
.s-cart-summary-count {
    background: var(--danger-color);
    animation: pulse 2s infinite;
}
custom-salla-product-card.rounded-xl {
    border-radius: var(--border-radius) !important;
    transition: var(--transition);
}
custom-salla-product-card.rounded-xl:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.s-product-card-promotion-title {
    left: 0.5rem !important;
    right: auto !important;
    top: 0.5rem !important;
    border-radius: 20px !important;
    padding: 5px 15px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.s-product-card-rating {
    left: 0.8rem;
    right: auto !important;
    bottom: 0.5rem;
    background-color: #ffffff;
    padding: 4px 12px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}
.s-product-card-rating span {
    color: #333333 !important;
    font-weight: 700 !important;
    font-size: 13px;
    line-height: 1;
}
.s-product-card-rating i,
.s-product-card-rating svg {
    color: #FFB800 !important;
    fill: #FFB800 !important;
    font-size: 13px;
}
[dir="rtl"] .s-product-card-rating {
    right: 0.8rem !important;
    left: auto !important;
}
.dark .s-product-card-rating {
    background-color: #2d2d2d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.dark .s-product-card-rating span {
    color: #ffffff !important;
}
.s-product-card-discount {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 5px 12px;
    background-color: var(--danger-color);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: fadeIn 0.3s ease;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
[dir="rtl"] .s-product-card-promotion-title {
    right: 0.5rem !important;
    left: auto !important;
}
[dir="rtl"] .s-product-card-discount {
    left: 5px !important;
    right: auto !important;
}
.dark {
    --text-dark: #ffffff;
    --text-light: #222;
}
.dark #mainnav {
    background-color: rgba(0, 0, 0, 0.8);
}
.dark .s-block--testimonials .transition-shadow.bg-white.da-bgg {
    background-color: rgba(255, 255, 255, 0.05);
}
@media (max-width: 991px) {
    .s-block__title h2 { font-size: 1.3rem; }
    .product-index .sub-cat-icon { max-width: 30% !important; transform: scale(1.05); }
}
@media (max-width: 767px) {
    .is-bottom-header.is-sticky-product-bar.product-single .sticky-product-bar { bottom: 5rem; }
    .s-block__title h2::after { width: 30px; }
}
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    z-index: 999;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

    h1, h2, h3, h4, h5, h6, .product-title, .product-details__title {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
}