/* ========================================
   AL-QALAF ESTABLISHMENT - Modern Design System
   ========================================
   THEMING: Change colors below to re-skin the entire site.
   --primary   : Main brand color (navy)
   --accent    : Eye-catching accent (cyan / teal)
   --highlight : CTA / attention (orange / amber)
   --surface   : Card & panel background
   --bg        : Page background
   --text      : Primary text
   --text-muted: Secondary text
   ======================================== */

:root {
    /* ── Brand Palette ── */
    --primary:        #0f1d44;
    --primary-light:  #1b3278;
    --primary-dark:   #080f26;
    --accent:         #00b4d8;
    --accent-light:   #48cae4;
    --accent-dark:    #0096b7;
    --highlight:      #f59e0b;
    --highlight-light:#fbbf24;
    --highlight-dark: #d97706;

    /* ── Neutrals ── */
    --bg:             #f0f2f7;
    --bg-alt:         #e8ecf4;
    --surface:        #ffffff;
    --surface-hover:  #f8f9fc;
    --border:         #e2e6ee;
    --border-light:   #eef1f6;
    --text:           #1e293b;
    --text-muted:     #64748b;
    --text-light:     #94a3b8;

    /* ── Semantic ── */
    --success:        #10b981;
    --danger:         #ef4444;
    --warning:        #f59e0b;
    --info:           var(--accent);

    /* ── Shadows ── */
    --shadow-xs:      0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.10);
    --shadow-xl:      0 16px 56px rgba(0,0,0,0.14);
    --shadow-accent:  0 4px 20px rgba(0,180,216,0.25);
    --shadow-highlight:0 4px 20px rgba(245,158,11,0.25);

    /* ── Radii ── */
    --radius-sm:  8px;
    --radius:     12px;
    --radius-lg:  16px;
    --radius-xl:  20px;
    --radius-pill: 50px;

    /* ── Transitions ── */
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --duration:    0.3s;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    font-family: 'Inter', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Tajawal', sans-serif;
    font-weight: 700;
    color: inherit;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

a { color: var(--accent); transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: #fff; }

/* ========================================
   UTILITY CLASSES
   ======================================== */
.bg-navy    { background-color: var(--primary) !important; }
.bg-cyan    { background-color: var(--accent) !important; }
.bg-orange  { background-color: var(--highlight) !important; }
.text-navy  { color: var(--primary) !important; }
.text-cyan  { color: var(--accent) !important; }
.text-orange{ color: var(--highlight) !important; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--duration) var(--ease);
    border-radius: var(--radius);
    padding: 0.55rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.btn-navy {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
}
.btn-navy:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15,29,68,0.3);
}

.btn-cyan {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius);
}
.btn-cyan:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.btn-orange {
    background: linear-gradient(135deg, var(--highlight), var(--highlight-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius);
}
.btn-orange:hover {
    background: linear-gradient(135deg, var(--highlight-light), var(--highlight));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-highlight);
}

.btn-outline-navy {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius);
    background: transparent;
}
.btn-outline-navy:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15,29,68,0.2);
}

.btn-outline-cyan {
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius);
    background: transparent;
}
.btn-outline-cyan:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.btn-lg { padding: 0.75rem 2rem; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.35rem 1rem; font-size: 0.85rem; border-radius: var(--radius-sm); }

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary)) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar a { transition: opacity var(--duration) var(--ease); }
.top-bar a:hover { opacity: 0.8; }

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    padding: 0.6rem 0;
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease);
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text);
    padding: 0.5rem 1.1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    font-size: 0.95rem;
    position: relative;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
    transform: translateX(-50%);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1e3a8a 100%);
    color: #fff;
    padding: 110px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,180,216,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob 8s ease-in-out infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob 10s ease-in-out infinite reverse;
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.hero-section p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 540px;
    line-height: 1.7;
}

/* ========================================
   CARDS
   ======================================== */
.card-custom {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
    overflow: hidden;
}
.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.service-card {
    padding: 2.2rem 1.8rem;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.service-card:hover::before { opacity: 1; }

.service-card .icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 4px 16px rgba(0,180,216,0.3);
    transition: transform var(--duration) var(--ease);
}
.service-card:hover .icon-circle { transform: scale(1.08) rotate(5deg); }

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}
.product-card .product-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s var(--ease);
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card .card-body h6 { font-size: 0.95rem; }
.product-card .card-body h6 a { color: var(--text); text-decoration: none; }
.product-card .card-body h6 a:hover { color: var(--accent); }
.product-card .price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}
.product-card .price .old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 0.5rem;
}
.product-card .sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}

/* ========================================
   CATEGORY PILLS
   ======================================== */
.category-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    font-size: 0.88rem;
    font-weight: 500;
}
.category-pill:hover,
.category-pill.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

/* ========================================
   CART
   ======================================== */
.cart-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1rem;
}
.cart-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}
.cart-badge {
    font-size: 0.6rem !important;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 4px !important;
    text-align: center;
    position: absolute !important;
    top: -6px !important;
    right: -10px !important;
    left: auto !important;
    z-index: 2;
    color: #fff !important;
    background: var(--highlight) !important;
    border-radius: 50px !important;
}
.quantity-input { width: 70px; text-align: center; }

/* ========================================
   CHECKOUT
   ======================================== */
.checkout-step {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: border-color var(--duration) var(--ease);
}
.checkout-step:hover { border-color: var(--border); }

.step-indicator { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.step-indicator .step {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: var(--bg-alt);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--duration) var(--ease);
    position: relative;
}
.step-indicator .step.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: var(--shadow-accent);
}
.step-indicator .step.completed {
    background: var(--primary);
    color: #fff;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-weight: 700;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    border-radius: 3px;
}
.section-title.text-start::after { left: 0; transform: none; }

/* ========================================
   TRUST BADGES
   ======================================== */
.trust-badge {
    text-align: center;
    padding: 1.8rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
}
.trust-badge:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.trust-badge i {
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

/* ========================================
   FLOATING BUTTONS (Cart + WhatsApp)
   ======================================== */
.cart-float {
    position: fixed;
    bottom: 94px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(15,29,68,0.4);
    z-index: 1000;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}
.cart-float:hover {
    transform: scale(1.1);
    color: #fff;
    background: var(--primary-light);
    box-shadow: 0 6px 28px rgba(15,29,68,0.5);
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* ========================================
   STAR RATING
   ======================================== */
.star-rating { color: #facc15; }
.star-rating .empty { color: #ddd; }

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff !important;
    padding: 64px 0 44px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,180,216,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.page-header p,
.page-header span,
.page-header li { color: #fff !important; }
.page-header h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; position: relative; z-index: 1; }
.page-header .breadcrumb { position: relative; z-index: 1; }
.page-header .breadcrumb-item a {
    color: var(--accent-light) !important;
    text-decoration: none;
    font-weight: 500;
}
.page-header .breadcrumb-item a:hover { color: #fff !important; }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.6) !important; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4) !important; }

/* ========================================
   STATS
   ======================================== */
.stat-box { text-align: center; padding: 2rem 1rem; }
.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-box .stat-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.5rem; font-weight: 500; }

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-accordion .accordion-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--primary);
    background: var(--surface);
    padding: 1rem 1.25rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(0,180,216,0.04);
    color: var(--primary);
    box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--accent); }

/* ========================================
   BLOG CARDS
   ======================================== */
.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.blog-card .blog-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-img { transform: scale(1.04); }
.blog-card .blog-meta { font-size: 0.8rem; color: var(--text-light); }

/* ========================================
   ADMIN PANEL
   ======================================== */
.admin-sidebar {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    min-height: 100vh;
    padding: 1.5rem 0;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.65);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s var(--ease);
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent);
}
.admin-sidebar .nav-link i { width: 24px; text-align: center; margin-right: 0.5rem; }
.admin-content { margin-left: 260px; padding: 1.5rem; min-height: 100vh; background: var(--bg); }
.admin-stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    transition: all var(--duration) var(--ease);
}
.admin-stat-card:hover { box-shadow: var(--shadow-md); }
.admin-stat-card.orange { border-left-color: var(--highlight); }
.admin-stat-card.navy { border-left-color: var(--primary); }
.admin-stat-card.danger { border-left-color: var(--danger); }

/* ========================================
   FORMS
   ======================================== */
.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    transition: all var(--duration) var(--ease);
    color: var(--text);
    background: var(--surface);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,180,216,0.12);
    outline: none;
}
.form-control::placeholder { color: var(--text-light); }
.form-label { font-weight: 600; color: var(--text); font-size: 0.9rem; margin-bottom: 0.4rem; }

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
    border-color: var(--accent);
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
}
.alert-success { background: rgba(16,185,129,0.1); color: #065f46; }
.alert-danger  { background: rgba(239,68,68,0.1); color: #991b1b; }

/* ========================================
   PAGINATION
   ======================================== */
.pagination .page-link {
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-sm) !important;
    margin: 0 3px;
    transition: all var(--duration) var(--ease);
    padding: 0.45rem 0.85rem;
}
.pagination .page-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}
.pagination .page-item.disabled .page-link {
    color: var(--text-light);
    background: var(--bg-alt);
}

/* ========================================
   TABLES
   ======================================== */
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: 0.85rem 1rem; }

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ========================================
   RESPONSIVE – WCAG / Material Design
   44px min touch targets, readable text,
   safe-area insets for notched devices.
   ======================================== */

/* ── Tablet (≤991px) ── */
@media (max-width: 991px) {
    .hero-section { padding: 70px 0 60px; }
    .hero-section h1 { font-size: 2.2rem; }
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; padding-top: 60px; }

    .navbar .navbar-collapse {
        background: var(--surface);
        border-radius: var(--radius-lg);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-light);
    }
    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--border-light);
    }
    .navbar .nav-link:last-child { border-bottom: none; }

    .navbar .d-flex.align-items-center {
        flex-direction: row;
        justify-content: center;
        padding-top: 0.75rem;
        gap: 0.75rem !important;
    }

    .section-title { font-size: 1.5rem; }
    .service-card { padding: 1.5rem 1.2rem; }
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
    html { font-size: 15px; }

    .hero-section { padding: 60px 0 50px; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section p { font-size: 1rem; }

    .page-header { padding: 40px 0 28px; }
    .page-header h1 { font-size: 1.5rem; }

    .section-title { font-size: 1.35rem; margin-bottom: 1.5rem; }

    .container { padding-left: 16px; padding-right: 16px; }

    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .btn-lg { padding: 0.65rem 1.5rem; font-size: 0.95rem; }
    .btn-sm { min-height: 38px; padding: 0.4rem 0.9rem; }

    .product-card .product-img { height: 200px; }
    .product-card .card-body { padding: 1rem; }
    .product-card .card-body h6 { font-size: 0.9rem; }

    .cart-table th, .cart-table td { padding: 0.6rem 0.5rem; font-size: 0.85rem; }
    .quantity-input { width: 60px; }

    .trust-badge { padding: 1.2rem 0.5rem; }
    .trust-badge i { font-size: 2rem; }

    .stat-box .stat-number { font-size: 2rem; }

    .blog-card .blog-img { height: 180px; }

    footer { font-size: 0.9rem; }
    footer .col-md-3, footer .col-lg-3 { margin-bottom: 1.5rem; }

    .whatsapp-float { width: 52px; height: 52px; font-size: 1.5rem; bottom: 20px; right: 16px; }
    .cart-float { width: 48px; height: 48px; font-size: 1.2rem; bottom: 82px; right: 16px; }
}

/* ── Small Mobile (≤575px) ── */
@media (max-width: 575px) {
    html { font-size: 14px; }

    .hero-section h1 { font-size: 1.55rem; }
    .page-header h1 { font-size: 1.3rem; }
    .page-header { padding: 32px 0 22px; }

    .product-card .product-img { height: 160px; }

    .navbar-brand span { font-size: 1.15rem !important; }

    .checkout-step { padding: 1rem; }
    .step-indicator { flex-wrap: wrap; }
    .step-indicator .step { font-size: 0.75rem; padding: 0.5rem; }

    .category-pill { padding: 6px 14px; font-size: 0.82rem; }

    .faq-accordion .accordion-button { font-size: 0.9rem; padding: 0.85rem 1rem; }
}

/* ── Safe area insets for notched devices ── */
@supports (padding: env(safe-area-inset-bottom)) {
    .whatsapp-float { bottom: calc(20px + env(safe-area-inset-bottom)); }
    footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in { animation: fadeIn 0.6s var(--ease); }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========================================
   FOCUS STYLES
   ======================================== */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus {
    box-shadow: 0 0 0 3px rgba(0,180,216,0.2);
    outline: none;
}

/* ========================================
   FOOTER ENHANCEMENTS
   ======================================== */
footer {
    border-top: 3px solid var(--accent);
}
footer a { transition: all var(--duration) var(--ease); }
footer a.text-white-50:hover { color: var(--accent-light) !important; }
footer h5, footer h6 { color: #fff; }

/* ========================================
   RTL SUPPORT
   ======================================== */
html[dir="rtl"] body { font-family: 'Tajawal', 'Inter', sans-serif; }
html[dir="rtl"] .section-title.text-start::after { left: auto; right: 0; }
html[dir="rtl"] .admin-sidebar { left: auto; right: 0; }
html[dir="rtl"] .admin-content { margin-left: 0; margin-right: 260px; }
html[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
html[dir="rtl"] .navbar .nav-link::after { left: auto; right: 50%; transform: translateX(50%); }