/* Azgard visual editor: story viewer and hand-curated WooCommerce categories. */
.azgard .azgc-sc-section{--sc-ink:var(--azds-ink,#193c2f);--sc-muted:var(--azds-muted,#728a7c);--sc-surface:var(--azds-surface,#fff);--sc-line:var(--azds-line,#d7eadf);--sc-accent:var(--azds-primary,#009761);margin:22px auto 28px;max-width:100%;min-width:0;direction:rtl;position:relative;box-sizing:border-box;color:var(--sc-ink)}
.azgard .azgc-sc-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin-bottom:14px}
.azgard .azgc-sc-heading h2{font-size:clamp(17px,2vw,23px);line-height:1.7;font-weight:850;margin:0;color:var(--sc-ink)}
.azgard .azgc-sc-arrows{display:flex;gap:8px;align-items:center;margin-inline-start:auto;direction:ltr}
.azgard .azgc-sc-arrows button{border:1px solid var(--sc-line);background:var(--sc-surface);color:var(--sc-ink);width:36px;height:36px;border-radius:12px;display:grid;place-items:center;cursor:pointer;font:inherit;font-size:16px;transition:background .2s,transform .2s}
.azgard .azgc-sc-arrows button:hover{background:var(--azds-wash,#e7f8ee);transform:translateY(-2px)}
.azgard .azgc-sc-arrows button:focus-visible,.azgard .azgc-story-bubble:focus-visible,.azgard .azgc-category-item:focus-visible{outline:3px solid var(--sc-accent);outline-offset:3px}
.azgard .azgc-sc-track{display:flex;flex-wrap:nowrap;gap:clamp(12px,1.7vw,23px);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--sc-line) transparent;scroll-padding-inline:12px;padding:9px 3px 18px;direction:rtl;min-width:0;-webkit-overflow-scrolling:touch}
.azgard .azgc-sc-track>*{scroll-snap-align:start}
.azgard .azgc-sc-empty{color:var(--sc-muted);background:var(--azds-wash,#edf8f1);padding:24px;border:1px dashed var(--sc-line);border-radius:15px;text-align:center;font-size:13px}
.azgard .azgc-story-track{gap:clamp(12px,1.7vw,22px);padding-top:12px}
.azgard .azgc-story-bubble{width:var(--azgc-sc-story-width,88px);flex:0 0 var(--azgc-sc-story-width,88px);border:0;padding:0;background:transparent;color:var(--sc-ink);font-family:inherit;cursor:pointer;text-align:center;display:flex;align-items:center;flex-direction:column;gap:8px;min-height:112px}
.azgard .azgc-story-ring{display:grid;place-items:center;width:calc(var(--azgc-sc-story-width,88px) - 8px);height:calc(var(--azgc-sc-story-width,88px) - 8px);border-radius:50%;padding:3px;background:conic-gradient(from 30deg,#f77737,#e1306c,#c13584,#833ab4,#fdca40,#f77737);box-shadow:0 3px 14px #e1306c22;box-sizing:border-box;transition:transform .2s,box-shadow .2s}
.azgard .azgc-story-bubble:hover .azgc-story-ring{transform:translateY(-3px) scale(1.06);box-shadow:0 7px 22px #e1306c35}
.azgard .azgc-story-bubble.is-viewed .azgc-story-ring{background:var(--sc-line);box-shadow:none}
.azgard .azgc-story-circle{border:3px solid var(--sc-surface);background:var(--azds-wash,#dbeee4);border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.azgard .azgc-story-circle img{width:100%;height:100%;object-fit:cover;display:block}
.azgard .azgc-story-initial{font-size:27px;font-weight:800;color:var(--sc-accent)}
.azgard .azgc-story-label{max-width:100%;font-size:11px;line-height:1.55;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}
.azgard .azgc-category-track{gap:clamp(12px,1.4vw,20px)}
.azgard .azgc-category-item{box-sizing:border-box;width:var(--azgc-sc-category-width,152px);flex:0 0 var(--azgc-sc-category-width,152px);text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-height:150px;text-align:center;color:var(--sc-ink);font-family:inherit;transition:transform .2s}
.azgard .azgc-category-item:hover{transform:translateY(-4px)}
.azgard .azgc-category-photo{width:calc(var(--azgc-sc-category-width,152px) - 20px);height:calc(var(--azgc-sc-category-width,152px) - 20px);border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--azds-wash,#ebf8ef),var(--sc-surface));border:1px solid var(--sc-line);overflow:hidden;box-shadow:0 6px 18px #0000000b}
.azgard .azgc-category-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.azgard .azgc-category-item:hover img{transform:scale(1.06)}
.azgard .azgc-category-fallback{font-size:clamp(30px,5vw,58px);font-weight:850;color:var(--sc-accent)}
.azgard .azgc-category-photo--icon{color:var(--sc-accent);background:linear-gradient(140deg,var(--azds-wash,#e7f8ee),var(--sc-surface))}
.azgard .azgc-category-photo--icon svg{width:45%;height:45%;max-width:70px;max-height:70px;display:block;flex:none;filter:drop-shadow(0 4px 8px #00000012)}
.azgard .azgc-category-name{display:block;max-width:100%;font-size:13px;font-weight:800;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.azgard .azgc-category-item small{color:var(--sc-muted);font-size:11px}
.azgard .azgc-category-carousel[data-sc-style=tile] .azgc-category-photo{border-radius:19px;width:var(--azgc-sc-category-width,152px);height:calc(var(--azgc-sc-category-width,152px) * .83)}
.azgard .azgc-category-carousel[data-sc-style=tile] .azgc-category-item{gap:8px}
html.azgc-story-active{overflow:hidden!important}
.azgc-story-viewer{z-index:2147483600!important;color:#fff;background:#090a0c;position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;padding:12px 54px;margin:0;overflow:hidden;direction:rtl;overscroll-behavior:contain;display:none;align-items:center;justify-content:center;font-family:var(--azds-font,Vazir),Tahoma,sans-serif}
.azgc-story-viewer[open]{display:flex}
.azgc-story-viewer::backdrop{background:rgba(0,0,0,.95);backdrop-filter:blur(12px)}
.azgc-story-stage{position:relative;isolation:isolate;box-sizing:border-box;width:min(100%,440px);height:min(calc(100dvh - 24px),780px);background:linear-gradient(155deg,#262c31,#101418);border-radius:14px;overflow:hidden;box-shadow:0 18px 75px #000a;color:#fff;display:flex;flex-direction:column;direction:rtl;touch-action:pan-y}
.azgc-story-media{cursor:pointer;position:absolute;inset:0;z-index:0;background:#16181a;display:flex;align-items:center;justify-content:center;overflow:hidden}
.azgc-story-media img,.azgc-story-media video{width:100%;height:100%;object-fit:contain;display:block}
.azgc-story-media:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.azgc-story-media:after{content:"";inset:0;position:absolute;background:linear-gradient(180deg,#0008 0%,transparent 21%,transparent 55%,#000b 100%);pointer-events:none}
.azgc-story-progress{position:relative;z-index:4;display:flex;gap:4px;direction:ltr;padding:14px 13px 7px}
.azgc-story-segment{height:3px;flex:1;overflow:hidden;display:block;border-radius:99px;background:#ffffff66}
.azgc-story-segment>span{transform:scaleX(0);transform-origin:left center;width:100%;height:100%;background:#fff;display:block;will-change:transform}
.azgc-story-toolbar{position:relative;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 12px;color:#fff}
.azgc-story-user{display:flex;align-items:center;gap:10px;min-width:0}
.azgc-story-user-avatar{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:50%;background:#ffffff35;border:1px solid #ffffff99;overflow:hidden;font-size:17px}
.azgc-story-user-avatar img{width:100%;height:100%;object-fit:cover}
.azgc-story-user strong{font-size:12px;line-height:1.6;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
.azgc-story-actions{display:flex;align-items:center;gap:4px}
.azgc-story-actions button{border:0;background:#0004;color:#fff;width:35px;height:35px;border-radius:50%;display:grid;place-items:center;cursor:pointer}
.azgc-story-actions button:hover{background:#0009}
.azgc-story-side{z-index:3;position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:38px;height:54px;background:#0000;border:0;color:#fff;cursor:pointer;opacity:.65}
.azgc-story-side:hover{opacity:1;background:#0004}
.azgc-story-side-prev{right:0}.azgc-story-side-next{left:0}
.azgc-story-side:disabled{opacity:0;pointer-events:none}
.azgc-story-caption{position:relative;z-index:3;margin-top:auto;padding:20px 25px 22px;text-align:center;color:#fff;pointer-events:none}
.azgc-story-caption p{color:#fff;font-size:14px;font-weight:500;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-height:25vh;overflow:auto;margin:0 0 14px}
.azgc-story-caption p[hidden]{display:none}
.azgc-story-caption a{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#16181a;border-radius:50px;padding:11px 24px;text-decoration:none;font-size:12px;font-weight:800;border:1px solid #fff}
.azgc-story-caption a:hover{background:#f0f2f1}
.azgc-story-caption a[hidden]{display:none}
.azgc-story-viewer button:focus-visible,.azgc-story-viewer a:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(max-width:699px){.azgc-story-viewer{padding:0}.azgc-story-stage{width:100vw;max-width:100vw;height:100dvh;border-radius:0}.azgc-story-progress{padding-top:env(safe-area-inset-top,14px)}.azgc-story-caption{padding-bottom:max(25px,env(safe-area-inset-bottom,25px))}.azgard .azgc-sc-track{gap:12px}.azgard .azgc-story-label{font-size:10px}.azgard .azgc-category-photo--icon{color:var(--sc-accent);background:linear-gradient(140deg,var(--azds-wash,#e7f8ee),var(--sc-surface))}
.azgard .azgc-category-photo--icon svg{width:45%;height:45%;max-width:70px;max-height:70px;display:block;flex:none;filter:drop-shadow(0 4px 8px #00000012)}
.azgard .azgc-category-name{font-size:12px}}
@media(prefers-reduced-motion:reduce){.azgard .azgc-sc-section *, .azgc-story-viewer *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* 4.26.0: Selected categories — pastel cards modeled on the supplied RTL carousel.
   Scoped to the new dedicated widget; legacy WooCommerce category carousels are untouched. */
.azgard .az-categories,.azgard .az-categories *{box-sizing:border-box}
.azgard .az-categories{direction:rtl;width:100%;max-width:1400px;margin:35px auto;padding:30px 24px;font-family:inherit;color:#1d2433;min-width:0;--az-cat-accent:var(--azds-primary,#2563eb)}
.azgard .az-categories__header{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}
.azgard .az-categories__eyebrow{display:inline-block;color:#64748b;font-size:12px;font-weight:600;margin-bottom:8px}
.azgard .az-categories__header h2{font-size:clamp(21px,2.5vw,29px);font-weight:850;letter-spacing:-.5px;margin:0 0 9px;line-height:1.5;color:var(--sc-ink,#1d2433)}
.azgard .az-categories__header p{font-size:13px;color:var(--sc-muted,#8b93a2);margin:0;line-height:1.7}
.azgard .az-categories__controls{display:flex;gap:9px;flex-shrink:0}
.azgard .az-cat-btn{width:42px;height:42px;border:1px solid var(--sc-line,#e6eaf0);border-radius:13px;background:var(--sc-surface,#fff);color:var(--sc-ink,#3e4a60);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .25s,transform .25s,color .25s;font:inherit;padding:0}
.azgard .az-cat-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.azgard .az-cat-btn:not(:disabled):hover{background:var(--az-cat-accent);border-color:var(--az-cat-accent);color:#fff;transform:translateY(-2px)}
.azgard .az-cat-btn:disabled{opacity:.35;cursor:not-allowed;transform:none}
.azgard .az-cat-btn:focus-visible,.azgard .az-category-card:focus-visible{outline:3px solid var(--az-cat-accent);outline-offset:3px}
.azgard .az-categories__slider{display:flex;direction:rtl;gap:16px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding:5px 2px 16px;min-width:0;-webkit-overflow-scrolling:touch}
.azgard .az-categories__slider::-webkit-scrollbar{display:none}
.azgard .az-category-card{position:relative;flex:0 0 calc((100% - 64px)/5);min-width:0;display:flex;flex-direction:column;border-radius:22px;overflow:hidden;background:var(--cat-bg,#edf3ff);border:1px solid transparent;text-decoration:none;color:#202a3c;scroll-snap-align:start;transition:transform .3s,box-shadow .3s,border-color .3s;isolation:isolate}
.azgard .az-category-card:hover{transform:translateY(-5px);box-shadow:0 14px 32px rgba(25,35,65,.09);border-color:var(--cat-color,#4478ed)}
.azgard .az-category-card__visual{height:145px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.azgard .az-category-card__circle{position:absolute;width:125px;height:125px;border-radius:50%;background:var(--cat-color,#4478ed);opacity:.1;transition:transform .35s}
.azgard .az-category-card__visual::after{content:"";position:absolute;width:70px;height:70px;border:1px solid var(--cat-color,#4478ed);border-radius:50%;opacity:.13;transform:translate(52px,-38px);pointer-events:none}
.azgard .az-category-card:hover .az-category-card__circle{transform:scale(1.19)}
.azgard .az-category-card__icon,.azgard .az-category-card__image{position:relative;z-index:1;width:70px;height:70px;padding:16px;display:flex;justify-content:center;align-items:center;border-radius:22px;background:rgba(255,255,255,.82);color:var(--cat-color,#4478ed);filter:drop-shadow(0 7px 16px rgba(0,0,0,.05));transition:transform .3s}
.azgard .az-category-card__icon>svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.azgard .az-category-card__image{padding:5px}
.azgard .az-category-card__image img{width:100%;height:100%;object-fit:contain;display:block;border-radius:16px}
.azgard .az-category-card:hover .az-category-card__icon,.azgard .az-category-card:hover .az-category-card__image{transform:translateY(-5px) rotate(-5deg)}
.azgard .az-category-card__content{flex:1;display:flex;flex-direction:column;align-items:center;padding:3px 17px 18px;text-align:center}
.azgard .az-category-card__content h3{font-size:15px;font-weight:800;margin:0 0 7px;color:#202a3c;line-height:1.6}
.azgard .az-category-card__content p{font-size:11px;color:#7b8495;margin:0 0 17px;line-height:1.6;min-height:1.6em}
.azgard .az-category-card__link{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--cat-color,#4478ed);background:rgba(255,255,255,.77);border:1px solid rgba(255,255,255,.8);padding:10px 12px;border-radius:11px;font-size:11px;font-weight:750;transition:background .2s;white-space:nowrap}
.azgard .az-category-card__link svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.azgard .az-category-card:hover .az-category-card__link{background:#fff}
.azgard .az-categories__progress{position:relative;height:4px;border-radius:20px;background:var(--sc-line,#edf0f5);margin:13px auto 0;max-width:190px;overflow:hidden}
.azgard .az-categories__progress-bar{display:block;position:absolute;inset-block-start:0;right:0;width:100%;height:100%;background:var(--az-cat-accent);border-radius:inherit;transition:width .2s,right .15s}
@media(max-width:1100px){.azgard .az-category-card{flex-basis:calc((100% - 32px)/3)}}
@media(max-width:700px){.azgard .az-categories{padding:22px 14px;margin:15px auto}.azgard .az-categories__header{margin-bottom:18px}.azgard .az-categories__header h2{font-size:20px}.azgard .az-categories__header p{font-size:11px}.azgard .az-cat-btn{width:35px;height:35px;border-radius:10px}.azgard .az-categories__slider{gap:12px}.azgard .az-category-card{flex-basis:calc((100% - 12px)/2);border-radius:18px}.azgard .az-category-card__visual{height:120px}.azgard .az-category-card__icon,.azgard .az-category-card__image{width:63px;height:63px}.azgard .az-category-card__content{padding:0 9px 15px}.azgard .az-category-card__content h3{font-size:13px}.azgard .az-category-card__content p{font-size:10px}}
@media(max-width:370px){.azgard .az-category-card{flex-basis:72%}.azgard .az-categories__header p{display:none}}
@media(prefers-reduced-motion:reduce){.azgard .az-categories__slider{scroll-behavior:auto}.azgard .az-category-card,.azgard .az-category-card__icon,.azgard .az-category-card__image,.azgard .az-category-card__circle{transition:none}}
