/* ==========================================================================
   Premium Theme Overrides (Glassmorphism & Micro-animations)
   ========================================================================== */

/* 1. CSS Variables for Modern Color Palette */
:root {
    --primary-color: #0f172a;      /* Deep Charcoal / Navy */
    --accent-color: #e53131;       /* Vibrant Red for CTAs */
    --bg-color: #f8fafc;           /* Soft off-white background */
    --surface-color: #ffffff;      /* Pure white for cards */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Global Typography & Background */
body {
    background-color: var(--bg-color) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', 'Outfit', 'Montserrat', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

/* 3. Header Glassmorphism */
.header-area {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: all var(--transition-fast);
}

.header-maxi {
    background: transparent !important;
}

/* 4. Product Cards Premium Design */
.product {
    background: var(--surface-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth) !important;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
    border-color: transparent !important;
}

/* Product Image Container */
.product .thumb {
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden;
}

.product .thumb img {
    transition: transform var(--transition-smooth) !important;
}

.product:hover .thumb img {
    transform: scale(1.08) !important;
}

/* Add to cart / View Buttons on Cards */
.product-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-smooth);
    padding: 10px;
    background: linear-gradient(to top, rgba(255,255,255,1) 60%, rgba(255,255,255,0));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 16px 16px;
}

.product:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product article {
    padding-bottom: 50px; /* Space for absolute actions */
}

/* Action Buttons */
.btn-primary, .ajax-add-to-cart {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 12px !important;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast) !important;
}

.btn-primary:hover, .ajax-add-to-cart:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 4px 12px rgba(229, 49, 49, 0.3) !important;
}

.btn-secondary, .btn-outline-secondary {
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 12px !important;
}

/* 5. Category Circles Premium Styling */
.category-circle-item .category-img-wrapper {
    background: var(--surface-color);
    border: 2px solid transparent !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    transition: all var(--transition-smooth) !important;
}

.category-circle-item:hover .category-img-wrapper {
    transform: translateY(-5px) scale(1.05) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 25px rgba(229, 49, 49, 0.15) !important;
}

/* 6. Section Headings */
.heading h2 {
    font-size: 28px !important;
    position: relative;
    padding-bottom: 10px;
}

.heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* Hide default borders where heading has our custom bottom line */
.border-bottom {
    border-bottom: none !important;
}

/* 7. Discount Badges */
.product .badge-danger {
    background-color: var(--accent-color) !important;
    border-radius: 6px !important;
    padding: 5px 8px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(229, 49, 49, 0.3) !important;
}

/* 8. Price Styling */
.price-sign {
    color: var(--primary-color) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.cur-price {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}
