/* =================================================================
   💎 AJWAT BAKKAH - QUANTUM MASTER STYLESHEET (v5.6.3-PRO)
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary: #12463F;
    --primary-light: #1B635A;
    --accent: #B8762C;
    --accent-hover: #a1631f;
    --bg-color: #FAFAFA;
    --text-color: #2D3436;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --br-xl: 24px;
    --br-lg: 18px;
    --br-md: 12px;
    --shadow-md: 0 10px 30px rgba(18, 70, 63, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Entrance Animation */
.standard-wrapper, .home-wrapper {
    animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Phase 5: Micro-Interactions --- */
@keyframes shimmerPulse {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-box {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmerPulse 1.5s infinite linear;
    border-radius: 8px;
}

/* ==================== QUANTUM HEADER (Glassmorphism) ==================== */
.main-header {
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.35s ease;
}
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}
.logo-img { height: 55px; transition: transform 0.3s ease; }
.logo-link:hover .logo-img { transform: scale(1.05); }

/* ==================== PRODUCT CARD PRO (Luxury Optimized) ==================== */
.product-card-pro {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--br-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}
.product-card-pro:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px);
}
.pro-img-box {
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    position: relative;
    overflow: hidden;
}
.pro-img-box img { transition: transform 0.6s ease; }
.product-card-pro:hover .pro-img-box img { transform: scale(1.08); }

/* --- Action Hub Breathe --- */
@keyframes actionBreathe {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.08); filter: brightness(1.1); box-shadow: 0 10px 30px rgba(184, 118, 44, 0.4); }
}
.action-hub-toggle.breathe, .hub-main-btn.breathe {
    animation: actionBreathe 4s ease-in-out infinite;
}

/* ==================== FOOTER & UTILITIES ==================== */
.main-footer { background-color: #F2F0EB; color: #5D4037; padding: 60px 0 20px; }
.footer-logo img { max-height: 80px; }
.hover-lift { transition: all 0.3s ease; }
.hover-lift:hover { transform: translateY(-3px); }

/* Mobile Support */
@media (max-width: 768px) {
    .logo-img { height: 45px; }
    .product-card-pro .pro-title { font-size: 14px; }
}

/* ==================== ELITE UI COMPONENTS (Phase 5+) ==================== */
.badge-pro { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.badge-pro.sale { background: linear-gradient(135deg, #FF3D00, #FF6E40); color: #fff; }
.badge-pro.new { background: linear-gradient(135deg, #00C853, #69F0AE); color: #fff; }

.wishlist-btn-pro { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(4px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.wishlist-btn-pro:hover { background: #FF3D00; color: white; transform: scale(1.15) rotate(5deg); }
.wishlist-btn-pro.active { animation: heartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: #FF3D00; }
@keyframes heartPop { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

.section-header h2::after { content: ''; position: absolute; bottom: -8px; right: 0; width: 50px; height: 3px; background: linear-gradient(to left, var(--accent), transparent); border-radius: 3px; }

.btn-add-cart { background: linear-gradient(135deg, #12463F, #1a464b); border-radius: 10px; color: #fff; padding: 12px 20px; font-weight: 700; transition: all 0.3s ease; border: none; }
.btn-add-cart:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(18, 70, 63, 0.3); }

.feature-box { border-radius: 18px; border: 1px solid rgba(0, 0, 0, 0.06); padding: 25px; transition: all 0.3s ease; }
.feature-box:hover { box-shadow: 0 12px 35px rgba(184, 118, 44, 0.12); border-color: rgba(184, 118, 44, 0.15); }

/* ==================== ADMIN UI KIT (Phase 6) ==================== */
.image-upload-dropzone:hover, .add-image-btn:hover { border-color: var(--accent) !important; background: #fff !important; }
.existing-image-card .group:hover .image-overlay { opacity: 1 !important; pointer-events: auto !important; }
.existing-image-card.marked-for-deletion { opacity: 0.3; filter: grayscale(1); pointer-events: none; }
.transition-all { transition: all 0.3s ease; }
