
/* ====== RESET بسيط ====== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Tahoma", Arial, sans-serif;
    direction: rtl;
    background-color: #f5f5f5;
    color: #111827;
}

/* ====== غلاف الصفحات ====== */
.page-shell {
    max-width: 1180px;
    margin: 20px auto 40px;
    padding: 0 12px;
}

/* ====== الهيدر ====== */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(15,23,42,0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* لوجو / اسم البراند */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffedd5, #f97316 55%, #9a3412 95%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #ffffff;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.brand-subtitle {
    margin: 2px 0 0;
    font-size: 11px;
    color: #6b7280;
}

/* شريط البحث في الهيدر (لو موجود في index.php) */
.header-search {
    flex: 1;
}

.header-search form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-search input[type="text"] {
    flex: 1;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    outline: none;
}

.header-search input[type="text"]:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249,115,22,0.15);
}

.header-search button {
    border-radius: 999px;
}

/* ====== الناف بار ====== */
.main-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 6px 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.main-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}

.main-nav a:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* سويتش اللغة */
.lang-switch {
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 11px;
    text-transform: uppercase;
    color: #4b5563;
    background-color: #ffffff;
}

.lang-switch.active {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

/* زر السلة في الهيدر */
.cart-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f97316;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.cart-pill span {
    display: inline-block;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    color: #f9fafb;
    font-size: 11px;
    line-height: 22px;
    text-align: center;
    margin-left: 6px;
}

/* ====== كروت عامة ====== */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 18px;
    box-shadow: 0 12px 26px rgba(15,23,42,0.06);
    border: 1px solid #e5e7eb;
}

/* ====== قسم الهيرو في الصفحة الرئيسية ====== */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin: 18px 0 24px;
}

.hero-text {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}

.hero-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.4;
    color: #111827;
}

.hero-highlight {
    color: #f97316;
    font-weight: 800;
}

.hero-subtitle {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.hero-badges {
    margin-top: 12px;
}

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    margin-left: 4px;
}

/* مربع الصورة في الهيرو */
.hero-image {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    background-color: #111827;
    background-image:
        linear-gradient(120deg, rgba(249,115,22,0.85), rgba(234,88,12,0.9)),
        url("asstes/hero-banner.jpg"); /* ضع هنا بنر منتجاتك */
    background-size: cover;
    background-position: center;
}

.hero-image::after {
    content: "منتجات مجمدة • جاهزة للطهي";
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: 12px;
    color: #fefce8;
    background: rgba(15,23,42,0.7);
    padding: 5px 10px;
    border-radius: 999px;
}

/* ====== العناوين ====== */
.section-title {
    margin: 0 0 12px;
    font-size: 18px;
    color: #111827;
}

/* ====== شبكة المنتجات ====== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.product-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 10px 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15,23,42,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #fecaca;
    box-shadow: 0 10px 22px rgba(248,113,113,0.18);
}

.product-card img {
    border-radius: 10px;
    max-width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 8px;
}

/* شارة فئة المنتج */
.product-category-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.cat-vegetable {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.cat-fruit {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #facc15;
}

.cat-other {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #111827;
}

.product-type {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 12px;
    color: #6b7280;
    min-height: 32px;
    margin-bottom: 6px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.price-tag {
    font-weight: 700;
    color: #b91c1c;
    font-size: 14px;
}

/* ====== الأزرار ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    background: #f97316;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s, background 0.12s;
}

.btn:hover {
    background: #ea580c;
    box-shadow: 0 6px 16px rgba(249,115,22,0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* ====== الجداول (السلة / لوحة الإدارة) ====== */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th, td {
    padding: 8px 10px;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

th {
    background: #f9fafb;
    color: #374151;
}

/* ====== فورمات عامة ====== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px 18px;
}

label {
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
    display: inline-block;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    outline: none;
    background-color: #ffffff;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249,115,22,0.18);
}

/* ====== صفحة من نحن ====== */
.about-body {
    line-height: 1.9;
    font-size: 14px;
    color: #374151;
}

.about-highlight {
    color: #f97316;
    font-weight: 700;
}

/* ====== رسالة النجاح في checkout ====== */
.success-message {
    text-align: center;
}

.success-message h2 {
    margin-top: 0;
    color: #16a34a;
}

/* ====== الفوتر ====== */
.main-footer {
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    margin: 18px 0;
}

/* ====== تنسيقات بسيطة للوحة الإدارة (dashboard / orders / theme) ====== */
.admin-container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 12px;
}

.admin-container h1 {
    font-size: 20px;
    margin-bottom: 10px;
}

.admin-container .card {
    margin-top: 10px;
}

/* ====== تجاوب الموبايل ====== */
@media (max-width: 768px) {
    .main-header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-image {
        order: -1;
        min-height: 180px;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav-links {
        justify-content: flex-start;
        overflow-x: auto;
    }
}



/* Hero Header */
.hero-header {
    position: relative;
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 900px;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-badges .badge {
    background: #f97316;
    padding: 8px 14px;
    border-radius: 20px;
    margin: 0 5px;
    font-size: 13px;
    color: #fff;
}