/* Category Offers Module Styles */
.co-module-container {
    margin: 40px 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #F9F9F9; /* الخلفية */
    padding: 30px;
    border-radius: 12px;
    position: relative;
	box-shadow: 0 8px 30px rgba(55,40,30,0.15);
}

/* العنوان */
.co-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #3b2a21;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

/* === Swiper Container === */
.co-swiper {
    width: 100%;
}

.co-swiper .swiper-wrapper {
    align-items: stretch;
}

.co-swiper .swiper-slide {
    height: auto; /* خلي الكارد ياخذ ارتفاعه الطبيعي */
}

/* أسهم السلايدر (دائرة بيضاء + أيقونة برتقالية) */
.co-swiper .swiper-button-next,
.co-swiper .swiper-button-prev {
    color: #d25e16 !important;  /* لون الأيقونة */
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.co-swiper .swiper-button-next:after,
.co-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* البطاقة */
.co-product-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(59, 42, 33, 0.08);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.co-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(59, 42, 33, 0.15);
}

/* صورة المنتج */
.co-product-image {
    margin-bottom: 15px;
    position: relative;
    flex: 0 0 auto;
}

.co-product-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.co-product-card:hover .co-product-image img {
    transform: scale(1.05);
}

/* البادجات */
.co-badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    z-index: 2;
}

.co-discount-badge {
    background: #e74c3c;
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* اسم المنتج */
.co-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #3b2a21;
    margin-bottom: 8px;
    line-height: 1.3;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.co-product-name a {
    color: inherit;
    text-decoration: none;
}

.co-product-name a:hover {
    color: #d25e16;
}

/* السعر */
.co-price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.co-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.co-new-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.co-save-price {
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

/* الأيقونات */
.co-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
}

.co-icon-btn {
    background: #d25e16;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 20px;
}

.co-icon-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* عداد الوقت (أصغر، خط واضح) */
.co-timer {
    background: #EEEFEF;
    border: 1px solid #EEEFEF;
    border-radius: 8px;
    padding: 6px 8px;
    margin: 8px 0 10px 0;
    text-align: center;
}

.co-timer-title {
    font-size: 10px;
    color: #856404;
    margin-bottom: 5px;
    font-weight: 600;
}

.co-timer-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
}

.co-timer-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 6px;
    font-size: 14px;   /* نفس الحجم */
    font-weight: 700;
    color: #e74c3c;
    min-width: 30px;   /* أصغر */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.co-timer-label {
    font-size: 8px;
    color: #666;
    margin-top: 2px;
    text-transform: uppercase;
}

/* نقاط السلايدر: غير مستخدمة هنا (لا تظهر) */

/* Responsive */
@media (max-width: 1200px) {
    /* سيضبط Swiper عدد العناصر تلقائياً (3 عناصر) عبر breakpoints في JS */
}

@media (max-width: 768px) {
    /* 2 عناصر عبر breakpoints */
    .co-section-title { font-size: 24px; margin-bottom: 25px; }
}

@media (max-width: 576px) {
    /* عنصر واحد عبر breakpoints */
    .co-product-image img { height: 200px; }
    .co-section-title { font-size: 22px; margin-bottom: 20px; }
    .co-product-card { padding: 15px; }
}

/* RTL Support */
html[dir="rtl"] .co-badges-container {
    left: auto;
    right: 10px;
    align-items: flex-end;
}

html[dir="rtl"] .co-product-card { text-align: right; }
html[dir="rtl"] .co-price-container { justify-content: flex-end; }
html[dir="rtl"] .co-actions { justify-content: flex-end; }
