/* ================= Hashemi Kala — clone of provided design =================
   Reference viewport: 1512px · container 1284px · gutter 114px
   NOTE: document is RTL — inline-start = RIGHT, inline-end = LEFT.         */

:root{
  /* Brand palette sampled from assets/images/hashemi-logo.png
     teal ramp #0B5868 -> #1592A5 (icon gradient) · slate ink #27343E (wordmark) */
  --page:#F5F7F7;  --white:#fff;  --card:#FCFDFD;  --header:#FAFBFB;
  --blue:#0E6F81;  --blue-dark:#0B5868;  --blue-soft:#E4F1F3;
  --teal-light:#1592A5;  --teal-mist:#C2E9EC;
  --tan:#0B5868;   --tan-soft:#E9F2F3;   --panel:#EAF0F1;  --strip:#EFF4F4;
  --brand-pill:#E2ECED;  --navy:#27343E;  --red:#B02A28;
  --ink:#27343E;   --muted:#8A9297;  --muted-2:#A4ABAF;
  --line:#E3EAEB;  --icon-tile:#EFF4F4;  --footer:#E2EBEC;  --gold:#0E6F81;
  --r-card:20px;   --r-panel:22px;  --r-hero:24px;
  --container:1284px; --gutter:114px;
  --sh-card:0 3px 12px rgba(20,44,50,.05);
  --sh-hover:0 4px 42px rgba(20,44,50,.24);
  --sh-bar:0 8px 26px rgba(20,44,50,.08);
  /* slider prev/next: a circle centred on the content edge, half of it clipped */
  --nav-r:43px; --nav-bg:rgba(0,0,0,.16); --nav-bg-hover:rgba(0,0,0,.28);
  --marker:#D6DFE0; --chip-line:#CFD8D9; --chip-line-on:#98A5A7;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:hidden}
body{
  margin:0; background:var(--page); color:var(--ink);
  font-family:"IRANSansX",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:15px; line-height:1.9; overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
svg{display:block}
h1,h2,h3,h4,p{margin:0}

.wrap{width:min(var(--container),calc(100% - var(--gutter)*2));margin-inline:auto}

/* ---------- shared bits ---------- */
.arrow-blue{
  width:46px;height:46px;border-radius:50%;background:var(--blue);
  display:grid;place-items:center;flex:none;
  box-shadow:0 4px 12px rgba(14,111,129,.32);
}
.arrow-blue svg{width:22px;height:22px}
.arrow-blue.sm{width:38px;height:38px}
.arrow-blue.sm svg{width:19px;height:19px}
.arrow-blue.on-blue{background:#fff;color:var(--blue);box-shadow:0 4px 12px rgba(0,0,0,.16)}

.sq-arrow{
  width:30px;height:30px;border-radius:9px;background:#141414;
  display:grid;place-items:center;flex:none;
}
.sq-arrow{color:var(--teal-light)}
.sq-arrow svg{width:17px;height:17px}
.see-all{display:flex;align-items:center;gap:11px;font-size:14.5px;color:var(--ink);flex-direction:row-reverse}
.see-all .u{border-bottom:1px solid #B9B9B9;padding-bottom:3px;line-height:1.25}
.see-all.light{color:#fff}
.see-all.light .sq-arrow{background:#fff;color:var(--blue)}
.see-all.light .u{border-bottom-color:rgba(255,255,255,.6)}

.sec-head{display:flex;align-items:center;justify-content:space-between;gap:26px;margin-bottom:26px}
.sec-title{
  font-size:25px;font-weight:400;color:#1B1B1B;white-space:nowrap;
  position:relative;padding-inline-start:18px;display:flex;align-items:center;gap:8px;
}
.sec-title b{font-weight:800}
/* the design's marker is a small, very faint pill flush with the container edge */
.sec-title::after{
  content:"";position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);
  width:7px;height:17px;border-radius:999px;background:var(--marker);
}

/* ===================== HEADER ===================== */
.site-header{background:var(--header);padding:6px 0 20px}
.hdr-top{display:flex;align-items:center;height:76px}
.logo{display:flex;align-items:center;flex:none}
.logo-img{width:auto;height:52px;flex:none}

.mainnav{display:flex;align-items:center;gap:59px;font-size:15px;color:#4A4A4A;margin-inline-start:36px}
.mainnav a{padding:4px 0;transition:color .15s;white-space:nowrap}
.mainnav a.active{color:var(--ink);font-weight:700}
.mainnav a:hover{color:var(--blue)}

.search{
  position:relative;flex:none;width:348px;height:44px;margin-inline-start:auto;
  background:#F1F1F1;border-radius:999px;display:flex;align-items:center;
}
.search input{
  width:100%;height:100%;border:0;background:none;outline:none;
  font:inherit;font-size:13.5px;color:var(--ink);padding:0 22px 0 46px;text-align:right;
}
.search input::placeholder{color:#949494}
.search button{position:absolute;left:11px;color:#5B5B5B}
.search button svg{width:20px;height:20px}
.burger{display:none}

.hdr-bar{
  height:74px;background:#FDFDFD;border-radius:22px;box-shadow:var(--sh-bar);
  display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 14px;
}
.bar-right{display:flex;align-items:center;gap:58px}
.btn-cats{
  height:52px;padding:0 15px;border-radius:14px;background:var(--blue);color:#fff;
  display:flex;align-items:center;gap:9px;font-size:15px;font-weight:700;white-space:nowrap;
  margin-inline-end:-30px;
}
.btn-cats svg{width:21px;height:21px}
.bar-link{display:flex;align-items:center;gap:9px;font-size:16px;color:#4A4A4A;white-space:nowrap}
.bar-link svg{width:23px;height:23px;color:#5C5C5C;flex:none}
.bar-link:hover{color:var(--blue)}

.bar-left{display:flex;align-items:center;gap:16px}
.cart{
  position:relative;width:46px;height:46px;border-radius:50%;
  border:1px solid #E3E3E3;background:#fff;display:grid;place-items:center;color:#2C2C2C;
}
.cart svg{width:24px;height:24px}
.cart-badge{
  position:absolute;right:-2px;bottom:-2px;width:21px;height:21px;border-radius:50%;
  background:#121212;color:#fff;font-size:11px;font-style:normal;
  display:grid;place-items:center;line-height:1;
}
.btn-login{
  height:46px;padding:0 18px;border-radius:999px;background:var(--tan-soft);
  display:flex;align-items:center;gap:9px;font-size:14.5px;color:#3B342B;
  flex-direction:row-reverse;white-space:nowrap;
}
.btn-login svg{width:21px;height:21px}

/* ===================== HERO ===================== */
.hero{margin-top:13px}
.hero-card{
  position:relative;height:542px;border-radius:var(--r-hero);
  background:linear-gradient(115deg,#C7DBDE 0%,#EDF5F6 45%,#CBE0E3 100%);
}
.hero-slides{position:absolute;inset:0;border-radius:inherit}
.hero-slide{
  position:absolute;inset:0;border-radius:inherit;
  opacity:0;visibility:hidden;transition:opacity .55s ease;
}
.hero-slide.is-on{opacity:1;visibility:visible}
.hero-media{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center;display:block;z-index:0;pointer-events:none;
  border-radius:inherit;
}
.hero-nav{cursor:pointer;border:0;transition:background .2s}
.hero-nav:hover{background:var(--nav-bg-hover)}
.hero-copy{position:absolute;inset-inline-start:136px;top:114px;text-align:right;max-width:660px;z-index:2}
.hero-copy h1{font-size:49px;line-height:1.5;color:#141414;font-weight:800;letter-spacing:-.4px}
.hero-copy h1 .l1{display:block;position:relative}
.hero-copy h1 .l2{display:block;font-weight:600;font-size:40px;margin-top:8px}
.hero-copy h1 .kash{font-weight:300;letter-spacing:-1px}
.spark{
  position:absolute;inset-inline-start:-34px;top:2px;width:38px;height:38px;
  filter:drop-shadow(0 1px 3px rgba(110,152,163,.5));
}
.hero-copy p{margin-top:15px;font-size:17px;color:#4F5964;line-height:1.9}
.hero-cta{
  margin-top:20px;height:58px;padding:0 12px 0 26px;border-radius:999px;background:#fff;
  display:inline-flex;align-items:center;gap:16px;flex-direction:row-reverse;
  box-shadow:0 8px 26px rgba(20,60,70,.13);
}
.hero-cta .arrow-blue{width:34px;height:34px}
.hero-cta .arrow-blue svg{width:16px;height:16px}
.hero-cta b{font-size:16px;font-weight:600;color:#1B1B1B}

.hero-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:var(--nav-r);height:calc(var(--nav-r)*2);background:var(--nav-bg);
  display:grid;place-items:center;color:#fff;z-index:2;
}
.hero-nav svg{width:28px;height:28px}
.hero-nav.prev{left:0;border-radius:0 var(--nav-r) var(--nav-r) 0}
.hero-nav.next{right:0;border-radius:var(--nav-r) 0 0 var(--nav-r)}

.hero-notch{
  position:absolute;bottom:0;right:102px;width:225px;height:49px;
  background:var(--page);
  clip-path:polygon(0 100%,43px 0,182px 0,225px 100%);
  display:flex;align-items:flex-end;justify-content:center;padding-bottom:4px;z-index:3;
}
.dots{display:flex;align-items:center;gap:9px}
.dots i{width:6px;height:6px;border-radius:999px;background:#D2D2D2;display:block}
.dots i.on{width:43px;height:5px;background:var(--blue)}
.hero-notch .dots{flex-direction:row-reverse}
.dots.dark{gap:8px;flex-direction:row-reverse}  /* slide 1 sits on the left, as in the design */
.dots.dark i{width:10px;height:10px;background:#C5D0D1}
.dots.dark i.on{width:10px;height:10px;background:var(--blue)}

/* ===================== CATEGORIES ===================== */
.cats{margin-top:84px}
.head-actions{display:flex;align-items:center;gap:20px}
.rail-nav{display:flex;align-items:center;gap:10px;flex-direction:row-reverse}
.r-nav{
  width:42px;height:42px;border-radius:50%;border:1px solid #E2E6E8;background:#fff;
  display:grid;place-items:center;color:var(--ink);cursor:pointer;
  transition:background .2s,color .2s,border-color .2s,opacity .2s;
}
.r-nav svg{width:19px;height:19px}
.r-nav:hover:not(:disabled){background:var(--blue);border-color:var(--blue);color:#fff}
.r-nav:disabled{opacity:.38;cursor:default}
.cat-rail{margin-top:26px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-behavior:smooth;cursor:grab}
.cat-rail.is-dragging{cursor:grabbing;scroll-behavior:auto}
.cat-rail.is-dragging .cat-card{pointer-events:none}
.cat-rail::-webkit-scrollbar{display:none}
.cat-rail-inner{
  display:flex;gap:22px;width:max-content;padding:18px 0 22px;
  padding-inline-start:max(var(--gutter),calc((100vw - var(--container))/2));
  padding-inline-end:var(--gutter);
}
.cat-card{
  position:relative;width:342px;height:118px;background:#fff;border-radius:22px;
  box-shadow:var(--sh-card);display:flex;align-items:center;
  padding-inline-start:24px;padding-inline-end:22px;flex:none;transition:box-shadow .2s;
}
.cat-card.is-active,.cat-card:hover{box-shadow:var(--sh-hover)}
.cat-arch{
  position:absolute;inset-inline-start:14px;top:50%;transform:translateY(-50%);
  width:88px;height:132px;border-radius:44px 44px 13px 13px;
  background:var(--icon-tile);display:grid;place-items:center;color:#2B2B2B;
  box-shadow:0 4px 14px rgba(20,44,50,.08);
  transition:background .2s,color .2s,box-shadow .2s;
}
.cat-arch svg{width:44px;height:44px}
.cat-card.is-active .cat-arch,.cat-card:hover .cat-arch{background:var(--tan);color:#fff;box-shadow:0 6px 18px rgba(11,88,104,.3)}
.cat-card .arrow-blue.sm{opacity:0;transform:scale(.8);transition:opacity .2s,transform .2s}
.cat-card.is-active .arrow-blue.sm,.cat-card:hover .arrow-blue.sm{opacity:1;transform:none}
.cat-txt{
  display:flex;flex-direction:column;text-align:right;line-height:1.95;
  margin-inline-start:87px;margin-inline-end:auto;
}
.cat-txt b{font-size:16px;font-weight:700;color:#171717}
.cat-txt i{font-style:normal;font-size:13.5px;color:var(--muted)}

/* ===================== PRODUCT CARD ===================== */
.pcard{
  position:relative;background:var(--card);border-radius:var(--r-card);
  box-shadow:var(--sh-card);padding:26px 22px 20px;height:385px;
  display:flex;flex-direction:column;transition:box-shadow .2s,background .2s;
}
.pcard.is-hover,.pcard:hover{background:#fff;box-shadow:var(--sh-hover);z-index:4}
.badge{
  position:absolute;top:26px;left:-11px;
  background:var(--red);color:#fff;font-size:13px;font-weight:600;
  padding:2px 11px 3px;border-radius:5px 5px 5px 0;line-height:1.65;z-index:2;
}
.badge::after{
  content:"";position:absolute;bottom:-7px;left:0;
  border-left:11px solid #7C1C1C;border-bottom:7px solid transparent;
}
.pcard-img{position:relative;flex:1;min-height:0;padding:4px 0 10px;overflow:hidden}
.pcard-img img{position:absolute;inset:4px 0 10px;margin:auto;max-width:88%;max-height:100%;width:auto;height:auto;object-fit:contain}
.pcard h3{font-size:14px;font-weight:500;color:#232323;text-align:right;line-height:1.85;min-height:54px}
.pcard-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:auto}
.view-btn{
  height:40px;padding:0 16px;border-radius:999px;border:1px solid #A9D6F2;
  background:var(--blue-soft);color:var(--blue);font-size:14px;font-weight:600;
  display:inline-flex;align-items:center;gap:7px;white-space:nowrap;
  opacity:0;transform:translateY(4px);transition:opacity .18s,transform .18s;pointer-events:none;
}
.view-btn svg{width:17px;height:17px}
.pcard.is-hover .view-btn,.pcard:hover .view-btn{opacity:1;transform:none;pointer-events:auto}
.price{display:flex;flex-direction:column;align-items:flex-end;line-height:1.6}
.price del{font-size:13px;color:var(--muted-2);text-decoration-color:#C4C4C4}
.price b{font-size:17px;font-weight:700;color:#1C1C1C;white-space:nowrap}
.pcard-foot{min-width:0}
.price{min-width:0;max-width:100%}
.price i{font-style:normal;font-size:12.5px;font-weight:400;color:var(--muted)}

/* ===================== SPECIAL SALE ===================== */
.special{margin-top:103px}
.special-row{display:grid;grid-template-columns:216px minmax(0,1fr);gap:26px;align-items:stretch}
.special-slider{position:relative;min-width:0}
.special-cards{
  --per-view:3;
  display:flex;gap:26px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
  scroll-behavior:smooth;scroll-snap-type:x proximity;padding:6px 0;cursor:grab;height:100%;
}
.special-cards::-webkit-scrollbar{display:none}
.special-cards > *{flex:0 0 calc((100% - (var(--per-view) - 1) * 26px) / var(--per-view));min-width:0;scroll-snap-align:start}
.special-cards.is-dragging{cursor:grabbing;scroll-behavior:auto}
.special-cards.is-dragging > *{pointer-events:none}
.sale-nav{display:flex;gap:10px;margin-top:16px;flex-direction:row-reverse}
.s-nav{
  width:40px;height:40px;border-radius:50%;color:#fff;cursor:pointer;
  border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.15);
  display:grid;place-items:center;transition:background .2s,color .2s,opacity .2s;
}
.s-nav svg{width:19px;height:19px}
.s-nav:hover:not(:disabled){background:#fff;color:var(--blue)}
.s-nav:disabled{opacity:.35;cursor:default}
.sale-banner{
  position:relative;border-radius:20px 20px 0 0;color:#fff;padding:24px 18px 46px;
  background:linear-gradient(202deg,var(--teal-light) 0%,var(--blue) 40%,var(--blue-dark) 100%);
  display:flex;flex-direction:column;align-items:center;
  -webkit-mask:radial-gradient(26px at 50% 100%,transparent 25px,#000 26px) bottom/100% 30px no-repeat,
               linear-gradient(#000,#000) top/100% calc(100% - 30px) no-repeat;
          mask:radial-gradient(26px at 50% 100%,transparent 25px,#000 26px) bottom/100% 30px no-repeat,
               linear-gradient(#000,#000) top/100% calc(100% - 30px) no-repeat;
}
.sale-top{position:relative;width:100%;display:grid;place-items:center;padding:8px 0 18px}
.ticket{width:66px;height:46px}
.pct{position:absolute;font-size:13px;opacity:.45}
.pct.p1{right:30px;top:2px}
.pct.p2{left:26px;top:12px;font-size:11px}
.pct.p3{left:46px;top:38px;font-size:10px;opacity:.3}
.sale-flag{
  position:relative;background:#fff;border-radius:16px;padding:16px 20px 30px;
  text-align:center;color:var(--blue);margin-bottom:auto;width:156px;
  -webkit-mask:radial-gradient(24px at 50% 100%,transparent 23px,#000 24px) bottom/100% 26px no-repeat,
               linear-gradient(#000,#000) top/100% calc(100% - 26px) no-repeat;
          mask:radial-gradient(24px at 50% 100%,transparent 23px,#000 24px) bottom/100% 26px no-repeat,
               linear-gradient(#000,#000) top/100% calc(100% - 26px) no-repeat;
}
.sale-flag b{display:block;font-size:23px;font-weight:800;line-height:1.5}
.sale-flag span{display:block;font-size:23px;font-weight:800;line-height:1.4}
.sale-banner .see-all{margin:26px 0 0}

/* ===================== BRANDS ===================== */
.brands{margin-top:104px}
.brand-strip{position:relative;background:var(--strip);border-radius:var(--r-panel);padding:32px 0 37px}
.brand-chip{
  position:absolute;top:92px;inset-inline-start:8px;background:var(--navy);color:#fff;
  font-size:19.5px;font-weight:400;line-height:1.36;padding:4px 18px 6px;border-radius:3px;white-space:nowrap;z-index:2;
}
.brand-chip b{font-weight:800}
.brand-ic{position:absolute;top:46px;inset-inline-start:96px}
.brand-ic svg{width:26px;height:26px}
.brand-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,1fr);margin-inline-start:197px}
.brand-list li{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:0;
  padding:0 12px;border-inline-start:1px dashed #D2DEDF;
}
.brand-list li:first-child{border:0}
.brand-list img{width:auto;object-fit:contain;align-self:center}
.brand-list li:nth-child(1) img{height:33px}
.brand-list li:nth-child(2) img{height:28px}
.brand-list li:nth-child(3) img{height:60px}
.brand-list li:nth-child(4) img{height:73px}
.brand-list li:nth-child(5) img{height:31px}
.brand-list li:nth-child(6) img{height:60px}
.brand-list li>img{margin-bottom:23px}
.bpill{
  position:relative;background:var(--brand-pill);border-radius:999px;
  padding:5px 26px 6px;font-size:14px;color:#3F3A33;width:100%;max-width:132px;text-align:center;
}
.bpill::before,.bpill::after{content:"";position:absolute;top:50%;width:16px;height:1px;background:#C3D2D4}
.bpill::before{left:12px}
.bpill::after{right:12px}

/* ===================== CAROUSELS ===================== */
.newest{margin-top:93px}
.best{margin-top:113px}
.blog{margin-top:147px}
.newest .sec-head,.best .sec-head,.blog .sec-head{margin-bottom:0}
.chips{display:flex;gap:16px;margin-inline-end:30px}
.chip{
  height:43px;min-width:127px;padding:0 26px;border-radius:999px;border:1px solid var(--chip-line);
  background:transparent;font-size:15px;color:#606060;white-space:nowrap;
}
/* the selected chip is marked by a darker ring and extra width - not by fill or ink */
.chip.is-on{min-width:148px;border-color:var(--chip-line-on)}

.carousel{position:relative;padding-top:35px}
.carousel .panel{
  position:absolute;inset-inline:calc(50% - var(--container)/2 - var(--nav-r));
  top:0;bottom:0;background:var(--panel);border-radius:var(--r-panel);z-index:0;
}
.carousel.low .panel{top:auto;height:178px}
.carousel > .wrap{position:relative;z-index:1;padding-bottom:26px}
.pgrid{
  --per-view:4;--rail-pad:43px;
  display:flex;gap:30px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
  scroll-behavior:smooth;scroll-snap-type:x proximity;cursor:grab;
  /* a scroll container clips at its padding box, so this padding is the only room
     card shadows have to bleed into; the negative margin keeps the layout identical.
     scroll-padding-inline-start is what makes Chrome actually honour the start
     padding on an RTL scroller - without it every card lands 43px out of place. */
  padding:44px var(--rail-pad);margin:-38px calc(var(--rail-pad)*-1);
  scroll-padding-inline-start:var(--rail-pad);
}
.pgrid::-webkit-scrollbar{display:none}
.pgrid > *{flex:0 0 calc((100% - (var(--per-view) - 1) * 30px) / var(--per-view));min-width:0;scroll-snap-align:start}
.pgrid.is-dragging{cursor:grabbing;scroll-behavior:auto}
.pgrid.is-dragging > *{pointer-events:none}
.carousel .dots i{cursor:pointer;transition:width .2s,background .2s}
.c-nav{cursor:pointer;border:0;transition:background .2s}
.c-nav:hover:not(:disabled){background:var(--nav-bg-hover)}
.c-nav:disabled{cursor:default}
.carousel .dots{justify-content:center;margin-top:22px}
/* half-disc flush with the card column, drawn as the panel's outer bleed.
   --nav-shift re-centres it on the card row: (padding-top - space below grid)/2 */
.c-nav{
  position:absolute;top:calc(50% + var(--nav-shift,-11.5px));transform:translateY(-50%);
  width:var(--nav-r);height:calc(var(--nav-r)*2);background:var(--nav-bg);
  display:grid;place-items:center;color:#fff;z-index:2;
}
.c-nav svg{width:28px;height:28px}
.c-nav.prev{left:calc(50% - var(--container)/2 - var(--nav-r));border-radius:var(--nav-r) 0 0 var(--nav-r)}
.c-nav.next{right:calc(50% - var(--container)/2 - var(--nav-r));border-radius:0 var(--nav-r) var(--nav-r) 0}
.blog .carousel{--nav-shift:4.5px}   /* blog carousel has no dot row */

/* ===================== PROMOS ===================== */
.promos{margin-top:63px;display:grid;grid-template-columns:1fr 1fr;gap:24px}
.promo{
  position:relative;height:186px;border-radius:24px;overflow:hidden;
  padding:42px 34px 0;background-position:center;background-size:cover;background-repeat:no-repeat;
}
.promo.tan{background-image:url("assets/images/banner1%20(1).png")}
.promo.blue{background-image:url("assets/images/banner2%20(1).png")}
.promo-txt{position:relative;z-index:2;text-align:right;padding-inline-start:26px}
.promo-txt b{display:block;font-size:23px;font-weight:800;line-height:1.4;color:#1E1E1E}
.promo-txt span{display:block;font-size:14px;color:#3B3B3B;margin-top:6px}
.promo.blue .promo-txt b{color:#fff}
.promo.blue .promo-txt span{color:rgba(255,255,255,.93)}
.promo-cta{
  position:absolute;bottom:26px;inset-inline-start:52px;z-index:3;
  height:40px;padding:0 16px 0 6px;border-radius:999px;background:#fff;
  display:inline-flex;align-items:center;gap:9px;flex-direction:row-reverse;
  font-size:12.5px;color:#2B2B2B;box-shadow:0 4px 14px rgba(20,44,50,.16);
}
.arrow-blue.xs{width:28px;height:28px}
.arrow-blue.xs svg{width:14px;height:14px}

/* ===================== FAQ ===================== */
.faq{margin-top:136px;display:grid;grid-template-columns:330px 1fr;gap:91px;align-items:start}
.faq-side{display:flex;flex-direction:column;align-items:center;gap:30px}
.faq-title{font-size:23px;font-weight:800;color:var(--ink);align-self:center}
.faq-arch{width:266px;height:250px;border-radius:26px;overflow:hidden}
.faq-arch img{width:100%;height:100%;object-fit:cover}
.faq-list{display:flex;flex-direction:column;gap:22px}
.faq-list details{border-radius:12px}
.faq-list summary{
  list-style:none;cursor:pointer;height:60px;display:flex;align-items:center;
  justify-content:space-between;padding:0 22px;font-size:15px;font-weight:500;color:#232323;
  background:#FAFAFA;border:1px solid #EDEDED;border-radius:12px;
}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list .chev{color:#8C8C8C;display:grid;place-items:center}
.faq-list .chev svg{width:22px;height:22px}
.faq-list details[open] summary{background:var(--blue);color:#fff;font-weight:600;border-color:var(--blue)}
.faq-list details[open] .chev{color:#fff}
.faq-body{
  background:#FAFAFA;border:1px solid #EDEDED;border-radius:12px;margin-top:5px;
  padding:20px 24px;font-size:14px;color:#6D6D6D;line-height:2.1;text-align:justify;
}

/* ===================== BLOG ===================== */
.blog .sec-title{padding-inline-start:0}
.blog .sec-title::after{display:none}
.blog-ic{display:grid;place-items:center;margin-inline-start:4px;color:var(--blue)}
.blog-ic svg{width:26px;height:26px}
.bcard{background:#fff;border-radius:var(--r-card);box-shadow:var(--sh-card);padding:12px 12px 16px;display:flex;flex-direction:column}
.bcard-img{height:152px;border-radius:13px;overflow:hidden;background:#EDEDED}
.bcard-img img{width:100%;height:100%;object-fit:cover}
.bcard h3{min-height:56px;font-size:15px;font-weight:700;color:#1D1D1D;text-align:right;margin:16px 8px 0;line-height:1.85}
.bcard p{font-size:13px;color:var(--muted);text-align:right;margin:8px 8px 0;line-height:1.95}
.bcard-date{
  display:flex;align-items:center;gap:8px;margin:20px 8px 0;padding-top:14px;margin-top:auto;
  border-top:1px solid #F0F0F0;font-size:13px;color:#8C8C8C;
}
.bcard-date svg{width:19px;height:19px;flex:none}

/* ===================== FEATURES ===================== */
.features{margin-top:123px;display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.feat{
  position:relative;height:108px;border-radius:28px;border:1px solid #E0E8E9;
  display:flex;align-items:center;gap:18px;padding:0 28px;
  flex-direction:row-reverse;justify-content:flex-end;
}
.feat-ic{width:44px;height:44px;flex:none}
.feat-txt{text-align:right;line-height:1.8}
.feat-txt b{display:block;font-size:16.5px;font-weight:800;color:#1B1B1B}
.feat-txt span{display:block;font-size:13.5px;color:#6E6E6E}
.feat::after{
  content:"";position:absolute;bottom:22px;inset-inline-start:30px;
  width:30px;height:4px;border-radius:2px;
  background:linear-gradient(90deg,var(--blue),var(--teal-light));
}

/* ===================== SEO ===================== */
.seo{margin-top:117px}
.seo h2{font-size:19px;font-weight:800;text-align:right;color:#1B1B1B}
.seo h2 span{color:var(--gold)}
.seo-body{margin-top:22px}
.seo-body p{font-size:14px;color:#5A5A5A;line-height:2.5;text-align:justify}
.seo-body p:nth-child(2){opacity:.3}
.seo-more{
  display:flex;align-items:center;gap:6px;margin-top:44px;font-size:14px;color:var(--blue);
  width:max-content;margin-inline-end:auto;border-bottom:1px solid var(--blue);padding-bottom:2px;
}
.seo-more svg{width:18px;height:18px}

/* ===================== FOOTER ===================== */
.site-footer{position:relative;margin-top:95px;margin-bottom:58px}
.to-top{
  position:absolute;top:-31px;left:50%;transform:translateX(-50%);
  width:62px;height:62px;border-radius:20px 20px 26px 26px;background:var(--tan-soft);
  border:1px solid #D2E2E4;color:var(--blue-dark);display:grid;place-items:center;z-index:3;
}
.to-top svg{width:24px;height:24px}
.foot-main{
  background:var(--footer);border-radius:24px 24px 0 0;padding:58px 46px 30px;
  display:grid;grid-template-columns:1.35fr .95fr .95fr .95fr 1.2fr;gap:30px;position:relative;
}
.foot-main::before{
  content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:152px;height:31px;background:var(--page);border-radius:0 0 20px 20px;
}
.foot-brand .logo{justify-content:flex-start}
.foot-brand .logo-img{height:58px}
.foot-brand p{margin-top:16px;font-size:13.5px;color:#5B646C;text-align:right;line-height:2}
.socials{display:flex;gap:14px;justify-content:center;margin-top:24px;position:relative}
.socials::before{content:"";position:absolute;top:50%;left:0;width:100%;height:1px;background:#D2DEE0;z-index:0}
.socials a{
  position:relative;z-index:1;width:44px;height:44px;border-radius:13px;background:#fff;
  display:grid;place-items:center;color:var(--navy);box-shadow:0 2px 8px rgba(23,32,44,.06);
}
.socials a svg{width:22px;height:22px}
.foot-col{display:flex;flex-direction:column;gap:26px;text-align:right}
.foot-col h4{font-size:15.5px;font-weight:700;color:var(--blue);margin-bottom:5px}
.foot-col a{font-size:13.5px;color:#3E4750}
.foot-col a:hover{color:var(--blue)}
.foot-contact{text-align:right}
.foot-contact h4{font-size:15.5px;font-weight:700;color:var(--blue)}
.h24{display:block;font-size:12.5px;color:#6B747C;margin:2px 0 20px}
.crow{display:flex;align-items:center;gap:10px;justify-content:flex-start;margin-bottom:42px;font-size:13.5px;color:#3E4750}
.crow svg{width:22px;height:22px;color:#5A6570;flex:none}
.foot-bottom{
  background:var(--footer);border-radius:0 0 24px 24px;margin:0;padding:24px 46px 30px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;
}
.foot-bottom::before{content:"";position:absolute;top:0;inset-inline:46px;height:1px;background:#D2DEE0}
.copy{background:var(--blue);color:#fff;font-size:14px;border-radius:999px;padding:11px 26px;white-space:nowrap}
.trust{height:72px;width:auto}

/* ===================== RESPONSIVE ===================== */
@media (max-width:1400px){ :root{--gutter:56px} }
@media (max-width:1200px){
  :root{--gutter:40px}
  .mainnav{gap:24px;font-size:14px;margin-inline-start:24px}
  .search{width:280px}
  .bar-right{gap:22px}
  .hero-card{height:470px}
  .hero-copy{inset-inline-start:60px;top:60px}
  .hero-copy h1{font-size:38px}
  .hero-copy h1 .l2{font-size:35px}
  .special-row{grid-template-columns:190px minmax(0,1fr)}
  .special-cards{--per-view:2}
  .brand-list{grid-template-columns:repeat(3,1fr);gap:30px 0}
  .brand-list li:nth-child(4){border:0}
}
@media (max-width:980px){
  .btn-cats{margin-inline-end:0}
  .chips{margin-inline-end:0}
  .sale-banner{gap:18px}
  .sale-flag{width:auto;padding:12px 18px 22px}
  .sale-flag b,.sale-flag span{font-size:19px}
  .sale-top{width:auto;padding:0}
  .promo-txt{padding-inline-start:0}
  .promo{padding:24px 22px 0}
  .promo-txt b{font-size:19px}

  :root{--gutter:28px}
  .mainnav,.search{display:none}
  .burger{display:flex;flex-direction:column;gap:5px;margin-inline-start:auto}
  .burger span{width:24px;height:2px;background:#2B2B2B;border-radius:2px;display:block}
  .hdr-bar{height:auto;flex-wrap:wrap;gap:14px;padding:14px;border-radius:18px}
  .bar-right{flex-wrap:wrap;gap:18px}
  .hero-card{height:410px}
  .hero-copy{inset-inline-start:32px;top:44px;max-width:58%}
  .hero-copy h1{font-size:30px}
  .hero-copy h1 .l2{font-size:28px}
  .hero-copy p{font-size:14px;margin-top:14px}
  .hero-cta{height:56px;margin-top:20px}
  .spark{display:none}
  .special-row{grid-template-columns:minmax(0,1fr)}
  .sale-banner{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;gap:18px;
    justify-content:center;align-items:center;
    border-radius:20px;padding:20px;-webkit-mask:none;mask:none}
  .sale-top{width:auto;padding:0}
  .sale-nav{margin-top:0}
  .sale-flag{margin:0}
  .sale-banner .see-all{margin:0}
  .special-cards{--per-view:2}
  .pgrid{--per-view:2}
  .carousel .panel{inset-inline:0}
  .c-nav{display:none}
  .promos{grid-template-columns:1fr}
  .faq{grid-template-columns:1fr;gap:30px}
  .faq-side{align-items:flex-start}
  .features{grid-template-columns:repeat(2,1fr)}
  .foot-main{grid-template-columns:repeat(2,1fr);gap:34px 24px}
  /* the burger toggles .mainnav.open — give it something to open into */
  .hdr-top{flex-wrap:wrap}
  .mainnav.open{
    display:flex;order:4;width:100%;flex-direction:column;align-items:stretch;gap:0;
    margin:10px 0 0;padding:6px 4px;font-size:14.5px;
    background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-card);
  }
  .mainnav.open a{padding:11px 14px;border-radius:10px}
  .mainnav.open a.active{background:var(--tan-soft);color:var(--blue)}
  .burger span{transition:transform .2s,opacity .2s}
  /* title + four 127px-min chips + the link never fit one row at this size:
     the chips used to shove "مشاهده همه" ~280px clean off the page */
  .sec-head{flex-wrap:wrap}
  .chips{order:4;width:100%;margin-inline-end:0;padding-bottom:4px;
    overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .chips::-webkit-scrollbar{display:none}
  .chip{flex:none}
  /* tablets don't need the desktop's 84–147px section gaps either */
  .cats,.special,.brands,.newest,.best,.blog,.faq,.features,.seo{margin-top:64px}
  .promos{margin-top:48px}
  .site-footer{margin-top:72px}
}
/* ===================== PHONES (<=640px) =====================
   Two rules govern this tier:
   1. ONE vertical rhythm — the desktop's nine hand-tuned section gaps (84-147px)
      collapse to a single --sec-gap so the page reads as a short column.
   2. Anything that would stack becomes a horizontal, swipeable rail — promos,
      features and brands join the carousels that were already rails.          */
@media (max-width:640px){
  :root{
    --gutter:16px; --r-card:16px; --r-panel:18px; --r-hero:20px;
    --sec-gap:46px;        /* every section, instead of nine desktop values */
    --rail-gap:12px;       /* every mobile rail, instead of 22/26/30px        */
  }
  body{font-size:14px;line-height:1.85}

  /* ---- section rhythm ---- */
  .cats,.special,.brands,.newest,.best,.blog,.promos,.faq,.features,.seo{margin-top:var(--sec-gap)}

  /* ---- section heads ---- */
  .sec-head{flex-wrap:wrap;gap:10px;margin-bottom:14px}
  .sec-title{font-size:17px;white-space:normal;padding-inline-start:12px;line-height:1.7}
  .sec-title::after{width:5px;height:14px}
  .see-all{font-size:12.5px;gap:8px}
  .sq-arrow{width:26px;height:26px;border-radius:8px}
  .sq-arrow svg{width:14px;height:14px}

  /* ---- header: logo row, search row, then a scrollable quick-link bar ---- */
  .site-header{padding:6px 0 12px}
  .hdr-top{height:auto;flex-wrap:wrap;gap:10px;padding:8px 0 0}
  .logo-img{height:38px}
  .burger{margin-inline-start:auto}
  .search{display:flex;order:3;width:100%;height:40px;margin:0}
  .search input{font-size:12.5px;padding:0 16px 0 40px}
  .search button{left:9px}
  .search button svg{width:18px;height:18px}

  .hdr-bar{height:auto;flex-wrap:nowrap;gap:8px;padding:8px;border-radius:14px;margin-top:10px}
  .bar-right{flex:1;min-width:0;flex-wrap:nowrap;gap:12px}
  .btn-cats{height:40px;padding:0 12px;border-radius:11px;font-size:13px;gap:6px;margin-inline-end:0;flex:none}
  .btn-cats svg{width:18px;height:18px}
  .mm-caret{width:15px;height:15px}
  /* the quick links would clip mid-word next to the cart — they are already
     in the mega-menu footer, so the bar keeps just the category trigger */
  .bar-link{display:none}
  .bar-left{flex:none;gap:8px}
  .cart{width:38px;height:38px}
  .cart svg{width:20px;height:20px}
  .cart-badge{width:17px;height:17px;font-size:9.5px}
  .btn-login{width:38px;height:38px;padding:0;border-radius:50%;justify-content:center}
  .btn-login span{display:none}       /* login collapses to its icon */
  .btn-login svg{width:19px;height:19px}

  /* ---- hero: copy above, media below ---- */
  .hero{margin-top:10px}
  .hero-card{height:auto;padding-bottom:180px}
  .hero-media{top:auto;bottom:0;height:180px;border-radius:0 0 var(--r-hero) var(--r-hero)}
  .hero-slides{position:static}
  .hero-slide{position:absolute;inset:0}
  .hero-slide.is-on{position:static}
  .hero-copy{position:static;max-width:none;padding:22px 18px 0}
  .hero-copy h1{font-size:22px;letter-spacing:-.2px;line-height:1.45}
  .hero-copy h1 .l2{font-size:19px;margin-top:2px}
  .hero-copy p{font-size:12.5px;margin-top:8px;line-height:1.8;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .hero-cta{height:44px;margin-top:14px;padding:0 8px 0 18px;gap:10px}
  .hero-cta b{font-size:13.5px}
  .hero-cta .arrow-blue{width:30px;height:30px}
  .hero-cta .arrow-blue svg{width:14px;height:14px}
  .spark,.hero-nav{display:none}
  .hero-notch{right:50%;transform:translateX(50%);width:168px;height:36px;
    clip-path:polygon(0 100%,32px 0,136px 0,168px 100%)}
  .dots i.on{width:30px;height:4px}

  /* ---- categories: ~1.5 cards per view instead of one giant one ---- */
  .cat-rail{margin-top:0}
  .cat-rail-inner{gap:var(--rail-gap);padding:12px 0 14px;
    padding-inline-start:var(--gutter);padding-inline-end:var(--gutter)}
  .cat-card{width:232px;height:88px;border-radius:16px;
    padding-inline-start:14px;padding-inline-end:12px}
  .cat-arch{inset-inline-start:10px;width:56px;height:78px;border-radius:28px 28px 9px 9px}
  .cat-arch svg{width:28px;height:28px}
  .cat-txt{margin-inline-start:58px;line-height:1.6}
  .cat-txt b{font-size:13px}
  .cat-txt i{font-size:11px}
  .cat-card .arrow-blue.sm{display:none}

  /* ---- special sale: the tall banner becomes a slim bar above the rail ---- */
  .special-row{grid-template-columns:minmax(0,1fr);gap:12px}
  .sale-banner{
    grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;
    gap:12px;padding:12px 14px;border-radius:16px;-webkit-mask:none;mask:none;
  }
  .sale-top,.sale-nav{display:none}
  .sale-flag{
    width:auto;margin:0;padding:0;background:none;color:#fff;text-align:right;
    -webkit-mask:none;mask:none;
  }
  .sale-flag b{font-size:16px;line-height:1.4}
  .sale-flag span{font-size:13px;font-weight:600;line-height:1.4;opacity:.92}
  .sale-banner .see-all{margin:0;flex:none}
  .special-cards{--per-view:2;gap:var(--rail-gap);padding:4px 10px}
  .special-cards > *{flex:0 0 calc((100% - (var(--per-view) - 1) * var(--rail-gap)) / var(--per-view))}

  /* ---- product cards ---- */
  .pcard{height:auto;padding:14px 12px 12px}
  .pcard-img{flex:none;height:112px;padding:0 0 6px}
  .pcard-img img{inset:0 0 6px;max-width:92%}
  .pcard h3{font-size:12px;line-height:1.7;min-height:41px;margin-top:8px}
  /* no hover on touch: price first, then a CTA that is always visible */
  .pcard-foot{flex-direction:column-reverse;align-items:stretch;gap:8px}
  .price{align-items:flex-start;line-height:1.45}
  .price del{font-size:11px}
  .price b{font-size:13.5px}
  .price i{font-size:10.5px}
  .view-btn{opacity:1;transform:none;pointer-events:auto;
    height:32px;padding:0 10px;font-size:11.5px;gap:5px;justify-content:center}
  .view-btn svg{width:14px;height:14px}
  .badge{top:12px;left:-6px;font-size:11px;padding:1px 8px 2px}
  .badge::after{border-left-width:6px;bottom:-6px;border-bottom-width:6px}

  /* ---- brands: a rail instead of a 2-column block ---- */
  .brand-strip{padding:16px 0 18px}
  .brand-chip{position:static;display:inline-block;margin:0 16px 12px;font-size:15px;padding:3px 12px 5px}
  .brand-ic{display:none}
  .brand-list{
    display:flex;grid-template-columns:none;margin-inline-start:0;gap:0;padding:0 10px;
    overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
  }
  .brand-list::-webkit-scrollbar{display:none}
  .brand-list li{flex:0 0 33.33%;scroll-snap-align:start;border:0;padding:0 6px}
  /* the per-brand heights are desktop art direction; one height reads better here */
  .brand-list li:nth-child(n) img{height:32px}
  .brand-list li:nth-child(n)>img{margin-bottom:12px}
  .bpill{max-width:none;font-size:11.5px;padding:3px 10px 4px}
  .bpill::before,.bpill::after{display:none}

  /* ---- product / blog carousels ---- */
  .carousel{padding-top:16px}
  .carousel.low .panel{height:118px}
  .carousel > .wrap{padding-bottom:12px}
  .pgrid{--per-view:2;--rail-pad:14px;gap:var(--rail-gap);
    padding:18px var(--rail-pad);margin:-14px calc(var(--rail-pad)*-1)}
  .pgrid > *{flex:0 0 calc((100% - (var(--per-view) - 1) * var(--rail-gap)) / var(--per-view))}
  .c-nav{display:none}
  .carousel .dots{margin-top:12px}
  .chips{order:4;width:100%;margin-inline-end:0;gap:8px;padding-bottom:4px;
    overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .chips::-webkit-scrollbar{display:none}
  .chip{flex:none;height:34px;min-width:0;padding:0 16px;font-size:12.5px}
  .chip.is-on{min-width:0}

  /* ---- promos: a rail with a peek instead of two stacked banners ---- */
  .promos{
    display:flex;grid-template-columns:none;gap:var(--rail-gap);
    overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
  }
  .promos::-webkit-scrollbar{display:none}
  .promo{flex:0 0 86%;scroll-snap-align:start;height:150px;border-radius:18px;
    padding:20px 18px 0;background-size:cover;background-position:center}
  .promo-txt{padding-inline-start:0}
  .promo-txt b{font-size:16px;line-height:1.45}
  .promo-txt span{font-size:11.5px;margin-top:4px}
  .promo-cta{bottom:16px;inset-inline-start:18px;inset-inline-end:auto;
    height:34px;padding:0 12px 0 5px;font-size:11px;gap:7px}
  .arrow-blue.xs{width:24px;height:24px}
  .arrow-blue.xs svg{width:12px;height:12px}

  /* ---- faq: title and image share one row ---- */
  .faq{gap:16px}
  .faq-side{flex-direction:row;align-items:center;gap:14px}
  .faq-title{align-self:center;font-size:17px}
  .faq-arch{flex:none;width:96px;height:96px;max-width:none;border-radius:18px}
  .faq-list{gap:10px}
  .faq-list summary{height:auto;min-height:48px;padding:10px 14px;font-size:13px;line-height:1.6}
  .faq-list .chev svg{width:18px;height:18px}
  .faq-body{padding:12px 14px;font-size:12px;line-height:1.9}

  /* ---- blog ---- */
  .blog .sec-title{font-size:15.5px}
  .blog-ic svg{width:20px;height:20px}
  .blog .pgrid{--per-view:1.2}
  .bcard{padding:8px 8px 12px}
  .bcard-img{height:132px;border-radius:11px}
  .bcard h3{min-height:0;margin:10px 6px 0;font-size:13.5px;line-height:1.7}
  .bcard p{margin:6px 6px 0;font-size:11.5px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .bcard-date{margin:12px 6px 0;padding-top:10px;font-size:11.5px}
  .bcard-date svg{width:16px;height:16px}

  /* ---- features: a rail, not four stacked bars ---- */
  .features{
    display:flex;grid-template-columns:none;gap:var(--rail-gap);
    overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
  }
  .features::-webkit-scrollbar{display:none}
  .feat{flex:0 0 62%;scroll-snap-align:start;height:76px;border-radius:18px;gap:12px;padding:0 16px}
  .feat-ic{width:32px;height:32px}
  .feat-txt b{font-size:13.5px}
  .feat-txt span{font-size:11px}
  .feat::after{bottom:12px;inset-inline-start:16px;width:22px;height:3px}

  /* ---- seo ---- */
  .seo h2{font-size:16px}
  .seo-body{margin-top:12px}
  .seo-body p{font-size:12.5px;line-height:2.1}
  .seo-body p:nth-child(2){display:none}   /* the faded second copy is desktop filler */
  .seo-more{margin-top:16px;font-size:12.5px}

  /* ---- footer ---- */
  .site-footer{margin-top:calc(var(--sec-gap) + 10px);margin-bottom:0}
  .to-top{top:-24px;width:48px;height:48px;border-radius:16px 16px 20px 20px}
  .to-top svg{width:20px;height:20px}
  .foot-main{grid-template-columns:repeat(2,1fr);gap:22px 14px;padding:34px 16px 22px;
    border-radius:18px 18px 0 0}
  .foot-main::before{width:110px;height:24px}
  .foot-brand{grid-column:1/-1}
  .foot-brand .logo-img{height:44px}
  .foot-brand p{margin-top:10px;font-size:12px;line-height:1.9}
  .socials{margin-top:14px;gap:10px}
  .socials a{width:38px;height:38px;border-radius:11px}
  .socials a svg{width:18px;height:18px}
  .foot-col{gap:10px}
  .foot-col h4,.foot-contact h4{font-size:13.5px;margin-bottom:0}
  .foot-col a{font-size:12px}
  .foot-contact{grid-column:1/-1}
  .h24{margin:0 0 10px}
  .crow{margin-bottom:10px;font-size:12px}
  .crow svg{width:18px;height:18px}
  .foot-bottom{flex-direction:column;align-items:center;gap:14px;text-align:center;
    padding:16px 16px 22px;border-radius:0 0 18px 18px}
  .foot-bottom::before{inset-inline:16px}
  .copy{font-size:11.5px;padding:8px 16px}
  .trust{height:56px}
}

.lat{font-family:"Poppins",sans-serif;font-weight:400;letter-spacing:.2px}

/* ===================== MEGA MENU ===================== */
/* Trigger lives in .hdr-bar; the panel is anchored to the bar so it spans it fully. */
.site-header{position:relative;z-index:60}
.hdr-bar{position:relative}
.megamenu{position:static;display:flex;align-items:center}
.megamenu .btn-cats{position:relative;z-index:2}
.mm-caret{width:17px;height:17px;margin-inline-start:2px;opacity:.85;transition:transform .22s ease}
.megamenu.is-open .mm-caret{transform:rotate(180deg)}

.mm-panel{
  position:absolute;top:calc(100% + 12px);inset-inline:0;z-index:40;
  background:#fff;border:1px solid var(--line);border-radius:var(--r-panel);
  box-shadow:0 26px 60px rgba(20,44,50,.16);
  padding:26px 26px 0;text-align:right;
  opacity:0;visibility:hidden;transform:translateY(-10px);
  transition:opacity .2s ease,transform .22s ease,visibility .22s;
}
.mm-panel[hidden]{display:block}          /* animate instead of hard-hiding */
.megamenu.is-open .mm-panel{opacity:1;visibility:visible;transform:none}
/* keeps hover alive across the gap between button and panel */
.mm-panel::before{content:"";position:absolute;top:-14px;inset-inline:0;height:14px}

.mm-head{display:none}

.mm-inner{
  display:grid;gap:0 26px;align-items:stretch;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 236px 226px;
}
/* hairline on the inline-end (left, in RTL) of each text column */
.mm-inner>.mm-group:not(.mm-feature),
.mm-inner>.mm-stack{padding-inline-end:26px;border-inline-end:1px solid var(--line)}

.mm-stack{display:flex;flex-direction:column;gap:24px;min-width:0}
.mm-stack .mm-group+.mm-group{padding-top:22px;border-top:1px solid var(--line)}

.mm-group{min-width:0}
.mm-h{
  display:flex;align-items:center;gap:10px;min-height:50px;
  font-size:15px;font-weight:800;color:var(--ink);line-height:1.55;margin-bottom:10px;
}
.mm-ic{
  width:34px;height:34px;border-radius:11px;background:var(--icon-tile);
  display:grid;place-items:center;color:var(--blue);flex:none;
  transition:background .2s,color .2s;
}
.mm-ic svg{width:19px;height:19px}
.mm-group:hover .mm-ic{background:var(--blue);color:#fff}

.mm-list{list-style:none;margin:0;padding:0}
.mm-list a{
  position:relative;display:flex;align-items:center;gap:8px;
  padding:7px 12px 7px 10px;border-radius:10px;
  font-size:14px;color:#4A4A4A;line-height:1.85;
  transition:background .16s,color .16s,padding .16s;
}
.mm-list a::before{
  content:"";width:5px;height:5px;border-radius:50%;background:#D3DCDD;flex:none;
  transition:background .16s,transform .16s;
}
.mm-list a:hover{background:var(--tan-soft);color:var(--blue);padding-inline-start:16px}
.mm-list a:hover::before{background:var(--blue);transform:scale(1.25)}
.mm-list a>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.mm-tag{
  font-style:normal;font-size:10.5px;font-weight:700;line-height:1;
  padding:4px 7px 5px;border-radius:6px;margin-inline-start:2px;flex:none;
  background:var(--blue-soft);color:var(--blue);
}
.mm-tag:not(:empty){white-space:nowrap}

/* ---- featured column: اجناس بلور (the only category with real subcategories) ---- */
.mm-feature{
  background:var(--strip);border-radius:16px;padding:16px 16px 15px;
  align-self:start;display:flex;flex-direction:column;
}
.mm-feature .mm-h{min-height:0;margin-bottom:10px}
.mm-feature .mm-ic{background:#fff}
.mm-sub{
  list-style:none;margin:0 0 11px;padding:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 10px;
}
.mm-sub a{
  display:block;padding:5px 2px;font-size:13.5px;color:#5A6266;line-height:1.8;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .16s;
}
.mm-sub a:hover{color:var(--blue)}
.mm-all{
  display:flex;align-items:center;gap:6px;margin-top:0;padding-top:13px;
  border-top:1px solid #DCE5E6;font-size:13px;font-weight:700;color:var(--blue);
}
.mm-all svg{width:15px;height:15px;transition:transform .18s}
.mm-all:hover svg{transform:translateX(3px)}

/* ---- promo column ---- */
.mm-promo{
  position:relative;overflow:hidden;min-height:250px;
  border-radius:16px;padding:18px 18px 0;
  background:linear-gradient(160deg,var(--blue) 0%,var(--blue-dark) 62%,#08414E 100%);
  color:#fff;display:flex;flex-direction:column;
}
.mm-promo img{
  position:relative;width:calc(100% + 36px);max-width:none;height:auto;
  margin:auto -18px -4px;object-fit:contain;pointer-events:none;
  filter:drop-shadow(0 12px 24px rgba(0,0,0,.32));
}
.mm-promo-kicker{
  position:relative;z-index:1;align-self:flex-start;font-size:11px;font-weight:700;line-height:1;
  padding:6px 10px 7px;border-radius:999px;background:rgba(255,255,255,.18);
}
.mm-promo-title{position:relative;z-index:1;display:block;margin-top:12px;font-size:17px;font-weight:800;line-height:1.75}
.mm-promo-cta{
  position:relative;z-index:1;margin-top:16px;
  align-self:flex-start;display:inline-flex;align-items:center;gap:6px;
  height:36px;padding:0 14px;border-radius:999px;
  background:#fff;color:var(--blue);font-size:13px;font-weight:700;
  transition:gap .18s;
}
.mm-promo-cta svg{width:15px;height:15px}
.mm-promo:hover .mm-promo-cta{gap:10px}

/* ---- panel footer ---- */
.mm-foot{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  margin-top:22px;padding:15px 2px 19px;border-top:1px solid var(--line);
}
.mm-quick{display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.mm-quick a{font-size:13.5px;color:#5A6266;transition:color .16s}
.mm-quick a:hover{color:var(--blue)}

.mm-scrim{
  position:fixed;inset:0;z-index:30;background:rgba(20,44,50,.34);
  opacity:0;visibility:hidden;transition:opacity .22s,visibility .22s;
}
.mm-scrim.is-on{opacity:1;visibility:visible}

@media (prefers-reduced-motion:reduce){
  .mm-panel,.mm-caret,.mm-list a,.mm-scrim{transition:none}
}

/* ---- narrower desktops: drop the promo, then the featured column ---- */
@media (max-width:1200px){
  .mm-inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 220px}
  .mm-promo{display:none}
}
/* ---- below the 4-column layout: full-screen sheet ---- */
@media (max-width:1040px){
  .megamenu{position:static}
  .mm-panel{
    --mm-pad:max(20px,calc((100% - 760px) / 2));
    position:fixed;inset:0;inset-inline:0;top:0;z-index:80;
    border:0;border-radius:0;box-shadow:none;
    padding:0 0 24px;overflow-y:auto;-webkit-overflow-scrolling:touch;
    transform:translateY(14px);
  }
  .mm-panel::before{display:none}
  .mm-head{
    position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;
    gap:14px;padding:16px var(--mm-pad);background:#fff;border-bottom:1px solid var(--line);
  }
  .mm-head b{font-size:16px;font-weight:800}
  .mm-close{width:38px;height:38px;border-radius:11px;background:var(--icon-tile);display:grid;place-items:center;color:var(--ink)}
  .mm-close svg{width:20px;height:20px}
  .mm-inner{display:block;padding:18px var(--mm-pad) 0}
  .mm-inner>.mm-group:not(.mm-feature),
  .mm-inner>.mm-stack{padding-inline-end:0;border-inline-end:0}
  .mm-h{min-height:0}
  .mm-inner>.mm-group,.mm-inner>.mm-stack{margin-bottom:22px}
  .mm-stack{gap:22px}
  .mm-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px}
  /* wide-but-short card on phones: cutout to the inline-end edge, copy clear of it */
  .mm-promo{display:flex;min-height:0;padding:18px;margin-bottom:20px}
  .mm-promo img{width:158px;margin:14px auto -4px}
  .mm-foot{flex-direction:column;align-items:flex-start;gap:16px;margin:0 var(--mm-pad)}
  .mm-foot .see-all{align-self:flex-start}
  .mm-quick{gap:18px}
  body.mm-locked{overflow:hidden}
}
@media (max-width:480px){
  .mm-list,.mm-sub{grid-template-columns:minmax(0,1fr)}
}
