/* تنسيقات السوق الإلكتروني - تصميم متوافق مع Shopify */
:root {
    --primary-color: #008060; /* لون Shopify الرئيسي */
    --primary-hover: #004c3f;
    --secondary-color: #212326;
    --accent-color: #5c6ac4;
    --accent-hover: #4959bd;
    --success-color: #008060;
    --danger-color: #d82c0d;
    --price-color: #212326;
    --sale-price-color: #d82c0d;
    --light-bg: #f6f6f7;
    --border-color: #e1e3e5;
    --text-color: #212326;
    --text-light: #6d7175;
    --white: #fff;
    --box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    --dropdown-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

footer.footer {
    background-color: var(--light-bg);
    color: var(--text-light);
    padding: 3rem 0;
    margin-top: 4rem;
    clear: both;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border-color);
}

/* ===== العناصر العامة ===== */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
}

/* ===== Hero Slider Styles ===== */
.hero-slider {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 0 50px;
}

.hero-slider .slick-list,
.hero-slider .slick-track {
    height: 400px;
}

/* Slick Slider Styles */
.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-slide {
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.slick-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.hero-slider .slide-item {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.hero-slider .slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Slick Slider Custom Styles */
.hero-slider .slick-dots {
    bottom: 20px;
    z-index: 5;
}

.hero-slider .slick-dots li button:before {
    font-size: 12px;
    color: white;
    opacity: 0.5;
}

.hero-slider .slick-dots li.slick-active button:before {
    color: #FF7A00;
    opacity: 1;
}

.hero-slider .slick-prev,
.hero-slider .slick-next {
    width: 50px;
    height: 50px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 1;
    display: block !important;
    visibility: visible !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.hero-slider .slick-prev {
    left: 0;
}

.hero-slider .slick-next {
    right: 0;
}

.hero-slider .slick-prev:before,
.hero-slider .slick-next:before {
    font-size: 30px;
    opacity: 1;
    color: #fff;
}

.hero-slider .slick-prev:hover,
.hero-slider .slick-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-slider .slide-caption {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: right;
    max-width: 600px;
    padding: 0;
    bottom: auto;
    right: auto;
    z-index: 2;
    color: white;
}

.hero-slider .slide-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-slider .slide-caption p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-slider .slide-caption .btn {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    background-color: #FF7A00;
    border-color: #FF7A00;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.hero-slider .carousel-caption .btn:hover {
    background-color: #E56E00;
    border-color: #E56E00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.6);
}

.hero-slider .carousel-indicators {
    bottom: 30px;
}

.hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators button.active {
    background-color: #FF7A00;
    transform: scale(1.2);
    border-color: white;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider .carousel-control-prev {
    left: 20px;
}

.hero-slider .carousel-control-next {
    right: 20px;
}

/* الرسوم المتحركة للسلايدر */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 300px;
    }
    
    .hero-slider .carousel-item img {
        height: 300px;
    }
    
    .hero-slider .carousel-caption {
        padding: 20px;
        width: 90%;
        margin: 0 auto;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== صفحة المنتجات ===== */
.page-header {
    background-color: var(--light-bg);
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* نموذج البحث */
.search-form {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.search-input {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 0.75rem 1rem;
    box-shadow: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 128, 96, 0.2);
    outline: none;
}

.search-select {
    border: 1px solid var(--border-color);
    border-right: none;
    border-left: none;
    padding: 0.75rem 1rem;
    background-color: var(--white);
    transition: var(--transition);
}

.search-select:focus {
    outline: none;
    box-shadow: none;
}

.search-button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.search-select {
    border: none;
    background-color: #f3f3f3;
    border-left: 1px solid var(--border-color);
    padding: 0 10px;
    height: 100%;
}

.search-button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
}

.search-button:hover {
    background-color: var(--primary-hover);
}

.location-button {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.location-button:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.location-button i {
    margin-left: 0.5rem;
}

/* ===== أزرار تبديل طريقة العرض ===== */
#grid-view, #list-view {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

#grid-view.active, #list-view.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===== زر إضافة للسلة ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ===== بطاقات المنتجات ===== */
.product-card {
    height: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    background-color: var(--white);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.product-card .card-img-top {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1 / 1; /* نسبة عرض إلى ارتفاع 1:1 */
    max-height: 250px;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-price {
    font-weight: 700;
    color: var(--price-color);
    margin-bottom: 0.5rem;
}

.product-price .text-danger {
    color: var(--sale-price-color) !important;
}

.offer-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
}

.add-to-cart {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.add-to-cart:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* عرض القائمة */
.product-list-item {
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-list-item:hover {
    box-shadow: var(--hover-shadow);
}

/* ===== بطاقات المتاجر ===== */
.store-card {
    height: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    background-color: var(--white);
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.store-card .card-img-top {
    height: 160px;
    object-fit: cover;
}

.store-card .card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ===== تنسيق إشعارات وتنبيهات ===== */
.alert-custom {
    border: none;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    background-color: var(--light-bg);
    box-shadow: var(--box-shadow);
}

/* عنصر الاقتراحات */
.suggestions-section {
    padding: 1.5rem 0;
}

.categories-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* روابط التنقل */
.nav-links {
    display: flex;
    gap: 15px;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 180px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 0.9rem;
    color: #212529;
    text-align: right;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.user-dropdown-menu.show {
    display: block;
}

.user-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: right;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
}

.user-dropdown-item:hover {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.user-dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: right;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

/* قسم العرض الرئيسي */
.hero-section {
    background: linear-gradient(to right, #232f3e, #37475a);
    color: var(--white);
    padding: 30px 0;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* أزرار التصنيفات */
.category-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 0;
    margin-bottom: 20px;
    /* إزالة الإطار المحيط بالتصنيفات */
    border: none;
    box-shadow: none;
    background: transparent;
}

.category-pill {
    background-color: transparent;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
}

.category-pill:hover, .category-pill.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* عناوين الأقسام */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--secondary-color);
}

.section-title span {
    color: var(--light-text);
    font-size: 0.9rem;
}

.section-title .view-all {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.section-title .view-all:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* بطاقات المنتجات */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
    clear: both;
}

@media (max-width: 992px) {
    .product-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .product-card {
        width: 100%;
    }
}

.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.product-image-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
}

.product-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s ease;
}

.product-card:hover .product-image-wrapper {
    transform: scale(1.05);
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.carousel-item {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    opacity: 0.7;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 10px;
}

/* بطاقات المنتجات الجديدة */
.products-grid {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.section-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #333;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #2ecc71;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.carousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    text-align: center;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
    padding: 15px;
    margin: 0 auto;
    display: block;
}

.carousel:hover .product-image {
    transform: scale(1.05);
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.product-no-image i {
    font-size: 3rem;
}



.product-image-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s;
    padding: 0 5px;
}

.product-card:hover .product-image-nav {
    opacity: 1;
}

.carousel-control-prev, .carousel-control-next {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carousel-control-prev {
    right: 10px !important;
    left: auto !important;
}

.carousel-control-next {
    left: 10px !important;
    right: auto !important;
}

.card:hover .carousel-control-prev,
.card:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.image-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #aaa;
}

.product-no-image i {
    font-size: 3rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background-color: var(--price-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-badge.new {
    background-color: var(--success-color);
    left: 10px;
    right: auto;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

.product-title a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    color: #0066c0;
}

.product-store {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--light-text);
}

.product-store a {
    color: var(--light-text);
    text-decoration: none;
}

.product-store a:hover {
    color: #0066c0;
    text-decoration: underline;
}

.product-rating {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stars {
    display: flex;
    color: #f8b700;
}

.stars i {
    margin: 0 1px;
}

.store-info {
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.rating-value {
    font-weight: bold;
    font-size: 1.1rem;
    color: #f8b700;
}

.rating-stars {
    color: var(--accent-color);
    margin-right: 5px;
}

.rating-count {
    font-size: 0.8rem;
    color: #0066c0;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--price-color);
    margin: 10px 0;
    text-align: center;
    direction: rtl;
}

.original-price {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 0.9rem;
    display: block;
}

.current-price {
    font-weight: bold;
    color: var(--price-color);
}

.product-original-price {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: normal;
    margin-right: 5px;
}

.product-category {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.product-category a {
    color: var(--light-text);
    text-decoration: none;
}

.product-category a:hover {
    color: var(--accent-color);
}

.action-buttons {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .action-buttons {
    opacity: 1;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.product-actions .btn-outline {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    background-color: transparent;
}

.product-actions .btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.product-actions .btn-outline-secondary {
    border: 1px solid var(--light-text);
    color: var(--light-text);
    background-color: transparent;
    border-radius: 20px;
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 20px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-actions .btn-outline-secondary:hover {
    background-color: var(--light-text);
    color: var(--white);
    border-radius: 20px;
}

/* بطاقات المتاجر */
.store-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.store-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.store-image-container {
    height: 180px;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.store-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #aaa;
}

.store-no-image i {
    font-size: 3rem;
}

.store-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.store-badge.new {
    background-color: #28a745;
}

.store-info {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
    height: 40px;
    overflow: hidden;
}

.product-title a {
    color: var(--text-color);
    text-decoration: none;
}

.product-title a:hover {
    color: #0066c0;
    text-decoration: underline;
}

.product-description {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
}

.store-descri.product-store {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 8px;
    text-align: center;
}

.product-description {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 10px;
    text-align: center;
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-likes {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--light-text);
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    color: var(--light-text);
    transition: transform 0.2s;
}

.like-btn:hover {
    transform: scale(1.2);
}

.store-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.store-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--light-text);
}

.store-meta-item i {
    margin-right: 5px;
}

/* تنسيق التنبيهات */
.alert-custom {
    background-color: #f8f4e5;
    border-left: 4px solid var(--accent-color);
    color: var(--text-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

/* نافذة العرض السريع */
.quick-view-image {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.quick-view-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--price-color);
}

.quick-view-description {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* قسم العروض الخاصة بالموقع */
.site-offers {
    margin-top: 30px;
}

/* قسم البانر الرئيسي أسفل الهيدر */
.featured-categories {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/pattern.png');
    background-size: 300px;
    opacity: 0.05;
    z-index: 1;
}

.featured-categories .container {
    position: relative;
    z-index: 2;
}

.featured-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.featured-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.featured-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.featured-title p {
    font-size: 16px;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.category-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.category-block {
    width: calc(20% - 16px);
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.category-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.category-block::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.category-block:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 25px auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(254, 189, 105, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.category-block:hover .category-icon {
    background-color: rgba(254, 189, 105, 0.2);
    transform: scale(1.1);
}

.category-icon i {
    font-size: 30px;
    color: var(--accent-color);
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.category-count {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 25px;
    display: block;
}

.category-block a {
    text-decoration: none;
    display: block;
    height: 100%;
}

.featured-controls {
    text-align: center;
    margin-top: 30px;
}

.featured-controls .control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 18px;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.featured-controls .control-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.featured-controls .view-all-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-left: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-controls .view-all-btn:hover {
    background-color: var(--accent-hover);
}

@media (max-width: 992px) {
    .category-block {
        width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .category-block {
        width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .category-block {
        width: 100%;
    }
}

.main-offer, .secondary-offer {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.main-offer:hover, .secondary-offer:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.main-offer img, .secondary-offer img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.main-offer img {
    height: 350px;
}

.secondary-offer img {
    height: 165px;
}

.main-offer:hover img, .secondary-offer:hover img {
    transform: scale(1.05);
}

.offer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
    transition: padding 0.3s;
}

.main-offer:hover .offer-overlay, .secondary-offer:hover .offer-overlay {
    padding-bottom: 30px;
}

.offer-overlay h3, .offer-overlay h4 {
    margin: 0 0 5px 0;
    font-weight: 600;
}

.offer-overlay p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.offer-overlay h3 {
    font-size: 1.5rem;
}

.offer-overlay h4 {
    font-size: 1.2rem;
}

/* تعديلات لتناسب الشاشات المختلفة */
@media (max-width: 768px) {
    .product-card, .store-card {
        width: calc(50% - 10px);
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .product-card, .store-card {
        width: 100%;
    }
    
    .market-logo {
        font-size: 1.4rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .search-input, .search-select, .search-button {
        padding: 8px;
    }
}
