/* body {
    font-family: 'Cairo', sans-serif;
} */

/* ══════════════════════════════════════
   Section Products
══════════════════════════════════════ */
.section-heading__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(72,139,246,0.1);
    border: 1px solid rgba(72,139,246,0.2);
    color: #488BF6;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
[data-bs-theme="dark"] .section-heading__subtitle {
    background: rgba(72,139,246,0.15);
    border-color: rgba(72,139,246,0.3);
    color: #6fa8f7;
}
.section-heading__title-highlight {
    background: linear-gradient(135deg, #488BF6, #6fa8f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-heading__desc {
    font-size: 15px;
    color: #8a9ab5;
    max-width: 480px;
    margin: 8px auto 0;
}
[data-bs-theme="dark"] .section-heading__desc { color: #6b7a99; }


/* ══════════════════════════════════════
   Product Card
══════════════════════════════════════ */
.product-item--enhanced {
    position: relative;
    border-radius: 12px;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}
[data-bs-theme="dark"] .product-item--enhanced {
    background: #1a2035;
}
.product-item--enhanced:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(72,139,246,0.18);
}


/* ══════════════════════════════════════
   Thumb
══════════════════════════════════════ */
.product-item__thumb {
    max-height: unset !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
}

.product-item__thumb .link {
    display: block;
    width: 100%;
    height: 100%;  /* ← زيد هاد */
}

.product-item__thumb .cover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: unset !important;
}
.product-item--enhanced:hover .cover-img {
    transform: scale(1.04);
}


/* ══════════════════════════════════════
   Badge خصم
══════════════════════════════════════ */
.product-item__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #488BF6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 5;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(72,139,246,0.35);
    display: inline-block !important;
    width: auto !important;
}


/* ══════════════════════════════════════
   ✅ Cart SVG Button — أعلى يمين
══════════════════════════════════════ */
.product-item__cart-icon-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: none;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    /* ✅ يظهر دائماً — ديسكتوب وموبايل */
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}


/* SVG داخل الزر */
.cart-svg-icon {
    width: 22px;
    height: 22px;
    display: block;
    /* يلون الـ SVG بالأزرق */
    filter: invert(45%) sepia(80%) saturate(600%) hue-rotate(200deg) brightness(105%);
    transition: filter 0.2s ease;
}

/* Hover على الزر نفسه */
.product-item__cart-icon-btn:hover {
    background: #488BF6 !important;
    box-shadow: 0 6px 20px rgba(72,139,246,0.45);
    transform: scale(1.1) !important;
}
.product-item__cart-icon-btn:hover .cart-svg-icon {
    filter: brightness(0) invert(1);
}

/* ✅ حالة "في الكارت" — خلفية زرقاء دائماً */
.product-item__cart-icon-btn.in-cart {
    background: #488BF6 !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}
.product-item__cart-icon-btn.in-cart .cart-svg-icon {
    filter: brightness(0) invert(1) !important;
}

/* Tooltip */
.cart-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #0a0f2c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.product-item__cart-icon-btn:hover .cart-tooltip {
    opacity: 1;
}

/* Dark Mode */
[data-bs-theme="dark"] .product-item__cart-icon-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}
[data-bs-theme="dark"] .product-item__cart-icon-btn .cart-svg-icon {
    filter: brightness(0) invert(1);
}
[data-bs-theme="dark"] .product-item__cart-icon-btn.in-cart {
    background: #488BF6 !important;
}
[data-bs-theme="dark"] .cart-tooltip {
    background: #1e2a4a;
}

/* Livewire مخفي */
.livewire-hidden {
    display: none !important;
}


/* ══════════════════════════════════════
   Overlay — Quick View
══════════════════════════════════════ */
.product-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,15,44,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: 12px 12px 0 0;
}
.product-item--enhanced:hover .product-item__overlay {
    opacity: 1;
}
.product-item__overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: #488BF6;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    z-index: 3;
    transform: translateY(12px);
    transition: all 0.3s ease;
}
.product-item--enhanced:hover .product-item__overlay-btn {
    transform: translateY(0);
}
.product-item__overlay-btn:hover {
    background: #488BF6;
    color: #fff;
}


/* ══════════════════════════════════════
   Type Badge
══════════════════════════════════════ */
.product-item__type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}
.product-item__type-badge--digital {
    background: rgba(72,139,246,0.1);
    color: #488BF6;
}
.product-item__type-badge--physical {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}
[data-bs-theme="dark"] .product-item__type-badge--digital {
    background: rgba(72,139,246,0.15);
    color: #6fa8f7;
}
[data-bs-theme="dark"] .product-item__type-badge--physical {
    background: rgba(16,185,129,0.15);
    color: #34d399;
}


/* ══════════════════════════════════════
   Order Button
══════════════════════════════════════ */
.product-item__order-btn {
    transition: all 0.25s ease !important;
    letter-spacing: 0.3px;
}
.product-item__order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72,139,246,0.35) !important;
}


/* ══════════════════════════════════════
   Mobile
══════════════════════════════════════ */
@media (max-width: 768px) {

    .product-item__thumb {
        aspect-ratio: 1 / 1 !important;
        max-height: unset !important;
    }

    .product-item__thumb .cover-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        aspect-ratio: 1 / 1 !important;
    }
    /* يظهر دائماً على الموبايل */
    .product-item__cart-icon-btn {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }
}
@media (max-width: 576px) {
    .product-item__thumb {
        aspect-ratio: 1 / 1 !important;
        max-height: unset !important;
    }

    .product-item__thumb .cover-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        aspect-ratio: 1 / 1 !important;
    }
    .product-item__order-btn {
        font-size: 13px !important;
        padding: 10px 14px !important;
    }

}

/* ══════════════════════════════════════
   END Section Products
══════════════════════════════════════ */

