/* =============================================
   متجر الحلى - الخضر الملكي والذهبي
   ============================================= */

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

:root {
    --primary:       #1a5c3a;
    --primary-dark:  #0d3d26;
    --primary-mid:   #1e6b44;
    --primary-light: #2d8a57;
    --gold:          #c9a227;
    --gold-light:    #e4b840;
    --gold-pale:     #f5e6b0;
    --cream:         #f5f9f6;
    --cream-dark:    #e8f2ec;
    --text-dark:     #0d2618;
    --text-muted:    #4a6b55;
    --white:         #ffffff;
    --shadow:        0 4px 24px rgba(26,92,58,0.13);
    --shadow-hover:  0 10px 36px rgba(26,92,58,0.24);
    --shadow-gold:   0 4px 20px rgba(201,162,39,0.25);
    --radius:        18px;
    --radius-sm:     11px;
}

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

body {
    font-family: 'Cairo', 'Tahoma', Arial, sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    direction: rtl;
}

/* ===================== NAVBAR ===================== */
.sweets-navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(26,92,58,0.10);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--gold);
}

.sweets-navbar .container {
    display: flex;
    align-items: center;
    padding: 14px 16px;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--gold);
    box-shadow: 0 3px 12px rgba(201,162,39,0.3);
    flex-shrink: 0;
}

.brand-text-wrap .brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary-dark);
    display: block;
    line-height: 1.1;
}

.brand-text-wrap .brand-tagline {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cart-btn-nav {
    background: linear-gradient(135deg, var(--gold), #b8891f);
    color: var(--white) !important;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-gold);
}

.cart-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201,162,39,0.4);
}

.cart-badge {
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===================== HERO ===================== */
.sweets-hero {
    background: linear-gradient(150deg, var(--primary-dark) 0%, #0f4c2a 40%, #1a5c3a 70%, #1e6b44 100%);
    padding: 90px 0 70px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.sweets-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,162,39,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(201,162,39,0.07) 0%, transparent 50%);
}

/* الأوراق الزخرفية */
.hero-leaf {
    position: absolute;
    opacity: 0.06;
    font-size: 8rem;
}
.hero-leaf.l1 { top: -20px; right: -20px; transform: rotate(30deg); }
.hero-leaf.l2 { bottom: -20px; left: -10px; transform: rotate(-20deg); }

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(201,162,39,0.15);
    border: 1px solid rgba(201,162,39,0.4);
    color: var(--gold-light);
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

.sweets-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 18px;
    line-height: 1.2;
}

.sweets-hero h1 span {
    color: var(--gold-light);
    position: relative;
}

.sweets-hero p {
    font-size: 1.15rem;
    opacity: 0.88;
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-btn-primary {
    background: linear-gradient(135deg, var(--gold), #a8841a);
    color: var(--white);
    border: none;
    padding: 15px 38px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 6px 24px rgba(201,162,39,0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(201,162,39,0.5);
}

.hero-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.hero-btn-secondary:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.hero-stat-item { text-align: center; }
.hero-stat-number { font-size: 1.8rem; font-weight: 900; color: var(--gold-light); line-height: 1; }
.hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ===================== DIVIDER ===================== */
.gold-divider {
    width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 2px;
    margin: 0 auto 18px;
}

/* ===================== SECTION TITLE ===================== */
.section-title { text-align: center; margin-bottom: 52px; }
.section-title .badge-section {
    display: inline-block;
    background: var(--cream-dark);
    color: var(--primary);
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(26,92,58,0.15);
}
.section-title h2 { font-size: 2.1rem; font-weight: 900; color: var(--text-dark); margin-bottom: 10px; }
.section-title p { color: var(--text-muted); font-size: 1rem; }

/* ===================== PRODUCTS ===================== */
#products-section { padding: 75px 0; }

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s cubic-bezier(.25,.8,.25,1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(26,92,58,0.06);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(201,162,39,0.2);
}

.product-badge-new {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--gold), #a8841a);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(201,162,39,0.4);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    height: 230px;
    background: var(--cream-dark);
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,38,24,0.45) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.product-card:hover .product-img-overlay { opacity: 1; }

.product-emoji-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    background: linear-gradient(135deg, var(--cream-dark), #c8e6d4);
}

.product-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.18rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.90rem;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 16px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.product-price .currency {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 2px;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: 800;
    font-size: 0.88rem;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(26,92,58,0.25);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(26,92,58,0.35);
}

.btn-add-cart.added {
    background: linear-gradient(135deg, var(--gold), #a8841a) !important;
}

/* ===================== CATEGORIES ===================== */
#products-section { padding: 60px 0 75px; }

/* --- تابات الأقسام الرئيسية --- */
.cat-tabs-wrap {
    margin-bottom: 24px;
    position: relative;
}

.cat-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    -webkit-overflow-scrolling: touch;
}

.cat-tabs::-webkit-scrollbar { height: 4px; }
.cat-tabs::-webkit-scrollbar-track { background: transparent; }
.cat-tabs::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.cat-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(26,92,58,0.07);
    flex-shrink: 0;
    min-width: 90px;
}

.cat-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,92,58,0.14);
}

.cat-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 18px rgba(26,92,58,0.3);
    transform: translateY(-2px);
}

.cat-tab-icon { font-size: 1.7rem; line-height: 1; }

/* --- الأقسام الفرعية --- */
.sub-cat-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 24px;
    border: 1px solid rgba(26,92,58,0.08);
    box-shadow: 0 2px 10px rgba(26,92,58,0.06);
    animation: slide-down 0.3s ease;
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sub-cat-header {
    margin-bottom: 12px;
}

.sub-cat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sub-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sub-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--cream);
    border: 1.5px solid rgba(26,92,58,0.12);
    transition: all 0.22s;
    white-space: nowrap;
}

.sub-cat-pill:hover {
    background: var(--cream-dark);
    color: var(--primary);
    border-color: var(--primary);
}

.sub-cat-pill.active {
    background: linear-gradient(135deg, var(--gold), #a8841a);
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 3px 12px rgba(201,162,39,0.3);
}

/* --- شريط النتائج --- */
.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 10px 0;
    border-bottom: 2px solid var(--cream-dark);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-muted);
}

.results-count {
    background: var(--cream-dark);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid rgba(26,92,58,0.1);
}

/* --- شارة القسم على البطاقة --- */
.product-cat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.92);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 2;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(26,92,58,0.12);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- حالة فارغة --- */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h4 { font-weight: 800; margin-bottom: 8px; color: var(--text-dark); }
.empty-state p  { margin-bottom: 24px; }

/* ===================== HOW TO ORDER ===================== */
.how-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a3520 100%);
    padding: 72px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.how-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(201,162,39,0.08) 0%, transparent 60%);
}

.how-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.step-icon-wrap {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(201,162,39,0.15), rgba(201,162,39,0.08));
    border: 2px solid rgba(201,162,39,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.how-step:hover .step-icon-wrap {
    background: rgba(201,162,39,0.25);
    border-color: var(--gold);
    transform: scale(1.08);
}

.step-number {
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.step-desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    line-height: 1.8;
}

/* ===================== FLOATING CART ===================== */
.floating-cart { position: fixed; bottom: 30px; left: 30px; z-index: 999; display: none; }
.floating-cart.show { display: block; }

.floating-cart-btn {
    background: linear-gradient(135deg, var(--gold), #a8841a);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 15px 28px;
    font-size: 1rem;
    font-weight: 900;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(201,162,39,0.45);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse-gold 2.2s infinite;
}

.floating-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(201,162,39,0.55);
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 6px 28px rgba(201,162,39,0.45); }
    50%       { box-shadow: 0 6px 38px rgba(201,162,39,0.65); }
}

.floating-cart-count {
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    width: 28px; height: 28px;
    font-size: 0.85rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===================== ORDER MODAL ===================== */
.modal-sweets .modal-content {
    border-radius: var(--radius) !important;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-sweets .modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 22px 26px;
    border: none;
    position: relative;
}

.modal-sweets .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.modal-sweets .modal-title { font-weight: 900; font-size: 1.25rem; }
.modal-sweets .btn-close { filter: invert(1) brightness(1.5); }

.cart-summary {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(26,92,58,0.08);
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(26,92,58,0.12);
    font-size: 0.93rem;
}
.cart-item-row:last-child { border-bottom: none; }
.cart-item-name { font-weight: 700; color: var(--text-dark); }

.qty-controls { display: flex; align-items: center; gap: 8px; }

.qty-btn {
    background: var(--cream-dark);
    border: 1px solid rgba(26,92,58,0.12);
    border-radius: 50%;
    width: 30px; height: 30px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.qty-btn.remove-btn { color: #c0392b; }
.qty-btn.remove-btn:hover { background: #c0392b; color: var(--white); border-color: #c0392b; }

.cart-item-qty {
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    padding: 3px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

.form-label-sweets {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 7px;
    display: block;
    font-size: 0.95rem;
}

.form-control-sweets {
    border: 2px solid #d0e4d8;
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    width: 100%;
    transition: all 0.25s;
    background: var(--white);
    color: var(--text-dark);
}

.form-control-sweets:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,92,58,0.1);
}

.btn-submit-order {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.08rem;
    font-weight: 900;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 18px rgba(26,92,58,0.3);
}
.btn-submit-order:hover { opacity: 0.93; transform: translateY(-1px); box-shadow: 0 8px 26px rgba(26,92,58,0.4); }

.success-message { text-align: center; padding: 36px 20px; }
.success-icon { font-size: 4rem; margin-bottom: 18px; display: block; }
.success-message h4 { font-weight: 900; color: var(--primary); margin-bottom: 12px; font-size: 1.4rem; }
.success-message p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; }

/* ===================== FOOTER ===================== */
.sweets-footer {
    background: linear-gradient(160deg, var(--primary-dark), #071d11);
    color: rgba(255,255,255,0.82);
    padding: 56px 0 24px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.sweets-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent, var(--gold));
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand-name .brand-dot { color: var(--gold); }

.sweets-footer h5 { color: var(--gold-light); font-weight: 800; margin-bottom: 18px; font-size: 1rem; }

.sweets-footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 8px;
}
.sweets-footer a:hover { color: var(--gold-light); }

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}
.footer-contact-item .fi { color: var(--gold); font-size: 1.1rem; }

.footer-hr { border-color: rgba(255,255,255,0.08); margin: 32px 0 20px; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom .gold { color: var(--gold); }

/* ===================== ALERTS ===================== */
.alert-sweets { border-radius: var(--radius-sm); padding: 14px 20px; margin-bottom: 24px; font-weight: 600; font-size: 0.95rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #b8dfc4; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f1b4b9; }

/* ===================== ADMIN ===================== */
.admin-wrapper { min-height: 100vh; background: #f0f5f2; direction: rtl; }

.admin-sidebar {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0a3520 100%);
    min-height: 100vh;
    width: 262px;
    position: fixed;
    top: 0; right: 0;
    z-index: 100;
    overflow-y: auto;
    border-left: 1px solid rgba(201,162,39,0.12);
}

.admin-sidebar .brand {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(201,162,39,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon-admin {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--gold), #a8841a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(201,162,39,0.35);
}

.brand-text { font-size: 1.1rem; font-weight: 900; color: var(--white); line-height: 1.1; }
.brand-sub  { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 3px; }

.admin-nav-section {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    padding: 10px 20px 4px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.65) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: all 0.22s;
    border-right: 3px solid transparent;
    border-radius: 0;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(201,162,39,0.1);
    color: var(--white) !important;
    border-right-color: var(--gold);
}

.admin-nav-link.active { background: rgba(201,162,39,0.15); }
.admin-nav-link .icon { font-size: 1.15rem; width: 22px; text-align: center; }

.admin-content { margin-right: 262px; padding: 28px; min-height: 100vh; }

.admin-topbar {
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 26px;
    box-shadow: 0 2px 10px rgba(26,92,58,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 4px solid var(--gold);
}
.admin-topbar h1 { font-size: 1.35rem; font-weight: 900; color: var(--text-dark); margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.admin-user-badge {
    background: var(--cream);
    border: 1px solid rgba(26,92,58,0.12);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* STAT CARDS */
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    border-right: 4px solid var(--primary);
    transition: all 0.25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-card.gold  { border-right-color: var(--gold); }
.stat-card.green { border-right-color: #27ae60; }
.stat-card.blue  { border-right-color: #2980b9; }

.stat-icon {
    font-size: 2.2rem;
    width: 58px; height: 58px;
    background: var(--cream);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(26,92,58,0.08);
}

.stat-value { font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-card.gold .stat-value { color: var(--gold); }
.stat-card.green .stat-value { color: #27ae60; }
.stat-card.blue .stat-value { color: #2980b9; }
.stat-label { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; margin-top: 5px; }

/* ADMIN CARD */
.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

.admin-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 16px 24px;
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--gold);
}

/* TABLE */
.table-sweets { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table-sweets thead th {
    background: #f0f5f2;
    padding: 13px 16px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid #d8ebe0;
    white-space: nowrap;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table-sweets tbody td { padding: 14px 16px; border-bottom: 1px solid #edf4ef; vertical-align: middle; }
.table-sweets tbody tr:last-child td { border-bottom: none; }
.table-sweets tbody tr:hover { background: #f7fbf8; }

/* BADGES */
.badge-status { display: inline-block; padding: 5px 14px; border-radius: 50px; font-size: 0.80rem; font-weight: 700; }
.badge-new       { background: #fef9e7; color: #7d6608; border: 1px solid #f5d573; }
.badge-reviewing { background: #eaf4fb; color: #1a6799; border: 1px solid #aed9f5; }
.badge-preparing { background: #e8f8f0; color: #145a32; border: 1px solid #82c9a0; }
.badge-done      { background: #d1f2eb; color: #0e6655; border: 1px solid #5dd5b8; }

/* BUTTONS */
.btn-sm-action {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 8px;
    font-size: 0.80rem; font-weight: 700; font-family: 'Cairo', sans-serif;
    border: none; cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-wa     { background: #25d366; color: var(--white); }
.btn-wa:hover { background: #1da851; color: var(--white); }
.btn-view   { background: #3498db; color: var(--white); }
.btn-view:hover { background: #2475ae; color: var(--white); }
.btn-delete { background: #e74c3c; color: var(--white); }
.btn-delete:hover { background: #c0392b; color: var(--white); }
.btn-edit   { background: var(--gold); color: var(--white); }
.btn-edit:hover { background: #a8841a; color: var(--white); }

.btn-primary-admin {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700; font-family: 'Cairo', sans-serif;
    border: none; cursor: pointer; font-size: 0.93rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 7px;
    transition: all 0.22s;
    box-shadow: 0 3px 12px rgba(26,92,58,0.2);
}
.btn-primary-admin:hover { opacity: 0.9; transform: translateY(-1px); color: var(--white); box-shadow: 0 6px 18px rgba(26,92,58,0.3); }

/* FORM ADMIN */
.form-admin label { font-weight: 700; color: var(--text-dark); margin-bottom: 7px; display: block; font-size: 0.93rem; }
.form-admin input,
.form-admin textarea,
.form-admin select {
    border: 2px solid #d0e4d8;
    border-radius: 10px;
    padding: 11px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.22s;
    background: var(--white);
    color: var(--text-dark);
}
.form-admin input:focus,
.form-admin textarea:focus,
.form-admin select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,92,58,0.1);
}

/* PRODUCT IMAGE ADMIN */
.product-admin-img {
    width: 62px; height: 62px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--cream-dark);
}

.img-preview-wrap {
    width: 120px; height: 120px;
    border-radius: 12px;
    background: var(--cream-dark);
    border: 2px dashed #9cc4aa;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-bottom: 10px;
}
.img-preview-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* STATUS SELECT */
.select-status {
    border: 2px solid #d0e4d8;
    border-radius: 8px;
    padding: 6px 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--white);
    color: var(--text-dark);
}
.select-status:focus { outline: none; border-color: var(--primary); }

/* ORDER DETAIL */
.order-detail-box { background: var(--cream); border-radius: var(--radius-sm); padding: 20px; border: 1px solid rgba(26,92,58,0.08); }
.order-detail-item { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(26,92,58,0.1); font-size: 0.93rem; }
.order-detail-item:last-child { border-bottom: none; }
.order-detail-label { font-weight: 700; color: var(--text-muted); }
.order-detail-value { font-weight: 600; color: var(--text-dark); }

/* MODAL ADMIN */
.modal-admin .modal-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); border-bottom: 3px solid var(--gold); }
.modal-admin .modal-title { font-weight: 900; }
.modal-admin .btn-close { filter: invert(1); }

/* RESPONSIVE */
@media (max-width: 991px) {
    .sweets-hero h1 { font-size: 2.2rem; }
    .hero-stats { gap: 24px; }
    .admin-sidebar { width: 220px; }
    .admin-content { margin-right: 220px; }
}

@media (max-width: 767px) {
    .sweets-hero { padding: 60px 0 50px; }
    .sweets-hero h1 { font-size: 1.9rem; }
    .hero-stats { gap: 20px; }
    .hero-stat-number { font-size: 1.4rem; }
    .floating-cart { bottom: 18px; left: 14px; }
    .floating-cart-btn { padding: 12px 20px; font-size: 0.9rem; }
    #products-section { padding: 50px 0; }
}

@media (max-width: 575px) {
    .admin-sidebar { display: none; }
    .admin-content { margin-right: 0; padding: 14px; }
}

/* ===== علامة واتساب مائية ===== */
.whatsapp-watermark {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 10px 16px 10px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: wa-pulse 2.5s infinite;
}
.whatsapp-watermark:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 28px rgba(37,211,102,0.55);
    color: #fff;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.75); }
}
@media (max-width: 767px) {
    .whatsapp-watermark { bottom: 80px; left: 12px; padding: 9px 14px 9px 12px; font-size: 0.82rem; }
}
