/* طبقة فوق التصميم الأصلي: عرض الشاشة كاملًا، تجاوب، ونِسب ذهبية على الهاتف */
[hidden]{display:none!important}
html{scroll-behavior:auto;-webkit-text-size-adjust:100%}
body{overflow-x:clip}
.skip-link{position:absolute;top:-60px;right:12px;z-index:2000;background:var(--ui-deep);color:#fff;padding:10px 16px;border-radius:8px}
.skip-link:focus{top:8px}
img.img-fallback{object-fit:contain!important;background:#fff;padding:12%}

/* ---------- full screen width ---------- */
.site-header,.announcement{padding-inline:var(--ui-gutter)!important}
.section,.hero,.vendor-cta{padding-inline:var(--ui-gutter)!important}
.section{max-width:none;width:auto}
.section-narrow{width:auto!important;max-width:none!important;margin-inline:0!important;padding-inline:var(--ui-gutter)!important}
.hero{grid-template-columns:minmax(0,1.618fr) minmax(0,1fr);gap:clamp(24px,4vw,72px);min-height:0;padding-block:clamp(32px,4vw,64px)!important}
.hero-content{max-width:none}
.search-box{max-width:none;width:100%;position:relative}
.home-highlight-grid{grid-template-columns:minmax(0,1.618fr) minmax(320px,1fr)}
.product-grid,.catalog-grid,#vendorProductsGrid,#relatedProducts,#globalProductResults{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:18px}
#productGrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:16px;overflow:visible}
.home-highlight-panel .product-card,.home-highlight-panel .product-card:nth-child(n+4){display:block;min-width:0}
.all-services,#allServices,#relatedServices,#globalServiceResults,#vendorServicesGrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))!important;gap:18px}
#vendorServicesGrid:not(:empty){margin-top:18px}
.vendors-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))!important}
.footer-top{grid-template-columns:1.618fr 1fr 1fr 1fr!important}
footer{padding-inline:var(--ui-gutter)!important}
.catalog-layout{grid-template-columns:260px minmax(0,1fr)!important}

/* ---------- header ---------- */
.site-header{display:flex;align-items:center;gap:14px;height:auto!important;min-height:72px;padding-block:8px!important}
.site-header>.brand img{height:50px}
.nav-category-trigger{flex:none;border:0;cursor:pointer}
.nav-global-search{position:relative;flex:1;max-width:none;min-width:0}
.nav-global-search>button{cursor:pointer}
.site-header .header-actions{margin:0;display:flex;align-items:center;gap:6px}
.site-header .icon-btn{position:relative;cursor:pointer}
.site-header .icon-btn .count,.nav-count{position:absolute;top:0;right:auto!important;left:0!important;width:auto!important;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--ui-danger);color:#fff;font-size:11px;font-style:normal;font-weight:600;line-height:1}
.account-wrap{position:relative}
.account-btn{display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 14px;border:1.5px solid var(--ui-line);border-radius:22px;background:#fff;color:var(--ui-deep);font-weight:600;font-size:14px;cursor:pointer}
.account-btn svg{width:20px;height:20px}
.account-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:40;width:250px;padding:6px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--ui-shadow)}
.account-menu a,.account-menu button{display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--ui-ink);font-size:14px;text-align:right;text-decoration:none;cursor:pointer}
.account-menu a:hover,.account-menu button:hover{background:var(--ui-bg)}
.account-menu svg{flex:none;width:18px;height:18px;color:var(--ui-accent)}
.account-menu .menu-primary{justify-content:center;margin-bottom:4px;background:var(--ui-deep);color:#fff;font-weight:600}
.menu-user{padding:8px 10px;margin-bottom:4px;border-bottom:1px solid var(--ui-line)}
.menu-user b{display:block;font-size:14.5px;color:var(--ui-deep)}
.menu-user small{color:var(--ui-muted);font-size:12.5px}

/* ---------- search suggestions ---------- */
.search-suggest{position:absolute;inset:calc(100% + 6px) 0 auto 0;z-index:60;max-height:min(70vh,460px);overflow:auto;padding:6px;background:#fff;border:1px solid var(--ui-line);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}
.search-suggest button{width:100%;display:flex;align-items:center;gap:10px;min-height:46px;height:auto;margin:0;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--ui-ink);font-size:14px;font-weight:400;text-align:right;cursor:pointer}
.search-suggest button:hover,.search-suggest button:focus-visible{background:var(--ui-accent-soft)}
.search-suggest button>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-suggest small{flex:none;color:var(--ui-muted);font-size:12px}
.search-suggest img{flex:none;width:36px;height:36px;object-fit:cover;border-radius:6px}
.search-suggest svg{flex:none;width:18px;height:18px;margin-inline:9px;color:var(--ui-accent)}
.search-suggest .suggest-all{justify-content:center;margin-top:4px;border-top:1px solid var(--ui-line);border-radius:0 0 8px 8px;color:var(--ui-accent);font-weight:600}

/* ---------- rail, chips and shared pieces ---------- */
.service-category-row .custom-icon{width:18px;height:18px}
.seg{display:inline-flex;gap:2px;padding:3px;border-radius:var(--ui-radius-sm);background:#e9eeec}
.seg button{min-height:40px;padding:0 18px;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);font-weight:500;font-size:14px;cursor:pointer}
.seg button.active{background:#fff;color:var(--ui-deep);font-weight:600;box-shadow:0 1px 3px rgba(18,63,70,.16)}
.market-heading{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:14px}
.product-image[data-product],.product-info h3[data-product]{cursor:pointer}
.full-service-card,.service-card{cursor:pointer}
.chat-mini{display:grid;place-items:center}
.cta-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 20px;border-radius:var(--ui-radius-sm);background:#fff;color:var(--ui-deep);font-weight:600;font-size:14.5px;text-decoration:none}
.cta-link svg{width:17px;height:17px}
.ghost-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 16px;border:1.5px solid var(--ui-line);border-radius:var(--ui-radius-sm);background:#fff;color:var(--ui-deep);font-weight:600;font-size:14px;cursor:pointer;text-decoration:none}
.ghost-btn svg{width:17px;height:17px}
.solid-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:0;border-radius:var(--ui-radius-sm);background:var(--ui-deep);color:#fff;font-weight:600;font-size:14.5px;text-decoration:none;cursor:pointer}
.empty-market{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:44px 16px;border:1px dashed var(--ui-line);border-radius:var(--ui-radius);background:#fff;text-align:center}
.empty-market svg{width:34px;height:34px;color:var(--ui-muted)}
.empty-market b{font-size:16px}
.empty-market span{color:var(--ui-muted);font-size:14px}
.tab-empty{margin:0;padding:18px 0;color:var(--ui-muted)}
.field{display:block;margin-top:12px}
.field>span{display:block;margin-bottom:5px;font-weight:600;font-size:14px;color:var(--ui-ink)}
.field input,.field textarea{width:100%;min-height:44px;padding:10px 12px;border:1.5px solid var(--ui-line);border-radius:var(--ui-radius-sm);background:#fff;font-size:15px;color:var(--ui-ink);resize:vertical}
.field input:focus,.field textarea:focus{border-color:var(--ui-accent);outline:0}
.shipping-hint{display:block;margin:-4px 0 6px;color:var(--ui-accent);font-size:13px}
.detail-gallery:has(.thumbs[hidden]){display:block!important}
.detail-gallery:has(.thumbs[hidden]) .detail-main-img{width:100%}
.detail-actions .primary-btn:disabled{background:#c3cdcb;cursor:not-allowed}
.booking-card .field{margin:14px 0 10px;text-align:right}

/* ---------- section banner ---------- */
.service-hero .section-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 10px;border-radius:14px;background:#fff;color:var(--ui-accent)}
.service-hero .section-icon svg{width:28px;height:28px}
.service-hero p{margin-inline:auto;max-width:720px}
.service-summary{margin-top:6px!important;font-size:14px}
.section-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}
#servicesView #allServices[hidden]{display:none!important}
.request-strip{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:21px;padding:16px 18px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-gold-soft)}
.request-strip b{display:block;font-size:15.5px;color:var(--ui-deep)}
.request-strip small{color:var(--ui-muted);font-size:13.5px}

/* ---------- drawer and search page ---------- */
.category-drawer{display:flex;flex-direction:column}
.category-drawer>header h2{color:#fff}
.category-tree{flex:1;overflow:auto}
.category-tree h3{margin:14px 6px 4px;color:var(--ui-muted);font-size:13px;font-weight:600}
.category-parent{min-height:48px;cursor:pointer}
.category-parent>span{flex:1;text-align:right}
.category-parent svg:first-child,.category-parent .custom-icon{flex:none;width:21px;height:21px;color:var(--ui-accent)}
.category-group.open .chevron{transform:rotate(180deg)}
.category-children button,.category-hits button{display:block;width:100%;min-height:42px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--ui-ink);font-size:14px;text-align:right;cursor:pointer}
.category-children button:hover,.category-hits button:hover{background:var(--ui-accent-soft)}
.category-children button:first-child{color:var(--ui-accent);font-weight:600}
.category-hits button{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf1f0;border-radius:0}
.category-hits small{flex:none;color:var(--ui-muted);font-size:12.5px}
.global-search-view{padding-bottom:36px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:24px var(--ui-gutter) 14px}
.page-head h1{margin:0;font-size:clamp(23px,3vw,30px);color:var(--ui-deep)}
.page-head h1 em{font-style:normal;color:var(--ui-accent)}
.page-head p{margin:2px 0 0;color:var(--ui-muted);font-size:14px}
.global-search-view .wrap{padding-inline:var(--ui-gutter)}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 14px}
.section-head h2{margin:0;font-size:clamp(19px,2.4vw,23px);color:var(--ui-deep)}
.chip-row{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px}
.chip-row button{flex:none;min-height:40px;padding:0 14px;border:1px solid var(--ui-line);border-radius:20px;background:#fff;color:var(--ui-ink);font-size:14px;cursor:pointer;white-space:nowrap}

/* ---------- request form ---------- */
#requestModal{align-items:center}
.request-card{width:min(520px,94vw);max-height:90vh;overflow:auto;padding:22px!important;border-radius:var(--ui-radius);background:#fff;position:relative}
.request-card h2{margin:0;font-size:20px;color:var(--ui-deep)}
.request-card p{margin:3px 0 0;color:var(--ui-muted);font-size:14px}
.request-card .primary-btn{width:100%;margin-top:14px}
.request-card .modal-close{position:absolute;top:10px;left:10px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--ui-bg);cursor:pointer}
.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mobile-bottom-nav button{cursor:pointer}
.mobile-bottom-nav .nav-count{top:4px;left:calc(50% - 22px)!important}

/* ---------- tablet ---------- */
@media (max-width:1100px){
  .hero{grid-template-columns:minmax(0,1fr) minmax(0,.618fr)}
  .home-highlight-grid{grid-template-columns:minmax(0,1fr)}
  .catalog-layout{grid-template-columns:minmax(0,1fr)!important}
  .footer-top{grid-template-columns:1fr 1fr!important}
  .account-btn span{display:none}
  .account-btn{width:44px;padding:0;justify-content:center;border:0}
  .nav-category-trigger span{display:none}
}

/* ---------- phone: golden ratio (φ = 1.618) ----------
   spacing follows Fibonacci: 8, 13, 21, 34, 55
   type steps by √φ: 15, 19, 24, 31
   image frames are golden rectangles, and splits are 61.8 / 38.2 */
@media (max-width:850px){
  :root{--phi-1:8px;--phi-2:13px;--phi-3:21px;--phi-4:34px;--phi-5:55px;--ui-gutter:13px}
  body{font-size:15px;padding-bottom:calc(var(--phi-5) + env(safe-area-inset-bottom))}
  .announcement{display:none}
  .site-header{position:sticky;top:-60px;display:grid!important;grid-template-columns:minmax(0,1.618fr) minmax(0,1fr);align-items:center;gap:var(--phi-1);min-height:0;padding-block:var(--phi-1)!important}
  .site-header>.brand{grid-column:1;grid-row:1}
  .site-header>.brand img{height:44px}
  .site-header .header-actions{grid-column:2;grid-row:1;justify-self:end}
  .site-header .cart-trigger,.site-header .account-wrap{display:none!important}
  .nav-category-trigger{grid-column:1/-1;grid-row:2;display:none!important}
  .nav-global-search{position:relative!important;inset:auto!important;grid-column:1/-1;grid-row:2;width:100%!important;height:44px;box-shadow:none!important}
  .nav-global-search>button{display:none}
  .nav-global-search input{font-size:16px}
  body.hero-search-visible .nav-global-search{display:none!important}
  body.hero-search-visible .site-header{top:0}
  .mobile-bottom-nav{display:grid!important;height:var(--phi-5)!important;grid-template-columns:repeat(5,1fr)}
  .mobile-bottom-nav button{font-size:12px}
          .hero{display:flex!important;flex-direction:column;gap:var(--phi-3);padding-block:var(--phi-3) var(--phi-4)!important}
  .hero-content h1{margin:var(--phi-1) 0;font-size:31px;line-height:1.272}
  .hero-content>p{margin:0 0 var(--phi-2);font-size:15px;line-height:1.618}
  .eyebrow{font-size:14px}
  .search-box{height:55px;margin:0}
  .search-box input{font-size:16px;min-width:0}
  .search-box>button{height:39px;padding:0 var(--phi-2);font-size:14px;white-space:nowrap}
  .popular-searches{margin-top:var(--phi-2);flex-wrap:wrap;gap:var(--phi-1)}
  .hero-visual{width:100%;min-height:0;margin:0}
  .hero-photo-wrap{width:100%;height:auto;aspect-ratio:1.618/1;margin:0}
  .hero-photo{width:100%;height:100%;object-fit:cover;border-radius:var(--phi-3)}
  .floating-card{transform:scale(.9)}
  .spark{display:none}
  .section{padding-block:var(--phi-4)!important}
  .section-heading{margin-bottom:var(--phi-3)}
  .section-heading h2,.section-title-row h2{font-size:24px;line-height:1.272}
  .type-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--phi-2)}
  .type-card{grid-template-columns:61.8% 38.2%;min-height:0;padding:0}
  .type-copy{padding:var(--phi-3) var(--phi-2)}
  .type-copy h3{margin:var(--phi-1) 0;font-size:19px;line-height:1.272}
  .type-copy p{display:none}
  .type-card>img{width:100%;height:100%;object-fit:cover;clip-path:none}
  .type-card .stat{display:none}
  .home-highlight-grid{gap:var(--phi-2)}
  .home-highlight-panel{padding:var(--phi-2)}
  .product-grid,.catalog-grid,#productGrid,#vendorProductsGrid,#relatedProducts,#globalProductResults{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--phi-2)!important}
  .product-card .product-image{aspect-ratio:1/1.272;height:auto!important}
  .product-card .product-image img{width:100%;height:100%;object-fit:cover}
  .product-info{padding:var(--phi-1) var(--phi-1) var(--phi-2)!important}
  .product-info h3{font-size:15px;line-height:1.272;white-space:normal}
  .product-system-row{flex-wrap:wrap}
  .product-system-row em,.ad-card-note{display:none}
  .price b{font-size:19px}
  .all-services,#allServices,#relatedServices,#globalServiceResults,#vendorServicesGrid,.vendors-grid{grid-template-columns:minmax(0,1fr)!important;gap:var(--phi-2)!important}
  .full-service-card .cover{aspect-ratio:1.618/1;height:auto!important}
  .full-service-card .cover img{width:100%;height:100%;object-fit:cover}
  .service-card{display:grid;grid-template-columns:38.2% minmax(0,1fr) auto;gap:var(--phi-2);align-items:center}
  .service-card>img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
  .catalog-hero{padding:var(--phi-4) var(--ui-gutter)!important}
  .catalog-hero h1,.market-heading h1{font-size:24px;line-height:1.272}
  .market-heading{padding-block:var(--phi-3)!important}
  .market-heading p{display:none}
  .market-options{display:block;padding-block:0!important}
  .market-option-group{margin-bottom:var(--phi-2);padding:var(--phi-2)}
  .market-option-group>div{display:flex;flex-wrap:wrap;gap:var(--phi-1)}
  .market-option-group button{min-height:40px;white-space:nowrap}
  .market-categories{padding-block:var(--phi-2)!important}
  .market-category-track{display:flex!important;overflow-x:auto;gap:var(--phi-1);padding-bottom:var(--phi-1);max-width:100%}
  .market-category-track>button{flex:0 0 38.2vw;min-width:0}
  .market-subcategories{display:flex;overflow-x:auto;gap:var(--phi-1)}
  .market-subcategories button{flex:none;white-space:nowrap}
  .featured-merchants{display:none}
  .service-category-row{display:flex;overflow-x:auto;flex-wrap:nowrap;gap:var(--phi-1);padding-bottom:var(--phi-1)}
  .service-category-row button{flex:none;white-space:nowrap}
  .catalog-toolbar{gap:var(--phi-1)}
  .vendor-cta{display:block;padding-block:var(--phi-4)!important}
  .cta-link{width:100%;justify-content:center}
  .detail-actions{position:sticky;bottom:calc(var(--phi-5) + var(--phi-1) + env(safe-area-inset-bottom));z-index:20;display:grid!important;grid-template-columns:minmax(0,1.618fr) minmax(0,1fr);gap:var(--phi-1);background:#fff;padding:var(--phi-1);border-radius:var(--phi-2);box-shadow:var(--ui-shadow)}
  .detail-actions button{width:100%;min-width:0;padding-inline:6px;white-space:nowrap}
  .detail-main-img{aspect-ratio:1/1;height:auto!important}
  .detail-main-img>img{width:100%;height:100%;object-fit:cover}
  .detail-breadcrumb span,.detail-breadcrumb svg:last-of-type{display:none}
  .footer-top{gap:var(--phi-3)!important}
  .footer-top>div:first-child{grid-column:1/-1}
  footer{padding-block:var(--phi-4) var(--phi-3)!important}
}


/* ---------- section features ---------- */
.section-features,.section-extras{margin-bottom:21px}
.section-features h2,.section-extras h2{margin:0 0 13px;font-size:clamp(19px,2vw,24px);font-weight:600;color:var(--ui-deep)}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:13px}
.feature-card{display:flex;align-items:flex-start;gap:13px;width:100%;padding:13px;border:1px solid var(--ui-line);border-radius:13px;background:#fff;color:var(--ui-ink);text-align:right;text-decoration:none;font:inherit}
a.feature-card,button.feature-card{cursor:pointer}
a.feature-card:hover,button.feature-card:hover{border-color:var(--ui-accent);box-shadow:var(--ui-shadow)}
.feature-icon{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--ui-accent-soft);color:var(--ui-accent);font-size:15px;font-weight:600}
.feature-icon svg{width:19px;height:19px}
.feature-text b{display:block;font-size:15px;font-weight:500;line-height:1.272;color:var(--ui-deep)}
.feature-text small{display:block;margin-top:5px;color:var(--ui-muted);font-size:13.5px;line-height:1.5}
.extra-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:13px}
.extra-card{overflow:hidden;border:1px solid var(--ui-line);border-radius:13px;background:#fff}
.extra-card img{display:block;width:100%;aspect-ratio:1.618/1;object-fit:cover}
.extra-card>div{padding:13px}
.extra-card h3{margin:0;font-size:15px;font-weight:500;line-height:1.272;color:var(--ui-ink)}
.extra-card small{display:block;margin-top:5px;color:var(--ui-muted);font-size:13px}
.extra-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding:0;background:transparent;color:inherit}
.extra-card footer b{font-size:15px;font-weight:600;color:var(--ui-deep)}
.extra-card footer a{color:var(--ui-accent);font-size:14px;font-weight:500;text-decoration:none}
.demo-tag{position:absolute;bottom:8px;left:8px;right:auto;z-index:2;padding:2px 8px;border-radius:6px;background:rgba(20,41,45,.78);color:#fff;font-size:12px;font-style:normal;font-weight:400}
.cover{position:relative}
.cover>.demo-tag{top:auto;left:auto}

/* ---------- lighter headings ---------- */
h1,h2,h3,h4{font-weight:600}
.hero-content h1,.catalog-hero h1,.market-heading h1{font-weight:600}

@media (max-width:850px){
  .eyebrow{display:none}
  .market-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--phi-1);padding-block:var(--phi-2)!important}
  .market-heading .kicker{display:none}
  .market-heading h1{margin:0;font-size:19px}
  .seg button{min-height:34px;padding:0 10px;font-size:13px}
  .market-options{padding-inline:var(--ui-gutter)!important}
  .market-option-group{margin:0 0 var(--phi-1)!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .market-option-group>b{display:none}
  .market-option-group>div{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .market-option-group>div::-webkit-scrollbar{display:none}
  .market-option-group button{flex:none;min-height:34px;font-size:13px}
  .market-section-title{margin-bottom:var(--phi-1)}
  .market-section-title span,.market-section-title small{display:none}
  .market-section-title h2{margin:0;font-size:19px}
  .market-category-track>button{flex-basis:38.2vw;padding:var(--phi-1)!important}
  .market-category-track>button>span{width:34px!important;height:34px!important}
  .market-category-track>button svg{width:18px;height:18px}
  .market-category-track>button b{font-size:13px;font-weight:500}
  .market-category-track>button small{font-size:12px}
  .price{flex-wrap:wrap}
  .hero-content h1{font-size:24px;font-weight:600;line-height:1.272;margin-top:0}
  .hero-content>p{font-size:14px}
  .section-heading h2,.section-title-row h2{font-size:19px}
  .catalog-hero h1,.market-heading h1{font-size:24px}
  .feature-grid,.extra-grid{grid-template-columns:minmax(0,1fr);gap:var(--phi-1)}
  .extra-card{display:grid;grid-template-columns:38.2% minmax(0,1fr)}
  .extra-card img{height:100%;aspect-ratio:auto}
  .extra-card:not(:has(img)){display:block}
  .catalog-hero{text-align:right}
  .service-hero .section-icon{margin-inline:0}
  .section-actions{justify-content:flex-start}
  .service-hero p{margin-inline:0}
  .catalog-hero h1,.catalog-hero span,.catalog-hero p{text-align:right;margin-inline:0}
  .catalog-hero p{line-height:1.618;font-size:14px}
  .service-hero{display:block}
  .service-category-row,.market-category-track,.market-subcategories,.chip-row{scrollbar-width:none}
  .service-category-row::-webkit-scrollbar,.market-category-track::-webkit-scrollbar,.market-subcategories::-webkit-scrollbar,.chip-row::-webkit-scrollbar{display:none}
  .section-actions .solid-btn,.section-actions .ghost-btn{flex:1 1 38.2%}
}
/* ---------- home: paths first ---------- */
.home-hero{display:block!important;min-height:0!important;padding-block:clamp(21px,3vw,34px)!important}
.home-hero .hero-content{max-width:none}
.home-hero h1{margin:0 0 8px;font-size:clamp(26px,3.4vw,40px);line-height:1.272}
.home-hero h1 em{white-space:nowrap}
.home-paths{padding-top:0!important;background:transparent!important}
.home-paths .type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px}
.home-paths .type-card h3{font-size:clamp(22px,2.4vw,30px)}
.featured-service{margin:0 var(--ui-gutter);padding:clamp(21px,3vw,34px)!important;border:1px solid #ead9b0;border-radius:21px;background:linear-gradient(135deg,#fdf6e6,#fff 61.8%)}
.featured-head{display:flex;align-items:flex-start;gap:21px}
.featured-icon{flex:none;display:grid;place-items:center;width:55px;height:55px;border-radius:15px;background:#fff;color:var(--ui-gold);box-shadow:0 6px 18px rgba(168,111,0,.12)}
.featured-icon svg{width:30px;height:30px}
.featured-head .kicker{color:var(--ui-gold)}
.featured-head h2{margin:4px 0 6px;font-size:clamp(21px,2.6vw,30px);color:var(--ui-deep)}
.featured-head p{margin:0;max-width:720px;color:var(--ui-muted);font-size:15px;line-height:1.618}
.featured-steps{list-style:none;counter-reset:step;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:21px 0 0;padding:0}
.featured-steps li{counter-increment:step;position:relative;padding:13px 13px 13px 13px;border-radius:13px;background:#fff;border:1px solid #f0e4c6}
.featured-steps li::before{content:counter(step);display:grid;place-items:center;width:26px;height:26px;margin-bottom:8px;border-radius:50%;background:var(--ui-gold-soft);color:var(--ui-gold);font-size:13px;font-weight:600}
.featured-steps b{display:block;font-size:15px;font-weight:500;color:var(--ui-deep)}
.featured-steps small{display:block;margin-top:4px;color:var(--ui-muted);font-size:13px;line-height:1.5}
.featured-actions{display:flex;flex-wrap:wrap;gap:13px;margin-top:21px}
.home-highlights{background:transparent}

/* ---------- sections list on browsing pages (desktop) ---------- */
.cat-sidebar{display:none}
@media (min-width:1200px){
  body.with-sidebar .site-body{display:grid;grid-template-columns:250px minmax(0,1fr);align-items:start}
  body.with-sidebar .cat-sidebar{display:block;position:sticky;top:96px;max-height:calc(100vh - 110px);overflow:auto;margin:21px 0 21px;margin-inline-start:var(--ui-gutter);padding:8px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:#fff;scrollbar-width:thin;scrollbar-color:#c9d3d1 transparent}
  body.with-sidebar .site-body>main{min-width:0}
}
.cat-sidebar nav{display:flex;flex-direction:column;gap:1px}
.cat-sidebar small{display:block;margin:13px 8px 4px;color:var(--ui-muted);font-size:12.5px;font-weight:500}
.cat-sidebar button{display:flex;align-items:center;gap:8px;width:100%;min-height:38px;padding:5px 8px;border:0;border-radius:8px;background:transparent;color:var(--ui-ink);font-size:13.5px;line-height:1.3;text-align:right;cursor:pointer}
.cat-sidebar button svg{flex:none;width:18px;height:18px;color:var(--ui-accent)}
.cat-sidebar button:hover{background:var(--ui-bg)}
.cat-sidebar button.active{background:var(--ui-accent-soft);color:var(--ui-deep);font-weight:500}
.cat-sidebar .side-path{font-size:14.5px;font-weight:500}
.side-loading{display:block;height:34px;margin:4px 0;border-radius:8px;background:linear-gradient(90deg,#eef2f0 25%,#f7f9f8 50%,#eef2f0 75%);background-size:200% 100%;animation:side-loading 1.2s linear infinite}
@keyframes side-loading{from{background-position:200% 0}to{background-position:-200% 0}}
/* one search box at a time on the home page */
@media (min-width:851px){body.hero-search-visible .nav-global-search{visibility:hidden}}

@media (max-width:1100px){.featured-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:850px){
  .home-hero{padding-block:var(--phi-3) var(--phi-2)!important}
  .home-hero h1{font-size:24px}
  .home-hero h1 em{white-space:normal}
  .home-paths{padding-block:var(--phi-1) var(--phi-3)!important}
  .home-paths .type-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--phi-1)}
  .home-paths .type-card{display:flex!important;flex-direction:column;min-height:0;padding:0}
  .home-paths .type-card>img{order:-1;width:100%;height:auto;aspect-ratio:1.618/1;object-fit:cover;clip-path:none}
  .home-paths .type-copy{padding:var(--phi-2) var(--phi-1)}
  .home-paths .type-icon{display:none}
  .home-paths .type-copy small{font-size:12px}
  .home-paths .type-card h3{margin:2px 0 4px;font-size:19px}
  .home-paths .type-copy p{display:block;font-size:12.5px;line-height:1.5;margin:0 0 var(--phi-1)}
  .home-paths .type-copy button{font-size:13px;padding:0}
  .featured-service{margin:0 var(--ui-gutter);padding:var(--phi-3) var(--phi-2)!important;border-radius:var(--phi-3)}
  .featured-head{gap:var(--phi-2)}
  .featured-icon{width:44px;height:44px;border-radius:var(--phi-2)}
  .featured-icon svg{width:24px;height:24px}
  .featured-head h2{font-size:19px}
  .featured-head p{font-size:14px}
  .featured-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--phi-1);margin-top:var(--phi-2)}
  .featured-steps li{padding:var(--phi-1)}
  .featured-steps b{font-size:14px}
  .featured-steps small{font-size:12.5px}
  .featured-actions{display:grid;grid-template-columns:minmax(0,1.618fr) minmax(0,1fr);gap:var(--phi-1);margin-top:var(--phi-2)}
  .featured-actions>*{width:100%;padding-inline:8px;white-space:nowrap}
  .vendor-cta h2{font-size:24px;line-height:1.272}
  .vendor-cta p{font-size:14px}
}
/* ---------- product category cards with artwork ---------- */
#marketCategories{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:13px;overflow:visible}
#marketCategories>button{display:flex!important;flex-direction:column;align-items:center;gap:6px;min-width:0;height:auto!important;padding:13px 8px 13px!important;border:1.5px solid transparent!important;border-radius:21px!important;background:#fff!important;box-shadow:0 4px 14px rgba(18,63,70,.07)!important;color:var(--ui-ink)!important;text-align:center;cursor:pointer;transition:border-color .15s,box-shadow .15s}
#marketCategories>button:hover{box-shadow:0 8px 22px rgba(18,63,70,.12)!important}
#marketCategories>button.active{border-color:var(--ui-accent)!important;box-shadow:0 0 0 3px var(--ui-accent-soft)!important}
#marketCategories>button b{font-size:15px;font-weight:600;line-height:1.272;color:var(--ui-ink)}
#marketCategories>button.active b{color:var(--ui-accent)}
#marketCategories>button small{font-size:13px;color:var(--ui-muted)}
@media (max-width:850px){
  #marketCategories{display:flex!important;overflow-x:auto;gap:var(--phi-1);padding:2px 2px var(--phi-1);scrollbar-width:none}
  #marketCategories::-webkit-scrollbar{display:none}
  #marketCategories>button{flex:0 0 34vw;padding:var(--phi-1)!important;border-radius:var(--phi-3)!important}
  #marketCategories>button b{font-size:13.5px}
  #marketCategories>button small{font-size:12px}
}
/* ---------- one category badge across the site ---------- */
.cat-badge{flex:none;display:inline-grid;place-items:center;overflow:hidden;border-radius:50%;background:#e6f2ef;color:var(--ui-accent);vertical-align:middle}
.cat-badge img{display:block;width:100%;height:100%;object-fit:cover}
.cat-badge-xs{width:22px;height:22px}.cat-badge-xs svg{width:13px;height:13px}
.cat-badge-sm{width:30px;height:30px}.cat-badge-sm svg{width:17px;height:17px}
.cat-badge-lg{width:110px;height:110px}.cat-badge-lg svg{width:42px;height:42px}
#marketCategories .cat-badge-lg{width:110px!important;height:110px!important;margin:0 0 4px!important;border-radius:50%!important;background:#e6f2ef!important}
.service-hero .section-icon{width:auto!important;height:auto!important;background:transparent!important;box-shadow:none}
.service-hero .section-icon .cat-badge-lg{width:72px;height:72px}
.service-hero .section-icon .cat-badge-lg svg{width:32px;height:32px}
.featured-icon{width:auto!important;height:auto!important;background:transparent!important;box-shadow:none!important}
.featured-icon .cat-badge-lg{width:64px;height:64px;background:#fff;color:var(--ui-gold)}
.featured-icon .cat-badge-lg svg{width:32px;height:32px}
.cat-sidebar button .cat-badge svg,.category-parent .cat-badge svg,.search-suggest .cat-badge svg{color:var(--ui-accent);margin:0}
.category-parent>.cat-badge{width:34px;height:34px}
.category-hits .cat-badge{display:none}
.service-category-row button .cat-badge{margin-inline-end:2px}
@media (max-width:850px){
  #marketCategories .cat-badge-lg{width:72px!important;height:72px!important}
  #marketCategories .cat-badge-lg svg{width:30px;height:30px}
  .service-hero .section-icon .cat-badge-lg{width:55px;height:55px}
  .featured-icon .cat-badge-lg{width:55px;height:55px}
}
/* badges keep their circle inside flex rows (rows give spans flex:1) */
.cat-badge{flex:none!important;display:inline-grid!important;place-items:center!important;aspect-ratio:1/1;padding:0!important;border-radius:50%!important}
.category-parent>.cat-badge,.cat-sidebar button>.cat-badge,.search-suggest button>.cat-badge{width:38px!important;height:38px!important}
.cat-sidebar button>.cat-badge{width:30px!important;height:30px!important}
.search-suggest button>.cat-badge{width:32px!important;height:32px!important}
.category-parent>.cat-badge svg{width:20px;height:20px}
/* "all sections" and the two paths use the brand petrol */
#marketCategories .cat-badge-general,.cat-badge-general{background:var(--ui-deep)!important;color:#fff!important}
.cat-badge-general svg,.cat-sidebar button .cat-badge-general svg,.category-parent .cat-badge-general svg{color:#fff!important}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- client notes round 6 ---------- */
/* home: breathing room between blocks; hero search dropdown above the path cards */
.home-hero{position:relative;z-index:20;overflow:visible!important}
.featured-service{margin-block:0 clamp(34px,4vw,55px)!important}
.home-highlights{padding-top:clamp(34px,4vw,55px)!important}
.home-highlights .section-title-row{margin-bottom:21px}
/* the side category list is gone; the header «الأقسام» drawer covers navigation */
.cat-sidebar,body.with-sidebar .cat-sidebar{display:none!important}
body.with-sidebar .site-body{display:block!important}
/* products page: one filter bar, results right under it */
#productMarketplace{padding-top:0!important}
.market-heading{padding-block:clamp(21px,2.5vw,34px) 8px!important}
.market-categories{padding-block:13px!important}
.catalog-results{padding-block:8px clamp(34px,4vw,55px)}
.market-filterbar{display:grid;gap:13px;margin:0 0 13px;padding:13px;border:1px solid var(--ui-line);border-radius:13px;background:#fff}
.filterbar-main{display:flex;align-items:center;gap:8px}
.filterbar-main .aside-search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:42px;margin:0;padding:0 13px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-bg)}
.filterbar-main .aside-search:focus-within{border-color:var(--ui-accent)}
.filterbar-main .aside-search input{flex:1;min-width:0;height:auto;padding:0;border:0;outline:0;background:transparent;font:inherit;font-size:14px}
.filterbar-main .aside-search svg{flex:none;width:18px;height:18px;color:var(--ui-muted)}
.filterbar-main select{height:42px;padding:0 13px;border:1px solid var(--ui-line);border-radius:10px;background:#fff;color:var(--ui-ink);font:inherit;font-size:14px}
.filter-reset{display:inline-flex;align-items:center;gap:6px;height:42px;padding:0 13px;border:0;border-radius:10px;background:transparent;color:var(--ui-accent);font:inherit;font-size:13.5px;font-weight:500;white-space:nowrap;cursor:pointer}
.filter-reset:hover{background:var(--ui-accent-soft)}
.filter-reset svg{width:16px;height:16px}
.filterbar-groups{display:flex;flex-wrap:wrap;align-items:center;gap:8px 21px}
.filter-group{display:flex;align-items:center;gap:8px}
.filter-group>b{color:var(--ui-muted);font-size:13px;font-weight:500;white-space:nowrap}
.filter-pills{display:flex;gap:4px}
.filter-pills button,.filter-pills label{position:relative;display:inline-flex!important;align-items:center;height:32px!important;min-height:0!important;margin:0!important;padding:0 12px!important;border:1px solid var(--ui-line)!important;border-radius:16px!important;background:#fff!important;color:var(--ui-ink)!important;box-shadow:none!important;font:inherit;font-size:13px!important;font-weight:400!important;white-space:nowrap;cursor:pointer}
.filter-pills button:hover,.filter-pills label:hover{border-color:var(--ui-accent)!important}
.filter-pills button.active,.filter-pills label:has(input:checked){background:var(--ui-deep)!important;border-color:var(--ui-deep)!important;color:#fff!important}
.filter-pills label input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.filter-pills label:focus-within{outline:2px solid var(--ui-accent);outline-offset:2px}
.catalog-results .catalog-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px;padding:0;border:0;background:none;color:var(--ui-muted);font-size:13.5px}
.featured-merchants{padding-block:0 clamp(34px,4vw,55px)!important}
@media (min-width:851px){
  #marketCategories{display:flex!important;gap:10px!important;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}
  #marketCategories>button{flex:1 1 96px;min-width:88px;gap:4px!important;padding:10px 4px!important}
  #marketCategories>button b{white-space:normal;text-align:center}
  .market-filterbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 21px}
  .filterbar-main,.filterbar-groups{display:contents}
  .filterbar-main .aside-search{order:0;flex:1 1 240px}
  .filter-group{order:1}
  .filterbar-main select{order:2;margin-inline-start:auto}
  .filter-reset{order:3}
  #marketCategories .cat-badge-lg{width:72px!important;height:72px!important}
  #marketCategories>button b{font-size:13.5px;font-weight:500}
  #marketCategories>button small{font-size:12px}
}
/* pagination (products, services, stores) */
.pager{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;grid-column:1/-1;margin:34px 0 8px}
.pager button{display:inline-grid;place-items:center;min-width:40px;height:40px;padding:0 10px;border:1px solid var(--ui-line);border-radius:10px;background:#fff;color:var(--ui-ink);font:inherit;font-size:14px;cursor:pointer}
.pager button:hover:not(:disabled){border-color:var(--ui-accent);color:var(--ui-accent)}
.pager button.active{background:var(--ui-deep);border-color:var(--ui-deep);color:#fff;font-weight:600}
.pager button:disabled{opacity:.4;cursor:default}
.pager span{padding:0 4px;color:var(--ui-muted)}
.pager svg{width:18px;height:18px}
.catalog-grid,#allServices,#vendorsGrid{scroll-margin-top:96px}
/* about: secondary action as a real button */
.about-actions{display:flex;flex-wrap:wrap;align-items:center;gap:13px}
.about-actions .strip-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border:1.5px solid var(--ui-deep);border-radius:12px;background:#fff;color:var(--ui-deep);font-size:15px;font-weight:600;text-decoration:none}
.about-actions .strip-btn:hover{background:var(--ui-accent-soft)}
@media (max-width:850px){
  .featured-service{margin-bottom:var(--phi-4)!important}
  .home-highlights{padding-top:var(--phi-4)!important}
  .market-filterbar{gap:var(--phi-2);padding:var(--phi-2);border-radius:var(--phi-2)}
  .filterbar-main{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .filterbar-main .aside-search{grid-column:1/-1}
  .filterbar-groups{flex-wrap:nowrap;overflow-x:auto;margin-inline:calc(var(--phi-2) * -1);padding-inline:var(--phi-2);scrollbar-width:none}
  .filterbar-groups::-webkit-scrollbar{display:none}
  .filter-group{flex:none}
  .pager{gap:4px;margin-top:var(--phi-4)}
  .pager button{min-width:36px;height:36px}
  .about-actions>*{flex:1 1 0}
}
/* header round buttons: icon dead-centre (the bell drifted right in RTL) */
.site-header .icon-btn{display:inline-grid!important;place-items:center!important;padding:0!important;justify-content:center}
.site-header .icon-btn>svg{grid-area:1/1;margin:0!important}
/* link-styled buttons should never look like raw links */
.cta-link,.strip-btn{text-decoration:none!important}
.home-paths{padding-top:clamp(13px,2vw,21px)!important}
@media (min-width:851px){
  #productGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #productGrid>:nth-child(n+4){display:none!important}
}
/* section icons as real photos */
.cat-badge.has-photo{background:#dfe9e6;box-shadow:inset 0 0 0 1px rgba(18,63,70,.08)}
.cat-badge.has-photo img,.search-suggest .cat-badge img{width:100%!important;height:100%!important;margin:0!important;border-radius:50%!important;object-fit:cover}
#marketCategories .cat-badge-lg.has-photo{box-shadow:0 4px 12px rgba(18,63,70,.14)}
.cat-badge-xs.has-photo{width:30px!important;height:30px!important}
/* page heads: no dead band between the title block and the content */
.catalog-hero{padding-block:clamp(21px,3vw,34px)!important}
.catalog-hero+.section{padding-top:21px!important}

/* ---------- client notes round 8 ---------- */
/* panels and dialogs sit above the sticky header (1100) and the phone tab bar (1200) */
.overlay{z-index:1300!important}
.chat-drawer{z-index:1350!important}
.modal{z-index:1500!important}
.checkout-success{z-index:1550!important}
/* toast: drops in from the top, under the header, easy to notice */
.toast{top:calc(env(safe-area-inset-top) + 88px)!important;bottom:auto!important;right:50%!important;left:auto!important;z-index:1600!important;transform:translate(50%,-24px)!important;max-width:min(92vw,520px);padding:14px 20px!important;border-radius:12px!important;font-size:14.5px!important;line-height:1.5;box-shadow:0 12px 32px rgba(7,28,26,.28)!important}
.toast.show{transform:translate(50%,0)!important}
.toast svg{flex:none;width:20px!important;height:20px}
@media (max-width:850px){.toast{top:calc(env(safe-area-inset-top) + 72px)!important}}
/* product page: badge on the right, heart on the left */
#pdBadge{right:15px!important;left:auto!important}
.detail-heart{left:15px!important;right:auto!important}
/* headings get room before their content */
.section-title-row,.related-section .section-title-row{margin-bottom:21px!important}
.related-section{padding-top:clamp(34px,4vw,55px)!important}
/* search results */
#searchView .page-head{padding-block:clamp(21px,3vw,34px) 13px!important}
#searchView .page-head p{margin-top:8px!important}
#searchView .chip-row{margin-bottom:21px!important}
.global-search-section{margin-bottom:clamp(34px,4vw,55px)}
.global-search-section .section-head{margin:0 0 21px!important}
