/**
 * Salista Beauty - Product Display Styles
 * =======================================
 * Simplified for landing page single-product display
 * Version: 2.0
 * Last Updated: 2025-04-18
 */

/* =============== Single Product Display (Landing Page) ================ */
#productsContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* قسم عرض المنتج الفردي */
.single-product-display {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* تصميم بطاقة المنتج المحسنة */
.product-card.product-featured {
    display: flex;
    flex-direction: column;
    max-width: 920px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(229, 121, 101, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.product-card.product-featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(229, 121, 101, 0.2);
    border-color: rgba(229, 121, 101, 0.2);
}

/* شارة المنتج */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 18px;
    border-radius: 30px;
    background: linear-gradient(45deg, #ff7043, var(--primary-color));
    color: white;
    font-weight: 700;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(229, 121, 101, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* صورة المنتج */
.product-featured .product-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #fff, #f8f8f8);
}

.product-featured .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.product-featured:hover .product-image img {
    transform: scale(1.05);
}

/* توافق الصورة مع جميع أحجام الشاشات */
@media (min-width: 768px) and (max-width: 1200px) {
    .product-featured .product-image {
        height: 350px;
    }
    
    .product-featured .product-image img {
        object-fit: cover;
    }
}

/* إضافة تأثير توهج على الصورة */
.product-featured .product-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.8), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.product-featured:hover .product-image::after {
    opacity: 1;
}

/* معلومات المنتج */
.product-featured .product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    border-top: none;
}

/* ماركة المنتج */
.product-brand {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    position: relative;
}

.product-brand::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

/* عنوان المنتج */
.product-featured .product-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.3;
}

/* تقييم المنتج */
.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-stars {
    color: #ffc107;
    font-size: 16px;
    letter-spacing: 3px;
}

.rating-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--secondary-color);
}

.rating-count {
    color: var(--light-text);
    font-size: 14px;
}

/* وصف المنتج */
.product-featured .product-desc {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--light-text);
    font-size: 16px;
}

/* قائمة ميزات المنتج */
.product-features {
    background-color: rgba(248, 242, 240, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(229, 121, 101, 0.1);
}

.product-features li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: flex-start;
}

.product-features li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #fff;
    background-color: var(--primary-color);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 3px 8px rgba(229, 121, 101, 0.25);
}

/* سعر المنتج */
.product-featured .product-price {
    margin-top: auto;
    background: linear-gradient(to right, rgba(248, 242, 240, 0.7), transparent);
    padding: 15px 20px;
    border-radius: 15px;
    border-right: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.price-current {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
}

.price-current::after {
    content: "ر.س";
    font-size: 16px;
    margin-right: 5px;
    font-weight: 600;
}

.price-original {
    font-size: 20px;
    text-decoration: line-through;
    color: var(--light-text);
    position: relative;
}

.price-original::after {
    content: "ر.س";
    font-size: 14px;
    margin-right: 3px;
}

.discount-tag {
    background-color: #f44336;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: auto;
}

/* أزرار الإجراءات */
.product-featured .product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* زر الطلب الرئيسي */
.product-featured .btn-primary {
    padding: 16px 30px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 10px 25px rgba(229, 121, 101, 0.3);
    position: relative;
    overflow: hidden;
}

.product-featured .btn-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(30deg) translateY(-100%);
    animation: btnShinePrimary 3s infinite;
    z-index: 1;
}

.product-featured .btn-primary i,
.product-featured .btn-primary span {
    position: relative;
    z-index: 2;
}

@keyframes btnShinePrimary {
    0% {
        transform: rotate(30deg) translateY(-100%);
    }
    100% {
        transform: rotate(30deg) translateY(100%);
    }
}

.product-featured .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(229, 121, 101, 0.4);
}

.product-featured .btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(229, 121, 101, 0.3);
}

/* تحسين التوافق مع الشاشات المختلفة */
@media (max-width: 992px) {
    .product-featured {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .product-featured {
        flex-direction: column;
    }
    
    .product-featured .product-image {
        height: 300px;
    }
    
    .product-featured .product-info {
        padding: 20px;
    }
    
    .product-featured .product-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .product-featured .product-image {
        height: 250px;
    }
    
    .product-featured .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .discount-tag {
        margin-right: 0;
    }
    
    .product-featured .product-info {
        padding: 15px;
    }
    
    .product-featured .product-title {
        font-size: 18px;
    }
    
    .product-features {
        padding: 15px;
    }
}