html { scroll-behavior: smooth; }
body {
    background: #fffaf3;
    color: #1f2937;
    font-family: 'Tajawal', system-ui, sans-serif;
}

:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-soft: #fff1e6;
    --text-dark: #111827;
    --card-border: rgba(249,115,22,.14);
}

.navbar {
    backdrop-filter: blur(10px);
}

.brand-text {
    color: var(--orange-dark) !important;
    font-size: 1.2rem;
}

.nav-pill {
    border-radius: 999px;
    padding: .55rem 1rem !important;
    color: #374151 !important;
}

.nav-pill:hover,
.nav-pill.active {
    background: var(--orange-soft);
    color: var(--orange-dark) !important;
}

.hero-wrap {
    background:
        radial-gradient(circle at top right, rgba(249,115,22,.18), transparent 28%),
        linear-gradient(180deg, #fff 0%, #fff8f0 100%);
    border-bottom: 1px solid rgba(249,115,22,.08);
}

.hero-copy { position: relative; z-index: 2; }
.hero-media { position: relative; }
.hero-media::before {
    content: '';
    position: absolute;
    inset: 20px 20px 35px 35px;
    border: 2px solid rgba(249,115,22,.14);
    border-radius: 28px;
    z-index: 0;
}
.hero-img, .hero-placeholder { position: relative; z-index: 1; }
.hero-placeholder {
    min-height: 420px;
    background: linear-gradient(145deg, #ffffff 0%, #fff3e8 100%);
    border: 1px dashed rgba(249,115,22,.22);
}

.badge-soft {
    background: var(--orange-soft);
    color: var(--orange-dark);
    border: 1px solid rgba(249,115,22,.16);
    border-radius: 999px;
    padding: .55rem .9rem;
    font-weight: 700;
}

.card-soft, .stat-card {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(17,24,39,.05);
}

.product-card, .category-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}

.product-card:hover, .category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 46px rgba(17,24,39,.08);
    border-color: rgba(249,115,22,.28);
}

.product-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.badge-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(17,24,39,.84);
    color: #fff;
    border-radius: 999px;
    padding: .45rem .8rem;
}

.tiny-label {
    display: inline-block;
    color: var(--orange-dark);
    background: var(--orange-soft);
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 700;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: .25rem;
}
.price-value, .price-value-lg {
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: .2px;
}
.price-value { font-size: 1.05rem; }
.price-value-lg { font-size: 2rem; }
.price-currency, .price-currency-lg {
    color: #6b7280;
    font-weight: 700;
}
.price-currency-lg { font-size: 1rem; }
.price-hero {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    margin-bottom: 1rem;
}

.btn-orange {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border: 0;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(249,115,22,.22);
}
.btn-orange:hover {
    background: linear-gradient(135deg, var(--orange-dark) 0%, #c2410c 100%);
    color: #fff !important;
}
.btn-outline-orange {
    border: 1px solid rgba(249,115,22,.35);
    color: var(--orange-dark);
    background: #fff;
}
.btn-outline-orange:hover {
    background: var(--orange-soft);
    color: var(--orange-dark);
}
.text-orange { color: var(--orange-dark); }
.fw-black { font-weight: 800; }

.whatsapp-float {
    position: fixed;
    left: 18px;
    bottom: 18px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 12px 20px rgba(0,0,0,.15);
    z-index: 999;
}

.footer-clean { color: #374151; }
.section-head, .page-head { position: relative; }
.section-head::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    margin-top: .75rem;
}

.search-bar .form-control, .form-control {
    border-radius: 18px;
    border-color: rgba(249,115,22,.18);
    box-shadow: none !important;
}
.form-control:focus {
    border-color: rgba(249,115,22,.45);
    box-shadow: 0 0 0 .2rem rgba(249,115,22,.12) !important;
}

.info-list > div {
    padding: .65rem .85rem;
    background: #fffaf5;
    border: 1px solid rgba(249,115,22,.12);
    border-radius: 14px;
    margin-bottom: .5rem;
}

.admin-body {
    background: linear-gradient(180deg, #fff 0%, #fff7ef 100%);
    color: #1f2937;
    font-family: 'Tajawal', system-ui, sans-serif;
}
.admin-shell { min-height: 100vh; }
.admin-sidebar {
    width: 280px;
    min-height: 100vh;
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: #fff;
    position: sticky;
    top: 0;
}
.brand-box {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.04);
}
.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange) 0%, #fb923c 100%);
    box-shadow: 0 0 0 6px rgba(249,115,22,.18);
}
.admin-link {
    display: block;
    color: #e5e7eb;
    text-decoration: none;
    padding: .9rem 1rem;
    border-radius: 14px;
    margin-bottom: .55rem;
    background: rgba(255,255,255,.04);
    transition: .2s ease;
}
.admin-link:hover {
    background: rgba(249,115,22,.2);
    color: #fff;
}
.admin-main {
    background: linear-gradient(180deg, #fff 0%, #fffdf9 100%);
    color: #111827;
    min-height: 100vh;
}
.table thead th { white-space: nowrap; }
.preview-img { max-width: 150px; width: 100%; object-fit: cover; }

@media (max-width: 991px) {
    .admin-sidebar { width: 100%; min-height: auto; position: static; }
    .admin-shell { flex-direction: column; }
    .hero-placeholder { min-height: 300px; }
}
