.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== المتغيرات العامة ===== */
:root {
    --teal: #158f88;
    --teal-dark: #0f6f6a;
    --teal-light: #e6f4f3;
    --pink: #e8395a;
    --pink-dark: #cc2547;
    --bg: #ffffff;
    --bg-alt: #f6f8f8;
    --text: #1f2a2a;
    --text-muted: #6b7876;
    --border: #e3e9e8;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(15, 40, 38, 0.06);
    --shadow-lg: 0 10px 30px rgba(15, 40, 38, 0.12);
    --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Cairo', 'Poppins', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

html[lang="en"] body { font-family: 'Poppins', 'Cairo', -apple-system, sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; }
.form-box-title { font-size: 1.17em; }
p { margin: 0 0 1em; }

.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 20px;
}

.section { padding: 56px 0; }
.section-bg { background: var(--bg-alt); }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 12px;
    flex-wrap: wrap;
}
.section-head h2 { font-size: 26px; margin: 0; }
.section-head .link-more { color: var(--teal); font-weight: 600; white-space: nowrap; }

/* ===== أزرار ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .18s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-accent { background: var(--pink); color: #fff; }
.btn-accent:hover { background: var(--pink-dark); }
.btn-outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ===== الهيدر ===== */
.top-bar {
    background: var(--teal-dark);
    color: #fff;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 7px;
    gap: 10px;
    flex-wrap: wrap;
}
.top-bar a { color: #fff; opacity: .92; }
.top-bar .top-info { display: flex; gap: 18px; flex-wrap: wrap; }
.top-bar .top-info span { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 600;
}
.lang-switch a.active { background: #fff; color: var(--teal-dark); }

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: var(--shadow);
}
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 10px;
    gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 56px; width: auto; }
.brand .brand-text { font-weight: 800; font-size: 18px; color: var(--teal-dark); display: none; }

.main-nav { display: flex; min-width: 0; }
.main-nav ul { display: flex; gap: 6px; flex-wrap: wrap; row-gap: 4px; }
.main-nav a {
    padding: 10px 12px;
    font-weight: 600;
    border-radius: 8px;
    color: var(--text);
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--teal); background: var(--teal-light); }

/* قائمة "الأقسام" المنسدلة بالهيدر */
.has-dropdown { position: relative; }
.has-dropdown.active-parent > .dropdown-toggle { color: var(--teal); background: var(--teal-light); }
.dropdown-toggle .caret { display: inline-block; font-size: 11px; margin-inline-start: 4px; transition: transform .2s ease; }
.has-dropdown.open .caret { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 230px;
    z-index: 200;
    flex-direction: column;
    gap: 2px;
}
.dropdown-menu li a { display: block; padding: 9px 12px; }
/* الأولوية هون مقصودة: ".main-nav ul" (بالأسفل) بتفرض display:flex على كل الـ ul جوا الهيدر بما فيها هاي، فلازم
   قاعدة الإخفاء والإظهار هون تكون أخص منها (main-nav + class إضافي) حتى تكسبها وتضبط ظهور القائمة فعلياً */
.main-nav .dropdown-menu { display: none; }
.main-nav .has-dropdown.open .dropdown-menu { display: flex; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; font-size: 22px; color: var(--text); }
.cart-badge {
    position: absolute;
    top: -8px;
    inset-inline-end: -10px;
    background: var(--pink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--teal-dark);
}
.search-mini { position: relative; display: flex; }
.search-mini input {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    width: 190px;
}
html[lang="ar"] .search-mini input { padding: 8px 14px 8px 36px; }
.search-mini button {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

/* ===== زر واتساب العائم ===== */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 999;
    background: #25D366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    font-size: 30px;
    transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float.hidden-for-nav { display: none; }

/* ===== إشعار "تمت الإضافة للسلة" ===== */
.add-cart-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--teal-dark);
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    white-space: nowrap;
}
.add-cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== الصفحة الرئيسية - هيرو ===== */
.hero {
    background: linear-gradient(135deg, var(--teal-light) 0%, #fff 60%);
    padding: 60px 0;
    overflow: hidden;
}
.hero .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero-text h1 { font-size: 38px; color: var(--teal-dark); max-width: 560px; }
.hero-text p { color: var(--text-muted); font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-visual {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    justify-content: center;
}
.hero-visual img { max-height: 400px; }

/* ===== سلايدر الصفحة الرئيسية ===== */
.hero-slider { position: relative; overflow: hidden; }
.hero-slides { position: relative; height: 460px; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--teal-light);
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
    display: flex;
    align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide.no-photo { background: linear-gradient(135deg, var(--teal-light) 0%, #fff 60%); }
.hero-slide.no-photo .hero-text h1 { color: var(--teal-dark); }
.hero-slide.no-photo .hero-text p { color: var(--text-muted); }
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,40,38,.85) 0%, rgba(15,40,38,.6) 55%, rgba(15,40,38,.2) 100%);
}
html[dir="rtl"] .hero-slide-overlay { background: linear-gradient(-90deg, rgba(15,40,38,.85) 0%, rgba(15,40,38,.6) 55%, rgba(15,40,38,.2) 100%); }
.hero-slide-inner { position: relative; z-index: 1; }
.hero-slide .hero-text h1 { color: #fff; }
.hero-slide .hero-text p { color: rgba(255,255,255,.88); }
.hero-dots {
    /* استخدام left الفيزيائي مع translateX هون مقصود: التوسيط بهاي الطريقة لازم يستخدم نفس المحور
       الفيزيائي بالاتجاهين، ولو استعملنا inset-inline-start (لوجيكال) بينعكس بـ RTL بينما translateX ما بينعكس،
       فبتضيع النقاط عن النص */
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0; transition: background .2s ease; }
.hero-dot.active { background: #fff; width: 26px; border-radius: 6px; }
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-arrow-prev { inset-inline-start: 16px; }
.hero-arrow-next { inset-inline-end: 16px; }

/* على السلايدات يلي ما إلها صورة (خلفية فاتحة)، الأسهم والنقاط البيضاء بتضيع؛ بنستخدم ألوان غامقة بدالها */
.hero-slider.light-slide .hero-arrow { background: rgba(21,143,136,.12); color: var(--teal-dark); }
.hero-slider.light-slide .hero-arrow:hover { background: rgba(21,143,136,.22); }
.hero-slider.light-slide .hero-dot { background: rgba(21,143,136,.35); }
.hero-slider.light-slide .hero-dot.active { background: var(--teal-dark); }
@media (max-width: 780px) {
    .hero-slides { height: 520px; }
    .hero-slide-overlay { background: linear-gradient(0deg, rgba(15,40,38,.88) 30%, rgba(15,40,38,.35) 100%); }
    .hero-arrow { display: none; }
    /* تثبيت محتوى السلايد لفوق بدل توسيطه، حتى ما تغطي أزرار السلايد فوق زر واتساب العائم بالزاوية */
    .hero-slide { align-items: flex-start; }
    .hero-slide-inner { padding-top: 50px; }
}

/* بطاقات الأقسام الرئيسية */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.section-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.section-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.section-card .icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 30px;
}
.section-card:nth-child(3) .icon { background: #fde7ea; color: var(--pink); }
.section-card h2 { font-size: 19px; margin: 1em 0; }
.section-card p { color: var(--text-muted); font-size: 14px; }

/* ===== شبكة المنتجات ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
    position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card .thumb {
    aspect-ratio: 1 / 1;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .brand-tag { font-size: 12px; color: var(--teal); font-weight: 700; text-transform: uppercase; }
.product-card h3 { font-size: 15px; margin: 0; min-height: 42px; }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--teal); }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.product-card .price { font-size: 18px; font-weight: 800; color: var(--teal-dark); }
.product-card .stock { font-size: 12px; }
.stock.in { color: #1a9c56; }
.stock.out { color: var(--pink-dark); }
.product-card .actions { display: flex; gap: 8px; margin-top: 10px; }
.product-card .actions form { flex: 1; }

/* ===== فلاتر ===== */
.page-head {
    background: var(--teal-light);
    padding: 34px 0;
    margin-bottom: 34px;
}
.page-head h1 { color: var(--teal-dark); font-size: 28px; margin: 0; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.breadcrumb a { color: var(--teal); }

.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky;
    top: 90px;
}
.filters-box .filter-label { font-size: 14px; text-transform: uppercase; color: var(--text-muted); margin: 16px 0 8px; }
.filters-box .filter-label:first-child { margin-top: 0; }
.filters-box select, .filters-box input[type="number"], .filters-box input[type="text"] {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
    background: #fff;
    font-family: inherit;
}

.results-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--text-muted); font-size: 14px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 50px; margin-bottom: 12px; }

/* ===== صفحة المنتج ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.product-gallery .main-image {
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-info h1 { font-size: 26px; }
.product-info .meta-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.product-info .price-block { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.product-info .price-block .price { font-size: 30px; font-weight: 800; color: var(--teal-dark); }
.product-info .info-list { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 10px; }
.product-info .info-list div { display: flex; gap: 8px; padding: 6px 0; font-size: 14px; }
.product-info .info-list b { min-width: 140px; color: var(--text-muted); font-weight: 600; }
.qty-select { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.qty-select input {
    width: 70px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-size: 15px;
}
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== السلة ===== */
.cart-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.cart-table th { text-align: start; padding: 10px; font-size: 13px; color: var(--text-muted); border-bottom: 2px solid var(--border); white-space: nowrap; }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.cart-product img { width: 60px; height: 60px; flex-shrink: 0; object-fit: contain; background: var(--bg-alt); border-radius: 8px; padding: 4px; }
.cart-product .name { font-weight: 600; font-size: 14px; }
.cart-qty-input { width: 60px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; text-align: center; }
.cart-summary {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 22px;
    margin-top: 20px;
    max-width: 380px;
    margin-inline-start: auto;
}
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-summary .row.total { font-weight: 800; font-size: 18px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.cart-actions-bar { display: flex; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; gap: 10px; }

/* ===== نماذج ===== */
.form-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--teal);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 13px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #e5f7ec; color: #1a7a44; border: 1px solid #b7e6c8; }
.alert-error { background: #fde8ea; color: var(--pink-dark); border: 1px solid #f7c3cb; }

/* ===== الخدمات (صيانة) ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.service-card .icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--teal-light); color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 14px;
}
.service-card h3 { font-size: 17px; }
.service-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ===== من نحن / تواصل ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.why-list { display: grid; gap: 14px; margin-top: 18px; }
.why-list li { display: flex; align-items: flex-start; gap: 10px; }
.why-list .check { color: var(--teal); font-weight: 800; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }
.info-cards { display: grid; gap: 14px; margin-top: 20px; }
.info-card { display: flex; gap: 14px; align-items: center; background: var(--bg-alt); padding: 16px; border-radius: 10px; }
.info-card .icon { font-size: 22px; color: var(--teal); }
.info-card b { display: block; font-size: 14px; }
.info-card span { font-size: 13px; color: var(--text-muted); }

/* ===== شريط الاشتراك بتنبيهات واتساب ===== */
.subscribe-band { background: var(--teal-dark); padding: 30px 0; }
.subscribe-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.subscribe-inner h2 { color: #fff; margin-bottom: 4px; font-size: 19px; }
.subscribe-inner p { color: #cfe6e3; margin: 0; font-size: 14px; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-form input {
    padding: 11px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    min-width: 240px;
    font-family: inherit;
}
.subscribe-msg { margin: 14px 0 0; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 8px; }
.subscribe-msg-ok { background: rgba(255,255,255,.12); color: #fff; }
.subscribe-msg-err { background: rgba(232,57,90,.18); color: #ffd9df; }

/* ===== الفوتر ===== */
.site-footer { background: #103331; color: #d7e6e4; padding: 0 0 0; margin-top: 60px; }
.site-footer > .container { padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 34px; }
.site-footer .brand img { height: 50px; }
.site-footer p { color: #9fb5b2; font-size: 14px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #b7cbc8; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 0 90px;
    text-align: center;
    font-size: 13px;
    color: #8ba5a2;
}
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
}

/* ===== Admin shared bits reused visually ===== */
.badge-status { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-pending { background: #fff3cd; color: #8a6500; }
.badge-processing, .badge-confirmed { background: #d7ecff; color: #0b5ed7; }
.badge-shipped { background: #e2d9f7; color: #6f2dbd; }
.badge-completed { background: #d7f5e3; color: #157347; }
.badge-cancelled { background: #fddede; color: #b91c1c; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .filters-box { position: static; }
    .product-detail { grid-template-columns: 1fr; gap: 26px; }
    .two-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sections-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .search-mini { display: none; }
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        inset-inline-start: 0;
        top: 0;
        height: 100%;
        width: 78%;
        max-width: 300px;
        background: #fff;
        box-shadow: var(--shadow-lg);
        transform: translateX(-105%);
        transition: transform .25s ease;
        padding: 20px;
        padding-bottom: 90px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 200;
    }
    html[dir="rtl"] .main-nav { transform: translateX(105%); }
    .main-nav.open, html[dir="rtl"] .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
    .main-nav a { display: block; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-inline-start: 14px;
        min-width: 0;
        width: 100%;
    }
    .dropdown-menu a { white-space: normal; }
    .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; }
    .nav-overlay.open { display: block; }
    .top-bar .top-info span:nth-child(2) { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .cart-summary { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .hero-text h1 { font-size: 28px; }
}
