/**
 * Main Stylesheet - Simplified Version
 * 
 * @package GeneratePress_Child
 * @since 1.0.0
 */

/* ================================== */
/* Reset and Base Styles */
/* ================================== */

*,
*::before,
*::after {
   
}


.ab-hero-wrapper, 
.product-container, 
.product-accordion-wrapper, 
.perfume-product-card, 
.cart-app-container {
    box-sizing: border-box;
}


:root {
    
}

/* ================================== */
/* Modal Body Lock */
/* ================================== */

body.modal-open {
    overflow: hidden;
}

/* ================================== */
/* Loading States */
/* ================================== */

.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================== */
/* Product Card - Clickable */
/* ================================== */

.perfume-product-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.perfume-product-card:active {
    transform: translateY(-2px);
}

.perfume-image-wrapper {
    position: relative !important;
}

/* إخفاء زر Quick View (لأننا لا نحتاجه) */
.gpchild-quick-view-btn {
    display: none !important;
}

.gpchild-quick-view-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #0f4a7c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999; /* زيادة z-index */
    opacity: 1; /* إظهار الزر دائماً للاختبار */
    transform: scale(1);
    pointer-events: auto; /* تأكد من قابلية الضغط */
}

.perfume-product-card:hover .gpchild-quick-view-btn {
    opacity: 1;
    transform: scale(1);
}

.gpchild-quick-view-btn:hover {
    background-color: #0f4a7c;
    color: #fff;
    border-color: #0f4a7c;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(15, 74, 124, 0.3);
}

.gpchild-quick-view-btn:active {
    transform: scale(0.95);
}

.gpchild-quick-view-btn i {
    font-size: 1rem;
    pointer-events: none; /* تجاهل الضغط على الأيقونة */
    color: inherit;
}

/* على الموبايل: اظهر الزر دائماً */
@media (max-width: 768px) {
    .gpchild-quick-view-btn {
        width: 36px;
        height: 36px;
        top: 5px;
        right: 5px;
    }
}

/* ================================== */
/* Cart Icon in Header */
/* ================================== */

.gpchild-cart-icon-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.gpchild-cart-icon {
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding: 12px;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-fast);
}

.gpchild-cart-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.gpchild-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 6px;
    box-shadow: var(--shadow-light);
}

/* ================================== */
/* Notification System */
/* ================================== */

.gpchild-notification {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gpchild-notification-success {
    border-left: 4px solid #10b981;
    color: #059669;
}

.gpchild-notification-error {
    border-left: 4px solid #ef4444;
    color: #dc2626;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ================================== */
/* Mobile Responsiveness */
/* ================================== */

@media (max-width: 768px) {
    .gpchild-quick-view-btn {
        opacity: 1;
        transform: scale(1);
        width: 35px;
        height: 35px;
    }
    
    .gpchild-cart-icon-wrapper {
        top: 10px;
        left: 10px;
    }
    
    .gpchild-cart-icon {
        font-size: 1.3rem;
        padding: 10px;
    }
}

/* ================================== */
/* Debug Mode */
/* ================================== */

.gpchild-debug-overlay {
    position: fixed;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #0f0;
    padding: 10px;
    font-family: monospace;
    font-size: 11px;
    z-index: 99999;
    max-width: 300px;
    border-top-left-radius: 5px;
}
