/* =========================================================
   Salah Samaneh — shared stylesheet
   Design tokens pulled from the "sama3nah" Figma file
   (canvas: صفحات الموقع — كاملة)
   ========================================================= */

:root{
  --navy:#071c30;
  --navy-dark:#051322;
  --blue:#0d7ff5;
  --blue-light:#afd3fd;
  --cyan:#16c7d8;
  --bg-soft:#f3f8fe;
  --gold:#b08d3d;
  --bg-soft-gold:#fbf8ef;
  --border:#cbdcec;
  --text:#071c30;
  --text-muted:#5b6b7a;
  --white:#ffffff;
  --radius:8px;
  --radius-lg:10px;
  --container:1200px;
  --header-h:115px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:"Alexandria","Segoe UI",Tahoma,sans-serif;
  color:var(--text);
  background:var(--white);
  direction:rtl; /* default: Arabic is the primary market language */
  -webkit-font-smoothing:antialiased;
}
/* English/LTR mode: base direction flip. Component-level overrides for the
   selectors actually rendered in English pages live in the dedicated
   "LTR overrides" section at the end of this file. */
html[dir="ltr"] body{direction:ltr;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;}
input,select,textarea{font-family:inherit;}
button,a{-webkit-tap-highlight-color:transparent;}

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

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 28px;
  border-radius:var(--radius-lg);
  font-size:14px;
  font-weight:500;
  border:1px solid transparent;
  transition:opacity .15s ease;
  white-space:nowrap;
}
.btn:hover{opacity:.88;}
.btn-primary{background:var(--blue);color:var(--white);}
.btn-outline{background:var(--white);border-color:var(--blue);color:var(--blue);}
.btn-outline-white{background:transparent;border-color:var(--white);color:var(--white);}
.btn-white{background:var(--white);border-color:var(--white);color:var(--navy);}
.btn-block{width:100%;}
.btn-sm{padding:8px 16px;font-size:12.5px;}
.btn-secondary{background:var(--white);color:var(--blue);}


/* ---------- header ---------- */
.site-header{
  background:var(--navy);
  color:var(--white);
}
.site-header .bar{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  direction:ltr;
}
.site-header .bar > *{direction:rtl;}
.brand{display:flex;align-items:center;gap:10px;font-weight:600;color:var(--white);direction:ltr;}
.logo-img{height:89px;width:auto;flex:none;}
.brand .name{font-size:14px;line-height:1.3;}
.brand .name small{display:block;font-weight:300;font-size:10px;opacity:.7;letter-spacing:.5px;}

.nav-links{display:flex;align-items:center;gap:28px;font-weight:300;font-size:14.5px;}
.nav-links a.active{color:var(--cyan);}
.header-right{display:flex;align-items:center;gap:24px;}

.header-search{
  display:flex;align-items:center;gap:8px;
  border-bottom:1px solid rgba(255,255,255,.25);
  padding-bottom:6px;min-width:200px;
}
.header-search input{
  background:transparent;border:0;color:var(--white);font-size:14px;
  width:100%;outline:none;
}
.header-search input::placeholder{color:rgba(255,255,255,.45);}
.header-search svg{opacity:.7;flex:none;}

.header-actions{display:flex;align-items:center;gap:20px;font-size:14.5px;font-weight:300;}
.header-actions a{text-decoration:underline;}
.header-actions .language-switch{
  display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:5px 12px;
  border:1px solid rgba(12,43,74,.18);border-radius:999px;text-decoration:none;font-weight:500;
  direction:ltr;background:#fff;color:var(--navy);transition:.2s ease;
}
.header-actions .language-switch:hover{border-color:var(--cyan);color:var(--cyan);}
.header-actions .icon-btn{
  display:flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:50%;
  background:rgba(255,255,255,.08);position:relative;
}
.header-actions .icon-btn .badge{
  position:absolute;top:-4px;left:-4px;
  background:var(--cyan);color:var(--navy);
  font-size:10px;font-weight:700;border-radius:50%;
  width:16px;height:16px;display:flex;align-items:center;justify-content:center;
}
.menu-toggle,.mobile-menu,.mobile-menu-backdrop,.mobile-action-bar{display:none;}
.account-pill{
  display:flex;align-items:center;gap:12px;
  border:1px solid var(--gold);border-radius:30px;
  padding:6px 8px 6px 16px;direction:rtl;
}
.pill-text{display:flex;flex-direction:column;line-height:1.4;}
.pill-text b{font-size:13px;font-weight:600;color:var(--white);}
.pill-text small{font-size:11px;color:var(--gold);}
.pill-avatar{width:38px;height:38px;flex:none;}
.pill-avatar svg{width:100%;height:100%;display:block;}

/* ---------- page banner (icon + breadcrumb + title) ---------- */
.page-banner{
  overflow:hidden;
  border-bottom:0;
  position:relative;
}
.page-badge{
  position:absolute;top:22px;
  right:max(24px,calc((100vw - var(--container))/2 + 24px));
  z-index:2;direction:rtl;
  display:inline-block;border:1px solid var(--border);border-radius:20px;
  padding:7px 18px;font-size:12.5px;color:var(--text);background:var(--white);
}
.page-banner .banner-inner{
  display:flex;
  min-height:230px;
  direction:ltr;
}
.page-banner.theme-gold-wholesale .banner-inner{
  display:flex;
  min-height:320px;
  direction:ltr;
}
.page-banner .banner-decor{
  flex:0 0 40%;
  max-width:440px;
  min-width:200px;
  display:flex;
  align-items:center;
  justify-content:center;
  background-size:cover;
  background-position:center;
}
.page-banner.theme-blue .banner-decor{background-image:url("../img/banners/banner-blue.jpg");}
.page-banner.theme-gold .banner-decor{background-image:url("../img/banners/banner-gold.jpg");}
.page-banner.theme-gold-wholesale .banner-decor{background-image:url("../img/banners/banner-gold-wholesale.jpg");}
.page-banner .banner-icon{width:150px;height:150px;flex:none;}
.page-banner.theme-blue .banner-icon{color:#c9def0;}
.page-banner.theme-gold .banner-icon,
.page-banner.theme-gold-wholesale .banner-icon{color:#e7d9b8;}
.page-banner .banner-icon svg{width:100%;height:100%;display:block;}
.page-banner .banner-content{
  flex:1;
  min-width:0;
  direction:rtl;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:var(--bg-soft);
  padding:34px 48px;
  padding-right:max(24px,calc((100vw - var(--container))/2 + 24px));
  min-height:230px;
}
.page-banner.theme-gold .banner-content,
.page-banner.theme-gold-wholesale .banner-content{background:var(--bg-soft-gold);}
.page-banner .breadcrumb{font-size:12.5px;color:var(--text-muted);margin-bottom:10px;}
.page-banner .breadcrumb a{color:var(--blue);}
.page-banner h1{font-size:32px;font-weight:600;color:var(--blue);margin:0 0 10px;}
.page-banner p{font-size:14.5px;color:var(--text-muted);margin:0;max-width:520px;line-height:1.8;}

/* ---------- home hero slider ---------- */
.hero{
  padding:64px 0 40px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}
.hero > .hero-media{
  background:var(--bg-soft);
  border-radius:16px;
  min-height:340px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.hero > .hero-media .ph{font-size:13px;color:var(--text-muted);}
.hero > .hero-copy h1{font-size:38px;font-weight:300;line-height:1.35;margin:0 0 16px;}
.hero > .hero-copy h1 b{font-weight:500;}
.hero > .hero-copy p{color:var(--text-muted);font-size:15px;line-height:1.8;margin:0 0 18px;}
.hero > .hero-copy .checks{font-size:12px;color:var(--text-muted);margin-bottom:26px;}

.hero-slider{
  position:relative;
  min-height:610px;
  overflow:hidden;
  background:#f4f8fd;
  isolation:isolate;
}
.hero-slides{position:relative;min-height:85vh;}
.hero-slide{
  position:absolute;
  inset:0;
  visibility:hidden;
  opacity:0;
  transform:translateX(-34px);
  transition:opacity .55s ease,transform .55s ease,visibility .55s;
  pointer-events:none;
}
.hero-slide.is-active{
  visibility:visible;
  opacity:1;
  transform:translateX(0);
  pointer-events:auto;
  z-index:1;
}
.hero-slide-inner{
  min-height:75vh;
  display:grid;
  grid-template-columns:minmax(390px,.86fr) minmax(0,1.2fr);
  align-items:center;
  gap:36px;
  direction:rtl;
  background-position:left;
  background-size:70%;
  background-repeat:no-repeat;
}
.hero-slider .hero-media{display:none;}
.hero-slider .hero-copy{position:relative;z-index:2;padding:60px 0;text-align:right;}
.hero-slider .hero-copy h1{font-size:46px;font-weight:300;line-height:1.42;margin:0 0 18px;letter-spacing:-1.3px;}
.hero-slider .hero-copy h1 b{font-weight:500;}
.hero-slider .hero-copy p{color:var(--text-muted);font-size:15px;line-height:1.9;margin:0 0 28px;max-width:570px;}
.hero-slider .hero-copy .checks{font-size:12px;color:var(--text-muted);margin:24px 0 0;white-space:nowrap;}
.hero-actions{display:flex;gap:14px;}
.hero-slider .hero-actions .btn{min-width:176px;}
.hero-pagination{
  position:absolute;
  z-index:3;
  left:max(20px,calc((100vw - var(--container))/2 + 8px));
  bottom:62px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  direction:ltr;
}
.hero-count{font-size:14px;font-weight:300;color:var(--text-muted);line-height:1;}
.hero-dot{
  width:24px;
  height:5px;
  padding:0;
  border:0;
  border-radius:0;
  background:#d5dadd;
  transition:width .2s ease,background .2s ease;
}
.hero-dot.is-active{width:32px;background:var(--cyan);}
.hero-arrow{
  position:absolute;
  z-index:4;
  top:50%;
  width:42px;
  height:42px;
  margin-top:-21px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(7,28,48,.12);
  border-radius:50%;
  background:rgba(255,255,255,.82);
  color:var(--navy);
  box-shadow:0 8px 24px rgba(7,28,48,.08);
  opacity:0;
  transition:opacity .2s ease,background .2s ease;
}
.hero-slider:hover .hero-arrow,.hero-arrow:focus-visible{opacity:1;}
.hero-arrow:hover{background:var(--white);}
.hero-next{right:22px;}
.hero-prev{left:22px;}

/* ---------- category pills ---------- */
.pill-row{
  display:flex;gap:14px;overflow-x:auto;padding:28px 0;
}
.pill{
  flex:none;padding:16px 28px;border-radius:var(--radius-lg);
  background:var(--white);border:1px solid var(--border);
  font-size:14px;font-weight:500;
}
.pill.active{background:var(--blue);color:var(--white);border-color:var(--blue);box-shadow:0 6px 14px rgba(13,127,245,.25);}

/* ---------- feature strip ---------- */
.feature-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:50px;
  padding:28px 64px 56px;
}
.feature-box{
  border:1px solid var(--border-color,var(--border));
  border-radius:10px;
  min-height:195px;
  padding:42px 20px 34px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.feature-box .ico{
  width:56px;
  height:56px;
  margin:0 auto 20px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.feature-box .ico img{width:55px;height:55px;object-fit:contain;}
.feature-box h3{font-size:22px;line-height:1.35;font-weight:400;color:var(--navy);margin:0;}
.feature-box.c1{border-color:var(--cyan);}
.feature-box.c2{border-color:var(--blue);}
.feature-box.c3{border-color:var(--blue-light);}

/* ---------- section heading ---------- */
.section{padding:36px 0;}
.section-head{display:flex;align-items:center;justify-content:center;margin-bottom:22px;}
.section-head h2{font-size:24px;font-weight:600;margin:0;}
.more-link{color:var(--blue);font-size:21px;display:flex;align-items:center;gap:8px;flex-direction:row-reverse;}

/* ---------- product grid / cards ---------- */
.product-grid{
  display:grid;grid-template-columns:repeat(5,1fr);gap:16px;
}
.product-grid.cols-4{grid-template-columns:repeat(4,1fr);}
.product-card{
  background:var(--white);
  border:1px solid #ddd;
  border-radius:8px;
  padding:5px;
  overflow:visible;
  display:flex;
  flex-direction:column;
}
.product-card > form{display:contents;}
.product-card .thumb{
  order:1;
  background:var(--white);
  aspect-ratio:1/1.02;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-muted);font-size:12px;position:relative;
  overflow:hidden;
}
.product-card .thumb img{
  width:100%;height:100%;object-fit:contain;padding:12px 16px 0;
}
.product-card .thumb .tag{
  position:absolute;top:14px;right:12px;
  background:transparent;padding:0;
  font-size:12px;font-weight:500;color:var(--text);
}
.product-card .thumb .fav{
  position:absolute;top:13px;left:12px;
  color:var(--blue);opacity:1;
  display:flex;align-items:center;justify-content:center;
}
.product-card .thumb .fav svg{width:20px;height:20px;}
.product-card .body{
  order:3;
  min-height:70px;
  padding:16px 0 0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto 1fr;
  column-gap:12px;
  align-items:start;
}
.product-card .name{grid-column:1;grid-row:1;font-size:14px;font-weight:500;line-height:1.5;color:var(--text);}
.product-card .desc{grid-column:1;grid-row:2;font-size:10.5px;color:var(--text-muted);line-height:1.5;grid-column: span 2 / span 2;
    grid-row: span 1;}
.product-card .price{grid-column:2;grid-row:1 / span 2;font-weight:700;font-size:22px;white-space:nowrap;direction:ltr;}
.product-card .price s{font-weight:400;font-size:10.5px;color:#acadae;margin-inline-start:6px;}
.product-card .price.price-on-request{font-weight:500;font-size:13px;color:var(--text-muted);direction:inherit;white-space:normal;}
.product-card .add-btn{
  order:2;
  background:var(--blue);color:var(--white);border:0;
  min-height:56px;padding:12px 18px;font-size:18px;font-weight:300;
  border-radius:8px;
  display:flex;align-items:center;justify-content:center;gap:14px;flex-direction:row-reverse;
  transition:background .2s ease,transform .2s ease;
}
.product-card .add-btn::before{
  content:"";
  width:25px;height:25px;flex:none;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 10.2a2 2 0 0 0 2 1.5h7.7a2 2 0 0 0 1.9-1.4L21 8H7'/%3E%3Ccircle cx='10' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E");
}
.product-card .add-btn:hover{background:#0873e2;transform:translateY(-1px);}

/* ---------- product gallery ---------- */
.product-detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:32px 24px 20px;}
.product-info h1{font-size:26px;margin:14px 0 8px;}
.qty-stepper input{width:72px;border:0;background:transparent;text-align:center;font:inherit;font-weight:600;outline:none;}
.product-gallery{display:flex;flex-direction:column;gap:14px;}
.gallery-main{
  aspect-ratio:1/1;border:1px solid var(--border);border-radius:var(--radius-lg);
  display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--white);
}
.gallery-main img{width:100%;height:100%;object-fit:contain;padding:28px;}
.gallery-thumbs{display:flex;gap:12px;}
.gallery-thumbs button{
  width:88px;height:88px;flex:none;padding:0;border:2px solid var(--border);border-radius:var(--radius);
  background:var(--white);overflow:hidden;cursor:pointer;transition:border-color .2s ease;
}
.gallery-thumbs button img{width:100%;height:100%;object-fit:contain;padding:8px;}
.gallery-thumbs button.active,.gallery-thumbs button:hover{border-color:var(--blue);}

.rating-row{display:flex;align-items:center;gap:6px;margin:10px 0 14px;font-size:13.5px;color:var(--text-muted);}
.rating-row b{color:var(--text);font-size:15px;}
.rating-row .stars{color:#f5a623;letter-spacing:1px;font-size:13px;}
.rating-row .dot{color:var(--border);}
.price-row{font-size:30px;font-weight:700;margin:18px 0;}
.price-row s{font-size:15px;font-weight:400;color:var(--text-muted);margin-inline-start:10px;}
.price-row.price-on-request{font-size:18px;font-weight:500;color:var(--text-muted);}
.unit-toggle{display:flex;gap:10px;margin-bottom:18px;}
.unit-toggle button{    padding: 9px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-wrap: nowrap;}
.unit-toggle button.active{background:var(--navy);color:var(--white);border-color:var(--navy);}
.unit-toggle button:disabled{opacity:.45;cursor:not-allowed;}
.qty-stepper{display:flex;align-items:center;justify-content:space-between;width:186px;border:1px solid var(--border);border-radius:8px;padding:10px 18px;margin-bottom:22px;}
.qty-stepper button{background:none;border:0;font-size:18px;color:var(--text);cursor:pointer;line-height:1;}
.qty-stepper button:disabled{opacity:.4;cursor:not-allowed;}
.qty-stepper span{font-size:15px;font-weight:600;}
.trust-badges{display:flex;gap:12px;margin-top:26px;}
.trust-badges span{flex:1;text-align:center;border:1px solid var(--border);border-radius:8px;padding:14px 10px;font-size:12.5px;color:var(--text);background:var(--bg-soft);}
.related-products .product-grid{grid-template-columns:repeat(5,1fr);}

/* ---------- CTA banners ---------- */
.cta-banner{
  background:var(--bg-soft);
  border-radius:var(--radius);
  padding:44px;
  text-align:center;
  margin:24px 0;
}
.cta-banner:not(.dark){
  min-height:366px;
  border-radius:6px;
  padding:44px 64px;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:auto 1fr;
  column-gap:72px;
  align-items:center;
  max-width:1000px;
  margin:0 auto;
}
.cta-banner h2{font-size:26px;font-weight:600;margin:0 0 10px;}
.cta-banner:not(.dark) h2{
  grid-column:1 / -1;
  grid-row:1;
  align-self:start;
  font-size:36px;
  margin:0 0 42px;
}
.cta-banner p{color:var(--text-muted);margin:0 0 22px;}
.cta-banner:not(.dark) > p{
  grid-column:1;
  grid-row:2;
  justify-self:center;
  align-self:start;
  max-width:390px;
  margin:10px 0 0;
  color:#35383c;
  font-size:25px;
  font-weight:300;
  line-height:1.75;
  text-align:right;
}
.cta-banner .field-row{
  display:flex;justify-content:center;gap:12px;max-width:420px;margin:0 auto;
}
.cta-banner:not(.dark) .field-row{
  grid-column:2;
  grid-row:2;
  align-self:start;
  width:100%;
  max-width:316px;
  margin:14px auto 0;
  flex-direction:column;
  gap:12px;
}
.cta-banner input{
  flex:1;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius);
  font-size:13.5px;text-align:right;
}
.cta-banner:not(.dark) input{
  width:100%;
  min-height:49px;
  flex:none;
  border-color:var(--blue);
  color:var(--blue);
  outline:none;
  padding:12px 18px 12px 52px;
  background-color:transparent;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%230d7ff5' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='11' height='20' rx='2'/%3E%3Cpath d='M8 5h5M9 18h3M18 7h3v8h-3M18 10h3'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:16px center;
}
.cta-banner:not(.dark) input::placeholder{color:var(--blue);opacity:1;}
.cta-banner:not(.dark) .field-row .btn{
  width:100%;
  min-height:49px;
  padding:12px 18px;
  font-size:15px;
}
.cta-banner .resend-link{
  align-self:flex-end;
  margin-top:-2px;
  color:var(--blue);
  font-size:11px;
  text-decoration:underline;
}
.cta-banner.dark{
  min-height:366px;
  max-width:1000px;
  margin:24px auto;
  padding:54px 64px;
  border-radius:6px;
  background:var(--blue);
  color:var(--white);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.cta-banner.dark h2{
  order:2;
  margin:8px 0 10px;
  font-size:40px;
  line-height:1.35;
  font-weight:300;
}
.cta-banner.dark p{color:rgba(255,255,255,.9);font-weight:300;}
.cta-banner.dark p:first-of-type{
  order:1;
  margin:0;
  font-size:15px;
}
.cta-banner.dark p:nth-of-type(2){
  order:3;
  margin:0 0 26px;
  font-size:17px;
  line-height:1.7;
}
.cta-banner.dark .btn{
  order:4;
  width:316px;
  min-height:49px;
  padding:12px 24px;
  border-radius:7px;
  color:#111 !important;
  font-size:15px;
  font-weight:400;
}

/* ---------- footer ---------- */
.site-footer{background:var(--navy);color:var(--white);margin-top:80px;}
.footer-top{
  min-height:342px;
  padding:58px 24px 50px;
  display:grid;
  grid-template-columns:repeat(5,1fr) 2fr;
  gap:34px;
  direction:rtl;
}
.footer-top > *{direction:rtl;}
.footer-col h4{font-size:16px;font-weight:600;line-height:1.4;margin:0;white-space:nowrap;}
.footer-col ul{margin-top:16px;}
.footer-col ul li{margin-bottom:12px;}
.footer-col ul li a{font-size:14px;font-weight:300;color:rgba(255,255,255,.56);}
.admin-main .data-table input{width:100%;min-width:180px;}
.footer-brand-col{
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:space-between;
}
.footer-brand-col.without-search{justify-content:center;}
.footer-brand-col .brand{display:block;}
.footer-brand-col .brand .logo-img{width:150px;height:auto;}
.footer-search{
  width:100%;
  max-width:520px;
  margin:30px 0 0;
  padding:0 0 10px;
  display:flex;
  align-items:center;
  gap:12px;
  direction:ltr;
  border-bottom:1px solid rgba(255,255,255,.28);
}
.footer-search svg{width:24px;height:24px;flex:none;color:rgba(255,255,255,.9);}
.footer-search input{
  width:100%;
  padding:0;
  border:0;
  outline:none;
  background:transparent;
  color:var(--white);
  font-size:16px;
  font-weight:300;
  text-align:right;
  direction:rtl;
}
.footer-search input::placeholder{color:rgba(255,255,255,.36);opacity:1;}
.footer-bottom{
  width:100%;
  max-width:none;
  min-height:84px;
  background:var(--navy-dark);
  padding:22px max(24px,calc((100vw - var(--container))/2 + 24px));
  display:flex;align-items:center;justify-content:space-between;
  font-size:14px;font-weight:300;
  direction:ltr;
}
.footer-bottom > *{direction:rtl;}
.footer-social{display:flex;gap:19px;direction:ltr;}
.footer-social a{
  width:26px;height:26px;border-radius:0;background:transparent;
  display:flex;align-items:center;justify-content:center;
}
.footer-social a svg{width:25px;height:25px;}
.footer-nav{display:flex;gap:42px;font-size:15px;}
.footer-legal{display:flex;align-items:center;justify-content:center;gap:18px;padding:14px max(24px,calc((100vw - var(--container))/2 + 24px));border-top:1px solid rgba(255,255,255,.09);background:var(--navy);font-size:11px;color:rgba(255,255,255,.55);}
.footer-legal>span{color:rgba(255,255,255,.78);font-weight:600;white-space:nowrap;}
.footer-legal>div{display:flex;align-items:center;justify-content:center;gap:8px 18px;flex-wrap:wrap;}
.footer-legal a{transition:color .15s ease;}
.footer-legal a:hover{color:var(--white);}

/* ---------- legal pages ---------- */
.legal-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;align-items:start;padding-top:42px;padding-bottom:64px;}
.legal-sidebar{position:sticky;top:calc(var(--header-h) + 22px);padding:20px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg-soft);}
.legal-sidebar h2{margin:0 0 12px;font-size:16px;}
.legal-sidebar nav{display:flex;flex-direction:column;gap:4px;}
.legal-sidebar a{padding:10px 12px;border-radius:7px;color:var(--text-muted);font-size:12px;line-height:1.5;}
.legal-sidebar a:hover,.legal-sidebar a.active{background:var(--white);color:var(--blue);box-shadow:0 2px 10px rgba(7,28,48,.06);}
.legal-document{min-width:0;padding:36px 42px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--white);box-shadow:0 10px 35px rgba(7,28,48,.05);}
.legal-document>h1{margin:0 0 24px;font-size:30px;line-height:1.4;}
.legal-copy{color:var(--text-muted);font-size:14px;line-height:2;white-space:normal;}
.legal-copy section+section,.legal-copy section+p,.legal-copy p+section{margin-top:24px;}
.legal-copy h2{margin:0 0 7px;color:var(--text);font-size:17px;line-height:1.6;}
.legal-copy p{margin:0;}
.legal-help{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:34px;padding-top:22px;border-top:1px solid var(--border);font-size:13px;}

/* ---------- rich text (HugeRTE-authored) content ---------- */
.rich-content{color:var(--text-muted);font-size:14px;line-height:1.9;}
.rich-content>*:first-child{margin-top:0;}
.rich-content>*:last-child{margin-bottom:0;}
.rich-content p{margin:0 0 14px;}
.rich-content h2{margin:22px 0 10px;color:var(--text);font-size:19px;line-height:1.5;}
.rich-content h3{margin:18px 0 8px;color:var(--text);font-size:16px;line-height:1.5;}
.rich-content h4{margin:16px 0 6px;color:var(--text);font-size:14.5px;line-height:1.5;}
.rich-content ul,.rich-content ol{margin:0 0 14px;padding-inline-start:22px;}
.rich-content ul{list-style:disc;}
.rich-content ol{list-style:decimal;}
.rich-content li{margin-bottom:6px;}
.rich-content a{color:var(--blue);text-decoration:underline;}
.rich-content blockquote{margin:0 0 14px;padding-inline-start:16px;border-inline-start:3px solid var(--border);color:var(--text-muted);}
.rich-content strong,.rich-content b{color:var(--text);font-weight:700;}

/* ---------- about page ---------- */
.about-hero{
  display:grid;grid-template-columns:1fr .82fr;gap:56px;align-items:center;
  padding:48px 24px 20px;
}
.about-media img{width:100%;height:100%;object-fit:cover;border-radius:var(--radius-lg);aspect-ratio:4/3;}
.eyebrow{display:block;color:var(--blue);font-size:13px;font-weight:700;margin:0 0 10px;}
.about-copy h1{font-size:32px;font-weight:600;line-height:1.4;margin:0 0 18px;}
.about-copy > p{color:var(--text-muted);font-size:14.5px;line-height:1.95;margin:0 0 28px;}
.about-stats{display:flex;gap:14px;}
.stat{
  flex:1;
  background:#000000;
  border-radius:var(--radius);
  padding:18px 14px;
  text-align:center;
  margin:5px;
}
.stat b{display:block;font-size:22px;font-weight:700;color:var(--blue);margin-bottom:4px;}
.stat b.sm{font-size:15px;}
.stat span{font-size:12px;color:var(--text-muted);}
.stat-l {
    background: #f3f8fe;
}

a.btn.dark {
    background: var(--blue);
    color: var(--white);
}



.about-features{background:var(--bg-soft);border-radius:var(--radius-lg);padding:48px 40px;margin:56px 0;text-align:center;}
.about-features h2{font-size:28px;font-weight:600;margin:0 0 30px;}
.about-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.about-feature-card{background:var(--white);border-radius:var(--radius);padding:30px 24px;}
.about-feature-card .ico{width:52px;height:52px;margin:0 auto 18px;}
.about-feature-card .ico svg{width:100%;height:100%;}
.about-feature-card h3{font-size:17px;font-weight:600;margin:0 0 8px;}
.about-feature-card p{font-size:13px;color:var(--text-muted);line-height:1.8;margin:0;}

.about-sectors{padding:10px 24px 60px;text-align:center;}
.about-sectors h2{font-size:26px;font-weight:600;margin:0 0 10px;}
.about-sectors .muted{color:var(--text-muted);font-size:14px;margin:0 0 28px;}
.sector-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;text-align:right;}
.sector-tile{
  display:flex;flex-direction:column;gap:10px;
  border-radius:var(--radius);padding:26px 22px;
  background:var(--blue);color:var(--white);
  font-size:17px;font-weight:700;min-height:96px;justify-content:center;
}
.sector-tile.dark{background:var(--navy);}
.sector-tile .go{font-size:12.5px;font-weight:400;color:rgba(255,255,255,.75);}

/* ---------- contact page ---------- */
.contact-layout{display:grid;grid-template-columns:1fr 320px;gap:24px;padding:40px 0 20px;align-items:start;}
.contact-form-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:36px 40px;}
.contact-form-card h2{font-size:24px;font-weight:600;margin:0 0 8px;}
.contact-form-card > p{color:var(--text-muted);font-size:13.5px;margin:0 0 26px;}
.form-actions{display:flex;justify-content:flex-end;}

.contact-sidebar{background:var(--navy);color:var(--white);border-radius:var(--radius-lg);padding:32px 26px;}
.contact-sidebar h2{font-size:21px;font-weight:600;margin:0 0 10px;}
.contact-sidebar > p{font-size:13px;color:rgba(255,255,255,.65);line-height:1.8;margin:0 0 22px;}
.contact-card{border-radius:var(--radius);padding:18px 20px;margin-bottom:14px;background:rgba(255,255,255,.06);text-align:center;}
.contact-card .label{display:block;font-size:12.5px;color:var(--cyan);margin:0 0 6px;}
.contact-card .value{display:block;font-size:15px;font-weight:600;}
.contact-card.highlight{background:var(--blue);}
.contact-card.highlight .label{color:rgba(255,255,255,.85);}
.contact-card.highlight .value{font-size:17px;direction:ltr;}
.contact-social{display:flex;gap:14px;justify-content:center;margin-top:8px;}
.contact-social a{
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.25);
  display:flex;align-items:center;justify-content:center;color:var(--white);
}
.contact-social a svg{width:17px;height:17px;}

.faq-section{padding:50px 0 60px;text-align:center;}
.faq-section h2{font-size:26px;font-weight:600;margin:0 0 10px;}
.faq-section .muted{color:var(--text-muted);font-size:14px;margin:0 0 30px;}
.faq-list{display:flex;flex-direction:column;gap:14px;text-align:right;}
.faq-row{
  display:flex;justify-content:space-between;align-items:center;gap:24px;
  border:1px solid var(--border);border-radius:var(--radius);
  padding:22px 26px;background:var(--white);
      flex-direction: row;

}
.faq-row .q{font-weight:600;font-size:15px;flex:0 0 auto;}
.faq-row .a{color:var(--text-muted);font-size:13.5px;flex:1;}

/* ---------- generic form / auth ---------- */
.auth-card{
  max-width:420px;margin:60px auto;
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius);
  padding:36px;text-align:center;
}
.auth-card h1{font-size:20px;margin:0 0 8px;}
.auth-card p{color:var(--text-muted);font-size:13px;margin:0 0 24px;}
.field{
  border:1px solid var(--border);border-radius:var(--radius);
  padding:14px 16px;text-align:right;font-size:13.5px;width:100%;margin-bottom:14px;
}
.link-sm{font-size:12px;color:var(--blue);text-decoration:underline;}

/* ---------- login split panel (phone + social) ---------- */
.login-panel{
  background:var(--bg-soft);
  border-radius:var(--radius-lg);
  max-width:1000px;
  margin:44px auto 70px;
  padding:52px 60px;
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:70px;
}
.login-panel h2{grid-column:1/-1;font-size:32px;font-weight:600;margin:0 0 36px;text-align:center;}
.login-panel > p{grid-column:1;align-self:center;font-size:25px;font-weight:500;line-height:1.8;color:#35383c;margin:8px 0 0;}
.login-panel .login-method{grid-column:2;align-self:start;display:flex;flex-direction:column;}
.login-panel .login-method .tabs{align-self:flex-start;}
.login-panel .login-method .login-form{align-self:stretch;}
.login-form{grid-column:2;align-self:start;display:flex;flex-direction:column;gap:14px;}
.phone-input,.login-input{position:relative;display:block;}
.phone-input input,.login-input input{
  width:100%;min-height:56px;
  border:1.5px solid var(--blue);border-radius:var(--radius-lg);
  background:var(--white);color:var(--blue);
  padding:14px 54px 14px 18px;
  text-align:right;font-size:14px;outline:none;
}
.phone-input input::placeholder,.login-input input::placeholder{color:var(--blue);opacity:.85;}
.phone-input .icon,.login-input .icon{
  position:absolute;top:50%;right:16px;transform:translateY(-50%);
  width:22px;height:22px;color:var(--blue);
  display:flex;pointer-events:none;
}
.phone-input .icon svg,.login-input .icon svg{width:100%;height:100%;}
.login-input input:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(13,127,245,.1);}
.login-error{margin:0;padding:11px 14px;border-radius:var(--radius);background:#fdecea;color:#c0392b;font-size:12.5px;line-height:1.6;}
.login-form .btn-primary{min-height:56px;border-radius:var(--radius-lg);font-size:15px;}
.resend-link{font-size:12.5px;color:var(--blue);text-decoration:underline;align-self:flex-end;}
.or-divider{display:flex;align-items:center;gap:14px;color:var(--text-muted);font-size:12.5px;margin:6px 0;}
.or-divider::before,.or-divider::after{content:"";flex:1;height:1px;background:var(--border);}
.social-buttons{display:flex;gap:14px;}
.btn-social{
  flex:1;display:flex;align-items:center;justify-content:center;gap:10px;
  min-height:54px;border:1px solid var(--border);border-radius:var(--radius-lg);
  background:var(--white);font-size:14px;font-weight:600;color:var(--text);
}
.btn-social:hover{border-color:var(--blue);}
.login-account-options .btn-social{color:var(--text);text-decoration:none;}

/* ---------- account chooser (path choice) ---------- */
.path-choice{
  max-width:1020px;
  text-align:center;
  background:var(--bg-soft);
  border-radius:var(--radius-lg);
  margin:70px auto 70px;
  padding:52px 60px;
}
.path-choice h2{font-size:34px;font-weight:600;margin:0 0 12px;}
.path-choice-sub{color:var(--text-muted);font-size:15px;margin:0 0 40px;}
.path-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.path-card{
  border-radius:var(--radius-lg);
  padding:42px 34px;
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
.path-card .path-icon{width:64px;height:64px;margin:0 0 20px;flex:none;display:flex;align-items:center;justify-content:center;}
.path-card .path-icon svg{width:100%;height:auto;max-height:100%;display:block;}
.path-card h3{font-size:24px;font-weight:600;margin:0 0 8px;}
.path-card .path-tag{font-size:13px;font-weight:600;margin:0 0 18px;}
.path-card > p{font-size:14px;line-height:1.8;margin:0 0 22px;max-width:320px;}
.path-card ul{width:100%;margin:0 0 28px;display:flex;flex-direction:column;gap:12px;}
.path-card ul li{position:relative;padding-right:18px;font-size:13.5px;text-align:right;}
.path-card ul li::before{content:"";position:absolute;right:0;top:7px;width:6px;height:6px;border-radius:50%;}
.path-card .btn{margin-top:auto;width:100%;}

.path-card--wholesale{background:var(--navy);border:1px solid var(--cyan);}
.path-card--wholesale h3{color:var(--white);}
.path-card--wholesale .path-icon{color:var(--cyan);}
.path-card--wholesale .path-tag{color:var(--cyan);}
.path-card--wholesale > p{color:rgba(255,255,255,.72);}
.path-card--wholesale ul li{color:rgba(255,255,255,.85);}
.path-card--wholesale ul li::before{background:var(--cyan);}
.path-card--wholesale .btn{background:var(--white);color:var(--navy);}

.path-card--retail{background:var(--white);border:1px solid var(--blue-light);}
.path-card--retail h3{color:var(--text);}
.path-card--retail .path-icon{color:var(--blue);}
.path-card--retail .path-tag{color:var(--blue);}
.path-card--retail > p{color:var(--text-muted);}
.path-card--retail ul li{color:var(--text-muted);}
.path-card--retail ul li::before{background:var(--blue);}
.path-card--retail .btn{background:var(--blue);color:var(--white);}

.path-choice-note{color:var(--text-muted);font-size:13px;margin:32px 0 8px;}
.path-choice-cta{font-size:13.5px;margin:0;}
.path-choice-cta a{color:var(--blue);font-weight:600;text-decoration:underline;}

/* ---------- merchant onboarding (stepper + form) ---------- */
.merchant-wrap{max-width:1200px;margin:40px auto 70px;}
.stepper{
  display:flex;align-items:center;justify-content:center;gap:36px;
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:22px 28px;margin-bottom:24px;
}
.step{display:flex;align-items:center;gap:12px;font:inherit;font-size:14px;color:var(--text-muted);background:none;border:0;padding:0;cursor:pointer;}
.step .num{
  width:28px;height:28px;border-radius:50%;background:var(--bg-soft);color:var(--text-muted);
  display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex:none;
}
.step.active{color:var(--text);font-weight:600;}
.step.active .num{background:var(--blue);color:var(--white);}
.step.complete .num{background:#1a9c4b;color:var(--white);}
.merchant-wizard-ready .merchant-step-panel{display:none;}
.merchant-wizard-ready .merchant-step-panel.is-active{display:block;}

.merchant-layout{display:grid;grid-template-columns:1fr 280px;gap:24px;align-items:start;}
.merchant-sidebar{background:var(--navy);color:var(--white);border-radius:var(--radius-lg);padding:32px 26px;}
.merchant-sidebar h3{font-size:20px;font-weight:600;margin:0 0 10px;}
.merchant-sidebar > p{font-size:13px;color:rgba(255,255,255,.65);margin:0 0 22px;}
.merchant-sidebar ul{display:flex;flex-direction:column;gap:16px;margin:0 0 24px;}
.merchant-sidebar ul li{position:relative;padding-right:18px;font-size:13.5px;color:rgba(255,255,255,.9);}
.merchant-sidebar ul li::before{content:"";position:absolute;right:0;top:6px;width:6px;height:6px;border-radius:50%;background:var(--cyan);}
.review-box{background:rgba(255,255,255,.06);border-radius:var(--radius);padding:18px 20px;}
.review-box h4{font-size:13.5px;color:var(--cyan);margin:0 0 8px;font-weight:600;}
.review-box p{font-size:12.5px;color:rgba(255,255,255,.75);margin:0;}

.merchant-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:36px 40px;}
.merchant-card h2{font-size:24px;font-weight:600;margin:0 0 8px;}
.merchant-card > p.muted,.merchant-step-panel > p.muted{color:var(--text-muted);font-size:13.5px;margin:0 0 30px;}
.merchant-card .section-title{font-size:16px;font-weight:600;margin:30px 0 14px;}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;margin-bottom:22px;}

/* Admin product variants */
.variant-page-header,.variant-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.variant-page-header{margin-bottom:18px}.variant-page-header h2,.variant-section-heading .section-title{margin:0}
.variant-page-eyebrow{margin:0 0 5px;color:var(--text-muted);font:700 12px/1.3 monospace;direction:ltr;text-align:right}
.variant-generator,.variant-editor-card{position:relative}.variant-editor-card{margin-top:20px}
.variant-section-heading{margin-bottom:14px}.variant-section-heading .muted{margin:5px 0 0}
.variant-global-search{display:grid;gap:6px;min-width:min(100%,280px);font-weight:700;font-size:13px}
.variant-global-search input,.attribute-value-search{min-height:42px;border:1px solid var(--border);border-radius:8px;background:#fff;padding:9px 12px;font:inherit;color:var(--text)}
.attribute-picker{display:grid;gap:10px;margin-top:18px}
.attribute-group{border:1px solid #d9e5f2;border-radius:10px;background:#fff;overflow:hidden}
.attribute-group[hidden]{display:none}.attribute-group.has-selection{border-color:#8eb8df;box-shadow:0 0 0 1px #c6def3 inset}
.attribute-group-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;border:0;background:#f7faff;color:var(--text);font:inherit;text-align:start;cursor:pointer}
.attribute-group-toggle:hover{background:#edf5fd}.attribute-group-title{display:flex;align-items:baseline;gap:9px}.attribute-group-title small,.attribute-value small,.variant-option-cell small{display:block;color:var(--text-muted);font-size:12px;font-weight:400}
.attribute-group-meta{display:flex;align-items:center;gap:7px;color:var(--text-muted);font-size:12px;white-space:nowrap}
.attribute-selected-count{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#dbeafe;color:#174f85;font-weight:800}
.attribute-chevron{font-size:20px;line-height:1;transition:transform .18s}.attribute-group.is-open .attribute-chevron{transform:rotate(180deg)}
.attribute-group-body{display:none;padding:14px 16px 16px;border-top:1px solid #e5edf5}.attribute-group.is-open .attribute-group-body{display:block}
.attribute-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.attribute-tools .attribute-value-search{flex:1 1 240px}
.attribute-values{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;max-height:300px;overflow:auto;padding:3px;scrollbar-gutter:stable}
.attribute-value{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #e1e8f0;border-radius:8px;background:#fff;font-weight:400;cursor:pointer}.attribute-value:hover{border-color:#8eb8df;background:#f8fbff}.attribute-value:has(input:checked){border-color:#4589c7;background:#edf6ff}.attribute-value[hidden]{display:none}.attribute-value input{margin-top:3px;flex:0 0 auto}
.attribute-no-results{margin:12px 0 0;padding:12px;border-radius:8px;background:#f8fafc;color:var(--text-muted);text-align:center}
.variant-sticky-actions{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px -16px -16px;padding:12px 16px;background:rgba(255,255,255,.96);border-top:1px solid var(--border);backdrop-filter:blur(8px)}
.variant-table-wrap{overflow:auto;max-height:65vh;border:1px solid var(--border);border-radius:9px}.variant-table{margin:0;min-width:1260px}.variant-table thead{position:sticky;top:0;z-index:3;background:#fff}.variant-table th:first-child,.variant-table td:first-child{position:sticky;right:0;z-index:2;background:#fff;min-width:190px}.variant-table th:first-child{z-index:4}
.variant-table input:not([type=checkbox]),.variant-table select{width:100%;min-width:105px}.variant-table td:nth-child(2) input{min-width:175px}.variant-option-cell strong{display:block}.switch-check,.variant-delete{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.variant-delete{color:#b42318}

@media (max-width: 760px){
  .variant-page-header,.variant-section-heading{display:grid}.variant-page-header .btn,.variant-global-search{width:100%}
  .attribute-group-toggle{align-items:flex-start}.attribute-group-title{display:grid;gap:2px}.attribute-group-meta>span:not(.attribute-selected-count):not(.attribute-chevron){display:none}
  .attribute-values{grid-template-columns:1fr;max-height:260px}.attribute-tools .btn{flex:1}
  .variant-sticky-actions{margin-inline:-12px;padding-inline:12px;flex-wrap:wrap}.variant-sticky-actions .btn{width:100%}
  .variant-table-wrap{max-height:none;overflow:visible;border:0}.variant-table{display:block;min-width:0}.variant-table thead{display:none}.variant-table tbody{display:grid;gap:12px}.variant-table tr{display:grid;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fff}.variant-table td,.variant-table td:first-child{position:static;display:grid;grid-template-columns:minmax(105px,35%) 1fr;align-items:center;gap:10px;min-width:0;padding:8px 0;border:0;border-bottom:1px solid #edf0f3;background:transparent}.variant-table td:last-child{border-bottom:0}.variant-table td::before{content:attr(data-label);font-weight:700;color:var(--text-muted);font-size:12px}.variant-table td input:not([type=checkbox]),.variant-table td select{min-width:0}.variant-option-cell strong,.variant-option-cell small{grid-column:2}
}
.form-field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.form-field.full{grid-column:1/-1;}
.form-field label{font-size:13.5px;font-weight:600;color:var(--text);}
.form-field input,.form-field select,.form-field textarea{
  border:1px solid var(--border);border-radius:var(--radius);
  padding:13px 16px;font-size:13.5px;text-align:right;color:var(--text);
  background:var(--white);outline:none;font-family:inherit;resize:vertical;
}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:var(--blue);}
.form-field input::placeholder,.form-field textarea::placeholder{color:#9aa7b2;}
.form-field select{color:var(--text-muted);appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:14px center;padding-left:36px;
}

.upload-dropzone{
  border:1.5px dashed var(--blue-light);border-radius:var(--radius);
  background:var(--bg-soft);padding:38px 20px;text-align:center;
  color:var(--text-muted);font-size:13px;line-height:1.9;margin-bottom:24px;
}
.upload-dropzone b{display:block;color:var(--text);font-weight:500;font-size:13.5px;margin-bottom:4px;}
.merchant-upload{display:block;cursor:pointer;transition:border-color .2s ease,background .2s ease;}
.merchant-upload:hover,.merchant-upload.is-dragging{border-color:var(--blue);background:#eaf4ff;}
.merchant-upload input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none;}
.merchant-upload .upload-icon{display:flex;width:36px;height:36px;margin:0 auto 12px;color:var(--blue);}
.merchant-upload .upload-icon svg{width:100%;height:100%;}
.field-error{display:block;color:#c0392b;font-size:11.5px;line-height:1.5;}
.upload-error{margin:-14px 0 20px;}
.terms-error{margin:-18px 0 20px;}
.document-note{display:flex;flex-direction:column;gap:5px;background:#eef8f1;border-radius:var(--radius);padding:16px 18px;margin-bottom:26px;}
.document-note strong{font-size:13px;color:#1a7c40;}
.document-note span{font-size:12px;color:var(--text-muted);line-height:1.7;}
.merchant-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0;}
.merchant-review-grid > div{background:var(--bg-soft);border-radius:var(--radius);padding:15px 17px;min-width:0;}
.merchant-review-grid > div.full{grid-column:1/-1;}
.merchant-review-grid span{display:block;color:var(--text-muted);font-size:11.5px;margin-bottom:5px;}
.merchant-review-grid b{display:block;font-size:13.5px;overflow-wrap:anywhere;}
.merchant-review-grid b span{display:inline;color:inherit;font-size:inherit;margin:0;}

.agree-row{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--text);margin-bottom:26px;}
.merchant-actions{display:flex;justify-content:space-between;gap:16px;}
.merchant-actions .btn{min-width:200px;}

/* ---------- catalog layout ---------- */
.catalog-layout{display:grid;grid-template-columns:240px 1fr;gap:28px;padding:32px 0 60px;}
.catalog-layout .product-grid{grid-template-columns:repeat(4,1fr);}
.filter-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;padding:0;border:0;background:transparent;color:var(--text);font:inherit;text-align:start;margin-bottom:10px;}
.filter-toggle span{font-size:18px;font-weight:700;}
.filter-toggle svg{display:none;}
aside.filters{background:#F3F8FE;padding:15px;border-radius:5px;}
.filters h3{font-size:20px;font-weight:700;color:var(--navy);margin:0 0 20px;}
.filters h4{font-size:14px;margin:0 0 12px;color:#0d7ff5;}
.filter-group{border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:16px;}
.filter-group label{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text-muted);margin-bottom:8px;}
.filter-group input[type="checkbox"]{accent-color:var(--blue);width:15px;height:15px;}
.clear-filters{display:block;color:#e0483a;font-size:12.5px;font-weight:500;}
.filters-search{
  display:flex;align-items:center;gap:8px;
  background:var(--white);border:1px solid var(--border);border-radius:8px;
  padding:10px 12px;margin-bottom:20px;
}
.filters-search svg{width:16px;height:16px;flex:none;color:var(--text-muted);}
.filters-search input{border:0;background:transparent;outline:none;font-size:12.5px;width:100%;color:var(--text);}
.filters-search input::placeholder{color:var(--text-muted);}
.results-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;font-size:13px;color:var(--text-muted);border:1px solid #DBE7F4;border-radius:8px;padding:5px;}
.results-bar select{border:1px solid var(--border);border-radius:6px;padding:8px 12px;font-size:12.5px;}

/* ---------- table (orders / cart) ---------- */
.data-table{width:100%;border-collapse:collapse;font-size:13px;}
.data-table th{
  text-align:right;color:var(--text-muted);font-weight:400;font-size:12px;
  padding:10px 12px;border-bottom:1px solid var(--border);
}
.data-table td{padding:14px 12px;border-bottom:1px solid var(--border);vertical-align:middle;}
.status-chip{padding:4px 10px;border-radius:20px;font-size:11px;}
.status-chip.ok{background:#e4f7ea;color:#1a9c4b;}
.status-chip.pending{background:#fff3d9;color:#b5820a;}
.status-chip.shipped{background:#e6f0fe;color:var(--blue);}

/* ---------- summary card (cart/checkout/quote) ---------- */
.summary-card{
  border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;
  position:sticky;top:100px;
}
.summary-card h3{font-size:19px;font-weight:700;margin:0 0 18px;}
.summary-row{display:flex;justify-content:space-between;font-size:14px;color:var(--text-muted);margin-bottom:14px;}
.summary-row.total{color:var(--blue);font-weight:700;font-size:20px;border-top:1px solid var(--border);padding-top:16px;margin-top:6px;}
.summary-row.total span:first-child{color:var(--text);font-size:15px;}
.two-col{display:grid;grid-template-columns:1fr 340px;gap:28px;}

/* ---------- temp cart ---------- */
.cart-heading{font-size:26px;font-weight:700;color:var(--navy);margin:0;}
.cart-layout{padding-bottom:60px;}
.cart-items{display:flex;flex-direction:column;gap:16px;}
.cart-item{display:flex;align-items:center;gap:20px;border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 22px;background:var(--white);}
.cart-item .thumb{width:96px;height:96px;flex:none;border-radius:var(--radius);overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--bg-soft);}
.cart-item .thumb img{width:100%;height:100%;object-fit:contain;padding:8px;}
.cart-item .info{flex:1;}
.cart-item .info h4{font-size:15px;font-weight:600;margin:0 0 6px;}
.cart-item .info .cat{color:var(--blue);font-size:12.5px;display:block;margin-bottom:5px;}
.cart-item .info .avail{color:var(--text-muted);font-size:12.5px;display:block;margin-bottom:8px;}
.cart-item .info .remove{color:#e0483a;font-size:12.5px;}
.cart-item .price-block{flex:none;text-align:center;}
.cart-item .price-block .price{color:var(--blue);font-weight:700;font-size:21px;margin-bottom:10px;}
.qty-stepper.sm{width:135px;background:#ffffff;border:0;padding:8px 16px;}
.cart-coupon{display:flex;gap:12px;border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 22px;background:var(--white);}
.cart-coupon input{flex:1;border:1px solid var(--border);border-radius:8px;padding:0 14px;font-size:13px;}
.cart-delivery-note{margin:14px 0 0;font-size:12px;text-align:center;}

/* ---------- wholesale draft ---------- */
.wholesale-draft-wrap{padding:20px 0 64px;}
.draft-save-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--border);border-radius:var(--radius);padding:14px 20px;margin-bottom:28px;background:var(--white);}
.draft-save-bar b,.draft-save-bar span{display:block;}.draft-save-bar b{font-size:14px;color:var(--navy);margin-bottom:5px}.draft-save-bar span{font-size:12px;color:var(--text-muted)}
.wholesale-draft-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start;}
.draft-products-card,.draft-summary-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--white);padding:24px;}
.draft-products-card>h2,.draft-summary-card>h2{font-size:23px;color:var(--navy);margin:0 0 20px;}
.draft-products-head,.draft-product-row{display:grid;grid-template-columns:2fr 1.15fr 1fr .55fr;gap:16px;align-items:center;}
.draft-products-head{background:var(--navy);color:var(--white);border-radius:var(--radius);padding:14px 18px;font-size:12px;font-weight:600;}
.draft-product-row{background:var(--bg-soft);border-radius:var(--radius);padding:20px 18px;margin-top:14px;min-height:120px;}
.draft-product-info{display:flex;align-items:center;gap:14px;min-width:0;}.draft-product-info img{width:76px;height:76px;object-fit:contain;background:#fff;border-radius:9px;padding:6px;flex:none}.draft-product-info h3{font-size:13.5px;margin:0 0 7px}.draft-product-info h3 a{color:var(--navy)}.draft-product-info span{display:block;font-size:10.5px;color:var(--text-muted);margin-top:3px}
.draft-packaging b,.draft-packaging span{display:block}.draft-packaging b{font-size:12.5px;color:var(--navy);margin-bottom:7px}.draft-packaging span{font-size:11px;color:var(--text-muted)}
.draft-qty-form .qty-stepper{margin:auto}.draft-remove{border:0;background:none;color:#e0483a;cursor:pointer;font:inherit;font-size:12px;padding:8px}
.draft-qty-form button:disabled{opacity:.45;cursor:wait}.draft-qty-error{display:block;color:#c0392b;font-size:10px;text-align:center;margin-top:5px;min-height:14px}
.draft-summary-card{position:sticky;top:100px}.draft-summary-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;font-size:13px}.draft-summary-row span{color:var(--text-muted)}
.draft-price-notice{background:var(--bg-soft);padding:16px;border-radius:var(--radius);margin:18px 0}.draft-price-notice b{display:block;color:var(--blue);font-size:13px;margin-bottom:6px}.draft-price-notice p{font-size:11.5px;color:var(--text-muted);line-height:1.7;margin:0}
.draft-preferences-form h3{font-size:13.5px;margin:20px 0 12px}.draft-preferences-form label{display:block;font-size:12.5px;margin:11px 0}.draft-preferences-form input[type=radio]{accent-color:var(--blue)}.draft-preferences-form textarea{width:100%;border:1px solid var(--border);background:var(--bg-soft);border-radius:var(--radius);padding:12px;font:inherit;font-size:12px;resize:vertical;margin-bottom:18px}.draft-save-preferences{display:block;margin:10px auto 0;border:0;background:none;color:var(--blue);font:inherit;font-size:11.5px;cursor:pointer}.draft-disclaimer{text-align:center;color:var(--text-muted);font-size:10.5px;line-height:1.7;margin:18px 0 0}
@media(max-width:960px){.wholesale-draft-grid{grid-template-columns:1fr}.draft-summary-card{position:static}.draft-products-head{display:none}.draft-product-row{grid-template-columns:1fr 1fr}.draft-product-info{grid-column:1/-1}}
@media(max-width:560px){.draft-save-bar{align-items:stretch;flex-direction:column}.draft-product-row{grid-template-columns:1fr}.draft-product-info,.draft-packaging,.draft-qty-form,.draft-product-row>form{grid-column:1}.draft-qty-form .qty-stepper{margin:0}.draft-products-card,.draft-summary-card{padding:18px}}

@media (max-width:640px){
  .cart-item{align-items:flex-start;gap:14px;padding:16px;flex-wrap:wrap;}
  .cart-item .thumb{width:78px;height:78px;}
  .cart-item .price-block{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:start;}
  .cart-item .price-block .price{margin:0;}
  .cart-coupon,.cart-coupon form{flex-direction:column;}
  .cart-coupon input{min-height:44px;}
}

/* ---------- tabs (account) ---------- */
.tabs{display:flex;gap:8px;border-bottom:1px solid var(--border);margin-bottom:24px;}
.tabs a{padding:12px 18px;font-size:13.5px;color:var(--text-muted);}
.tabs a.active{color:var(--blue);border-bottom:2px solid var(--blue);}

/* ---------- misc ---------- */
.badge-stat{display:inline-block;background:var(--bg-soft);color:var(--blue);border-radius:6px;padding:4px 10px;font-size:11px;}
.text-muted{color:var(--text-muted);}
.mt-0{margin-top:0;}

/* ---------- page badge (retail account tag) ---------- */
.page-badge.static{position:static;display:inline-block;margin:0 0 18px;}
.hero > .hero-media img{width:100%;height:100%;object-fit:contain;}

/* ---------- home tracking card ---------- */
.track-card{background:var(--bg-soft);border-radius:var(--radius-lg);padding:36px 44px;}
.eyebrow-link{display:block;color:var(--blue);font-size:12.5px;margin-bottom:14px;}
.track-card h2{font-size:26px;font-weight:700;margin:0 0 10px;}
.track-card p{color:var(--text-muted);font-size:14px;line-height:1.8;max-width:640px;margin:0 0 20px;}
.track-form{display:flex;gap:12px;max-width:420px;}
.track-form input{flex:1;border:1px solid var(--border);border-radius:8px;padding:0 16px;font-size:13px;background:var(--white);}

/* ---------- checkout ---------- */
.checkout-form h3{font-size:17px;font-weight:700;margin:26px 0 14px;}
.checkout-form h3:first-child{margin-top:0;}
.delivery-options{display:flex;gap:14px; margin-top:14px;flex-wrap:wrap;margin-bottom:14px;}
.delivery-option{flex:1;border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;}
.delivery-option h4{font-size:14px;font-weight:600;margin:0 0 6px;}
.delivery-option span{font-size:12.5px;color:var(--text-muted);}
.delivery-option.active{border-color:var(--blue);background:#f3f8ff;}
.checkout-actions{display:flex;justify-content:space-between;gap:14px;margin-top:28px;}
.summary-row.total.highlight{background:var(--bg-soft);border-radius:var(--radius);padding:16px 18px;border-top:0;margin-top:14px;}
.secure-note{color:#1a9c4b;font-size:12px;text-align:center;margin:14px 0 0;}

/* ---------- orders ---------- */
.orders-filter-bar{display:flex;justify-content:space-between;align-items:center;background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px 28px;}
.orders-filter-bar h3{font-size:17px;font-weight:700;margin:0 0 4px;}
.ok-text{color:#1a9c4b;font-size:12.5px;}
.orders-filter-btns{display:flex;align-items:center;gap:10px;}
.orders-filter-btns button,.orders-filter-btns a.filter-btn{border:1px solid var(--border);background:var(--white);border-radius:8px;padding:10px 18px;font-size:13px;color:var(--text);cursor:pointer;text-decoration:none;display:inline-block;}
.orders-filter-btns button.active,.orders-filter-btns a.filter-btn.active{background:var(--blue);color:var(--white);border-color:var(--blue);}
.order-detail-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:32px;}
.wholesale-order-row{display:grid;grid-template-columns:1.25fr 1.25fr 1fr 1fr auto;align-items:center;gap:22px;margin-bottom:14px;padding:20px 24px;color:var(--text);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;}
.wholesale-order-row:hover{border-color:#d3b56e;box-shadow:0 8px 24px rgba(12,43,74,.07);transform:translateY(-1px);}
.wholesale-order-row small{display:block;color:var(--text-muted);font-size:10.5px;margin-bottom:6px;}
.wholesale-order-number b{color:var(--navy);font-size:15px;}.wholesale-order-date{font-size:12.5px}.wholesale-order-total b{color:var(--blue);font-size:16px}.wholesale-order-open{color:var(--blue);font-size:12px;font-weight:600;white-space:nowrap}.wholesale-order-open i{font-style:normal;font-size:20px;vertical-align:-2px;margin-inline-start:4px}
@media(max-width:760px){.wholesale-order-row{grid-template-columns:1fr auto;gap:14px}.wholesale-order-date,.wholesale-order-total{grid-column:1}.wholesale-order-row>span:nth-child(3){grid-column:2;grid-row:1}.wholesale-order-open{grid-column:2;grid-row:2/-1;align-self:center}}
.order-detail-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px;}
.order-detail-head h2{font-size:20px;font-weight:700;margin:0 0 6px;}
.order-tracker{display:flex;background:var(--bg-soft);border-radius:var(--radius);padding:24px;margin-bottom:28px;}
.tracker-step{flex:1;text-align:center;}
.tracker-step .circle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:var(--border);color:var(--text-muted);font-weight:700;font-size:13px;margin-bottom:10px;}
.tracker-step.done .circle{background:var(--blue);color:var(--white);}
.tracker-step h4{font-size:13.5px;font-weight:600;margin:0 0 4px;}
.tracker-step span{font-size:11.5px;color:var(--text-muted);}
.order-bottom-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-bottom:24px;}
.order-products h3,.order-address h3{font-size:15px;font-weight:700;margin:0 0 14px;}
.order-product-row{display:flex;align-items:center;gap:16px;background:var(--bg-soft);border-radius:var(--radius);padding:14px 16px;margin-bottom:12px;}
.order-product-row .thumb{width:64px;height:64px;flex:none;background:var(--white);border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.order-product-row .thumb img{width:100%;height:100%;object-fit:contain;padding:6px;}
.order-product-row .info{flex:1;}
.order-product-row .info h4{font-size:13.5px;font-weight:600;margin:0 0 4px;}
.order-product-row .info span{font-size:11.5px;color:var(--text-muted);}
.order-product-row .price{color:var(--blue);font-weight:700;font-size:15px;}
.order-address{background:var(--bg-soft);border-radius:var(--radius);padding:18px 20px;}
.order-address p{font-size:13px;margin:0 0 10px;color:var(--text);}
.order-address a{color:var(--blue);font-size:13px;font-weight:600;}
.order-help-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);padding-top:22px;}
.order-help-row span{color:var(--text-muted);font-size:13.5px;}

/* Wholesale order detail */
.wholesale-order-detail{max-width:1296px}.wholesale-order-hero{display:grid;grid-template-columns:1fr auto 240px;align-items:center;gap:28px;border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;margin-bottom:28px}.wholesale-order-title h1{font-size:22px;margin:0 0 7px}.wholesale-order-title h1 b{font-weight:800}.wholesale-order-title p{color:var(--text-muted);font-size:12px;margin:0}.wholesale-order-hero>.status-chip{min-width:170px;text-align:center;padding:10px 18px}.wholesale-order-hero>.btn{justify-content:center;background:#fff}
.wholesale-order-progress{display:flex;justify-content:space-between;background:var(--navy);border-radius:var(--radius-lg);padding:46px 56px;color:#fff;margin-bottom:28px}.wholesale-progress-step{position:relative;flex:1;text-align:center;color:rgba(255,255,255,.66)}.wholesale-progress-step:not(:last-child):after{content:"";position:absolute;top:27px;inset-inline-start:calc(50% + 29px);width:calc(100% - 58px);height:2px;background:#38536c}.wholesale-progress-step.done:not(:last-child):after{background:var(--cyan)}.wholesale-progress-marker{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:54px;height:54px;margin:0 auto 14px;border:2px solid #416582;border-radius:8px;background:#102e49;font-size:15px;font-weight:700}.wholesale-progress-step.done .wholesale-progress-marker{background:var(--blue);border-color:var(--cyan);color:#fff}.wholesale-progress-step b{display:block;font-size:13px;margin-bottom:8px;color:#fff}.wholesale-progress-step small{font-size:11px}.wholesale-progress-step.active b{color:#fff}.wholesale-order-alert{border:1px solid #f0c2bd;background:#fff2f0;color:#b6352b;border-radius:var(--radius-lg);padding:20px;margin-bottom:28px}
.wholesale-order-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:32px}.wholesale-order-kpis>div{display:flex;min-height:124px;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:var(--radius-lg);background:#fff}.wholesale-order-kpis .primary{background:var(--blue);border-color:var(--blue);color:#fff}.wholesale-order-kpis strong{font-size:22px;color:var(--blue);margin-bottom:7px}.wholesale-order-kpis .primary strong{color:#fff}.wholesale-order-kpis span{font-size:12px;color:var(--text-muted)}.wholesale-order-kpis .primary span{color:#fff}
.wholesale-order-content{display:grid;grid-template-columns:minmax(0,2.45fr) minmax(280px,1fr);gap:28px;align-items:start}.wholesale-order-items-card,.wholesale-execution-card{border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;background:#fff}.wholesale-order-items-card h2,.wholesale-execution-card h2{font-size:21px;margin:0 0 18px}.wholesale-order-table-head,.wholesale-order-item-row{display:grid;grid-template-columns:2fr 1.15fr .7fr .8fr;gap:16px;align-items:center}.wholesale-order-table-head{background:var(--navy);color:#fff;border-radius:8px;padding:16px 20px;font-size:11px}.wholesale-order-item-row{min-height:110px;padding:16px 10px;border-bottom:1px solid #edf1f6;font-size:12px}.wholesale-order-item-row:nth-of-type(odd){background:var(--bg-soft)}.wholesale-order-product{display:flex;align-items:center;gap:13px}.wholesale-order-product .thumb{display:flex;width:58px;height:58px;align-items:center;justify-content:center;background:#fff;border-radius:8px;overflow:hidden;flex:none}.wholesale-order-product img{width:100%;height:100%;object-fit:contain;padding:5px}.item-state{display:inline-block;min-width:92px;padding:8px 10px;border-radius:8px;text-align:center;font-style:normal}.item-state.ready{background:#e1f6e9;color:#159648}.item-state.preparing{background:#fff2d8;color:#d18210}
.wholesale-execution-card h3{font-size:15px;margin:22px 0 12px}.execution-info-row{background:var(--bg-soft);border-radius:8px;padding:13px 15px;margin-bottom:12px}.execution-info-row small{display:block;color:var(--blue);font-size:10px;margin-bottom:5px}.execution-info-row b{display:block;font-size:12.5px}.execution-info-row span{display:block;color:var(--text-muted);font-size:11px;margin-top:4px}.order-document-action{display:flex;width:100%;justify-content:space-between;gap:12px;border:0;background:#fff;padding:12px 4px;color:var(--text);font-family:inherit;cursor:pointer;text-align:start;font-size:11px}.order-document-action b{color:var(--blue)}
@media(max-width:900px){.wholesale-order-hero{grid-template-columns:1fr auto}.wholesale-order-hero>.btn{grid-column:1/-1}.wholesale-order-progress{padding:32px 14px}.wholesale-order-kpis{grid-template-columns:1fr 1fr}.wholesale-order-content{grid-template-columns:1fr}.wholesale-order-table-head,.wholesale-order-item-row{grid-template-columns:1.7fr 1fr .5fr .8fr}}
@media(max-width:600px){.wholesale-order-detail{padding-top:20px!important}.wholesale-order-hero{grid-template-columns:1fr;padding:18px}.wholesale-order-hero>.status-chip{justify-self:start}.wholesale-order-progress{display:grid;grid-template-columns:1fr 1fr;gap:25px}.wholesale-progress-step:not(:last-child):after{display:none}.wholesale-order-kpis{gap:10px}.wholesale-order-kpis>div{min-height:100px}.wholesale-order-table-head{display:none}.wholesale-order-item-row{grid-template-columns:1fr auto;padding:15px}.wholesale-order-item-row>.item-pack,.wholesale-order-item-row>strong{padding-inline-start:71px}.wholesale-order-content{gap:18px}}
@media print{header,.site-header,footer,.site-footer,.wholesale-order-hero>.btn{display:none!important}.wholesale-order-detail{padding:0!important}.wholesale-order-progress{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:28px;}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid var(--border);border-radius:8px;font-size:13px;color:var(--text);text-decoration:none;background:var(--white);}
.pagination a:hover{border-color:var(--blue);color:var(--blue);}
.pagination a.active{background:var(--blue);color:var(--white);border-color:var(--blue);}
.pagination span.disabled{opacity:.4;pointer-events:none;}

/* ---------- search ---------- */
.search-bar{display:flex;gap:12px;}
.search-bar input{flex:1;border:1px solid var(--border);border-radius:8px;padding:0 18px;height:54px;font-size:14px;}
.filter-pill{border:1px solid var(--border);border-radius:8px;padding:10px 14px;font-size:12.5px;margin-bottom:20px;}

/* ---------- account (retail) ---------- */
.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:30px;}
.account-page-grid{padding-bottom:60px;align-items:start;}
.account-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:32px;}
.account-card h3{font-size:16px;font-weight:700;margin:0 0 14px;}
.account-management-card > p{font-size:13px;margin:0;}
.profile-head{display:flex;justify-content:flex-end;align-items:flex-start;margin-bottom:18px;flex-direction:row-reverse;gap:20px;}
.profile-head h2{font-size:20px;font-weight:700;margin:0 0 4px;}
.avatar-circle{width:56px;height:56px;flex:none;}
.avatar-circle svg{width:100%;height:100%;display:block;}
.verified-pill{background:#e4f7ea;color:#1a9c4b;border-radius:24px;padding:10px 16px;font-size:12.5px;text-align:center;margin-bottom:24px;}
.readonly-field{background:var(--bg-soft);border-radius:8px;padding:12px 16px;margin-bottom:12px;}
.readonly-field .label{display:block;font-size:11px;color:var(--text-muted);margin-bottom:4px;}
.readonly-field .value{font-size:13.5px;font-weight:600;overflow-wrap:anywhere;}
.btn-outline-danger{border:1px solid #e0483a;color:#e0483a;background:var(--white);}
.account-edit-panel{margin-top:14px;}
.account-edit-panel summary{list-style:none;cursor:pointer;}
.account-edit-panel summary::-webkit-details-marker{display:none;}
.account-edit-panel[open]{padding-bottom:4px;}
.account-edit-panel[open] summary{margin-bottom:16px;}
.account-edit-panel form{padding:18px;background:var(--bg-soft);border-radius:var(--radius);}
.account-edit-panel .form-field{margin-bottom:12px;}
.account-edit-panel .form-field:last-of-type{margin-bottom:16px;}
.account-security-title{margin-top:26px !important;}
.account-logout{margin-top:12px;}
.account-links{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0 22px;}
.account-link-tile{border:1px solid var(--border);border-radius:var(--radius);padding:18px;}
.avatar-letter{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;font-size:14px;font-weight:700;color:var(--navy);margin-bottom:10px;}
.account-link-tile h4{font-size:14px;font-weight:600;margin:0 0 4px;}
.account-link-tile p{font-size:11.5px;color:var(--text-muted);margin:0 0 8px;}
.account-link-tile a{color:var(--blue);font-size:12px;font-weight:600;}
.activity-summary{background:var(--navy);color:var(--white);border-radius:var(--radius-lg);padding:22px 26px;margin-bottom:18px;}
.activity-summary h4{font-size:14px;font-weight:700;margin:0 0 16px;}
.activity-stats{display:flex;justify-content:space-around;text-align:center;}
.activity-stats .stat b{display:block;font-size:22px;margin-bottom:4px;}
.activity-stats .stat span{font-size:11.5px;color:rgba(255,255,255,.7);}
.btn-switch{background:var(--cyan);color:var(--white);border:0;}
.account-switch-note{text-align:center;margin-top:12px;font-size:12px;}

/* ---------- wholesale (B2B) ---------- */
.btn-gold{background:var(--gold);color:var(--white);border-color:var(--gold);}
.wholesale-price{color:var(--blue);font-weight:600;font-size:11.5px;}
.product-card.wholesale .body{grid-template-columns:1fr;grid-template-rows:auto auto auto;row-gap:6px;}
.product-card.wholesale .name{grid-column:1;grid-row:1;}
.product-card.wholesale .desc{grid-column:1;grid-row:2;}
.product-card.wholesale .price{grid-column:1;grid-row:3;direction:rtl;white-space:normal;}

.company-overview-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px;}
.company-overview-head h2{font-size:22px;font-weight:700;margin:0 0 6px;}
.kpi-grid{display:flex;flex-direction:row-reverse;justify-content:space-between;gap:16px;margin-bottom:24px;}
.kpi-card{display:block;border:1px solid var(--border);border-left:3px solid var(--gold);border-radius:var(--radius-lg);padding:20px;width:100%;}
a.kpi-card{transition:box-shadow .15s,border-color .15s;}
a.kpi-card:hover{box-shadow:0 4px 14px rgba(0,0,0,.06);border-color:var(--text-muted);}
.kpi-card .num-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;color:var(--white);font-size:11px;font-weight:700;margin-bottom:14px;}
.kpi-card .label{font-size:12px;color:var(--text-muted);margin-bottom:6px;}
.kpi-card .value{font-size:19px;font-weight:700;}
.kpi-card .hint{font-size:11.5px;margin-top:6px;}

.updates-actions-grid{display:flex;gap:20px;margin-bottom:28px;justify-content:space-around;flex-direction:row-reverse;}
.panel-card{border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;flex:1;min-width:0;}
.panel-card h3{font-size:16px;font-weight:700;margin:0 0 6px;}
.panel-card > p{font-size:12.5px;color:var(--text-muted);margin:0 0 14px;}
.update-row{display:flex;justify-content:space-between;align-items:center;padding:14px 8px;border-bottom:1px solid var(--border);color:inherit;border-radius:7px;transition:background-color .18s ease,transform .18s ease;}
a.update-row:hover{background:var(--bg-soft);transform:translateX(-2px);}
.update-row:last-child{border-bottom:0;padding-bottom:0;}
.update-row h4{font-size:13.5px;font-weight:600;margin:0 0 4px;}
.update-row span{font-size:11.5px;color:var(--text-muted);}
.status-chip.alert{background:#fde8e8;color:#c0392b;}
.action-row{display:flex;align-items:center;gap:14px;padding:12px 0;}
.action-row .num-badge{display:inline-flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:50%;color:var(--white);font-size:12px;font-weight:700;flex:none;}
.action-row h4{font-size:13.5px;font-weight:600;margin:0 0 3px;}
.action-row span{font-size:11.5px;color:var(--text-muted);}
.action-row > div{flex:1;}
.action-row .arrow{color:var(--blue);transform:scaleX(-1);flex:none;}
.action-row .arrow svg{width:16px;height:16px;}

.recurring-banner{background:var(--navy);color:var(--white);border-radius:var(--radius-lg);padding:36px 40px;display:flex;justify-content:space-between;align-items:center;gap:32px;}
.recurring-copy h2{font-size:22px;font-weight:700;margin:0 0 10px;}
.recurring-copy p{font-size:13.5px;color:rgba(255,255,255,.75);margin:0 0 20px;max-width:460px;}
.recurring-stats{flex:none;display:flex;flex-direction:column;gap:8px;text-align:center;background:rgba(255,255,255,.06);border-radius:var(--radius);padding:22px 30px;min-width:30%;}
.recurring-stats b{font-size:18px;}
.recurring-stats .text-muted{color:rgba(255,255,255,.6);font-size:11.5px;}

.promo-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.promo-card{border:1px solid var(--border);border-radius:var(--radius-lg);padding:26px;display:flex;justify-content:space-between;gap:20px;}
.promo-content{flex:1;}
.promo-tag{display:inline-block;border:1px solid var(--blue);color:var(--blue);border-radius:20px;padding:5px 14px;font-size:11px;margin-bottom:14px;}
.promo-content h3{font-size:18px;font-weight:700;margin:0 0 8px;}
.promo-content p{font-size:12.5px;color:var(--text-muted);margin:0 0 16px;}
.promo-images{flex:none;display:flex;flex-direction:column;gap:10px;}
.promo-images img{width:76px;height:76px;object-fit:contain;background:var(--bg-soft);border-radius:var(--radius);padding:8px;}

.wholesale-status-bar{display:flex;justify-content:space-between;align-items:center;background:#e9f7ee;border:1px solid #bfe6cc;border-radius:var(--radius);padding:14px 22px;font-size:12.5px;color:var(--text);gap:16px;}
.wholesale-status-bar.amber{background:#fdf3e3;border-color:#f0d9a6;}

.wholesale-items{display:flex;flex-direction:column;}
.wholesale-items-head{display:grid;grid-template-columns:2fr 1.2fr 1fr .6fr;background:var(--navy);color:var(--white);border-radius:var(--radius) var(--radius) 0 0;padding:14px 20px;font-size:12px;}
.wholesale-items-head.sm{grid-template-columns:2fr 1fr 1fr 1fr;border-radius:var(--radius);margin-bottom:10px;}
.wholesale-item-row{display:grid;grid-template-columns:2fr 1.2fr 1fr .6fr;align-items:center;padding:16px 20px;border:1px solid var(--border);border-top:0;background:var(--white);font-size:12.5px;}
.item-name{display:flex;align-items:center;gap:14px;}
.item-name .thumb{width:52px;height:52px;flex:none;background:var(--bg-soft);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.item-name .thumb img{width:100%;height:100%;object-fit:contain;padding:6px;}
.item-name h4{font-size:13px;font-weight:600;margin:0 0 3px;}
.item-name span{font-size:11px;color:var(--text-muted);}
.item-pack{color:var(--text-muted);}
.item-remove a{color:#e0483a;}

.draft-note{background:var(--bg-soft);border-radius:var(--radius);padding:14px 16px;margin:14px 0 18px;}
.draft-note a{display:block;color:var(--blue);font-weight:600;font-size:13px;margin-bottom:4px;}
.draft-note span{font-size:11.5px;color:var(--text-muted);}
.mini-head{font-size:13px;font-weight:700;margin:18px 0 10px;}
.radio-row{display:flex;align-items:center;gap:8px;font-size:12.5px;margin-bottom:10px;}
.draft-note-field{width:100%;min-height:80px;border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;font-size:12.5px;resize:vertical;font-family:inherit;margin-bottom:18px;}

.quote-doc{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:36px;}
.quote-doc-head{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:24px;border-bottom:1px solid var(--border);margin-bottom:24px;}
.quote-doc-head .label{display:block;font-size:12px;color:var(--text-muted);margin-bottom:8px;}
.quote-brand{display:flex;align-items:center;gap:14px;}
.quote-brand img{width:56px;height:56px;object-fit:contain;}
.quote-brand h3{font-size:17px;font-weight:700;margin:0 0 4px;}
.quote-doc-parties{display:flex;justify-content:space-between;background:var(--bg-soft);border-radius:var(--radius);padding:16px 20px;margin-bottom:24px;}
.quote-doc-parties .label{display:block;font-size:11.5px;color:var(--text-muted);margin-bottom:6px;}
.quote-doc-parties b{font-size:13.5px;}
.quote-table{margin-bottom:24px;}
.quote-row{display:grid;grid-template-columns:2fr 1.3fr .8fr 1fr 1fr;align-items:center;padding:16px 4px;border-bottom:1px solid var(--border);font-size:12.5px;}
.quote-row.head{background:var(--navy);color:var(--white);border-radius:var(--radius) var(--radius) 0 0;border-bottom:0;padding:14px 20px;font-size:12px;}
.quote-row:not(.head){padding:16px 20px;}
.quote-row .total{color:var(--blue);font-weight:700;}
.quote-totals{max-width:360px;margin-inline-start:auto;margin-bottom:24px;}
.quote-totals .summary-row{margin-bottom:10px;}
.quote-terms{border-top:1px solid var(--border);padding-top:18px;margin-bottom:24px;}
.quote-terms h4{font-size:13px;font-weight:700;margin:0 0 8px;}
.quote-terms p{font-size:11.5px;color:var(--text-muted);line-height:1.9;}
.quote-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;}
.quote-actions > div{display:flex;gap:12px;}
.quote-status-wrap{padding:24px;}
.quote-page-wrap{padding-bottom:40px;}
.quote-variant{display:block;margin-top:4px;font-weight:400;}
.quote-acceptance-card{margin:28px auto 0;background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:30px 36px;scroll-margin-top:24px;}
.quote-acceptance-card>h2{font-size:21px;margin:0 0 8px;}
.quote-acceptance-card>p{font-size:13px;margin:0 0 24px;}
.quote-payment-reference{max-width:360px;margin:16px 0;}
.field-error{display:block;color:#c0392b;margin-top:5px;font-size:11px;}
.quotes-index-wrap{padding:34px 0 60px;}
.quotes-index-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;}
.quotes-index-head h2{font-size:24px;margin:0 0 6px;color:var(--navy);}
.quotes-index-head p{font-size:13px;margin:0;}
.quotes-list{border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:var(--white);}
.quotes-list-head,.quotes-list-row{display:grid;grid-template-columns:1.35fr 1.25fr .8fr 1fr 1fr 28px;gap:14px;align-items:center;}
.quotes-list-head{padding:13px 20px;background:var(--navy);color:var(--white);font-size:11.5px;}
.quotes-list-row{padding:18px 20px;color:var(--text);border-bottom:1px solid var(--border);font-size:12.5px;transition:background-color .18s ease;}
.quotes-list-row:last-child{border-bottom:0;}
.quotes-list-row:hover{background:var(--bg-soft);}
.quotes-number{display:flex;align-items:center;gap:10px;color:var(--navy);}
.quotes-doc-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#f5ecd9;color:var(--gold);font-size:17px;}
.quotes-total{color:var(--blue);font-weight:700;}
.quotes-arrow{font-size:22px;color:var(--blue);}
.quotes-empty-state{text-align:center;border:1px dashed var(--border);border-radius:var(--radius-lg);padding:52px 24px;background:var(--white);}
.quotes-empty-state h3{font-size:20px;margin:12px 0 8px;}
.quotes-empty-state p{max-width:520px;margin:0 auto 20px;}
.quotes-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:#f5ecd9;color:var(--gold);font-size:30px;}
@media(max-width:800px){.quotes-index-head{align-items:flex-start;flex-direction:column}.quotes-list-head{display:none}.quotes-list-row{grid-template-columns:1fr auto;gap:10px 16px}.quotes-list-row>span:not(.quotes-number):not(.quotes-arrow){grid-column:1}.quotes-list-row>span[data-label]::before{content:attr(data-label) ': ';color:var(--text-muted)}.quotes-number{grid-column:1}.quotes-arrow{grid-column:2;grid-row:1/-1;align-self:center}}
@media print{.site-header,.site-footer,.page-banner,.quote-status-wrap,.quote-actions,.quote-acceptance-card{display:none!important}.quote-page-wrap{padding:0}.quote-doc{border:0;padding:0}}

.mini-stat{border:1px solid var(--border);border-radius:var(--radius);padding:16px;text-align:center;}
.mini-stat b{display:block;font-size:18px;font-weight:700;margin-bottom:4px;}
.mini-stat span{font-size:11px;color:var(--text-muted);}
.mini-stat.highlight{background:var(--blue);border-color:var(--blue);}
.mini-stat.highlight b,.mini-stat.highlight span{color:var(--white);}
.doc-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--border);font-size:12.5px;}
.doc-row:last-child{border-bottom:0;}
.doc-row a{color:var(--blue);font-weight:600;}

@media (max-width: 960px){
  :root{--header-h:89px;}
  .site-header{position:sticky;top:0;z-index:1000;box-shadow:0 6px 22px rgba(2,18,33,.14);}
  .site-header .bar{gap:14px;}
  .site-header .brand .name{display:none;}
  .site-header .logo-img{height:85px;}
  .header-right{margin-inline-start:auto;gap:12px;}
  .header-search{min-width:180px;}
  .header-actions{gap:10px;}
  .header-actions > a:not(.icon-btn){display:none;}
  .menu-toggle{display:flex;width:44px;height:44px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.08);align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#fff;flex:none;}
  .menu-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor;transition:transform .22s ease,opacity .22s ease;}
  .menu-open .menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .menu-open .menu-toggle span:nth-child(2){opacity:0;}
  .menu-open .menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
  .mobile-menu-backdrop{display:block;position:fixed;inset:0;z-index:1090;background:rgba(2,14,26,.55);opacity:0;transition:opacity .25s ease;backdrop-filter:blur(3px);}
  .mobile-menu-backdrop[hidden]{display:none;}
  .menu-open .mobile-menu-backdrop{opacity:1;}
  .mobile-menu{display:flex;position:fixed;z-index:1100;inset-block:0;inset-inline-end:0;width:min(390px,88vw);padding:20px 22px max(24px,env(safe-area-inset-bottom));background:#fff;color:var(--navy);flex-direction:column;box-shadow:-18px 0 48px rgba(0,0,0,.2);transform:translateX(105%);transition:transform .28s cubic-bezier(.2,.75,.25,1);overflow-y:auto;}
  html[dir="rtl"] .mobile-menu{transform:translateX(-105%);box-shadow:18px 0 48px rgba(0,0,0,.2);}
  .menu-open .mobile-menu,html[dir="rtl"] .menu-open .mobile-menu{transform:translateX(0);}
  .menu-open{overflow:hidden;}
  .mobile-menu-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid #e7eef5;}
  .mobile-menu-head .logo-img{height:50px;}
  .mobile-menu-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:12px;background:var(--bg-soft);color:var(--navy);}
  .mobile-menu-search{display:flex;align-items:center;gap:10px;margin:20px 0 14px;padding:0 14px;height:50px;border:1px solid var(--border);border-radius:12px;background:var(--bg-soft);color:var(--text-muted);}
  .mobile-menu-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:14px;}
  .mobile-nav{display:flex;flex-direction:column;}
  .mobile-nav a{display:flex;align-items:center;min-height:52px;padding:0 14px;border-bottom:1px solid #eaf0f5;font-size:15px;font-weight:500;}
  .mobile-nav a::after{content:'\203A';margin-inline-start:auto;color:#91a2b1;font-size:24px;line-height:1;}
  html[dir="rtl"] .mobile-nav a::after{content:'\2039';}
  .mobile-nav a.active{color:var(--blue);background:#f2f8ff;border-radius:10px;border-bottom-color:transparent;}
  .mobile-menu-footer{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;margin-top:auto;padding-top:24px;}
  .mobile-menu-footer .language-switch{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border:1px solid var(--border);border-radius:10px;color:var(--blue);font-weight:600;}
  .mobile-menu-footer .btn{min-height:48px;padding:10px 18px;}
  .hero{grid-template-columns:1fr;}
  .hero-slider,.hero-slides,.hero-slide-inner{min-height:720px;}
  .hero-slide-inner{grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:0;}
  .hero-slider .hero-copy{padding:46px 28px 6px;text-align:center;}
  .hero-slider .hero-copy h1{font-size:35px;}
  .hero-slider .hero-copy p{margin-left:auto;margin-right:auto;}
  .hero-slider .hero-actions{justify-content:center;}
  .hero-pagination{left:24px;bottom:28px;}
  .hero-arrow{display:none;}
  .product-grid,.catalog-layout .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .feature-strip{gap:22px;}
  .footer-top{grid-template-columns:1fr 1fr;gap:36px 28px;}
  .legal-layout{grid-template-columns:1fr;gap:20px;}
  .legal-sidebar{position:static;}
  .legal-sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .footer-brand-col{grid-column:1 / -1;min-height:270px;}
  .catalog-layout,.two-col,.account-grid,.order-bottom-grid{grid-template-columns:1fr;}
  .kpi-grid{flex-direction:column;}
  .updates-actions-grid{flex-direction:column;}
  .promo-grid{grid-template-columns:1fr;}
  .wholesale-items-head{display:none;}
  .wholesale-item-row{grid-template-columns:1fr;gap:10px;}
  .quote-row{grid-template-columns:1fr;gap:4px;}
  .quote-row.head{display:none;}
  .recurring-banner{flex-direction:column;align-items:stretch;text-align:center;}
  .recurring-copy p{max-width:none;}
  .quote-doc-head,.quote-doc-parties,.quote-actions{flex-direction:column;align-items:flex-start;gap:16px;}
  .quote-actions > div{width:100%;}
  .quote-actions .btn{flex:1;}
  .delivery-options{flex-direction:column;}
  .orders-filter-bar{flex-direction:column;align-items:flex-start;gap:16px;}
  .orders-filter-btns{flex-wrap:wrap;}
  .order-tracker{flex-wrap:wrap;gap:16px;}
  .tracker-step{flex:1 1 40%;}
  .checkout-actions{flex-direction:column;}
  .checkout-actions .btn{width:100%;}
  .account-links{grid-template-columns:1fr;}
  .nav-links{display:none;}
  .page-banner .banner-decor{flex-basis:34%;}
  .page-banner h1{font-size:27px;}
  .login-panel{grid-template-columns:1fr;padding:40px 36px;}
  .login-panel > p{grid-column:1;order:2;margin-top:28px;font-size:17px;}
  .login-panel .login-method{grid-column:1;order:1;}
  .merchant-layout{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  .about-hero{grid-template-columns:1fr;gap:28px;}
  .about-media{order:-1;}
  .about-feature-grid{grid-template-columns:1fr;}
  .sector-grid{grid-template-columns:1fr 1fr;}
  .contact-layout{grid-template-columns:1fr;}
}

@media (max-width: 640px){
  body{padding-bottom:calc(70px + env(safe-area-inset-bottom));}
  .container{padding-inline:18px;}
  .site-header .bar{padding-inline:16px;}
  .site-header .brand .name{display:block;font-size:12px;}
  .site-header .brand .name small{display:none;}
  .site-header .logo-img{height:42px;}
  .header-search{display:none;}
  .header-actions{margin-inline-start:auto;}
  .header-actions .icon-btn:not(#header-cart-link){display:none;}
  #header-cart-link{width:42px;height:42px;background:rgba(255,255,255,.1);}
  .menu-toggle{width:42px;height:42px;}
  .mobile-action-bar{display:grid;position:fixed;z-index:980;bottom:0;inset-inline:0;height:calc(66px + env(safe-area-inset-bottom));padding:6px 8px env(safe-area-inset-bottom);grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.96);border-top:1px solid #dce6ef;box-shadow:0 -8px 24px rgba(7,28,48,.09);backdrop-filter:blur(14px);}
  .mobile-action-bar a,.mobile-action-bar button{position:relative;display:flex;min-width:0;border:0;background:transparent;color:#697b8c;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-family:inherit;}
  .mobile-action-bar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
  .mobile-action-bar span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.2;}
  .mobile-action-bar .active{color:var(--blue);}
  .mobile-action-bar .active::before{content:'';position:absolute;top:-6px;width:25px;height:3px;border-radius:0 0 4px 4px;background:var(--blue);}
  .mobile-action-icon{position:relative;display:flex!important;overflow:visible!important;}
  .mobile-action-icon b{position:absolute;top:-6px;inset-inline-end:-8px;display:flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:var(--cyan);color:var(--navy);font-size:9px;}
  .footer-legal{align-items:flex-start;flex-direction:column;padding:18px;}
  .footer-legal>div{justify-content:flex-start;}
  .legal-layout{padding-top:24px;padding-bottom:40px;}
  .legal-sidebar{padding:14px;overflow:hidden;}
  .legal-sidebar nav{display:flex;overflow-x:auto;flex-direction:row;padding-bottom:4px;scrollbar-width:thin;}
  .legal-sidebar a{flex:none;max-width:220px;background:var(--white);}
  .legal-document{padding:24px 20px;}
  .legal-document>h1{font-size:24px;}
  .legal-copy{font-size:13px;line-height:1.9;}
  .legal-help{align-items:stretch;flex-direction:column;}
  .catalog-layout{gap:18px;padding-top:20px;}
  .filters{border:1px solid var(--border);border-radius:12px;padding:0 16px;background:#fff;box-shadow:0 5px 18px rgba(7,28,48,.05);}
  .filter-toggle{min-height:56px;}
  .filter-toggle span{font-size:16px;}
  .filter-toggle svg{display:block;color:var(--blue);transition:transform .2s ease;}
  .filters > form{display:none;padding-bottom:18px;}
  .filters.filters-open > form{display:block;}
  .filters.filters-open .filter-toggle svg{transform:rotate(180deg);}
  .results-bar{padding-top:0;}
  .product-card .thumb .tag{top:8px;right:6px;font-size:10px;}
  .product-card .thumb .fav{top:7px;left:6px;}
  .product-card .thumb img{padding:18px 8px 0;}
  .product-card .add-btn{min-height:46px;padding:9px 7px;gap:6px;font-size:13px;}
  .product-card .add-btn::before{width:19px;height:19px;}
  .product-card .body{padding-top:11px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;row-gap:3px;}
  .product-card .name{grid-column:1;grid-row:1;font-size:12px;}
  .product-card .desc{grid-column:1;grid-row:3;font-size:9.5px;}
  .product-card .price{grid-column:1;grid-row:2;font-size:18px;}
  .page-banner .banner-inner{flex-direction:column;min-height:0;}
  .page-banner .banner-decor{display:none;}
  .page-banner .banner-content{padding:26px 24px;}
  .page-banner h1{font-size:23px;}
  .login-panel{padding:32px 22px;margin:28px auto 50px;}
  .login-panel h2{font-size:24px;margin-bottom:26px;}
  .social-buttons{flex-direction:column;}
  .path-choice{padding:32px 22px;margin:40px auto;}
  .path-choice h2{font-size:26px;}
  .path-cards{grid-template-columns:1fr;}
  .stepper{flex-wrap:wrap;justify-content:flex-start;gap:18px 28px;}
  .merchant-card{padding:28px 22px;}
  .merchant-actions{flex-direction:column;}
  .merchant-actions .btn{width:100%;min-width:0;}
  .merchant-review-grid{grid-template-columns:1fr;}
  .merchant-review-grid > div.full{grid-column:1;}
  .about-stats{flex-direction:column;}
  .about-features{padding:32px 22px;}
  .about-copy h1{font-size:25px;}
  .sector-grid{grid-template-columns:1fr;}
  .contact-form-card{padding:28px 22px;}
  .faq-row{flex-direction:column;align-items:flex-start;gap:8px;}
}

@media (max-width: 700px){
  .cta-banner:not(.dark){
    min-height:0;
    padding:36px 24px;
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    row-gap:24px;
  }
  .cta-banner:not(.dark) h2{grid-column:1;grid-row:1;font-size:29px;margin:0;}
  .cta-banner:not(.dark) > p{grid-column:1;grid-row:2;margin:0;font-size:20px;text-align:center;}
  .cta-banner:not(.dark) .field-row{grid-column:1;grid-row:3;margin:0 auto;}
  .cta-banner.dark{min-height:0;padding:44px 24px;}
  .cta-banner.dark h2{font-size:29px;}
  .cta-banner.dark p:nth-of-type(2){font-size:15px;}
  .cta-banner.dark .btn{width:100%;max-width:316px;}
  .footer-bottom{padding-top:26px;padding-bottom:26px;flex-wrap:wrap;gap:24px;justify-content:center;}
  .footer-bottom > span{width:100%;text-align:center;order:3;}
  .footer-social{order:2;}
  .footer-nav{order:1;width:100%;justify-content:center;gap:24px;flex-wrap:wrap;}
}

@media (max-width: 560px){
  .hero-slider,.hero-slides,.hero-slide-inner{min-height:calc(100svh - var(--header-h) - 66px);}
  .hero-slide-inner{grid-template-rows:auto minmax(230px,1fr);background-position:center bottom;background-size:119%;}
  .hero-slider .hero-copy{padding:30px 18px 4px;}
  .hero-slider .hero-copy h1{font-size:clamp(26px,8vw,31px);line-height:1.42;letter-spacing:-.7px;margin-bottom:12px;}
  .hero-slider .hero-copy p{font-size:13px;line-height:1.8;margin-bottom:20px;}
  .hero-slider .hero-copy .checks{font-size:10px;white-space:normal;margin-top:18px;}
  .hero-slider .hero-actions{gap:9px;}
  .hero-slider .hero-actions .btn{min-width:0;flex:1;padding:12px 10px;font-size:12px;}
  .hero-pagination{left:14px;bottom:20px;}
  .feature-strip{grid-template-columns:1fr;gap:12px;padding:18px 18px 36px;}
  .feature-box{min-height:135px;padding:22px 18px;}
  .feature-box .ico{margin-bottom:12px;}
  .feature-box h3{font-size:19px;}
  .section{padding:28px 0;}
  .section-head h2{font-size:21px;}
  .product-grid,.product-grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:15px;}
  .footer-top{grid-template-columns:1fr;padding-top:46px;}
  .footer-brand-col{grid-column:1;}
}

/* ---------- toast + add-to-cart flight animation ---------- */
.toast-container{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:9999;display:flex;flex-direction:column;gap:10px;align-items:center;pointer-events:none;}
.toast{
  display:flex;align-items:center;gap:10px;
  background:var(--navy);color:var(--white);
  border-radius:var(--radius-lg);padding:12px 20px;
  font-size:13.5px;font-weight:600;text-align:center;
  box-shadow:0 12px 30px rgba(7,28,48,.25);
  opacity:0;transform:translateY(-12px);
  transition:opacity .25s ease,transform .25s ease;
  pointer-events:auto;max-width:90vw;
}
.toast.show{opacity:1;transform:translateY(0);}
.toast.toast-success{background:#1a9c4b;}
.toast.toast-error{background:#c0392b;}

.cart-fly-item{
  position:fixed;border-radius:50%;
  width:46px;height:46px;object-fit:cover;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  z-index:9998;pointer-events:none;opacity:1;
  transition:top .55s cubic-bezier(.55,0,.1,1),left .55s cubic-bezier(.55,0,.1,1),
             width .55s cubic-bezier(.55,0,.1,1),height .55s cubic-bezier(.55,0,.1,1),opacity .55s ease;
}

@keyframes cart-bump{
  0%{transform:scale(1);}
  35%{transform:scale(1.25);}
  60%{transform:scale(.95);}
  100%{transform:scale(1);}
}
.icon-btn.cart-bump{animation:cart-bump .4s ease;}

@media (prefers-reduced-motion: reduce){
  .hero-slide{transition:none;}
  .toast{transition:none;}
  .cart-fly-item{display:none;}
  .icon-btn.cart-bump{animation:none;}
}

/* =========================================================
   LTR overrides (English pages)
   The rules above were authored RTL-first (Arabic is the
   primary market language). Everything below re-flips the
   components that are actually rendered by the app for the
   English locale: header bar, page banners, hero slider,
   footer, buttons with a directional icon, tables and forms.
   Purely vertical layouts (flex-direction:column) and numeric
   content that should always read LTR regardless of page
   language (prices, phone numbers) are untouched on purpose.
   ========================================================= */

html[dir="ltr"] .site-header .bar > *{direction:ltr;}
html[dir="ltr"] .page-badge{direction:ltr;}

html[dir="ltr"] .page-banner .banner-content{direction:ltr;}

html[dir="ltr"] .hero-slide-inner{direction:ltr;background-position:right;}
html[dir="ltr"] .hero-slider .hero-copy{text-align:left;}
@media (max-width:560px){
  html[dir="ltr"] .hero-slide-inner{background-position:center bottom;}
}

html[dir="ltr"] .more-link{flex-direction:row;}
html[dir="ltr"] .product-card .add-btn{flex-direction:row;}

html[dir="ltr"] .footer-top{direction:ltr;}
html[dir="ltr"] .footer-top > *{direction:ltr;}
html[dir="ltr"] .footer-search input{text-align:left;direction:ltr;}
html[dir="ltr"] .footer-bottom > *{direction:ltr;}

html[dir="ltr"] .profile-head{flex-direction:row;justify-content:flex-start;}

html[dir="ltr"] .faq-list{text-align:left;}
html[dir="ltr"] .faq-row{flex-direction:row;}

html[dir="ltr"] .field{text-align:left;}
html[dir="ltr"] .form-field input,
html[dir="ltr"] .form-field select,
html[dir="ltr"] .form-field textarea{text-align:left;}

html[dir="ltr"] .data-table th{text-align:left;}

html[dir="ltr"] .path-card ul li{padding-right:0;padding-left:18px;text-align:left;}
html[dir="ltr"] .path-card ul li::before{right:auto;left:0;}
p.text-muted.account-switch-note {
    margin-top: 20px;
}
.data-table a {
    color: blue;
    text-decoration: underline;
}