/* ملف أنماط صفحة المنتجات - Products Page Styles */

/* تحسينات عامة - تصميم بدون حدود أو ظلال */
.product-card {
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
    border: none;
    opacity: 0.95;
}

/* تحسينات الصور */
.product-image-wrapper {
    border-radius: 8px;
    position: relative;
}

.product-main-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image {
    transition: transform 0.5s ease, opacity 0.3s ease;
    border-radius: 8px;
}

.product-image-primary {
    opacity: 1;
}

.product-image-hover {
    opacity: 0;
}

.product-card:hover .product-image-primary {
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

/* تحسينات شريط البحث */
input[type="text"],
select {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
select:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* تحسينات الكارت */
.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card a:focus {
    outline: none;
}

/* تأثيرات الإدراج */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* تحسينات Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid {
        gap: 2rem;
    }
}

/* أي قواعد أخرى مخصصة */
.product-card__wrapper {
    display: flex;
    flex-direction: column;
}

.product-card__info {
    /* أي أنماط مخصصة لمعلومات المنتج */
}

/* تحسين شارة الخصم */
.product-card .rounded-full {
    border-radius: 9999px;
}

/* الأزرار التفاعلية - بدون تأثيرات */
.product-card button {
    transition: background-color 0.2s ease;
}

.product-card button:hover {
    transform: none;
}

/* شريط المقاسات */
.product-card .size-bar {
    backdrop-filter: blur(4px);
}

.product-card .size-bar button:hover {
    color: #111;
}

/* إزالة الظلال من الأزرار */
.product-card button {
    box-shadow: none !important;
}

/* دوائر الألوان */
.color-switch {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.color-switch:not(.selected) {
    border: 1px solid #d1d5db;
}

.color-switch.selected,
.color-switch:hover {
    border-color: #000 !important;
    border-width: 3px !important;
}

.color-switch:hover:not(.selected) {
    border-color: #000 !important;
    border-width: 3px !important;
}

/* التأكد من أن دوائر الألوان تبقى دائرية في الشاشات الصغيرة */
@media (max-width: 640px) {
    .color-switch {
        min-width: 18px;
        min-height: 18px;
        width: 18px !important;
        height: 18px !important;
    }
}

/* إخفاء صور الألوان */
.color-image-hide {
    display: none;
}

/* رسالة ألوان مختلطة */
.color-switch::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1;
}

/* منع التفاعل مع الأزرار المخفية في الجوالات */
@media (hover: none) and (pointer: coarse) {
    /* للأجهزة التي لا تدعم hover (الجوالات) - منع التفاعل مع الأزرار المخفية */
    .product-card-actions {
        pointer-events: none !important;
    }
    
    .product-card-actions button,
    .product-card-actions a {
        pointer-events: none !important;
    }
}

/* السماح بالتفاعل فقط عند hover على الشاشات التي تدعمه */
@media (hover: hover) {
    .product-card.group:hover .product-card-actions {
        pointer-events: auto;
    }
}
