.home_products_carousel_card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: floatAnimation 3s ease-in-out infinite;
    min-width: 250px;
    max-width: 300px;
    margin: 0 10px;
    display: inline-block;
}

.home_products_carousel_card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 45px rgba(0,0,0,0.2);
    border-color: #ffd700;
    animation: glowPulse 1.5s infinite;
}

/* تنسيق عنوان المنتج (كوتشي 3, كوتشي 2, كوتشي 1, كوتشي 0) */
.home_products_carousel_card h3 {
    color: #ff6b6b;
    font-size: 1.4em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-block;
    border: 2px solid #ffd700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.home_products_carousel_card:hover h3 {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* تنسيق السعر المشطوب (SAR-300) */
.home_products_carousel_card p:first-of-type {
    color: #e74c3c;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: line-through;
    opacity: 0.7;
    margin: 10px 0 5px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* تنسيق السعر الفعلي (SAR 270) */
.home_products_carousel_card p:last-of-type {
    color: #27ae60;
    font-size: 2.2em;
    font-weight: 900;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    background: linear-gradient(45deg, #27ae60, #2ecc71, #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 5px 0 10px;
    letter-spacing: 1px;
    position: relative;
    animation: priceGlow 2s ease-in-out infinite;
}

/* تنسيق خاص للرقم في اسم المنتج (3, 2, 1, 0) */
.home_products_carousel_card h3 .product-number {
    display: inline-block;
    background: #ffd700;
    color: #2c3e50;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 0.9em;
    box-shadow: 0 3px 10px rgba(255,215,0,0.3);
    border: 2px solid #fff;
}

/* إضافة رمز SAR بشكل موحد */
.home_products_carousel_card p:first-of-type::before,
.home_products_carousel_card p:last-of-type::before {
    content: "SAR";
    font-size: 0.6em;
    margin-left: 5px;
    font-weight: normal;
    opacity: 0.8;
    vertical-align: middle;
}

.home_products_carousel_card p:last-of-type::before {
    -webkit-text-fill-color: initial;
    color: #27ae60;
    font-size: 0.5em;
    margin-left: 8px;
}

/* تنسيق إضافي للتمييز */
.home_products_carousel_card::before {
    content: "👟";
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 4em;
    opacity: 0.1;
    transform: rotate(15deg);
    transition: all 0.4s ease;
    z-index: 1;
    pointer-events: none;
    display: none;
}

.home_products_carousel_card:hover::before {
    opacity: 0.2;
    transform: rotate(0deg) scale(1.1);
    top: -10px;
    right: -10px;
}

/* إضافة زخرفة في الخلفية */
.home_products_carousel_card::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.home_products_carousel_card:hover::after {
    opacity: 1;
    animation: rotateGradient 8s linear infinite;
}

/* تنسيق حاوية الكاروسيل (إذا كانت موجودة) */
.home_products_carousel_container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 30px 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #f8f9fa;
}

.home_products_carousel_container::-webkit-scrollbar {
    height: 8px;
}

.home_products_carousel_container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.home_products_carousel_container::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 10px;
}

.home_products_carousel_container::-webkit-scrollbar-thumb:hover {
    background: #ffc800;
}

/* تأثيرات حركية */
@keyframes priceGlow {
    0%, 100% { text-shadow: 2px 2px 0 rgba(0,0,0,0.1); }
    50% { text-shadow: 3px 3px 15px rgba(46, 204, 113, 0.6); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255,215,0,0.3), 0 15px 30px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 0 30px rgba(255,215,0,0.7), 0 20px 40px rgba(0,0,0,0.2); }
    100% { box-shadow: 0 0 5px rgba(255,215,0,0.3), 0 15px 30px rgba(0,0,0,0.1); }
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* تخصيص كل بطاقة بتأخير مختلف */
.home_products_carousel_card:nth-child(1) { animation-delay: 0s; }
.home_products_carousel_card:nth-child(2) { animation-delay: 0.2s; }
.home_products_carousel_card:nth-child(3) { animation-delay: 0.4s; }
.home_products_carousel_card:nth-child(4) { animation-delay: 0.6s; }

/* ألوان مختلفة لخلفيات العناوين حسب البطاقة */
.home_products_carousel_card:nth-child(1) h3 {
    background: linear-gradient(145deg, #fff0f0, #ffe0e0);
}

.home_products_carousel_card:nth-child(2) h3 {
    background: linear-gradient(145deg, #f0fff0, #e0ffe0);
}

.home_products_carousel_card:nth-child(3) h3 {
    background: linear-gradient(145deg, #f0f0ff, #e0e0ff);
}

.home_products_carousel_card:nth-child(4) h3 {
    background: linear-gradient(145deg, #fff0f5, #ffe0f0);
}

/* إضافة sparkle للأسعار عند التمرير */
.home_products_carousel_card p:last-of-type:hover {
    animation: sparkle 0.5s ease infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); text-shadow: 0 0 20px rgba(46, 204, 113, 0.8); }
}

/* تنسيق للشاشات الصغيرة */
@media (max-width: 768px) {
    .home_products_carousel_card {
        min-width: 200px;
        padding: 20px 15px;
    }
    
    .home_products_carousel_card h3 {
        font-size: 1.2em;
        padding: 10px 20px;
    }
    
    .home_products_carousel_card p:first-of-type {
        font-size: 1.2em;
    }
    
    .home_products_carousel_card p:last-of-type {
        font-size: 1.8em;
    }
    
    .home_products_carousel_container {
        padding: 20px 15px;
        gap: 15px;
    }
}

/* إضافة تأثير النور عند التمرير */
.home_products_carousel_card:hover {
    filter: brightness(1.05);
}

/* تنسيق الخط الفاصل بين السعر المشطوب والرقم */
.home_products_carousel_card p:first-of-type {
    position: relative;
    padding: 0 5px;
}

/* إضافة تأثير بصري للرقم */
.home_products_carousel_card h3:hover .product-number {
    animation: numberPulse 0.5s ease;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); background: #ffc800; }
}