/*
Theme Name: Revive Thrive Child
Theme URI: https://revive-thrive-eg.com/
Author: RT Development
Author URI: https://revive-thrive-eg.com/
Description: Child theme for Revive Thrive with premium Apple Glass UI – Final overrides for all CSS, loads on top of 11 assets/css/ files.
Template: astra
Version: 7.3.1
Text Domain: revive-thrive-child
Tags: woocommerce, glassmorphism, apple-ui, rtl, responsive
*/

/* ═══════════════════════════════════════════════════════════════
   ROOT VARIABLES OVERRIDES
   ═══════════════════════════════════════════════════════════════ */
:root {
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --primary: #007AFF;
    --radius-md: 16px;
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINER OVERRIDES
   ═══════════════════════════════════════════════════════════════ */
.ag-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* ═══════════════════════════════════════════════════════════════
   GLASSMORPHISM ELEMENTS
   ═══════════════════════════════════════════════════════════════ */
.ag-glass,
.ag-card,
.ag-product-card,
.ag-header,
.ag-nav-drawer,
.ag-drawer-cart {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE GRID OVERRIDES
   ═══════════════════════════════════════════════════════════════ */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    width: auto !important;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER OVERRIDES
   ═══════════════════════════════════════════════════════════════ */
.ag-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ag-container { padding: 0 1rem; }
    .woocommerce ul.products { gap: 1rem !important; }
    .ag-header { padding: 0 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */
.ag-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

/* ═══════════════════════════════════════════════════════════════
   RTL SUPPORT
   ═══════════════════════════════════════════════════════════════ */
[dir="rtl"] .ag-header-inner {
    direction: rtl;
}
