/* ============================================================
   FATTESH ONLINE — Main Stylesheet
   Primary: #F97316 (Orange) | Dark: #1C1917 | White: #FFFFFF
   ============================================================ */

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

:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FED7AA;
    --primary-bg: #FFF7ED;
    --dark: #1C1917;
    --dark-2: #292524;
    --gray: #78716C;
    --gray-light: #F5F5F4;
    --border: #E7E5E4;
    --white: #FFFFFF;
    --success: #16A34A;
    --danger: #DC2626;
    --warning: #D97706;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
    --transition: all .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ar);
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
}

body.en {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--dark);
    color: #A8A29E;
    font-size: 13px;
    padding: 6px 0;
}
.top-bar a { color: #A8A29E; }
.top-bar a:hover { color: var(--primary); }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-bar-social { display: flex; gap: 14px; }
.top-bar-social a { font-size: 15px; transition: var(--transition); }
.top-bar-social a:hover { color: var(--primary); }
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
    background: none;
    border: 0.5px solid #57534E;
    color: #A8A29E;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}
.logo img { height: 52px; }
.logo span { font-size: 24px; font-weight: 800; color: var(--primary); }

.search-bar {
    flex: 1;
    position: relative;
    max-width: 500px;
}
.search-bar input {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0 50px 0 16px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: var(--gray-light);
}
body.en .search-bar input { padding: 0 16px 0 50px; }
.search-bar input:focus { border-color: var(--primary); background: #fff; }
.search-bar button {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    height: 44px;
    width: 48px;
    background: var(--primary);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
body.en .search-bar button { border-radius: var(--radius) 0 0 var(--radius); }
.search-bar button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: var(--dark);
    font-size: 11px;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}
.header-action-btn:hover { background: var(--primary-bg); color: var(--primary); }
.header-action-btn i { font-size: 22px; }
.header-badge {
    position: absolute;
    top: 2px;
    inset-inline-end: 4px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: var(--dark);
    position: sticky;
    top: 81px;
    z-index: 99;
}
.navbar .container { display: flex; align-items: center; }
.navbar-links { display: flex; align-items: center; }
.navbar-links > li { position: relative; }
.navbar-links > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    color: #E7E5E4;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.navbar-links > li > a:hover,
.navbar-links > li.active > a { color: var(--primary); }
.dropdown-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 200;
}
.navbar-links > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--dark);
    border-bottom: 0.5px solid var(--border);
    transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--primary-bg); color: var(--primary); padding-inline-start: 22px; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: none; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}
.product-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-badges {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--success); color: #fff; }
.badge-offer { background: var(--primary); color: #fff; }
.product-card-wishlist {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    color: var(--gray);
}
.product-card-wishlist:hover, .product-card-wishlist.active { color: var(--danger); border-color: var(--danger); }
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card-cat { font-size: 11px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.product-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-offer {
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}
.product-card-price { margin-top: auto; }
.price-current { font-size: 18px; font-weight: 800; color: var(--primary); }
.price-old { font-size: 13px; color: var(--gray); text-decoration: line-through; margin-inline-start: 6px; }
.currency { font-size: 12px; font-weight: 600; }
.product-card-footer {
    padding: 0 14px 14px;
    display: flex;
    gap: 8px;
}
.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-add-cart:hover { background: var(--primary-dark); }
.btn-quick-view {
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--dark);
}
.btn-quick-view:hover { background: var(--dark); color: #fff; }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    padding-bottom: 8px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.section-link { color: var(--primary); font-size: 13px; font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    min-height: 420px;
    display: flex;
    align-items: center;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 40px 0;
    opacity: 0;
    transition: opacity .6s ease;
}
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide-content { max-width: 50%; }
.hero-slide-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
}
.hero-slide-content p { color: #A8A29E; font-size: 16px; margin-bottom: 24px; }
.hero-slide img {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    height: 100%;
    width: 50%;
    object-fit: cover;
    opacity: .8;
}
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #57534E;
    cursor: pointer;
    transition: var(--transition);
}
.hero-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ============================================================
   CATEGORIES BAR
   ============================================================ */
.categories-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar { display: none; }
.categories-bar-inner {
    display: flex;
    gap: 4px;
    padding: 12px 0;
    width: max-content;
}
.category-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}
.category-chip img { width: 24px; height: 24px; object-fit: cover; border-radius: 50%; }
.category-chip:hover, .category-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip { background: var(--primary-bg); padding: 24px 0; }
.features-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-item { display: flex; align-items: center; gap: 12px; }
.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}
.feature-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.feature-text p { font-size: 12px; color: var(--gray); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: #A8A29E; padding: 48px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { }
.footer-brand img { height: 50px; margin-bottom: 14px; filter: brightness(1.2); }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 36px;
    height: 36px;
    background: #292524;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); padding-inline-start: 4px; }
.footer-newsletter { }
.footer-newsletter p { font-size: 13px; margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
    flex: 1;
    background: #292524;
    border: 1px solid #44403C;
    border-radius: var(--radius);
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
}
.newsletter-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}
.newsletter-form button:hover { background: var(--primary-dark); }
.footer-bottom {
    border-top: 1px solid #292524;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}
.footer-payments { display: flex; gap: 8px; align-items: center; }
.payment-icon {
    background: #292524;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #E7E5E4;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
#toast-container {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--dark);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideIn .3s ease;
    min-width: 260px;
}
.toast.success { border-inline-start: 3px solid var(--success); }
.toast.error { border-inline-start: 3px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================================
   LIVE CHAT BUTTON
   ============================================================ */
.chat-fab {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249,115,22,.4);
    z-index: 1000;
    transition: var(--transition);
}
.chat-fab:hover { transform: scale(1.1); background: var(--primary-dark); }
.chat-badge {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    background: var(--danger);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.chat-window {
    position: fixed;
    bottom: 90px;
    inset-inline-start: 24px;
    width: 320px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    max-height: 440px;
}
.chat-window.open { display: flex; }
.chat-header { background: var(--primary); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-header i { font-size: 20px; }
.chat-header h4 { font-size: 14px; font-weight: 700; }
.chat-header p { font-size: 11px; opacity: .8; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.chat-msg { max-width: 80%; }
.chat-msg.visitor { align-self: flex-end; }
.chat-msg.admin { align-self: flex-start; }
.chat-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.chat-msg.visitor .chat-bubble { background: var(--primary); color: #fff; border-radius: 12px 12px 0 12px; }
.chat-msg.admin .chat-bubble { background: var(--gray-light); border-radius: 12px 12px 12px 0; }
.chat-input-area { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input-area input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; font-family: inherit; outline: none; }
.chat-input-area button { background: var(--primary); color: #fff; border: none; border-radius: var(--radius); width: 36px; height: 36px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray); padding: 14px 0; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: .5; }

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.filter-sidebar { }
.filter-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
}
.filter-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.filter-item input { accent-color: var(--primary); }
.price-range { }
.price-range input[type=range] { width: 100%; accent-color: var(--primary); }
.price-range-values { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray); margin-top: 6px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.page-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-control {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}
.form-control:focus { border-color: var(--primary); }
textarea.form-control { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   ALERT
   ============================================================ */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-danger  { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-strip .container { grid-template-columns: 1fr 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-slide-content h2 { font-size: 26px; }
    .header-inner { flex-wrap: wrap; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .navbar { display: none; }
    .mobile-menu-btn { display: flex; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card-img { height: 150px; }
}

/* ============================================================
   MEGA MENU — CATEGORIES
   ============================================================ */
.has-mega { position: relative; }
.mega-menu {
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .25s ease;
    z-index: 300;
    min-width: 600px;
    max-width: 800px;
}
.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 16px;
}
.mega-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    text-decoration: none;
}
.mega-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}
.mega-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}
.mega-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mega-item:hover .mega-icon {
    background: var(--primary);
    color: #fff;
}
.mega-item:hover .mega-icon img {
    filter: brightness(10);
}
.mega-item span {
    line-height: 1.3;
}

/* ============================================================
   ADMIN LAYOUT FIX
   ============================================================ */

/* ============================================================
   NAVBAR — LEADERS CENTER STYLE
   ============================================================ */
.navbar {
    background: #1C1917;
    border-bottom: 3px solid #F97316;
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 0;
}
.navbar-links > li > a {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #E7E5E4;
    transition: all .2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.navbar-links > li > a:hover,
.navbar-links > li.active > a {
    color: #F97316;
    border-bottom-color: #F97316;
    background: rgba(249,115,22,.08);
}

/* MEGA MENU - Leaders style */
.mega-menu {
    border-top: 3px solid #F97316;
    min-width: 680px;
    max-width: 900px;
    right: 0;
}
.mega-inner {
    grid-template-columns: repeat(4, 1fr);
    padding: 20px;
    gap: 6px;
}
.mega-item {
    flex-direction: row;
    text-align: right;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 8px;
    font-weight: 500;
}
.mega-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 18px;
    flex-shrink: 0;
}
.mega-item:hover .mega-icon {
    background: #F97316;
}

/* ============================================================
   MOBILE FIXES
   ============================================================ */
@media (max-width: 768px) {
    /* Header */
    .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
    .search-bar { order: 3; width: 100%; max-width: 100%; }
    .logo img { height: 40px; }
    .logo span { font-size: 22px; }
    .header-action-btn span { display: none; }
    .header-action-btn { padding: 6px; }

    /* Navbar hidden on mobile */
    .navbar { display: none; }

    /* Hero */
    .hero-slide-content h2 { font-size: 22px; }
    .hero-slide-content p { font-size: 14px; }

    /* Features */
    .features-strip .container { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature-icon { width: 40px; height: 40px; font-size: 18px; }

    /* Products grid */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card-img { height: 150px; }
    .product-card-name { font-size: 12px; }
    .price-current { font-size: 14px; }
    .btn-add-cart { font-size: 11px; padding: 8px 6px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    /* Chat fab position */
    .chat-fab { bottom: 16px; left: 12px; width: 48px; height: 48px; font-size: 20px; }
    .chat-window { width: calc(100vw - 24px); left: 12px; bottom: 76px; }
    
    /* Section title */
    .section-title { font-size: 18px; }
    .section-header { margin-bottom: 16px; }

    /* Categories bar */
    .category-chip { font-size: 12px; padding: 6px 12px; }
    
    /* Top bar */
    .top-bar .container { font-size: 11px; }
    .top-bar-social { gap: 10px; }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .products-grid { gap: 6px; }
    .product-card-img { height: 130px; }
    .product-card-body { padding: 8px 10px; }
    .product-card-footer { padding: 0 10px 10px; }
    .features-strip .container { grid-template-columns: 1fr; }
    .hero-slide-content h2 { font-size: 18px; }
    .btn-lg { padding: 10px 20px; font-size: 14px; }
}

/* Mobile hamburger menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #1C1917;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; align-items: center; }
    .mobile-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: #1C1917;
        z-index: 999;
        transition: right .3s;
        overflow-y: auto;
        padding: 20px;
    }
    .mobile-nav.open { right: 0; }
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 998;
        display: none;
    }
    .mobile-nav-overlay.show { display: block; }
    .mobile-nav a {
        display: flex; align-items: center; gap: 10px;
        color: #E7E5E4; font-size: 14px; font-weight: 600;
        padding: 12px 0; border-bottom: .5px solid #292524;
        text-decoration: none;
    }
    .mobile-nav a:hover { color: #F97316; }
}
