:root{
  --nasr-gold:#fbb034;--nasr-gold-dark:#d88b08;--nasr-ink:#0f172a;--nasr-muted:#64748b;
  --nasr-line:#e2e8f0;--nasr-bg:#f8fafc;--nasr-white:#fff;--nasr-green:#16a34a;
  --shadow:0 18px 45px rgba(15,23,42,.09);--radius:18px;--max:1240px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.catalog-body{margin:0;background:var(--nasr-bg);color:var(--nasr-ink);font-family:Poppins,Arial,sans-serif;line-height:1.55}body[dir=rtl].catalog-body{font-family:Cairo,Tahoma,Arial,sans-serif}.catalog-body a{color:inherit}.catalog-shell{width:min(var(--max),calc(100% - 32px));margin:auto}.catalog-header{position:sticky;top:0;z-index:50;background:rgba(15,23,42,.96);backdrop-filter:blur(12px);box-shadow:0 5px 24px rgba(15,23,42,.14)}.catalog-nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.catalog-logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff;font-weight:800}.catalog-logo img{width:128px;height:auto;display:block;filter:brightness(0) invert(1)}.catalog-links{display:flex;align-items:center;gap:24px}.catalog-links a{text-decoration:none;color:#fff;font-size:.94rem;font-weight:600}.catalog-links a:hover,.catalog-links a[aria-current=page]{color:var(--nasr-gold)}.catalog-actions{display:flex;align-items:center;gap:10px}.catalog-lang,.catalog-cart-button{border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;text-decoration:none;border-radius:999px;padding:9px 13px;font-weight:700;cursor:pointer}.catalog-cart-button{position:relative}.catalog-cart-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;margin-inline-start:4px;border-radius:50%;background:var(--nasr-gold);color:#111;font-size:.75rem}.catalog-menu{display:none;border:0;background:transparent;color:white;font-size:1.5rem}.catalog-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#0f172a 0%,#172554 58%,#0f172a 100%);color:white;padding:76px 0 66px}.catalog-hero:after{content:"";position:absolute;inset:auto -100px -170px auto;width:420px;height:420px;border-radius:50%;background:rgba(251,176,52,.18)}.catalog-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);align-items:center;gap:48px}.catalog-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--nasr-gold);font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem}.catalog-hero h1{font-size:clamp(2.35rem,5vw,4.7rem);line-height:1.05;margin:14px 0 18px;max-width:850px}.catalog-hero p{max-width:720px;color:#dbeafe;font-size:1.08rem;margin:0}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}.btn-primary,.btn-secondary,.btn-whatsapp,.btn-dark{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:13px 19px;font-weight:800;text-decoration:none;border:0;cursor:pointer;font:inherit}.btn-primary{background:var(--nasr-gold);color:#111}.btn-primary:hover{background:#ffc45f}.btn-secondary{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);color:white}.btn-whatsapp{background:#22c55e;color:white}.btn-dark{background:var(--nasr-ink);color:white}.hero-proof{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);border-radius:24px;padding:25px;backdrop-filter:blur(8px)}.hero-proof h2{font-size:1.2rem;margin:0 0 16px}.hero-proof ul{list-style:none;padding:0;margin:0;display:grid;gap:13px}.hero-proof li{display:flex;gap:10px;align-items:flex-start;color:#e2e8f0}.hero-proof li:before{content:"✓";color:var(--nasr-gold);font-weight:900}.catalog-trust{background:white;border-bottom:1px solid var(--nasr-line)}.catalog-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}.trust-item{padding:20px 18px;text-align:center;border-inline-end:1px solid var(--nasr-line)}.trust-item:last-child{border:0}.trust-item strong{display:block;color:var(--nasr-ink);font-size:.95rem}.trust-item span{display:block;color:var(--nasr-muted);font-size:.82rem;margin-top:3px}.catalog-section{padding:56px 0}.catalog-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}.catalog-heading h2{font-size:clamp(1.7rem,3vw,2.5rem);margin:0}.catalog-heading p{margin:7px 0 0;color:var(--nasr-muted);max-width:720px}.catalog-toolbar{background:white;border:1px solid var(--nasr-line);border-radius:var(--radius);padding:16px;box-shadow:0 8px 30px rgba(15,23,42,.04);display:grid;grid-template-columns:minmax(260px,1.7fr) repeat(3,minmax(155px,.65fr));gap:12px;margin-bottom:24px}.field{position:relative}.field label{display:block;font-size:.78rem;font-weight:800;color:#475569;margin-bottom:6px}.field input,.field select,.quote-form input,.quote-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:11px;padding:12px 13px;background:white;color:var(--nasr-ink);font:inherit}.field input:focus,.field select:focus,.quote-form input:focus,.quote-form textarea:focus{outline:3px solid rgba(251,176,52,.2);border-color:var(--nasr-gold-dark)}.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:25px;align-items:start}.catalog-results-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px;color:var(--nasr-muted);font-size:.9rem}.products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{background:white;border:1px solid var(--nasr-line);border-radius:var(--radius);overflow:hidden;box-shadow:0 7px 26px rgba(15,23,42,.04);display:flex;flex-direction:column;min-width:0;transition:.25s}.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#f5cf8b}.product-card__image{display:flex;align-items:center;justify-content:center;height:205px;padding:18px;background:linear-gradient(180deg,#fff,#f8fafc);border-bottom:1px solid var(--nasr-line)}.product-card__image img{width:100%;height:100%;object-fit:contain}.product-card__body{padding:16px;display:flex;flex-direction:column;flex:1}.product-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.badge{display:inline-flex;border-radius:999px;background:#fff7e6;color:#8a5400;padding:4px 8px;font-size:.69rem;font-weight:800}.badge--muted{background:#eff6ff;color:#1e40af}.product-card h3{font-size:1rem;line-height:1.42;margin:0 0 9px;min-height:2.85em}.product-card h3 a{text-decoration:none}.product-card__sku{color:var(--nasr-muted);font-size:.78rem;margin-bottom:14px}.product-card__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}.product-card__actions a,.product-card__actions button{border-radius:9px;padding:10px 8px;font-size:.78rem;font-weight:800;text-decoration:none;text-align:center;border:1px solid var(--nasr-line);background:white;cursor:pointer}.product-card__actions .quote-add{grid-column:1/-1;background:var(--nasr-gold);border-color:var(--nasr-gold);color:#111}.product-card__actions .whatsapp-link{color:#087a36;border-color:#9ae6b4}.quote-panel{position:sticky;top:98px;background:white;border:1px solid var(--nasr-line);border-radius:var(--radius);padding:19px;box-shadow:0 10px 38px rgba(15,23,42,.06)}.quote-panel h2{font-size:1.2rem;margin:0}.quote-panel__lead{color:var(--nasr-muted);font-size:.83rem;margin:5px 0 16px}.quote-empty{padding:18px;border:1px dashed #cbd5e1;border-radius:12px;text-align:center;color:var(--nasr-muted);font-size:.85rem}.quote-list{display:grid;gap:10px;max-height:240px;overflow:auto;margin-bottom:14px}.quote-line{display:grid;grid-template-columns:1fr auto;gap:8px;border-bottom:1px solid #edf2f7;padding-bottom:9px}.quote-line strong{font-size:.78rem;line-height:1.35}.quote-line small{display:block;color:var(--nasr-muted)}.quote-line button{border:0;background:#fee2e2;color:#991b1b;width:27px;height:27px;border-radius:8px;cursor:pointer}.quote-form{display:grid;gap:10px}.quote-form textarea{min-height:78px;resize:vertical}.quote-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quote-form small{color:var(--nasr-muted)}.quote-status{display:none;padding:10px 12px;border-radius:10px;font-size:.82rem}.quote-status.is-success{display:block;background:#dcfce7;color:#166534}.quote-status.is-error{display:block;background:#fee2e2;color:#991b1b}.photo-id-box{margin-top:14px;padding:14px;border-radius:13px;background:#f0fdf4;border:1px solid #bbf7d0}.photo-id-box strong{display:block;font-size:.88rem}.photo-id-box p{font-size:.78rem;color:#476557;margin:4px 0 10px}.photo-id-box a{width:100%;font-size:.8rem}.pagination{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:28px;flex-wrap:wrap}.pagination button,.pagination a{min-width:39px;height:39px;border:1px solid var(--nasr-line);background:white;border-radius:9px;font-weight:800;cursor:pointer}.pagination .is-active{background:var(--nasr-ink);color:white;border-color:var(--nasr-ink)}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.category-card{background:white;border:1px solid var(--nasr-line);border-radius:16px;padding:22px;text-decoration:none;transition:.2s}.category-card:hover{border-color:var(--nasr-gold);transform:translateY(-3px);box-shadow:var(--shadow)}.category-card span{display:block;color:var(--nasr-gold-dark);font-size:.75rem;font-weight:900;text-transform:uppercase}.category-card h3{margin:7px 0 6px}.category-card p{margin:0;color:var(--nasr-muted);font-size:.86rem}.catalog-footer{background:#0f172a;color:white;padding:48px 0 22px;margin-top:50px}.footer-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:36px}.footer-brand img{width:150px;filter:brightness(0) invert(1)}.footer-brand p{color:#cbd5e1;max-width:520px}.footer-title{color:var(--nasr-gold);font-size:.9rem;text-transform:uppercase;letter-spacing:.06em}.footer-links{list-style:none;padding:0;display:grid;gap:9px}.footer-links a{text-decoration:none;color:#e2e8f0}.footer-bottom{border-top:1px solid rgba(255,255,255,.13);margin-top:30px;padding-top:18px;color:#94a3b8;font-size:.82rem;display:flex;justify-content:space-between;gap:12px}.floating-whatsapp{position:fixed;z-index:45;inset-inline-end:20px;bottom:20px;width:54px;height:54px;border-radius:50%;background:#22c55e;color:white;display:grid;place-items:center;text-decoration:none;box-shadow:0 13px 30px rgba(22,163,74,.35);font-weight:900}.mobile-quote-bar{display:none}.product-page-main{padding:46px 0}.breadcrumbs{font-size:.82rem;color:var(--nasr-muted);margin-bottom:22px}.breadcrumbs a{text-decoration:none}.product-detail{display:grid;grid-template-columns:minmax(340px,.9fr) minmax(0,1.1fr);gap:42px;background:white;border:1px solid var(--nasr-line);border-radius:24px;padding:30px;box-shadow:var(--shadow)}.product-detail__image{min-height:430px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border-radius:18px;padding:24px}.product-detail__image img{width:100%;height:100%;max-height:440px;object-fit:contain}.product-detail h1{font-size:clamp(1.8rem,3.4vw,3rem);line-height:1.2;margin:10px 0 14px}.product-detail__description{color:#475569;font-size:1rem}.product-specs{display:grid;grid-template-columns:repeat(2,1fr);margin:22px 0;border:1px solid var(--nasr-line);border-radius:14px;overflow:hidden}.product-spec{padding:12px 14px;border-bottom:1px solid var(--nasr-line)}.product-spec:nth-child(odd){border-inline-end:1px solid var(--nasr-line)}.product-spec strong{display:block;font-size:.72rem;color:var(--nasr-muted);text-transform:uppercase}.product-spec span{display:block;font-weight:800;margin-top:3px}.product-cta{display:flex;flex-wrap:wrap;gap:10px}.product-note{margin-top:16px;background:#fff7e6;border-inline-start:4px solid var(--nasr-gold);padding:12px 14px;border-radius:9px;color:#6b4a13;font-size:.86rem}.related-products{padding-top:44px}.related-products h2{font-size:1.8rem}.project-page-main{padding:42px 0}.project-hero-card{background:white;border:1px solid var(--nasr-line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}.project-cover{min-height:420px;background-size:cover;background-position:center;position:relative;display:flex;align-items:end}.project-cover:before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 20%,rgba(15,23,42,.92))}.project-cover__content{position:relative;color:white;padding:34px}.project-cover h1{font-size:clamp(2rem,5vw,4rem);margin:0}.project-cover p{margin:9px 0 0;color:#e2e8f0}.project-content{padding:30px;display:grid;grid-template-columns:1.4fr .6fr;gap:32px}.project-content p{color:#475569;white-space:pre-line}.project-facts{background:#f8fafc;border-radius:16px;padding:18px;height:max-content}.project-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px}.project-gallery a{display:block;border-radius:14px;overflow:hidden;background:#fff}.project-gallery img{width:100%;height:220px;object-fit:cover;display:block;transition:.2s}.project-gallery a:hover img{transform:scale(1.035)}
@media(max-width:1100px){.products-grid{grid-template-columns:repeat(2,1fr)}.catalog-toolbar{grid-template-columns:1fr 1fr}.catalog-layout{grid-template-columns:minmax(0,1fr) 300px}.catalog-hero-grid{grid-template-columns:1fr}.hero-proof{max-width:680px}.category-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.catalog-links{display:none;position:absolute;top:76px;inset-inline:0;background:#0f172a;padding:18px 24px;flex-direction:column;align-items:flex-start}.catalog-links.is-open{display:flex}.catalog-menu{display:block}.catalog-logo img{width:110px}.catalog-trust-grid{grid-template-columns:repeat(2,1fr)}.trust-item:nth-child(2){border-inline-end:0}.trust-item:nth-child(-n+2){border-bottom:1px solid var(--nasr-line)}.catalog-layout{grid-template-columns:1fr}.quote-panel{position:fixed;z-index:80;top:0;bottom:0;inset-inline-end:0;width:min(390px,94vw);border-radius:0;transform:translateX(110%);overflow:auto;transition:.25s}.quote-panel.is-open{transform:translateX(0)}body[dir=rtl] .quote-panel{transform:translateX(-110%)}body[dir=rtl] .quote-panel.is-open{transform:translateX(0)}.mobile-quote-bar{display:flex;position:fixed;z-index:44;bottom:0;inset-inline:0;background:white;border-top:1px solid var(--nasr-line);padding:10px 16px;justify-content:space-between;align-items:center;box-shadow:0 -8px 25px rgba(15,23,42,.08)}.mobile-quote-bar button{padding:11px 16px}.catalog-footer{padding-bottom:90px}.product-detail{grid-template-columns:1fr}.product-detail__image{min-height:330px}.project-content{grid-template-columns:1fr}.project-gallery{grid-template-columns:repeat(2,1fr)}}
@media(max-width:590px){.catalog-shell{width:min(100% - 20px,var(--max))}.catalog-hero{padding:54px 0 50px}.catalog-hero h1{font-size:2.25rem}.catalog-actions .catalog-lang{display:none}.catalog-trust-grid{grid-template-columns:1fr}.trust-item{border-inline-end:0;border-bottom:1px solid var(--nasr-line)!important}.catalog-toolbar{grid-template-columns:1fr}.products-grid,.category-grid{grid-template-columns:1fr}.product-card__image{height:225px}.quote-form .form-grid,.product-specs{grid-template-columns:1fr}.product-spec:nth-child(odd){border-inline-end:0}.product-detail{padding:16px}.product-detail__image{min-height:270px}.product-cta>a,.product-cta>button{width:100%}.footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.project-cover{min-height:330px}.project-cover__content{padding:22px}.project-content{padding:20px}.project-gallery{grid-template-columns:1fr}.project-gallery img{height:240px}}
.product-quote-drawer{position:fixed;z-index:90;top:88px;bottom:20px;inset-inline-end:20px;width:min(370px,calc(100vw - 24px));overflow:auto;transform:translateX(120%);transition:.25s;box-shadow:0 24px 70px rgba(15,23,42,.22)}body[dir=rtl] .product-quote-drawer{transform:translateX(-120%)}.product-quote-drawer.is-open{transform:translateX(0)!important}.drawer-close{float:inline-end;border:0;background:#e2e8f0;width:31px;height:31px;border-radius:9px;cursor:pointer}.quote-overlay{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:79;display:none}.quote-overlay.is-open{display:block}

/* Shared site header and footer integration */
.main-wrapper.shared-header-wrapper {
  min-height: auto;
  background: #0f172a;
  padding: 0 8%;

  /* تثبيت الناف بار أثناء النزول */
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 5000;

  /* ظل بسيط أسفل الناف بار */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.shared-header-wrapper .gallery-header {
  position: relative;
  z-index: 1;
}

.main-wrapper.shared-header-wrapper::before{display:none}
.shared-header-wrapper .gallery-header{position:relative;z-index:1000}
.shared-header-wrapper .shared-contact-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  line-height:1.2;
}
/* لون روابط الناف بار العادية */
.shared-header-wrapper .nav-links a {
  color: #ffffff;
}

/* لون الرابط عند الهوفر والصفحة الحالية */
.shared-header-wrapper .nav-links a:hover,
.shared-header-wrapper .nav-links a:focus-visible,
.shared-header-wrapper .nav-links a[aria-current="page"] {
  color: #fbb034;
}

/* الخط البرتقالي أسفل الصفحة الحالية */
.shared-header-wrapper .nav-links a[aria-current="page"]::after {
  width: 100%;
}
.catalog-body .site-footer{margin-top:0}
.catalog-body .floating-whatsapp{bottom:22px}
.catalog-body:has(.mobile-quote-bar) .floating-whatsapp{bottom:84px}

/* Selected quote products: image + editable quantity */
.quote-list{max-height:340px;gap:12px}
.quote-line{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 30px;
  align-items:center;
  gap:10px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:8px;
  background:#fff;
}
.quote-line__image{
  width:58px;
  height:58px;
  object-fit:contain;
  border-radius:9px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  padding:4px;
}
.quote-line__content{min-width:0}
.quote-line__content strong{
  display:block;
  font-size:.76rem;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.quote-line__content small{display:block;color:var(--nasr-muted);font-size:.68rem;margin-top:2px}
.quote-qty{
  display:inline-grid;
  grid-template-columns:28px 34px 28px;
  align-items:center;
  margin-top:7px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  overflow:hidden;
  background:#fff;
}
.quote-line .quote-qty button{
  width:28px;
  height:28px;
  border:0;
  border-radius:0;
  background:#f1f5f9;
  color:#0f172a;
  font-size:1rem;
  font-weight:900;
  cursor:pointer;
}
.quote-line .quote-qty button:hover:not(:disabled){background:#fbb034}
.quote-line .quote-qty button:disabled{opacity:.38;cursor:not-allowed}
.quote-qty span{text-align:center;font-size:.78rem;font-weight:900}
.quote-line .quote-line__remove{
  width:28px;
  height:28px;
  border:0;
  border-radius:8px;
  background:#fee2e2;
  color:#991b1b;
  font-size:1rem;
  cursor:pointer;
  align-self:start;
}
.quote-toast{
  position:fixed;
  z-index:200100;
  inset-inline-start:50%;
  bottom:28px;
  transform:translate(-50%,24px);
  width:min(520px,calc(100% - 28px));
  padding:13px 17px;
  border-radius:12px;
  box-shadow:0 18px 55px rgba(15,23,42,.25);
  color:#fff;
  font-weight:800;
  font-size:.88rem;
  text-align:center;
  opacity:0;
  visibility:hidden;
  transition:.22s;
}
.quote-toast.is-visible{opacity:1;visibility:visible;transform:translate(-50%,0)}
.quote-toast.is-success{background:#15803d}
.quote-toast.is-warning{background:#9a5d00}
.quote-toast.is-info{background:#0f172a}

/* Project image gallery and in-page lightbox */
.project-photo-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:28px;
  margin-bottom:52px;
}
.project-photo{
  display:block;
  width:100%;
  height:230px;
  padding:0;
  border:0;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  cursor:zoom-in;
  box-shadow:0 7px 24px rgba(15,23,42,.08);
}
.project-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.project-photo:hover img,.project-photo:focus-visible img{transform:scale(1.045)}
.project-photo:focus-visible{outline:4px solid rgba(251,176,52,.45);outline-offset:3px}
.project-lightbox{
  position:fixed;
  inset:0;
  z-index:200000;
  display:none;
  grid-template-columns:72px minmax(0,1fr) 72px;
  align-items:center;
  gap:10px;
  padding:24px;
  background:rgba(3,8,18,.96);
  backdrop-filter:blur(8px);
}
.project-lightbox.is-open{display:grid}
.lightbox-stage{
  min-width:0;
  height:min(84vh,900px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.lightbox-stage img{
  display:block;
  max-width:100%;
  max-height:calc(100% - 38px);
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:10px;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
}
.lightbox-caption{height:38px;display:flex;align-items:end;justify-content:center;color:#fff;font-weight:800}
.lightbox-close,.lightbox-nav{
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.09);
  color:#fff;
  cursor:pointer;
  transition:.2s;
}
.lightbox-close:hover,.lightbox-nav:hover{background:#fbb034;color:#0f172a;border-color:#fbb034}
.lightbox-close{
  position:absolute;
  top:18px;
  inset-inline-end:20px;
  width:46px;
  height:46px;
  border-radius:50%;
  font-size:1.75rem;
  line-height:1;
}
.lightbox-nav{width:58px;height:72px;border-radius:14px;font-size:3rem;line-height:1}
.lightbox-prev{justify-self:end}
.lightbox-next{justify-self:start}
body.lightbox-open{overflow:hidden}

@media(max-width:820px){
  .project-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .project-lightbox{grid-template-columns:48px minmax(0,1fr) 48px;padding:14px 8px}
  .lightbox-nav{width:44px;height:60px;font-size:2.4rem}
  .quote-toast{bottom:86px}
}
@media(max-width:590px){
  .main-wrapper.shared-header-wrapper{padding:0 4%}
  .project-photo-grid{grid-template-columns:1fr;gap:12px}
  .project-photo{height:245px}
  .project-lightbox{grid-template-columns:40px minmax(0,1fr) 40px;padding:10px 4px}
  .lightbox-stage{height:82vh}
  .lightbox-nav{width:36px;height:54px;border-radius:10px;font-size:2rem}
  .lightbox-close{top:12px;inset-inline-end:12px;width:42px;height:42px}
  .quote-line{grid-template-columns:54px minmax(0,1fr) 28px}
  .quote-line__image{width:54px;height:54px}
}

/* ناف بار صفحة قطع الغيار الرئيسية */
body.catalog-body[data-subcategory=""] .main-wrapper.shared-header-wrapper {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5000;

  background: transparent !important;
  box-shadow: none;
  padding: 0 8%;

  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

/* إلغاء أي خلفية أو طبقة قديمة */
body.catalog-body[data-subcategory=""] .main-wrapper.shared-header-wrapper::before {
  display: none !important;
}

/* بعد النزول يتحول الناف بار للأسود */
body.catalog-body[data-subcategory=""] .main-wrapper.shared-header-wrapper.is-scrolled {
  background: rgba(15, 23, 42, 0.97) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* إبقاء عناصر الناف بار فوق الخلفية */
body.catalog-body[data-subcategory=""] .shared-header-wrapper .gallery-header {
  position: relative;
  z-index: 2;
}

/* الروابط العادية باللون الأبيض */
body.catalog-body[data-subcategory=""] .shared-header-wrapper .nav-links a {
  color: #ffffff;
}

/* الرابط الحالي والهوفر بالبرتقالي */
body.catalog-body[data-subcategory=""] .shared-header-wrapper .nav-links a:hover,
body.catalog-body[data-subcategory=""] .shared-header-wrapper .nav-links a:focus-visible,
body.catalog-body[data-subcategory=""] .shared-header-wrapper .nav-links a[aria-current="page"] {
  color: #fbb034;
}

/* ===== QUOTE CART NAVBAR + RESPONSIVE DRAWER V4 ===== */

/* The quote panel is now a drawer, so the catalog uses the full width. */
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 25px;
  align-items: start;
}

/* Cart action inside the shared navbar. */
.shared-header-wrapper .shared-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 150px;
  min-height: 44px;
  padding: 10px 15px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #fbb034;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(251, 176, 52, .22);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.shared-header-wrapper .shared-cart-button:hover,
.shared-header-wrapper .shared-cart-button:focus-visible {
  background: #ffc45f;
  transform: translateY(-1px);
  box-shadow: 0 11px 26px rgba(251, 176, 52, .3);
}
.shared-header-wrapper .shared-cart-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .75);
  outline-offset: 3px;
}
.shared-cart-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}
.shared-cart-button__label {
  display: inline-block;
}
.shared-header-wrapper .shared-cart-button .catalog-cart-count {
  position: static;
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  margin: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
}

/* Quote drawer and overlay: desktop. */
body.quote-is-open {
  overflow: hidden;
  overscroll-behavior: contain;
}
.quote-panel.product-quote-drawer {
  position: fixed !important;
  z-index: 6100 !important;
  top: 92px !important;
  bottom: 16px !important;
  inset-inline-end: 16px !important;
  inset-inline-start: auto !important;
  width: min(420px, calc(100vw - 32px)) !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border-radius: 18px !important;
  transform: translateX(calc(100% + 40px)) !important;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .3) !important;
  transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s !important;
}
html[dir="rtl"] .quote-panel.product-quote-drawer {
  inset-inline-end: 16px !important;
  inset-inline-start: auto !important;
  transform: translateX(calc(-100% - 40px)) !important;
}
.quote-panel.product-quote-drawer.is-open,
html[dir="rtl"] .quote-panel.product-quote-drawer.is-open {
  transform: translateX(0) !important;
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition: transform .28s ease, opacity .2s ease, visibility 0s !important;
}
.quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000 !important;
  display: block !important;
  background: rgba(3, 8, 18, .58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.quote-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .22s ease, visibility 0s;
}
.drawer-close {
  position: sticky;
  top: 0;
  float: inline-end;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-inline-start: 10px;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.drawer-close:hover,
.drawer-close:focus-visible {
  background: #fbb034;
}

/* The old bottom quote bar is intentionally disabled. */
.mobile-quote-bar {
  display: none !important;
}
.catalog-body .floating-whatsapp,
.catalog-body:has(.mobile-quote-bar) .floating-whatsapp {
  bottom: 22px !important;
}

/* Tablet and mobile navbar/cart. */
@media (max-width: 768px) {
  .shared-header-wrapper .shared-cart-button {
    justify-self: start;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px;
    height: 43px;
    min-height: 43px;
    padding: 0 !important;
    gap: 0;
    border-radius: 50%;
    position: relative;
    overflow: visible;
  }
  .shared-cart-button__label {
    display: none;
  }
  .shared-cart-button svg {
    width: 22px;
    height: 22px;
  }
  .shared-header-wrapper .shared-cart-button .catalog-cart-count {
    position: absolute;
    top: -5px;
    inset-inline-end: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #0f172a;
    font-size: .64rem;
  }
  .quote-panel.product-quote-drawer,
  html[dir="rtl"] .quote-panel.product-quote-drawer {
    top: 68px !important;
    bottom: 0 !important;
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
    width: min(430px, 94vw) !important;
    border-radius: 18px 0 0 0 !important;
    padding-bottom: calc(22px + env(safe-area-inset-bottom)) !important;
  }
  html[dir="rtl"] .quote-panel.product-quote-drawer {
    border-radius: 0 18px 0 0 !important;
  }
  .quote-list {
    max-height: none;
  }
}

/* Small phones: full-width drawer and compact form. */
@media (max-width: 480px) {
  .language-page-header .navbar {
    grid-template-columns: 48px minmax(92px, auto) 48px !important;
  }
  .quote-panel.product-quote-drawer,
  html[dir="rtl"] .quote-panel.product-quote-drawer {
    width: 100vw !important;
    border-radius: 0 !important;
    padding-inline: 16px !important;
  }
  .quote-panel.product-quote-drawer h2 {
    padding-inline-end: 44px;
    font-size: 1.32rem;
  }
  .quote-form .form-grid {
    grid-template-columns: 1fr !important;
  }
  .quote-line {
    grid-template-columns: 50px minmax(0, 1fr) 28px;
    gap: 8px;
  }
  .quote-line__image {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-panel.product-quote-drawer,
  .quote-overlay,
  .shared-header-wrapper .shared-cart-button {
    transition: none !important;
  }
}
