@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
:root{--bg:#071522;--surface:#0d2131;--surface2:#132c3e;--surface3:#18384d;--text:#f7fbff;--muted:#91a6b6;--primary:#21d99a;--primary-dark:#0eb77b;--accent:#6f7cff;--orange:#ff9d3d;--border:rgba(255,255,255,.09);--shadow:0 20px 55px rgba(0,0,0,.22);--radius:22px}
[data-theme="light"]{--bg:#f5f7fb;--surface:#fff;--surface2:#edf2f7;--surface3:#e5edf3;--text:#10202d;--muted:#657684;--border:#dfe6ec;--shadow:0 18px 45px rgba(33,54,73,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Cairo,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.app-header{height:76px;padding:0 26px;display:flex;align-items:center;gap:22px;position:sticky;top:0;z-index:100;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:10px;font-weight:800;white-space:nowrap}.brand b{color:var(--primary)}.brand-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),#5fe3ff);color:#05231a;font-size:22px}.header-search{max-width:580px;flex:1;margin-inline:auto;display:flex;background:var(--surface);border:1px solid var(--border);border-radius:15px;overflow:hidden}.header-search input{flex:1;padding:11px 15px;border:0;outline:0;background:transparent;color:var(--text)}.header-search button{width:48px;border:0;background:transparent;color:var(--muted);font-size:22px}.header-actions{display:flex;align-items:center;gap:9px}.icon-btn,.menu-button{width:42px;height:42px;border:1px solid var(--border);border-radius:13px;background:var(--surface);color:var(--text);cursor:pointer}.menu-button{display:none}.cart-pill,.account-pill{height:42px;padding:0 13px;border:1px solid var(--border);border-radius:13px;background:var(--surface);display:flex;align-items:center;gap:7px}.cart-pill span{min-width:20px;height:20px;border-radius:10px;background:var(--primary);color:#04271d;display:grid;place-items:center;font-size:11px;font-weight:800}.app-shell{display:grid;grid-template-columns:235px minmax(0,1fr);max-width:1600px;margin:auto}.sidebar{padding:24px 16px;border-left:1px solid var(--border);min-height:calc(100vh - 76px);position:sticky;top:76px;height:calc(100vh - 76px);display:flex;flex-direction:column}.sidebar-account{display:flex;align-items:center;gap:11px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:18px;margin-bottom:20px}.avatar{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--accent),#b56bff);display:grid;place-items:center;font-weight:800}.sidebar-account strong,.sidebar-account small{display:block}.sidebar-account small{font-size:10px;color:var(--muted)}.side-nav{display:grid;gap:7px}.side-nav a{padding:12px 14px;border-radius:13px;color:var(--muted);display:flex;align-items:center;gap:12px;font-weight:600}.side-nav a:hover{background:var(--surface);color:var(--text)}.sidebar-footer{margin-top:auto}.sidebar-footer>a:not(.btn){color:var(--muted)}.main-content{min-width:0;width:min(1240px,calc(100% - 36px));margin:0 auto;padding-bottom:55px}.home-hero{margin-top:26px;padding:52px;min-height:450px;border-radius:32px;background:radial-gradient(circle at 85% 20%,rgba(33,217,154,.24),transparent 29%),radial-gradient(circle at 10% 100%,rgba(111,124,255,.22),transparent 35%),linear-gradient(135deg,#10293a,#0a1b29);display:grid;grid-template-columns:1.15fr .85fr;gap:45px;align-items:center;overflow:hidden;position:relative}.hero-copy{position:relative;z-index:2}.eyebrow,.section-kicker{font-size:13px;color:var(--primary);font-weight:800}.hero-copy h1{font-size:clamp(38px,4.5vw,68px);line-height:1.18;margin:12px 0 18px;max-width:760px}.hero-copy h1 em{font-style:normal;color:var(--primary)}.hero-copy p{font-size:17px;line-height:1.9;color:#aac0ce;max-width:650px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 21px;border:0;border-radius:13px;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#05271c;font-weight:800;cursor:pointer}.btn.ghost{background:rgba(255,255,255,.08);color:white;border:1px solid rgba(255,255,255,.12)}.btn.light{background:white;color:#142b39}.btn.small{padding:9px 15px}.trust-row{display:flex;gap:20px;flex-wrap:wrap;margin-top:26px;color:#a7bbc8;font-size:13px}.hero-dashboard{border:1px solid rgba(255,255,255,.12);border-radius:27px;background:rgba(7,21,34,.72);padding:24px;box-shadow:0 28px 70px rgba(0,0,0,.3);transform:rotate(-1.5deg)}.mini-top{display:flex;justify-content:space-between;align-items:center;padding-bottom:20px}.mini-top span{color:#9db2bf}.mini-top b{font-size:25px;color:var(--primary)}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.quick-grid a{min-height:92px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:27px}.quick-grid small{font-size:11px;color:#b8cad5;margin-top:5px}.live-order{margin-top:14px;border-radius:17px;padding:14px;background:rgba(33,217,154,.09);display:flex;align-items:center;gap:12px}.live-order small,.live-order strong{display:block}.live-order small{color:#92aab7}.pulse{width:12px;height:12px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 7px rgba(33,217,154,.12)}.search-section{margin:22px 0 5px}.service-search{display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);padding:7px 8px 7px 17px;border-radius:18px;box-shadow:var(--shadow)}.service-search>span{font-size:23px;color:var(--muted);padding:0 8px}.service-search input{flex:1;border:0;outline:0;background:transparent;color:var(--text);padding:10px}.popular-searches{display:flex;gap:12px;flex-wrap:wrap;padding:12px 6px;color:var(--muted);font-size:12px}.popular-searches a{color:var(--text)}.section{padding:36px 0}.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:19px}.section-head h2{font-size:29px;margin:3px 0 0}.text-link{font-size:13px;color:var(--primary)}.service-categories{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.service-category{min-height:145px;padding:20px;border-radius:22px;border:1px solid var(--border);background:var(--surface);display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;transition:.25s}.service-category:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.category-icon{width:62px;height:62px;border-radius:19px;display:grid;place-items:center;font-size:30px;background:var(--surface2)}.service-category strong{font-size:17px}.service-category p{font-size:12px;color:var(--muted);margin:5px 0 0}.arrow{color:var(--muted)}.category-1 .category-icon{background:rgba(111,124,255,.16)}.category-2 .category-icon{background:rgba(33,217,154,.14)}.category-3 .category-icon{background:rgba(255,157,61,.16)}.category-4 .category-icon{background:rgba(255,91,139,.15)}.category-5 .category-icon{background:rgba(60,198,255,.15)}.category-6 .category-icon{background:rgba(184,103,255,.15)}.promo-strip{padding:28px 34px;border-radius:25px;background:linear-gradient(120deg,#675af7,#8b69ff);display:flex;justify-content:space-between;align-items:center;gap:20px}.promo-strip span{font-size:12px}.promo-strip h3{font-size:25px;margin:3px 0}.promo-strip p{margin:0;color:#e5e1ff}.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.product-card{background:var(--surface);border:1px solid var(--border);border-radius:22px;overflow:hidden;transition:.25s}.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.product-visual{height:165px;display:grid;place-items:center;position:relative;background:linear-gradient(145deg,var(--surface2),var(--surface3))}.product-badge{position:absolute;top:12px;right:12px;font-size:10px;padding:5px 9px;border-radius:12px;background:rgba(0,0,0,.24)}.product-symbol{font-size:52px}.product-body{padding:17px}.product-body h3{font-size:16px;margin:0 0 5px}.product-body p{height:38px;overflow:hidden;font-size:11px;color:var(--muted);margin:0}.product-bottom{margin-top:14px;padding-top:13px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.product-bottom small,.product-bottom strong{display:block}.product-bottom small{font-size:9px;color:var(--muted)}.product-bottom strong{color:var(--primary)}.buy-button{padding:8px 15px;border-radius:11px;background:var(--primary);color:#06241a;font-size:12px;font-weight:800}.steps{padding:38px 0}.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.steps-grid article{position:relative;padding:26px;background:var(--surface);border:1px solid var(--border);border-radius:22px}.steps-grid b{position:absolute;left:19px;top:15px;color:var(--surface3);font-size:28px}.steps-grid article>span{width:48px;height:48px;border-radius:15px;background:var(--surface2);display:grid;place-items:center;font-size:21px}.steps-grid h3{margin:15px 0 5px}.steps-grid p{color:var(--muted);font-size:12px;margin:0}.site-footer{width:min(1240px,calc(100% - 36px));margin:0 auto 75px;padding:24px;border-top:1px solid var(--border);display:flex;justify-content:space-between;color:var(--muted)}.site-footer strong,.site-footer span{display:block}.mobile-nav{display:none}.sidebar-overlay{display:none}.alert{padding:13px 16px;border-radius:13px;margin:16px 0}.alert.success{background:rgba(33,217,154,.13);color:var(--primary)}.alert.error{background:rgba(255,91,105,.15);color:#ff8e99}.panel,.stat,.category{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:20px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{background:var(--bg);border:1px solid var(--border);border-radius:13px;color:var(--text);padding:12px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:13px;border-bottom:1px solid var(--border);text-align:right;white-space:nowrap}.auth-wrap{max-width:520px;margin:55px auto}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.admin-layout{display:grid;grid-template-columns:230px 1fr;gap:22px}.admin-side{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:14px;height:max-content}.admin-side a{display:block;padding:10px;border-radius:10px;color:var(--muted)}
@media(max-width:1100px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:150;right:0;top:0;height:100vh;width:280px;transform:translateX(105%);transition:.25s;background:var(--bg);border-left:1px solid var(--border)}.sidebar.open{transform:none}.sidebar-overlay.show{display:block;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:140}.menu-button{display:block}.home-hero{grid-template-columns:1fr .75fr;padding:38px}.service-categories{grid-template-columns:repeat(2,1fr)}.products-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.app-header{height:66px;padding:0 12px;gap:8px}.brand span:last-child,.header-search,.account-pill{display:none}.brand{margin-left:auto}.brand-mark{width:38px;height:38px}.header-actions{gap:6px}.icon-btn,.menu-button{width:38px;height:38px}.cart-pill{padding:0 9px;height:38px}.main-content{width:calc(100% - 24px)}.home-hero{margin-top:13px;padding:27px 20px;min-height:auto;border-radius:24px;grid-template-columns:1fr}.hero-copy h1{font-size:36px}.hero-copy p{font-size:14px}.hero-dashboard{display:none}.trust-row{gap:11px}.service-search .btn{padding:11px 14px}.popular-searches{overflow:auto;flex-wrap:nowrap;white-space:nowrap}.section{padding:27px 0}.section-head h2{font-size:23px}.service-categories{grid-template-columns:1fr 1fr;gap:10px}.service-category{min-height:140px;padding:15px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.service-category .arrow{display:none}.category-icon{width:49px;height:49px;font-size:23px}.service-category p{display:none}.promo-strip{padding:23px;display:block}.promo-strip .btn{margin-top:16px}.products-grid{grid-template-columns:repeat(2,1fr);gap:10px}.product-visual{height:125px}.product-body{padding:13px}.product-body p{display:none}.product-bottom{margin-top:10px}.product-bottom strong{font-size:12px}.buy-button{padding:7px 10px}.steps-grid{grid-template-columns:1fr}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:67px;padding-bottom:env(safe-area-inset-bottom);z-index:120;background:color-mix(in srgb,var(--bg) 94%,transparent);backdrop-filter:blur(16px);border-top:1px solid var(--border);justify-content:space-around}.mobile-nav a{min-width:55px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);font-size:19px}.mobile-nav small{font-size:9px}.mobile-cart{transform:translateY(-13px);width:54px;height:54px;border-radius:18px;background:var(--primary);color:#05271c!important;box-shadow:0 8px 22px rgba(33,217,154,.3)}.site-footer{margin-bottom:75px}.form-grid,.stats-grid{grid-template-columns:1fr}.admin-layout{grid-template-columns:1fr}}
@media(max-width:390px){.hero-copy h1{font-size:31px}.service-categories{grid-template-columns:1fr}.service-category{min-height:92px;flex-direction:row;align-items:center}.products-grid{grid-template-columns:1fr 1fr}}


/* Uploaded product and category images */
.product-image{height:165px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(145deg,var(--surface2),var(--surface3));font-size:52px}
.product-photo{width:100%;height:100%;display:block;object-fit:cover}
.product-visual>.product-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.product-visual .product-badge{z-index:2}
.category-icon{overflow:hidden}
.category-photo{width:100%;height:100%;display:block;object-fit:cover}
.admin-image-preview{width:170px;height:110px;border-radius:16px;overflow:hidden;border:1px solid var(--border);background:var(--surface2)}
.admin-image-preview img{width:100%;height:100%;object-fit:cover}
.table-thumb{width:58px;height:45px;border-radius:10px;overflow:hidden;background:var(--surface2);display:flex;align-items:center;justify-content:center;font-size:24px}
.table-thumb img{width:100%;height:100%;object-fit:cover}
.field small{color:var(--muted);font-size:11px}
@media(max-width:760px){.product-image{height:125px}.admin-image-preview{width:140px;height:90px}}

/* ===== HB Store simplified mobile-first storefront ===== */
.simple-header{max-width:100%;background:color-mix(in srgb,var(--surface) 96%,transparent);box-shadow:0 1px 0 var(--border);justify-content:space-between}
.simple-header .brand{margin:0 auto}.brand-mark{overflow:hidden;background:transparent;border-radius:50%}.brand-mark img{width:100%;height:100%;object-fit:cover;display:block}.brand-text{display:inline-flex!important;gap:4px;font-size:18px}.account-icon,.login-link{min-width:40px;height:40px;border:1px solid var(--border);border-radius:12px;display:grid;place-items:center;background:var(--surface)}
.simple-store{padding-top:12px}.visual-banner{min-height:340px;border-radius:26px;position:relative;overflow:hidden;padding:38px;background:linear-gradient(150deg,#191a55,#2c327b 58%,#7047eb);display:flex;align-items:center;color:#fff}.visual-banner:after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;left:-80px;bottom:-120px;background:rgba(42,216,159,.28)}.banner-content{position:relative;z-index:2;max-width:580px}.banner-content>span{color:#2ad99f;font-size:12px;font-weight:800}.banner-content h1{font-size:clamp(32px,6vw,58px);line-height:1.25;margin:12px 0}.banner-content p{color:#d5d9f5;line-height:1.9}.banner-button{display:inline-flex;margin-top:16px;padding:12px 25px;border-radius:14px;background:#2ad99f;color:#082b21;font-weight:800}.compact-search{margin-top:18px}.simple-title span{color:var(--primary);font-size:12px;font-weight:800}.simple-title h1,.simple-title h2{margin:4px 0 18px;font-size:27px}.row-title{display:flex;justify-content:space-between;align-items:end}.row-title>a{font-size:12px;color:var(--primary)}
.category-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.category-tile{background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:13px;text-align:center;min-height:156px;display:flex;flex-direction:column;justify-content:center;gap:10px}.category-tile-image{height:160px;border-radius:17px;overflow:hidden;background:var(--surface2);display:grid;place-items:center;font-size:34px}.category-tile-image img{width:100%;height:100%;object-fit:cover}.category-tile strong{font-size:14px}
.ad-text-strip{margin:6px 0 20px;padding:30px;border-radius:24px;background:linear-gradient(135deg,#7047eb,#8e62ff);color:#fff;position:relative;overflow:hidden}.ad-text-strip small{opacity:.8}.ad-text-strip h3{font-size:26px;margin:5px 0}.ad-text-strip p{margin:0 0 18px;color:#e8e0ff}.ad-text-strip a{background:white;color:#321b80;padding:10px 20px;border-radius:12px;font-weight:800;display:inline-flex}
.simple-products{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.simple-product{background:var(--surface);border:1px solid var(--border);border-radius:22px;overflow:hidden}.simple-product-image{height:185px;position:relative;display:grid;place-items:center;background:var(--surface2);overflow:hidden}.simple-product-image>.product-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.missing-image{font-size:60px}.simple-product-body{padding:14px}.simple-product-body h3{font-size:15px;margin:0 0 14px;min-height:44px}.simple-product-foot{border-top:1px solid var(--border);padding-top:11px;display:flex;align-items:center;justify-content:space-between}.simple-product-foot strong{font-size:12px;color:var(--primary)}.simple-product-foot a{background:var(--primary);color:#063322;padding:8px 14px;border-radius:10px;font-size:12px;font-weight:800}.simple-product-foot>span{font-size:11px;color:#9a9fa8}.unavailable-cover{position:absolute;inset:0;background:rgba(24,29,42,.68);backdrop-filter:grayscale(1);display:grid;place-items:center;color:#fff;font-weight:800;z-index:3}.is-unavailable .simple-product-image{filter:grayscale(.65);opacity:.8}.store-filter{margin-bottom:22px}.store-filter select{border:0;background:transparent;color:var(--text);max-width:170px}.direct-product{margin:25px 0;background:var(--surface);border:1px solid var(--border);border-radius:26px;padding:22px;display:grid;grid-template-columns:minmax(260px,.8fr) 1.2fr;gap:26px}.direct-product-image{height:390px;border-radius:20px;overflow:hidden;background:var(--surface2);position:relative;display:grid;place-items:center}.direct-product-image img{width:100%;height:100%;object-fit:cover}.direct-product-info h1{font-size:30px}.direct-order-form{display:grid;gap:13px;margin-top:20px}.unavailable-message{padding:16px;border-radius:14px;background:rgba(255,90,100,.12);color:#ef6570;margin-top:20px}
.mobile-main{transform:translateY(-12px);width:55px;height:55px!important;border-radius:18px;background:var(--primary);color:#063322!important;box-shadow:0 8px 24px rgba(33,217,154,.35)}
@media(max-width:900px){.category-tiles,.simple-products{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.simple-header{padding:0 12px}.simple-header .brand{margin:0 auto}.brand-text{display:inline-flex!important;font-size:15px}.brand-mark{width:36px;height:36px}.simple-store{width:calc(100% - 22px)}.visual-banner{min-height:315px;padding:27px 20px;border-radius:22px}.banner-content h1{font-size:36px}.banner-content p{font-size:13px}.category-tiles{grid-template-columns:repeat(2,1fr);gap:10px}.category-tile{min-height:135px;padding:10px}.category-tile-image{height:120px}.simple-products{grid-template-columns:repeat(2,1fr);gap:9px}.simple-product-image{height:145px}.simple-product-body{padding:11px}.simple-product-body h3{font-size:13px;min-height:39px}.simple-product-foot strong{font-size:10px}.simple-product-foot a{padding:7px 11px}.ad-text-strip{padding:24px 20px}.ad-text-strip h3{font-size:22px}.direct-product{grid-template-columns:1fr;padding:14px}.direct-product-image{height:300px}.site-footer{display:none}}

/* =========================================================
   إعلانات الصفحة الرئيسية المرتبطة بقاعدة البيانات
   ========================================================= */

.db-image-slider{
    position:relative;
    width:100%;
    min-height:250px;
    margin-top:18px;
    border-radius:28px;
    overflow:hidden;
    background:var(--surface);
    box-shadow:var(--shadow);
}

.db-image-slides{
    position:relative;
    min-height:250px;
}

.db-image-slide{
    position:absolute;
    inset:0;
    display:block;
    opacity:0;
    visibility:hidden;
    transform:scale(1.025);
    transition:opacity .45s ease, transform .55s ease, visibility .45s;
    color:#fff;
}

.db-image-slide.active{
    opacity:1;
    visibility:visible;
    transform:scale(1);
    z-index:2;
}

.db-banner-photo,
.db-image-slide > img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.db-image-overlay{
    position:absolute;
    inset:0;
  
}

.db-image-content{
    position:relative;
    z-index:3;
    width:min(610px,82%);
    min-height:250px;
    padding:42px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
}

.db-image-badge{
    padding:7px 12px;
    border-radius:999px;
    background:rgba(33,217,154,.16);
    color:#35ebb0;
    font-size:12px;
    font-weight:800;
}

.db-image-content h2{
    margin:14px 0 8px;
    font-size:clamp(19px,2vw,30px);
    line-height:1.25;
}

.db-image-content p{
    margin:0;
    max-width:570px;
    line-height:1.9;
    color:#d7e1e8;
}

.db-image-button{
    margin-top:22px;
    display:inline-flex;
    padding:11px 20px;
    border-radius:13px;
    background:var(--primary);
    color:#05271c;
    font-weight:800;
}

.db-slider-arrow{
    position:absolute;
    top:50%;
    z-index:5;
    width:42px;
    height:42px;
    transform:translateY(-50%);
    border:1px solid rgba(255,255,255,.18);
    border-radius:50%;
    background:rgba(5,16,28,.55);
    color:#fff;
    font-size:28px;
    cursor:pointer;
}

.db-slider-arrow.prev{right:15px}
.db-slider-arrow.next{left:15px}

.db-slider-dots{
    position:absolute;
    z-index:6;
    right:50%;
    bottom:16px;
    transform:translateX(50%);
    display:flex;
    gap:7px;
}

.db-slider-dots button{
    width:8px;
    height:8px;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.45);
    cursor:pointer;
}

.db-slider-dots button.active{
    width:24px;
    border-radius:10px;
    background:var(--primary);
}

.db-text-announcements{
    margin:14px 0 5px;
    min-height:48px;
    display:flex;
    align-items:center;
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:15px;
    background:var(--surface);
}

.db-text-label{
    align-self:stretch;
    flex:0 0 auto;
    padding:0 16px;
    display:flex;
    align-items:center;
    background:var(--primary);
    color:#05271c;
    font-size:12px;
    font-weight:800;
}

.db-text-track-wrap{
    flex:1;
    min-width:0;
    overflow:hidden;
}

.db-text-track{
    width:max-content;
    min-width:100%;
    display:flex;
    align-items:center;
    animation:hbAnnouncements 24s linear infinite;
}

.db-text-track:hover{
    animation-play-state:paused;
}

.db-text-item{
    min-width:max-content;
    padding:10px 22px;
    display:flex;
    align-items:center;
    gap:9px;
    color:var(--text);
    font-size:12px;
    border-left:1px solid var(--border);
}

.db-text-item > span:not(.db-text-badge){
    color:var(--muted);
}

.db-text-badge{
    padding:3px 8px;
    border-radius:999px;
    background:var(--surface2);
    color:var(--primary);
    font-size:10px;
}

@keyframes hbAnnouncements{
    from{transform:translateX(0)}
    to{transform:translateX(50%)}
}

@media(max-width:760px){
    .db-image-slider,
    .db-image-slides{
        min-height:200px;
        border-radius:22px;
    }

    .db-image-content{
        width:88%;
        min-height:200px;
        padding:25px 20px;
    }

    .db-image-content h2{
        font-size:19px;
    }

    .db-image-content p{
        max-height:55px;
        overflow:hidden;
        font-size:12px;
    }

    .db-image-button{
        margin-top:14px;
        padding:9px 15px;
        font-size:12px;
    }

    .db-slider-arrow{
        display:none;
    }

    .db-text-announcements{
        min-height:44px;
    }

    .db-text-label{
        padding:0 11px;
    }

    .db-text-item{
        padding:9px 15px;
    }
}


/* =========================================================
   صفحة منتجات القسم - تصميم بسيط مثل تطبيقات الخدمات
   ========================================================= */

.category-products-page{
    width:min(980px,calc(100% - 26px));
    margin:0 auto;
    padding:28px 0 95px;
}

.category-page-head{
    display:flex;
    align-items:flex-start;
    gap:15px;
    margin-bottom:22px;
}

.category-page-head > div{
    flex:1;
}

.category-page-kicker{
    display:block;
    margin-bottom:5px;
    color:var(--primary);
    font-size:12px;
    font-weight:800;
}

.category-page-head h1{
    margin:0;
    font-size:31px;
    line-height:1.3;
}

.category-page-head p{
    margin:7px 0 0;
    color:var(--muted);
    font-size:13px;
}

.back-button{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:grid;
    place-items:center;
    border:1px solid var(--border);
    border-radius:13px;
    background:var(--surface);
    font-size:24px;
    font-weight:800;
}

.category-search{
    height:54px;
    margin-bottom:28px;
    padding:5px 7px 5px 14px;
    display:flex;
    align-items:center;
    gap:8px;
    border:1px solid var(--border);
    border-radius:18px;
    background:var(--surface);
}

.category-search-icon{
    color:var(--muted);
    font-size:21px;
}

.category-search input{
    min-width:0;
    flex:1;
    padding:10px 4px;
    border:0;
    outline:0;
    background:transparent;
    color:var(--text);
}

.category-search button{
    height:42px;
    padding:0 20px;
    border:0;
    border-radius:13px;
    background:var(--primary);
    color:#05271c;
    font-weight:800;
    cursor:pointer;
}

.category-filter-row{
    margin:-17px 0 23px;
}

.category-filter-row select{
    width:100%;
    padding:12px 14px;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--surface);
    color:var(--text);
}

.category-products-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px 14px;
}

.category-product-card{
    min-width:0;
    text-align:center;
}

.category-product-link{
    width:100%;
    padding:0;
    border:0;
    background:transparent;
    color:inherit;
    display:block;
    cursor:pointer;
}

.category-product-image{
    position:relative;
    width:100%;
    aspect-ratio:1.45/1;
    overflow:hidden;
    border-radius:15px;
    background:var(--surface2);
    box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.category-product-photo,
.category-product-image > img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.category-missing-image{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    font-size:44px;
    font-weight:500;
}

.category-product-card h3{
    min-height:39px;
    margin:9px 2px 3px;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    font-size:12px;
    line-height:1.45;
    font-weight:800;
}

.category-product-price{
    display:block;
    color:var(--primary);
    font-size:11px;
    font-weight:800;
}

.product-unavailable .category-product-image img,
.product-unavailable .category-product-photo{
    filter:grayscale(1);
    opacity:.43;
}

.product-unavailable .category-product-image{
    background:#c9ced4;
}

.product-unavailable h3{
    color:var(--muted);
}

.unavailable-image-layer{
    position:absolute;
    inset:0;
    z-index:3;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:rgba(41,48,56,.42);
    color:#fff;
    text-shadow:0 1px 4px rgba(0,0,0,.35);
}

.unavailable-image-layer strong{
    font-size:14px;
}

.unavailable-image-layer small{
    margin-top:2px;
    font-size:10px;
}

.category-product-status{
    display:block;
    color:#8b949d;
    font-size:10px;
    font-weight:700;
}

.category-empty-state{
    padding:55px 20px;
    text-align:center;
    border:1px solid var(--border);
    border-radius:22px;
    background:var(--surface);
}

.category-empty-state > span{
    font-size:42px;
}

.category-empty-state h2{
    margin:8px 0 3px;
}

.category-empty-state p{
    margin:0;
    color:var(--muted);
}

/* نافذة المنتج غير المتوفر */

body.modal-open{
    overflow:hidden;
}

.unavailable-modal{
    position:fixed;
    inset:0;
    z-index:1000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.unavailable-modal.show{
    display:flex;
}

.unavailable-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(4,11,18,.70);
    backdrop-filter:blur(4px);
}

.unavailable-modal-box{
    position:relative;
    z-index:2;
    width:min(380px,100%);
    padding:30px 24px 24px;
    text-align:center;
    border:1px solid var(--border);
    border-radius:24px;
    background:var(--surface);
    box-shadow:0 30px 80px rgba(0,0,0,.32);
}

.unavailable-modal-close{
    position:absolute;
    top:11px;
    left:13px;
    width:33px;
    height:33px;
    border:0;
    border-radius:10px;
    background:var(--surface2);
    color:var(--text);
    font-size:20px;
    cursor:pointer;
}

.unavailable-modal-icon{
    width:58px;
    height:58px;
    margin:0 auto 13px;
    display:grid;
    place-items:center;
    border-radius:19px;
    background:rgba(255,157,61,.15);
    color:var(--orange);
    font-size:29px;
    font-weight:800;
}

.unavailable-modal-box h2{
    margin:0 0 7px;
}

.unavailable-modal-box p{
    margin:0;
    color:var(--muted);
    line-height:1.8;
    font-size:13px;
}

.unavailable-modal-button{
    width:100%;
    margin-top:20px;
    padding:11px 18px;
    border:0;
    border-radius:13px;
    background:var(--primary);
    color:#05271c;
    font-weight:800;
    cursor:pointer;
}

@media(max-width:900px){
    .category-products-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:620px){
    .category-products-page{
        width:calc(100% - 24px);
        padding-top:22px;
    }

    .category-page-head h1{
        font-size:25px;
    }

    .category-products-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:20px 9px;
    }

    .category-product-image{
        border-radius:11px;
        aspect-ratio:1.35/1;
    }

    .category-product-card h3{
        min-height:34px;
        margin-top:7px;
        font-size:10px;
    }

    .category-product-price{
        font-size:9px;
    }

    .category-search{
        height:48px;
        margin-bottom:25px;
        border-radius:16px;
    }

    .category-search button{
        height:38px;
        padding:0 15px;
    }
}

@media(max-width:390px){
    .category-products-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:18px 7px;
    }

    .category-product-card h3{
        font-size:9px;
    }

    .unavailable-image-layer strong{
        font-size:11px;
    }
}

/* إضافات المجموعات */
.group-card .category-product-image{
    aspect-ratio:1.35/1;
}

.group-products-count{
    display:block;
    margin-top:2px;
    color:var(--muted);
    font-size:10px;
    font-weight:700;
}

.group-card h3{
    margin-bottom:0;
}