
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-VariableFont_wght.ttf")
       format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root{--white:#fff;--blue:#1e3a8a;--blue-dark:#172b66;--tint:#eef2fb;--black:#111;--muted:#5b6270;--border:#dde3ee;--font:"Vazirmatn",Tahoma,"Segoe UI",system-ui,sans-serif;--shadow:0 14px 34px rgba(23,43,102,.14)}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--white);color:var(--black);line-height:1.7}
body:has(dialog[open]){overflow:hidden}
a{color:inherit;text-decoration:none}
button,input,select{font-family:inherit;font-size:1rem;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.i{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.i--lg{width:1.6rem;height:1.6rem}
[hidden]{display:none!important}

/* top */
.announce{display:flex;justify-content:center;align-items:center;gap:.5rem;background:var(--black);color:var(--white);font-size:.85rem;padding:.45rem 1rem}
.header{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:1rem;padding:.9rem 1.5rem;background:var(--white);border-bottom:1px solid var(--border)}
.logo{font-size:1.6rem;font-weight:800;letter-spacing:.4em}
.logo--light{color:var(--white)}
.search{position:relative;flex:1;max-width:30rem;margin-inline:auto;color:var(--muted)}
.search .i{position:absolute;inset-inline-start:.9rem;top:50%;transform:translateY(-50%)}
.search__input{width:100%;padding:.65rem 1rem;padding-inline-start:2.7rem;border:1px solid var(--border);border-radius:999px;background:var(--white);color:var(--black)}
.actions{display:flex;align-items:center;gap:1rem}
.lang-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem 1rem;font-size:.9rem;background:transparent;border:1px solid var(--black);border-radius:999px;transition:.2s}
.lang-btn:hover{background:var(--black);color:var(--white)}
.lang-btn--light{border-color:rgba(255,255,255,.6);color:var(--white)}
.lang-btn--light:hover{background:var(--white);color:var(--blue)}
.cart{position:relative;display:flex;background:none;border:0;padding:.3rem}
.cart__count{position:absolute;top:-.3rem;inset-inline-end:-.4rem;min-width:1.2rem;height:1.2rem;padding:0 .25rem;border-radius:999px;background:var(--blue);color:var(--white);font-size:.7rem;line-height:1.2rem;text-align:center}
@media(max-width:40rem){.header{justify-content:space-between}.search{order:3;flex-basis:100%;max-width:none}}

/* hero */
.hero{position:relative;overflow:hidden;text-align:center;padding:6rem 1rem;color:var(--white);background:radial-gradient(circle at 15% 20%,#2c4cb4 0,transparent 45%),var(--blue)}
.hero>*{position:relative}
.hero__art{position:absolute;inset-inline-end:-4rem;bottom:-5rem;width:30rem;height:30rem;max-width:80%;fill:none;stroke:#fff;stroke-width:.35;opacity:.14}
.hero__eyebrow{display:inline-flex;align-items:center;gap:.5rem;padding:.3rem 1rem;border:1px solid rgba(255,255,255,.4);border-radius:999px;font-size:.9rem;margin-bottom:1.2rem}
.hero h1{font-size:clamp(2.2rem,7vw,4.2rem);font-weight:800;line-height:1.25;margin-bottom:1rem}
.hero__text{max-width:34rem;margin:0 auto 2rem;opacity:.92}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.8rem 1.7rem;border:1px solid transparent;border-radius:.25rem;font-weight:700;transition:background .2s,color .2s,border-color .2s}
.btn--full{width:100%}
.btn--light{background:var(--white);color:var(--blue)}
.btn--light:hover{background:var(--black);color:var(--white)}
.btn--blue{background:var(--blue);color:var(--white)}
.btn--blue:hover{background:var(--blue-dark)}
.btn--dark{background:var(--black);color:var(--white)}
.btn--line{background:var(--white);border-color:var(--border);color:var(--black)}
.btn--line:hover{border-color:var(--blue);color:var(--blue)}
.btn:disabled{opacity:.45;cursor:not-allowed}

/* features */
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:1rem;max-width:70rem;margin:0 auto;padding:2.5rem 1rem 0}
.features div{display:flex;align-items:center;gap:.8rem;font-size:.95rem}
.features .i{width:2.6rem;height:2.6rem;padding:.6rem;border-radius:50%;background:var(--tint);color:var(--blue)}

/* sections */
.section{max-width:70rem;margin:0 auto;padding:3.5rem 1rem 1rem;text-align:center}
.section h2{font-size:1.8rem;margin-bottom:1.5rem}
.section h2::after{content:"";display:block;width:3rem;height:2px;margin:.6rem auto 0;background:var(--blue)}
.note{color:var(--muted);font-size:.9rem;margin-bottom:1.5rem}
.cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:1rem}
.cat{display:flex;flex-direction:column;align-items:center;gap:.4rem;padding:1.4rem 1rem;background:var(--white);border:1px solid var(--border);transition:.2s}
.cat .i{width:1.8rem;height:1.8rem;color:var(--blue)}
.cat:hover{border-color:var(--blue);transform:translateY(-3px)}
.cat.is-active{background:var(--blue);border-color:var(--blue);color:var(--white)}
.cat.is-active .i{color:var(--white)}

/* products */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:1.5rem}
.card{display:block;padding:0;text-align:start;background:var(--white);border:1px solid var(--border);transition:.25s}
.card:hover{border-color:var(--blue);box-shadow:var(--shadow);transform:translateY(-4px)}
.thumb{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;overflow:hidden;background:var(--tint);color:var(--blue)}
.thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.card:hover .thumb img{transform:scale(1.05)}
.thumb .i{width:3.5rem;height:3.5rem;stroke-width:1.2}
.badge{position:absolute;top:.7rem;inset-inline-start:.7rem;padding:.1rem .7rem;background:var(--black);color:var(--white);font-size:.8rem}
.card__body{display:block;padding:1rem}
.card__name{display:block;font-weight:700}
.price{display:block;color:var(--blue);font-weight:800}
.empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:.6rem;padding:3rem 1rem;color:var(--muted)}
.empty .i{width:3rem;height:3rem}

/* footer */
.footer{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-top:4rem;padding:3rem 1rem;background:var(--blue);color:var(--white);text-align:center}
.footer__links{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center}

/* dialogs */
dialog{border:0;padding:0;background:var(--white);color:var(--black);max-height:92vh;overflow:auto}
dialog::backdrop{background:rgba(10,20,50,.6);backdrop-filter:blur(2px)}
.modal{width:min(52rem,94vw);position:relative;box-shadow:var(--shadow)}
.modal--wide{width:min(48rem,94vw)}
.x{position:absolute;top:.8rem;inset-inline-end:.8rem;z-index:2;display:flex;padding:.4rem;background:var(--white);border:1px solid var(--border);border-radius:50%}
.x--static{position:static}
.x:hover{border-color:var(--blue);color:var(--blue)}
.pad{padding:2rem 1.5rem}
.detail{display:grid;grid-template-columns:1fr 1fr}
.detail__media{background:var(--tint);color:var(--blue);display:flex;align-items:center;justify-content:center;min-height:16rem}
.detail__media img{width:100%;height:100%;object-fit:cover;max-height:32rem}
.detail__media .i{width:5rem;height:5rem}
.detail__info{padding:2rem 1.5rem;display:flex;flex-direction:column;gap:.6rem;align-items:flex-start}
.detail__name{font-size:1.6rem;line-height:1.3}
.detail .price{font-size:1.4rem}
.chip{padding:.1rem .8rem;border:1px solid var(--blue);color:var(--blue);font-size:.85rem}
.label{display:block;font-size:.9rem;font-weight:700;margin-top:.4rem}
.sizes{display:flex;flex-wrap:wrap;gap:.5rem}
.size{min-width:3rem;padding:.4rem .6rem;background:var(--white);border:1px solid var(--border);transition:.15s}
.size:hover{border-color:var(--blue)}
.size.on{background:var(--black);border-color:var(--black);color:var(--white)}
.qty{display:inline-flex;align-items:center;border:1px solid var(--border)}
.qty button{display:flex;padding:.45rem .6rem;background:none;border:0}
.qty button:hover{color:var(--blue)}
.qty output{min-width:2.2rem;text-align:center;font-weight:700}
.detail .btn{margin-top:1rem}
@media(max-width:44rem){.detail{grid-template-columns:1fr}}

.drawer{position:fixed;margin:0;inset-block:0;inset-inline-end:0;inset-inline-start:auto;width:min(26rem,100%);height:100%;max-height:100%}
.drawer[open]{display:flex;flex-direction:column}
.drawer__head{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.2rem;border-bottom:1px solid var(--border)}
.drawer__head h2{display:flex;align-items:center;gap:.5rem;font-size:1.2rem}
.drawer__body{flex:1;overflow:auto;padding:1rem 1.2rem}
.drawer__foot{padding:1rem 1.2rem;border-top:1px solid var(--border);display:grid;gap:.8rem}
.total{display:flex;justify-content:space-between;font-size:1.1rem}
.total strong{color:var(--blue)}
.line{display:grid;grid-template-columns:4.5rem 1fr auto;gap:.8rem;align-items:start;padding:.8rem 0;border-bottom:1px solid var(--border)}
.line__img{aspect-ratio:1;overflow:hidden;background:var(--tint);color:var(--blue);display:flex;align-items:center;justify-content:center}
.line__img img{width:100%;height:100%;object-fit:cover}
.line__mid{display:flex;flex-direction:column;gap:.1rem;align-items:flex-start}
.line__mid small{color:var(--muted)}
.rm{display:flex;padding:.4rem;background:none;border:0;color:var(--muted)}
.rm:hover{color:#b3261e}

/* admin */
.adm-title{display:flex;align-items:center;gap:.5rem;margin-bottom:.4rem}
.box{border:1px solid var(--border);padding:1.2rem;margin-top:1.2rem;display:grid;gap:.7rem;text-align:start}
.box h3{font-size:1.05rem}
.row{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center}
.row--end{justify-content:flex-end}
.row input{flex:1;min-width:10rem}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.8rem}
input:not([type=checkbox]):not([type=file]),select{width:100%;padding:.6rem .8rem;border:1px solid var(--border);background:var(--white)}
.check{display:flex;align-items:center;gap:.5rem;align-self:end}
.prev{width:4.5rem;height:4.5rem;object-fit:cover;border:1px solid var(--border)}
.plist{display:grid;gap:.5rem}
.prow{display:grid;grid-template-columns:3rem 1fr auto;gap:.8rem;align-items:center;padding:.5rem;border:1px solid var(--border)}
.prow .line__img{width:3rem}
.prow small{color:var(--muted);display:block}
.prow .btn{padding:.4rem .7rem}

/* toast */
#toast{inset:auto 0 1.5rem 0;margin:0 auto;width:max-content;max-width:90vw;border:0;padding:.7rem 1.3rem;background:var(--black);color:var(--white);box-shadow:var(--shadow)}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* backend additions */
.status{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;justify-content:center;padding:.7rem 1rem;background:var(--tint);color:var(--blue-dark);text-align:center}
.status .btn{padding:.3rem 1rem}
.error{color:#b3261e;font-size:.9rem}
.admin-note{flex:1;margin:0}
.status__detail{flex-basis:100%;direction:ltr;font-size:.8rem;color:var(--muted);word-break:break-all}

/* orders and checkout */
.drawer__foot{max-height:62vh;overflow:auto}
.done{display:flex;flex-direction:column;align-items:center;gap:.8rem;text-align:center;padding:2rem 0}
.done .i{width:3.6rem;height:3.6rem;padding:.8rem;border-radius:50%;background:var(--blue);color:var(--white)}
.ord{display:grid;gap:.4rem;padding:.9rem;border:1px solid var(--border)}
.ord__head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.ord__head small,.ord__info{color:var(--muted);overflow-wrap:anywhere}
.ord__items{padding-inline-start:1.2rem}
.ord select{width:auto}
/* product controls and store information sections */
.section__heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.section__heading h2{margin:0;text-align:start}
.section__heading h2::after{margin-inline-start:0;margin-inline-end:auto}
.sort-control{display:flex;align-items:center;gap:.6rem;color:var(--muted);font-size:.9rem;white-space:nowrap}
.sort-control select{width:auto;min-width:10rem;border-radius:.25rem}
.product-count{margin:.5rem 0 1.2rem;color:var(--muted);font-size:.9rem;text-align:start}
.info-section{padding-top:4rem}
.info-section__lead{max-width:48rem;margin:0 auto 1.5rem;color:var(--muted)}
.info-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;text-align:start}
.info-cards article{border:1px solid var(--border);padding:1.4rem;background:var(--white)}
.info-cards article>.i{width:2rem;height:2rem;color:var(--blue);margin-bottom:.7rem}
.info-cards h3{font-size:1.05rem;margin-bottom:.4rem}
.info-cards p{color:var(--muted);font-size:.92rem}
.faq-list{max-width:52rem;margin:0 auto;text-align:start}
.faq-list details{border-bottom:1px solid var(--border);padding:1rem .2rem}
.faq-list summary{font-weight:700;cursor:pointer;list-style-position:inside}
.faq-list details p{padding: .8rem 1.4rem 0;color:var(--muted)}
.footer__nav{display:flex;flex-wrap:wrap;justify-content:center;gap:1.2rem}
.footer__nav a{color:rgba(255,255,255,.9);text-decoration:underline;text-underline-offset:.2em}
.footer__nav a:hover{color:var(--white)}
.footer__legal{max-width:46rem;font-size:.8rem;color:rgba(255,255,255,.78)}
@media(max-width:44rem){
  .section__heading{align-items:stretch;flex-direction:column}
  .section__heading h2{text-align:center}
  .section__heading h2::after{margin:.6rem auto 0}
  .sort-control{justify-content:space-between}
  .sort-control select{flex:1;max-width:65%}
  .info-cards{grid-template-columns:1fr}
}

/* quick store contact */
.wa-float{position:fixed;z-index:15;inset-inline-start:1rem;bottom:1rem;display:inline-flex;align-items:center;gap:.55rem;padding:.8rem 1rem;background:#166534;color:#fff;border:2px solid #fff;border-radius:999px;box-shadow:0 8px 28px rgba(0,0,0,.2);font-weight:700}
.wa-float:hover{background:#14532d;transform:translateY(-2px)}
.wa-float .i{width:1.35rem;height:1.35rem}
@media(max-width:30rem){.wa-float{inset-inline-start:.7rem;bottom:.7rem;padding:.7rem .85rem;font-size:.9rem}}
/* product filters */
.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.8rem;align-items:end;text-align:start;margin-bottom:.8rem}
.filters .label{margin-top:0}
.filters .check{align-self:center}
/* logo */
.logo{display:inline-flex;align-items:center;letter-spacing:0}
.logo__img{display:block;height:2.8rem;width:auto}
.logo__img--en{display:none}
html[lang="en"] .logo__img--fa{display:none}
html[lang="en"] .logo__img--en{display:block}
.footer .logo__img{height:3.4rem}
@media(max-width:30rem){.logo__img{height:2.3rem}.footer .logo__img{height:3rem}}

/* discounts */
.price-box{display:block}
.price__old{margin-inline-start:.5rem;color:var(--muted);font-weight:400;font-size:.85em}
.badge--sale{inset-inline-start:auto;inset-inline-end:.7rem;background:var(--blue)}

/* announcements */
.news-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1rem;text-align:start}
.news-card{border:1px solid var(--border);border-inline-start:4px solid var(--blue);padding:1.2rem;background:var(--white)}
.news-card h3{display:flex;align-items:center;gap:.5rem;font-size:1.05rem;margin-bottom:.4rem}
.news-card h3 .i{color:var(--blue)}
.news-card p{color:var(--muted);margin-bottom:.5rem;white-space:pre-line}
.news-card small{color:var(--muted)}
.box__form{display:grid;gap:.7rem}
.ann-row{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;justify-content:space-between;padding:.6rem;border:1px solid var(--border)}
.ann-row small{display:block;color:var(--muted)}
textarea{width:100%;padding:.6rem .8rem;border:1px solid var(--border);background:var(--white);font-family:inherit;font-size:1rem;resize:vertical}
/* main menu and brands */
.menu{background:var(--white);border-bottom:1px solid var(--border)}
.menu__inner{display:flex;gap:.2rem;justify-content:center;overflow-x:auto;padding:0 1rem;scrollbar-width:none}
.menu__inner::-webkit-scrollbar{display:none}
.menu__link{flex:none;display:inline-flex;align-items:center;gap:.3rem;padding:.8rem 1rem;background:none;border:0;border-bottom:2px solid transparent;font-weight:700;font-size:.95rem;color:var(--black);cursor:pointer}
.menu__link:hover,.menu__link.is-active{color:var(--blue);border-bottom-color:var(--blue)}
.menu__brands::after{content:"";width:.45rem;height:.45rem;margin-inline-start:.35rem;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px)}
.menu__brands[aria-expanded="true"]::after{transform:rotate(-135deg)}
.brands{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;padding:.8rem 1rem;background:var(--tint);border-top:1px solid var(--border)}
.brand-chip{padding:.35rem 1rem;background:var(--white);border:1px solid var(--border);border-radius:999px;cursor:pointer}
.brand-chip:hover{border-color:var(--blue)}
.brand-chip.is-active{background:var(--blue);border-color:var(--blue);color:var(--white)}
.card__brand{display:block;font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
/* search box: keep the icon clear of the text */
.search .search__input[type="search"]{padding-block:.65rem;padding-inline:2.9rem 1rem}
.search .i{pointer-events:none}
/* quick links, stores, help, join us */
.utility{display:flex;gap:1.2rem;justify-content:flex-end;padding:.35rem 1.5rem;background:var(--tint);font-size:.82rem}
.utility__link{display:inline-flex;align-items:center;gap:.35rem;color:var(--black)}
.utility__link:hover{color:var(--blue)}
.utility .i{width:1em;height:1em}
@media(max-width:40rem){.utility{justify-content:center;gap:.9rem;padding:.35rem .6rem;font-size:.78rem}}
.store-search{display:block;width:100%;max-width:26rem;margin:0 auto 1.2rem;border-radius:999px}
.store-grid,.help-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1rem;text-align:start}
.store-card,.help-card{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;padding:1.3rem;border:1px solid var(--border);background:var(--white)}
.store-card h3,.help-card h3{font-size:1.05rem}
.store-card__line{display:flex;gap:.5rem;align-items:flex-start;color:var(--muted);font-size:.92rem}
.store-card__line .i{color:var(--blue);margin-top:.2rem}
.store-card .row{margin-top:.4rem}
.help-card p{color:var(--muted);font-size:.92rem}
.help-card ol{padding-inline-start:1.2rem;color:var(--muted);font-size:.92rem}
.join-form{display:grid;gap:.8rem;max-width:34rem;margin:0 auto;text-align:start}
.join-ok{color:#166534;font-weight:700}
/* brand logos and site pictures */
.brand-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:1rem}
.brand-tile{display:flex;align-items:center;justify-content:center;min-height:5.5rem;padding:1rem;background:var(--white);border:1px solid var(--border);transition:.2s;cursor:pointer}
.brand-tile:hover{border-color:var(--blue);transform:translateY(-3px)}
.brand-tile img{max-width:100%;max-height:3.2rem;width:auto;height:auto;object-fit:contain}
.brand-tile__name{font-weight:800;color:var(--blue)}
.brand-chip__logo{height:1.2rem;width:auto;margin-inline-end:.4rem;vertical-align:middle}
.card__logo{height:1.3rem;width:auto;max-width:6rem;object-fit:contain;vertical-align:middle}
.media-thumb img{object-fit:contain;background:var(--white)}

.hero.has-img{background:linear-gradient(rgba(23,43,102,.82),rgba(23,43,102,.82)),var(--img-hero-bg) center/cover no-repeat,var(--blue)}
#join.has-img{max-width:none;padding-inline:max(1rem,calc((100% - 68rem)/2));padding-bottom:3rem;background:linear-gradient(rgba(255,255,255,.9),rgba(255,255,255,.9)),var(--img-community-bg) center/cover no-repeat}
.cat.has-img{color:var(--white);background-size:cover;background-position:center}
.cat.has-img .i{color:var(--white)}
.cat.has-img.is-active{box-shadow:inset 0 0 0 4px var(--blue)}
.cat[data-category="men"].has-img{background-image:linear-gradient(rgba(17,24,60,.55),rgba(17,24,60,.55)),var(--img-cat-men)}
.cat[data-category="women"].has-img{background-image:linear-gradient(rgba(17,24,60,.55),rgba(17,24,60,.55)),var(--img-cat-women)}
.cat[data-category="children"].has-img{background-image:linear-gradient(rgba(17,24,60,.55),rgba(17,24,60,.55)),var(--img-cat-children)}
#toast{display:none}
#toast.show{display:block}
#toast:popover-open{display:block}

/* ==========================================
   ZARIF — ADMINISTRATOR MANAGEMENT
   Premium dashboard styling
   ========================================== */

.admin-management {
  width: 100%;
  margin-top: 32px;
  padding: 28px;
  border: 1px solid rgba(30, 58, 138, 0.10);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    #ffffff 0%,
    #f5f8ff 100%
  );
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  color: #111827;
}

.admin-management-header {
  margin-bottom: 24px;
}

.admin-management-header h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.admin-management-header p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
}

.admin-management-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.035);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.admin-management-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.admin-management-card h4 {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 750;
  color: #1e3a8a;
}

#add-admin-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

#add-admin-form label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

#new-admin-email {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  direction: ltr;
  text-align: left;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

#new-admin-email:focus {
  border-color: #1e3a8a;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.10);
}

#add-admin-button {
  min-height: 46px;
  align-self: flex-start;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#add-admin-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.16);
}

#add-admin-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.admin-management-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-management-list-header h4 {
  margin: 0;
}

#refresh-admins-button {
  padding: 9px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #1e3a8a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#refresh-admins-button:hover {
  background: #eff6ff;
}

#admin-management-message {
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
}

#admin-management-message:empty {
  display: none;
}

#admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.admin-user-info {
  min-width: 0;
}

.admin-user-email {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.admin-user-role {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.admin-remove-button {
  flex-shrink: 0;
  padding: 9px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  color: #be123c;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-remove-button:hover {
  background: #ffe4e6;
}

.admin-remove-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile responsiveness */

@media (max-width: 640px) {
  .admin-management {
    padding: 16px;
    border-radius: 16px;
  }

  .admin-management-card {
    padding: 16px;
  }

  #add-admin-button {
    width: 100%;
  }

  .admin-user-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-remove-button {
    width: 100%;
  }
}

/* Accessibility: reduce animation when requested */

@media (prefers-reduced-motion: reduce) {
  .admin-management-card,
  #new-admin-email,
  #add-admin-button {
    transition: none;
  }

  .admin-management-card:hover,
  #add-admin-button:hover {
    transform: none;
  }
}

/* ZARIF — PRODUCT CLASSIFICATION */

.zarif-product-classification {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
}

.zarif-product-classification label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.zarif-product-classification select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.zarif-product-classification select:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* ZARIF — PRODUCT CLASSIFICATION DISPLAY */

.product-classification {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.classification-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* ========================================
   ZARIF — Professional Catalog UI
   ======================================== */

.zarif-catalog-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.zarif-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.zarif-filter-field label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.zarif-filter-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #dbe2eb;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.zarif-filter-field select:hover {
  border-color: #94a3b8;
}

.zarif-filter-field select:focus-visible {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.card__classification {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.detail__classification {
  margin: 10px 0 16px;
  color: #475569;
  font-size: 13px;
  line-height: 1.8;
}

.admin-product-classification {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .zarif-catalog-filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ZARIF — INVENTORY MANAGEMENT */

#inventory-management {
  border-radius: 16px;
  background: #fff;
  padding: 24px;
}

#inventory-description {
  color: #64748b;
  font-size: 13px;
}

#inventory-form {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

#inventory-management input,
#inventory-management select {
  border-radius: 10px;
}

#inventory-hex {
  min-height: 45px;
  cursor: pointer;
}

#inventory-list {
  margin-top: 20px;
}

#inventory-message {
  font-size: 13px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  #inventory-management {
    padding: 16px;
  }
}


/* ZARIF — Inventory records */

.zarif-inventory-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
}

.zarif-inventory-row small {
  color: #64748b;
  overflow-wrap: anywhere;
}

.inventory-low {
  color: #b45309;
}

.inventory-out {
  color: #dc2626;
}

@media (max-width: 600px) {
  .zarif-inventory-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ZARIF — Inventory actions */

.zarif-inventory-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inventory-actions .btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
}

@media (max-width: 700px) {
  .zarif-inventory-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-actions {
    grid-column: 1 / -1;
  }
}



/* ZARIF Inventory Status Indicators */

.inventory-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.inventory-status.inventory-good {
  background: #e7f7ee;
  color: #137547;
}

.inventory-status.inventory-low {
  background: #fff1d6;
  color: #9a5700;
}

.inventory-status.inventory-out {
  background: #ffe7e7;
  color: #b42318;
}

/* Six inventory columns, including actions */

.zarif-inventory-row {
  grid-template-columns:
    repeat(4, minmax(0, 1fr))
    auto
    auto;
  align-items: center;
  gap: 10px;
}

@media (max-width: 700px) {
  .zarif-inventory-row {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .inventory-actions {
    grid-column: 1 / -1;
  }
}

/* ZARIF Inventory Overview Dashboard */

.inventory-overview {
  margin: 20px 0 28px;
  padding: 22px;
  border: 1px solid #e6e8ed;
  border-radius: 18px;
  background: #ffffff;
}

.inventory-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.inventory-overview-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

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

.inventory-stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  background: #f5f7fa;
  border: 1px solid #e9edf2;
}

.inventory-stat-card span {
  font-size: 13px;
  color: #606a79;
  font-weight: 600;
}

.inventory-stat-card strong {
  font-size: 30px;
  font-weight: 800;
  color: #192638;
}

.inventory-stat-low {
  background: #fff8e9;
  border-color: #f4dfaa;
}

.inventory-stat-low strong {
  color: #ad6500;
}

.inventory-stat-out {
  background: #fff0f0;
  border-color: #f3cccc;
}

.inventory-stat-out strong {
  color: #bd3030;
}

#inventory-overview-message {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .inventory-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .inventory-overview {
    padding: 14px;
  }

  .inventory-stat-card {
    padding: 14px;
  }

  .inventory-stat-card strong {
    font-size: 25px;
  }
}


/* ZARIF Inventory Search and Filters */

.inventory-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 12px;
  margin: 18px 0;
  align-items: center;
}

.inventory-filter-bar input,
.inventory-filter-bar select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dce2ea;
  border-radius: 10px;
  background: #fff;
  color: #192638;
  font-size: 14px;
}

.inventory-filter-bar input:focus,
.inventory-filter-bar select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.inventory-filter-bar .btn {
  min-height: 44px;
}

@media (max-width: 600px) {
  .inventory-filter-bar {
    grid-template-columns: 1fr;
  }
}

/* ZARIF Inventory Alert Center */

.inventory-alert-center {
  margin: 20px 0 28px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e6e8ed;
  border-radius: 18px;
}

.inventory-alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.inventory-alert-header h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.inventory-alert-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.inventory-alert-summary > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  background: #f5f7fa;
}

.inventory-alert-summary span {
  font-size: 13px;
  color: #64748b;
}

.inventory-alert-summary strong {
  font-size: 28px;
  color: #172033;
}

.inventory-alert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inventory-alert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
}

.inventory-alert-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.inventory-alert-details small {
  color: #64748b;
}

.inventory-alert-quantity {
  text-align: center;
  font-size: 18px;
}

@media (max-width: 600px) {
  .inventory-alert-center {
    padding: 14px;
  }

  .inventory-alert-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .inventory-alert-row .inventory-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ZARIF Inventory Export Button */

.inventory-overview-header {
  flex-wrap: wrap;
}

#inventory-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 10px;
}

#inventory-export:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  #inventory-export {
    width: 100%;
  }
}

/* ZARIF Inventory Movement History */

.inventory-history {
  margin: 20px 0 28px;
  padding: 22px;
  border: 1px solid #e6e8ed;
  border-radius: 18px;
  background: #fff;
}

.inventory-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.inventory-history-header h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.inventory-history-filters {
  margin-bottom: 16px;
}

.inventory-history-filters select {
  width: 100%;
  max-width: 280px;
  padding: 12px;
  border: 1px solid #dce2ea;
  border-radius: 10px;
  background: #fff;
}

.inventory-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inventory-history-card {
  padding: 16px;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  background: #fafbfd;
}

.inventory-history-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.inventory-history-change {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.history-positive {
  color: #168451;
}

.history-negative {
  color: #c73535;
}

.history-neutral {
  color: #64748b;
}

.inventory-history-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
}

.inventory-history-metadata {
  display: block;
  color: #8893a3;
  font-size: 11px;
  overflow-wrap: anywhere;
}

#inventory-history-more {
  margin-top: 16px;
}

@media (max-width: 600px) {
  .inventory-history {
    padding: 14px;
  }

  .inventory-history-card {
    padding: 12px;
  }
}

/* ZARIF Controlled Inventory Adjustment */

.inventory-adjustment {
  margin: 22px 0;
  padding: 24px;
  border: 1px solid #e5eaf0;
  border-radius: 18px;
  background: #fff;
}

.inventory-adjustment h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

#inventory-adjustment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

#inventory-adjustment-form label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

#inventory-adjustment-form select,
#inventory-adjustment-form input,
#inventory-adjustment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe2eb;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font: inherit;
}

#inventory-adjustment-form select:focus,
#inventory-adjustment-form input:focus,
#inventory-adjustment-form textarea:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

#adjustment-current-stock {
  padding: 12px;
  background: #f1f5f9;
  border-radius: 10px;
  font-weight: 700;
}

#adjustment-save {
  margin-top: 8px;
  min-height: 44px;
}

#adjustment-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .inventory-adjustment {
    padding: 16px;
  }
}


/* ============================================================
   ZARIF Phase 22.1 — premium storefront refresh
   White 60% / blue 30% / black 10% visual direction.
   Additive overrides: existing product/cart/admin logic retained.
   ============================================================ */
:root{
  --white:#ffffff;
  --blue:#1769d2;
  --blue-dark:#104fa5;
  --tint:#eef5ff;
  --black:#101820;
  --muted:#5b687a;
  --border:#e4eaf2;
  --shadow:0 18px 50px rgba(16,38,74,.12);
}
body{background:#fff;color:var(--black);-webkit-font-smoothing:antialiased}
.announce{background:#101820;letter-spacing:.015em;min-height:34px}
.header{padding:1rem clamp(1rem,3.2vw,3.2rem);box-shadow:0 4px 18px rgba(16,24,32,.035);gap:1.4rem}
.logo__img{height:3.15rem;max-width:190px;object-fit:contain}
.search{max-width:38rem}
.search__input{background:#f6f9fd;border:1px solid #e3eaf3;padding-block:.8rem;transition:background .2s,box-shadow .2s}
.search__input:focus{background:#fff;box-shadow:0 0 0 4px rgba(23,105,210,.09)}
.lang-btn{border-color:#dbe5f2;font-weight:700}
.menu{background:#fff}
.menu__inner{min-height:51px;align-items:center;gap:clamp(.15rem,.8vw,.8rem);border-bottom:1px solid var(--border)}
.menu__link{font-weight:700;transition:color .2s,background .2s}
.menu__link:hover{color:var(--blue)}
.hero{
  isolation:isolate;
  min-height:clamp(360px,43vw,610px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:clamp(4rem,8vw,8rem) 1.5rem;
  background:linear-gradient(120deg,#0e2b55 0%,#1769d2 65%,#3c91e9 100%);
}
.hero::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 85% 15%,rgba(255,255,255,.22),transparent 33%);z-index:0}
.hero__art{width:min(38rem,60vw);height:min(38rem,60vw);opacity:.11}
.hero h1{font-size:clamp(2.5rem,6.8vw,5.3rem);letter-spacing:-.035em;max-width:850px;text-wrap:balance;text-shadow:0 4px 24px rgba(0,0,0,.12)}
.hero__text{font-size:clamp(1rem,1.45vw,1.18rem);max-width:42rem;line-height:1.9}
.hero__eyebrow{background:rgba(255,255,255,.12);backdrop-filter:blur(5px)}
.hero .btn{border-radius:999px;padding:1rem 2.1rem;box-shadow:0 10px 25px rgba(0,0,0,.13)}
.hero.has-img{background:linear-gradient(110deg,rgba(10,30,58,.84),rgba(23,105,210,.45)),var(--img-hero-bg) center/cover no-repeat,#1769d2}
.features{max-width:1200px;padding:2.1rem 1.25rem;gap:1rem}
.features>div{padding:1rem 1.1rem;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(16,38,74,.035)}
.features .i{background:#eaf3ff}
.section{max-width:1200px;padding:clamp(2.8rem,5vw,5rem) 1.25rem 1rem}
.section h2{font-size:clamp(1.65rem,3vw,2.25rem);font-weight:800;letter-spacing:-.025em}
.section h2::after{height:3px;width:3.6rem;border-radius:999px}
.cats{gap:1.15rem}
.cat{min-height:155px;justify-content:center;gap:.8rem;border-radius:16px;border-color:#e6edf6;box-shadow:0 7px 22px rgba(16,38,74,.04);font-weight:800}
.cat .i{width:2.25rem;height:2.25rem}
.cat:hover{box-shadow:0 15px 28px rgba(16,38,74,.11);transform:translateY(-5px)}
.grid{gap:clamp(.85rem,2vw,1.5rem)}
.card{border-radius:16px;overflow:hidden;border-color:#e6edf6;box-shadow:0 6px 18px rgba(16,38,74,.035)}
.card:hover{transform:translateY(-5px);box-shadow:0 16px 35px rgba(16,38,74,.12)}
.thumb{background:#f2f6fb}
.card__body{padding:1.1rem 1.2rem 1.3rem}
.card__name{font-size:1rem;line-height:1.5}
.price{font-size:1.05rem}
.badge{border-radius:999px;padding:.22rem .7rem}
.btn{border-radius:10px}
.btn--blue{box-shadow:0 6px 18px rgba(23,105,210,.14)}
.footer{background:#101820;padding:4rem 1.25rem;gap:1.2rem}
.footer .logo__img{height:4rem}
.footer__nav{gap:1rem}
dialog{border-radius:16px}
@media(max-width:700px){
  .header{gap:.65rem;padding:.8rem 1rem}
  .logo__img{height:2.55rem}
  .hero{min-height:390px;padding:4.5rem 1.1rem}
  .hero h1{font-size:clamp(2.15rem,9vw,3.4rem)}
  .features{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;padding:1.2rem .8rem}
  .features>div{font-size:.8rem;padding:.8rem;gap:.5rem}
  .features .i{width:2.2rem;height:2.2rem}
  .cats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cat{min-height:120px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
  .card__body{padding:.7rem}
  .card__name{font-size:.88rem}
  .section{padding:2.5rem .8rem 1rem}
}
@media(max-width:370px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .features{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .card,.cat,.thumb img{transition:none!important}
  .card:hover,.cat:hover{transform:none}
}

/* =====================================
   ZARIF ADMIN ACCESS BUTTON
   Phase 22.2.2
===================================== */

.zarif-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 16px;

  background: #eef5ff;
  color: #1769d2;

  border: 1px solid #d6e6ff;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  white-space: nowrap;
  transition: all 0.2s ease;
}

.zarif-admin-link:hover {
  background: #1769d2;
  color: #ffffff;
  border-color: #1769d2;
  transform: translateY(-2px);
}

.zarif-admin-link:focus-visible {
  outline: 3px solid #1769d2;
  outline-offset: 3px;
}

/* Mobile design */

@media (max-width: 700px) {
  .zarif-admin-link {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }

  .zarif-admin-link span {
    display: none;
  }

  .zarif-admin-link svg {
    width: 19px;
    height: 19px;
  }
}
/* ZARIF — Product variant selection */

.zarif-variant-picker {
  margin-block: 12px;
}

.zarif-variant-picker .sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zarif-variant-picker button.size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.zarif-variant-picker button.size:hover {
  transform: translateY(-2px);
}

.zarif-color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.zarif-variant-picker button.size:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .zarif-variant-picker button.size {
    transition: none;
  }

  .zarif-variant-picker button.size:hover {
    transform: none;
  }
}

/* ZARIF — Supplier Management */

#zarif-suppliers-workspace {
  padding: 24px;
}

#supplier-form {
  display: grid;
  gap: 16px;
  margin-block: 24px;
}

#supplier-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#supplier-form label {
  display: grid;
  gap: 7px;
}

#supplier-form input:not([type="checkbox"]),
#supplier-form textarea,
#supplier-search {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid #d6dce5;
  border-radius: 10px;
  font: inherit;
}

#supplier-form textarea {
  resize: vertical;
}

#supplier-message {
  min-height: 24px;
}

#supplier-search {
  margin-block: 14px;
}

.supplier-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px;
  margin-block: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.supplier-card strong {
  display: block;
  margin-bottom: 7px;
}

.supplier-card p {
  margin-block: 5px;
  overflow-wrap: anywhere;
}

.supplier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 650px) {
  #supplier-form .form-grid {
    grid-template-columns: 1fr;
  }

  .supplier-card {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ZARIF — Purchasing Management */

#zarif-purchasing-workspace {
  padding: 24px;
}

#purchase-form {
  display: grid;
  gap: 18px;
  margin-block: 24px;
}

#purchase-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#purchase-form label {
  display: grid;
  gap: 8px;
}

#purchase-form input,
#purchase-form select,
#purchase-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d7dce5;
  border-radius: 10px;
  font: inherit;
}

#purchase-draft-items {
  display: grid;
  gap: 10px;
}

.purchase-row,
.purchase-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.purchase-card {
  padding: 20px;
  margin-block: 14px;
  border: 1px solid #dbe2eb;
  border-radius: 14px;
}

.purchase-card h4 {
  margin-top: 0;
}

.purchase-item-row {
  margin-block: 10px;
}

.purchase-receive-quantity {
  width: 90px;
  min-height: 40px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  padding: 8px;
}

#purchase-message {
  min-height: 24px;
}

@media (max-width: 650px) {
  #purchase-form .form-grid {
    grid-template-columns: 1fr;
  }

  .purchase-row,
  .purchase-item-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ZARIF — Keep inactive management sections hidden */

#zarif-suppliers-workspace[hidden],
#zarif-purchasing-workspace[hidden] {
  display: none !important;
}

/* ZARIF — Supplier Purchasing Reports */

.zarif-purchase-report {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #dbe3ed;
}

.supplier-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.supplier-report-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  min-width: 0;
}

.supplier-report-card span {
  color: #64748b;
  font-size: 13px;
}

.supplier-report-card strong {
  color: #14233b;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.supplier-report-row {
  background: #fff;
  padding: 18px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.supplier-report-row p {
  margin-top: 8px;
  color: #475569;
}

@media (max-width: 900px) {
  .supplier-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .supplier-report-grid {
    grid-template-columns: 1fr;
  }
}

/* ZARIF — Supplier Accounting */

.zarif-accounting {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.zarif-accounting h3,
.zarif-accounting h4 {
  margin: 18px 0 12px;
}

#supplier-accounting-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.supplier-accounting-card,
.supplier-accounting-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}

.supplier-accounting-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supplier-accounting-card span {
  font-size: 13px;
  color: #64748b;
}

.supplier-accounting-card strong {
  font-size: 20px;
  color: #14233b;
}

#supplier-invoice-form,
#supplier-payment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}

#supplier-invoice-form label,
#supplier-payment-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#supplier-invoice-form input,
#supplier-invoice-form select,
#supplier-payment-form input,
#supplier-payment-form select,
#supplier-payment-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font: inherit;
}

#supplier-accounting-message {
  min-height: 24px;
  margin: 14px 0;
  overflow-wrap: anywhere;
}

.supplier-accounting-row {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  #supplier-accounting-stats,
  #supplier-invoice-form,
  #supplier-payment-form {
    grid-template-columns: 1fr;
  }
}

/* ZARIF — Customer Returns */

.zarif-returns-panel {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.zarif-returns-panel h3 {
  margin-bottom: 10px;
}

#zarif-return-form {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  max-width: 750px;
}

#zarif-return-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#zarif-return-form select,
#zarif-return-form input,
#zarif-return-form textarea {
  padding: 11px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font: inherit;
}

.zarif-return-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
  margin: 12px 0;
}

.zarif-return-row p {
  margin-top: 6px;
  color: #475569;
  overflow-wrap: anywhere;
}

.zarif-return-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.zarif-return-actions button {
  min-height: 42px;
}

/* ZARIF — Customer Refunds */
.zarif-refund-workspace {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.zarif-refund-workspace h3,
.zarif-refund-workspace h4 {
  margin: 12px 0;
}

.zarif-refund-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  margin: 20px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.zarif-refund-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.zarif-refund-form select,
.zarif-refund-form input,
.zarif-refund-form textarea {
  padding: 11px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: white;
  font: inherit;
}

.zarif-refund-row {
  padding: 16px;
  margin: 10px 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  overflow-wrap: anywhere;
}

#zarif-refund-message {
  margin: 14px 0;
  overflow-wrap: anywhere;
}

/* =====================================
   ZARIF — CUSTOMER SHOPPING IMPROVEMENTS
===================================== */

/* Better keyboard accessibility */
.card:focus-visible,
.size:focus-visible,
.drawer button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

/* Modern size and color selection */
.size {
  min-height: 44px;
  min-width: 48px;
  border-radius: 10px;
  font-weight: 650;
}

.size.on {
  background: #1e3a8a;
  border-color: #1e3a8a;
}

/* Checkout explanation */
.checkout-explainer {
  font-size: 0.79rem;
  line-height: 1.7;
  padding: 11px 13px;
  border: 1px solid #dbeafe;
  border-radius: 11px;
  background: #eff6ff;
  color: #1e3a8a;
}

/* Checkout feedback */
.checkout-feedback {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #9a3412;
}

.checkout-feedback:empty {
  display: none;
}

/* Comfortable checkout inputs */
.drawer__foot {
  padding-bottom: max(
    1.1rem,
    env(safe-area-inset-bottom)
  );
}

.drawer__foot input {
  min-height: 44px;
  border-radius: 9px;
}

.drawer__foot .btn[type="submit"] {
  min-height: 50px;
  font-weight: 750;
}

/* Smartphone improvements */
@media (max-width: 44rem) {

  .drawer {
    width: 100%;
    max-width: 100vw;
  }

  .drawer__head {
    padding-block: 0.75rem;
  }

  .drawer__body {
    padding: 0.75rem 1rem;
  }

  .drawer__foot {
    gap: 0.65rem;
    padding:
      0.8rem
      1rem
      max(1rem, env(safe-area-inset-bottom));

    max-height: 65dvh;
    overscroll-behavior: contain;
  }

  .detail__info {
    padding: 1.1rem;
    align-items: stretch;
  }

  .detail__media {
    min-height: 12rem;
  }

  .detail__media img {
    max-height: 38dvh;
    object-fit: contain;
  }
}

/* ZARIF — Premium Product Detail */

#product-dialog {
  width: min(980px, 96vw);
  border-radius: 20px;
  overflow: auto;
}

#product-dialog .detail__media {
  background: #f5f7fb;
  min-height: 420px;
}

#product-dialog .detail__media img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  padding: 24px;
}

#product-dialog .detail__info {
  padding: 32px;
  gap: 14px;
}

#product-dialog .detail__name {
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 800;
}

#product-dialog .btn {
  min-height: 50px;
  border-radius: 11px;
  font-weight: 750;
}

#product-dialog .sizes {
  gap: 10px;
}

#product-dialog .size {
  min-width: 50px;
  min-height: 46px;
  border-radius: 10px;
}

/* Mobile product detail */
@media (max-width: 700px) {
  #product-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 96dvh;
    border-radius: 16px 16px 0 0;
  }

  #product-dialog .detail {
    grid-template-columns: 1fr;
  }

  #product-dialog .detail__media {
    min-height: 240px;
    max-height: 40dvh;
  }

  #product-dialog .detail__media img {
    max-height: 36dvh;
    padding: 16px;
  }

  #product-dialog .detail__info {
    padding: 20px;
    gap: 12px;
  }
}

/* ==================================
   ZARIF — TWO-STEP CUSTOMER CHECKOUT
================================== */

.zarif-cart-review {
  display: grid;
  gap: 12px;
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.zarif-cart-review__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 700;
}

.zarif-cart-review__total strong {
  color: #1e3a8a;
  font-size: 20px;
}

.zarif-cart-review__note {
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.zarif-cart-review .btn {
  min-height: 52px;
  border-radius: 12px;
  font-weight: 750;
}

.zarif-cart-back {
  justify-self: start;
  padding: 6px 0;
  background: transparent;
  color: #1e3a8a;
  border: none;
  font-weight: 700;
  text-align: start;
}

.zarif-cart-back:hover {
  text-decoration: underline;
}

/* Let the checkout form use the available height */
#cart-dialog[data-stage="checkout"] .drawer__foot {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  align-content: start;
}

@media (max-width: 700px) {
  .zarif-cart-review {
    padding-inline: 16px;
  }

  #cart-dialog .drawer__body {
    min-height: 0;
  }
}

/* ZARIF — Stable Two-Step Checkout */

#cart-dialog [hidden] {
  display: none !important;
}

#cart-dialog[data-stage="checkout"] .drawer__foot {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.zarif-cart-review {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.zarif-cart-review__total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-weight: 700;
}

.zarif-cart-review__note {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.zarif-cart-back {
  background: transparent;
  border: none;
  color: #1e3a8a;
  padding: 8px 0;
  cursor: pointer;
  text-align: start;
  font-weight: 700;
}

@media (max-width: 700px) {
  #cart-dialog {
    width: 100%;
    max-width: 100vw;
  }
}

/* ==========================================
   ZARIF PHASE 2 — PREMIUM PRODUCT CATALOG
========================================== */

/* Product cards */
#product-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  text-align: start;
}

/* Product image area */
#product-grid .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f7fa;
}

#product-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* Product information */
#product-grid .card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 16px;
}

#product-grid .card__name {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 800;
  overflow-wrap: anywhere;
}

#product-grid .card .price {
  margin-block: 2px;
}

/* Availability */
#product-grid .card__availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.79rem;
  font-weight: 700;
}

#product-grid .card__availability::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

#product-grid .card__availability.is-available {
  color: #147d52;
}

#product-grid .card__availability.is-unavailable {
  color: #ae3838;
}

/* Available sizes */
#product-grid .card__sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  width: 100%;
}

#product-grid .card__sizes-label {
  flex-basis: 100%;
  font-size: 0.77rem;
  color: #64748b;
}

#product-grid .card__size {
  padding: 2px 8px;
  border: 1px solid #dae3ef;
  border-radius: 7px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.5;
}

#product-grid .card__size-more {
  border-style: dashed;
}

/* Smartphone layout */
@media (max-width: 700px) {
  #product-grid .card {
    border-radius: 12px;
  }

  #product-grid .thumb img {
    padding: 7px;
  }

  #product-grid .card__body {
    padding: 10px;
    gap: 4px;
  }

  #product-grid .card__name {
    font-size: 0.88rem;
  }

  #product-grid .card__availability,
  #product-grid .card__sizes-label {
    font-size: 0.72rem;
  }

  #product-grid .card__size {
    font-size: 0.72rem;
    padding: 2px 6px;
  }
}

/* =========================================
   ZARIF — PRODUCT DETAIL ORDER SUMMARY
========================================= */

#product-dialog .zarif-detail-selection {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

#product-dialog .zarif-detail-total {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
}

#product-dialog .zarif-detail-total[hidden] {
  display: none !important;
}

#product-dialog .zarif-detail-total span {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

#product-dialog .zarif-detail-total strong {
  color: #1e3a8a;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

#product-dialog .zarif-detail-order-note {
  width: 100%;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 700px) {
  #product-dialog .zarif-detail-selection {
    font-size: 13px;
    padding: 10px 12px;
  }

  #product-dialog .zarif-detail-total {
    padding: 12px;
  }

  #product-dialog .zarif-detail-total strong {
    font-size: 17px;
  }
}
/* =========================================
   QORVEX — FOOTER DESIGN CREDIT
========================================= */

.footer-credit {
  width: 100%;
  max-width: 400px;

  margin: 36px auto 22px;
  padding: 0 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 12px;

  text-align: center;
  direction: ltr;
}

/* Subtle divider */

.footer-credit__divider {
  width: 180px;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );

  margin-bottom: 6px;
}

/* Credit text */

.footer-credit__label {
  margin: 0;

  color: #dce2e9;

  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;

  letter-spacing: 0.5px;
  line-height: 1.7;
}

/* Original Qorvex logo */

.footer-credit__logo {
  display: block;

  width: 150px;
  max-width: 100%;
  height: auto;

  object-fit: contain;

  margin: 0 auto;

  border: 0;
  background: transparent;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.footer-credit__logo:hover {
  transform: scale(1.05);

  filter:
    drop-shadow(
      0 0 12px rgba(255, 110, 0, 0.25)
    );
}

/* Mobile */

@media (max-width: 600px) {

  .footer-credit {
    margin-top: 26px;
    gap: 8px;
  }

  .footer-credit__logo {
    width: 130px;
  }

  .footer-credit__label {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-credit__logo {
    transition: none;
  }

  .footer-credit__logo:hover {
    transform: none;
  }
}

/* ==========================================
   ZARIF FIX 6G
   DEDICATED ADMIN MANAGEMENT LAYOUT
   ========================================== */

/* Hide shop sections on the Admin page */
body.zarif-admin-page .announce,
body.zarif-admin-page .header,
body.zarif-admin-page .menu,
body.zarif-admin-page main,
body.zarif-admin-page footer,
body.zarif-admin-page #wa-float {
  display: none !important;
}

/* Expand the Admin panel to the full screen */
body.zarif-admin-page #admin-dialog[open] {
  position: fixed !important;
  inset: 0 !important;

  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  height: 100vh;
  height: 100dvh;

  max-height: 100vh;
  max-height: 100dvh;

  margin: 0 !important;
  padding: 0 !important;

  border: 0;
  border-radius: 0 !important;

  background: #f6f8fc;
  color: #152238;

  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Comfortable dashboard workspace */
body.zarif-admin-page #admin-dialog .pad {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;

  padding: 28px 32px 70px;
  box-sizing: border-box;
}

/* Center the login form */
body.zarif-admin-page #login-form:not([hidden]) {
  width: 100%;
  max-width: 430px;

  margin: 8vh auto 24px;

  padding: 28px;
  background: #ffffff;

  border: 1px solid #e3e8f2;
  border-radius: 16px;

  box-shadow: 0 12px 35px rgba(0,0,0,.06);
}

/* Allow large Admin sections to scroll */
body.zarif-admin-page #admin-box {
  width: 100%;
  min-width: 0;
}

body.zarif-admin-page #admin-box:not([hidden]) {
  display: block;
}

/* Mobile administration */
@media (max-width: 700px) {

  body.zarif-admin-page #admin-dialog .pad {
    padding: 18px 12px 50px;
  }

  body.zarif-admin-page #login-form:not([hidden]) {
    margin-top: 12vh;
    padding: 20px 16px;
  }

  body.zarif-admin-page #admin-box {
    overflow-wrap: anywhere;
  }
}

/* END OF FIX 6G */
.footer-credit {
  margin: 28px auto 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  max-width: 320px;
  text-align: center;
}

.footer-credit__title {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.footer-credit__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-credit__logo {
  display: block;
  width: 180px;
  max-width: 80%;
  height: auto;
  object-fit: contain;
}

.footer-credit__name {
  color: #fff;
  font-weight: 600;
}