
/* =====================================================
   Woo Grid – Mobile (2 columns full width)
   ===================================================== */
@media (max-width: 680px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:12px !important;
    margin:0 !important;
    padding:0 !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product{
    float:none !important;
    width:calc(50% - 6px) !important;
    margin:0 !important;
  }

  /* If a plugin/theme forces inline widths, neutralize */
  .woocommerce ul.products li.product[style],
  .woocommerce-page ul.products li.product[style]{
    width:calc(50% - 6px) !important;
  }
}

/* =========================================================
   AmirYadak Theme - main.css (Optimized / Deduped)
   Navy + Orange / No external deps
   ========================================================= */

/* ====== Base ====== */
:root{
  --navy:#0b1f3a;
  --navy-2:#0f2a4d;
  --orange:#ff7a00;
  --bg:#f7f8fb;
  --text:#0f172a;
  --muted:#64748b;
  --card:#ffffff;
  --border:rgba(15,23,42,.10);
  --shadow:0 10px 30px rgba(2,6,23,.08);
  --radius:16px;
  --radius-2:22px;
  --max:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Vazirmatn",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.75;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:100%;max-width:var(--max);margin:0 auto;padding:0 16px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* ====== Utilities ====== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border:1px solid transparent;background:var(--navy);color:#fff;
  padding:10px 14px;border-radius:14px;font-weight:700;cursor:pointer;
  transition:transform .12s ease,box-shadow .12s ease,background .12s ease,border-color .12s ease;
  box-shadow:0 10px 22px rgba(11,31,58,.18);
}
.btn:hover{transform:translateY(-1px);background:var(--navy-2)}
.btn:active{transform:translateY(0)}
.btn--outline{background:transparent;color:var(--navy);border-color:rgba(11,31,58,.22);box-shadow:none}
.btn--accent{background:var(--orange);box-shadow:0 10px 22px rgba(255,122,0,.22)}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  background:rgba(255,122,0,.12);color:#9a3f00;
  border:1px solid rgba(255,122,0,.25);
  font-weight:700;font-size:13px;
}

.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.card-pad{padding:16px}

/* ====== Header ====== */
.site-header{
  background:#fff;border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:40;
}
.topbar{
  background:linear-gradient(90deg,var(--navy),var(--navy-2));
  color:#fff;font-size:13px;
}
.topbar .container{
  display:flex;align-items:center;justify-content:space-between;
  padding:8px 16px;gap:12px;
}
.topbar a{opacity:.95}
.topbar a:hover{opacity:1}

.header-main .container{
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;padding:14px 16px;
}
.brand{display:flex;align-items:center;gap:12px}
.logo-mark{
  width:42px;height:42px;border-radius:14px;
  background:linear-gradient(135deg,var(--orange),#ffb200);
  display:grid;place-items:center;
  box-shadow:0 12px 24px rgba(255,122,0,.22);
}
.logo-mark svg{width:22px;height:22px;fill:#1a1a1a}
.brand h1{margin:0;font-size:18px;line-height:1.2}
.brand .tagline{margin:0;font-size:12px;color:var(--muted)}

.header-actions{display:flex;align-items:center;gap:10px}
.icon-btn{
  width:44px;height:44px;border-radius:14px;background:#fff;
  border:1px solid var(--border);
  display:grid;place-items:center;cursor:pointer;
  transition:transform .12s ease,box-shadow .12s ease;
  position:relative;
}
.icon-btn:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(2,6,23,.08)}
.icon{width:20px;height:20px;fill:var(--navy)}
.cart-count{
  position:absolute;top:6px;right:6px;
  background:var(--orange);color:#fff;font-size:12px;
  border-radius:999px;padding:2px 6px;font-weight:800;
}

/* ====== Nav ====== */
.navbar{border-top:1px solid var(--border);background:#fff}
.navbar .container{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:10px 16px;
}
.nav-toggle{display:none}
.main-nav ul{display:flex;gap:14px;list-style:none;padding:0;margin:0}
.main-nav a{
  padding:8px 10px;border-radius:12px;font-weight:700;color:var(--navy);
}
.main-nav a:hover{background:rgba(11,31,58,.06)}

.cat-nav{display:flex;align-items:center;gap:10px}
.cat-btn{
  display:flex;align-items:center;gap:10px;
  border:1px solid rgba(11,31,58,.18);background:#fff;
  border-radius:14px;padding:10px 12px;
  font-weight:800;color:var(--navy);cursor:pointer;
}
.cat-panel{
  position:absolute;
  width:min(980px,calc(100vw - 32px));
  margin-top:10px;
  background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);box-shadow:var(--shadow);
  padding:12px;display:none;
}
.cat-panel.is-open{display:block}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.cat-item{
  border:1px solid rgba(11,31,58,.10);
  border-radius:14px;padding:10px 12px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.cat-item:hover{border-color:rgba(255,122,0,.35);background:rgba(255,122,0,.06)}
.cat-item small{color:var(--muted);font-weight:700}

/* ====== Search ====== */
.searchbar{
  flex:1;display:flex;align-items:center;
  background:#fff;border:1px solid var(--border);
  border-radius:16px;overflow:hidden;
  max-width:560px;
}
.searchbar input{
  width:100%;border:0;padding:12px 12px;outline:none;font-size:14px;
}
.searchbar button{
  border:0;background:var(--orange);color:#fff;
  font-weight:900;padding:12px 14px;cursor:pointer;
}

/* ====== Hero ====== */
.hero{padding:18px 0 10px}
.hero .wrap{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:14px;
}
.hero-card{padding:18px}
.hero h2{margin:0 0 6px;font-size:22px;color:var(--navy)}
.hero p{margin:0 0 12px;color:var(--muted);font-weight:600}
.hero-pills{display:flex;gap:10px;flex-wrap:wrap}

/* ====== Sections ====== */
.section{padding:16px 0}
.section-title{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:12px;margin-bottom:10px;
}
.section-title h3{margin:0;font-size:18px;color:var(--navy)}
.section-title a{color:var(--navy);font-weight:800}

/* ====== Feature icons ====== */
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.feature{padding:14px;display:flex;gap:12px;align-items:center}
/* دایره‌ای و شکیل‌تر (مثل بَج) */
.feature .ico{
  width:52px;height:52px;border-radius:999px;
  background:linear-gradient(135deg, rgba(255,122,0,.98), rgba(255,122,0,.78));
  box-shadow:0 14px 30px rgba(255,122,0,.18), 0 8px 18px rgba(2,6,23,.10);
  display:grid;place-items:center;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.35);
  position:relative;
}
.feature .ico:after{
  content:"";
  position:absolute; inset:6px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  pointer-events:none;
}
.feature .ico svg{width:24px;height:24px;fill:#fff}
.feature strong{display:block}
.feature small{color:var(--muted);font-weight:600}

/* ====== Category cards (Homepage) ====== */
.parentcats{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.pc{
  padding:12px;display:flex;flex-direction:column;gap:10px;
  border:1px solid rgba(11,31,58,.10);
  border-radius:var(--radius);background:#fff;
}
.pc:hover{border-color:rgba(255,122,0,.35);box-shadow:0 14px 26px rgba(2,6,23,.08)}
.pc .thumb{
  width:100%;aspect-ratio:4/3;
  border-radius:14px;overflow:hidden;
  background:linear-gradient(135deg,rgba(11,31,58,.10),rgba(255,122,0,.10));
  display:grid;place-items:center;
}
.pc .thumb img{width:100%;height:100%;object-fit:cover}
.pc .name{font-weight:900;color:var(--navy)}
.pc .meta{color:var(--muted);font-weight:700;font-size:13px}

/* ====== Product cards (custom blocks, not Woo loop) ====== */
.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.pcard{
  padding:12px;border:1px solid rgba(11,31,58,.10);
  border-radius:var(--radius);background:#fff;
  display:flex;flex-direction:column;gap:10px;
}
.pcard:hover{border-color:rgba(255,122,0,.35);box-shadow:0 14px 26px rgba(2,6,23,.08)}
.pcard .pt{
  aspect-ratio:4/3;border-radius:14px;overflow:hidden;
  background:rgba(11,31,58,.06);
}
.pcard .pt img{width:100%;height:100%;object-fit:contain;padding:8px}
.pcard .title{font-weight:900;color:var(--navy);font-size:14px;min-height:44px}
.pcard .price{font-weight:1000;color:var(--text)}
.pcard .meta{color:var(--muted);font-weight:700;font-size:13px}

/* ====== Blog cards ====== */
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.post-card{
  padding:14px;border:1px solid rgba(11,31,58,.10);
  border-radius:var(--radius);background:#fff;
}
.post-card:hover{border-color:rgba(255,122,0,.35);box-shadow:0 14px 26px rgba(2,6,23,.08)}
.post-card .t{font-weight:950;color:var(--navy);margin:6px 0}
.post-card .m{color:var(--muted);font-weight:700;font-size:13px}

/* ====== Footer ====== */
.site-footer{margin-top:18px;background:#0a1830;color:#e5e7eb}
.footer-top{padding:22px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:14px}
.footer-grid h4{margin:0 0 10px}
.footer-grid a{opacity:.92}
.footer-grid a:hover{opacity:1;text-decoration:underline}
.footer-note{padding:12px 0;font-size:13px;color:rgba(229,231,235,.85)}

/* ====== Mega menu (Category tree) ====== */
.ay-mega-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media (max-width:980px){.ay-mega-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.ay-mega-grid{grid-template-columns:1fr}}

/* ====== Shop layout + sidebar widgets ====== */
.ay-shop-layout{display:grid;grid-template-columns:1fr 320px;gap:14px;align-items:start}
.ay-shop-sidebar{position:sticky;top:92px}
@media (max-width:980px){
  .ay-shop-layout{grid-template-columns:1fr}
  .ay-shop-sidebar{position:static}
}

.ay-muted{color:var(--muted);font-weight:700;font-size:13px}

/* Sidebar category accordion */
.ay-cat-acc{display:grid;gap:8px}
.ay-cat-item{
  border:1px solid rgba(11,31,58,.10);
  border-radius:14px;overflow:hidden;background:#fff;
}
.ay-cat-row{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:10px 10px;
}
.ay-cat-parent{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;width:100%;
  font-weight:950;color:var(--navy);
}
.ay-count{
  margin-inline-start:auto;
  background:rgba(11,31,58,.06);
  border:1px solid rgba(11,31,58,.10);
  border-radius:999px;
  padding:3px 8px;
  font-size:12px;font-weight:1000;color:rgba(15,23,42,.85);
}
.ay-cat-toggle{
  width:38px;height:38px;border-radius:12px;
  border:1px solid rgba(11,31,58,.12);
  background:#fff;cursor:pointer;
  display:grid;place-items:center;
}
.ay-chev{font-size:22px;line-height:1;color:var(--navy);transform:rotate(0deg);transition:transform .12s ease}
.ay-cat-item.is-open .ay-chev{transform:rotate(-90deg)}
.ay-cat-children{
  list-style:none;margin:0;padding:0 10px 10px;
  display:grid;gap:6px;
}
.ay-cat-children li a{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:8px 10px;border-radius:12px;
  background:rgba(11,31,58,.04);
  border:1px solid rgba(11,31,58,.08);
  font-weight:850;
}
.ay-cat-children li a:hover{
  background:rgba(255,122,0,.08);
  border-color:rgba(255,122,0,.22);
}

/* Consumables chips */
.ay-chips{display:flex;flex-wrap:wrap;gap:8px}
.ay-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  font-weight:950;font-size:13px;color:var(--navy);
  background:rgba(255,122,0,.10);
  border:1px solid rgba(255,122,0,.22);
}
.ay-chip:hover{background:rgba(255,122,0,.14)}
.ay-chip-count{
  background:#fff;border:1px solid rgba(11,31,58,.10);
  border-radius:999px;padding:2px 7px;
  font-size:12px;font-weight:1000;color:rgba(15,23,42,.85);
}

/* ====== Woo Archive (Full width + 10px gap) ====== */
.ay-archive{padding:10px}
.ay-archive-wrap{padding:0 10px}
.ay-archive-card{
  background:#fff;
  border:1px solid rgba(11,31,58,.10);
  border-radius:20px;
  box-shadow:0 18px 40px rgba(2,6,23,.06);
  padding:14px;
}

/* ====== Woo products grid (ul.products) ====== */
.ay-archive .woocommerce ul.products{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.ay-archive .woocommerce ul.products::before,
.ay-archive .woocommerce ul.products::after{display:none}
.ay-archive .woocommerce ul.products li.product{
  float:none;
  width:auto;
  margin:0;
  padding:0;
}
@media (max-width:1100px){
  .ay-archive .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:980px){
  .ay-archive .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .ay-archive .woocommerce ul.products{grid-template-columns:1fr}
}

/* ====== Woo product card (ay-card) ====== */
.ay-card{
  border:1px solid rgba(11,31,58,.10);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 12px 26px rgba(2,6,23,.06);
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;
  display:flex;flex-direction:column;height:100%;
}
.ay-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(2,6,23,.10);
  border-color:rgba(255,122,0,.35);
}

.ay-img{
  position:relative;
  display:block;
  padding:10px;
  background:linear-gradient(135deg,rgba(11,31,58,.06),rgba(255,122,0,.08));
}
.ay-img img{
  width:100%;
  height:220px;
  object-fit:contain;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 20px rgba(2,6,23,.08);
}
.ay-body{
  padding:12px 12px 14px;
  display:flex;flex-direction:column;
  gap:10px;flex:1;
}
.ay-title{
  font-weight:1000;color:var(--navy);
  font-size:14px;line-height:1.6;
  min-height:48px;
}
.ay-title:hover{color:var(--orange)}

.ay-price{margin-top:auto}
.ay-normal,.ay-sale{font-weight:1100;font-size:15px;color:var(--navy)}
.ay-regular{
  font-weight:900;font-size:13px;
  color:rgba(15,23,42,.55);
  text-decoration:line-through;
  margin-inline-end:8px;
}
.ay-toman{font-size:12px;font-weight:1000;color:rgba(15,23,42,.65);margin-right:4px}
.ay-contact{
  display:inline-flex;align-items:center;
  padding:8px 10px;border-radius:999px;
  background:rgba(255,122,0,.12);
  border:1px solid rgba(255,122,0,.25);
  color:var(--navy);
  font-weight:1100;font-size:13px;
}

/* Sale badge */
.ay-sale-badge{
  position:absolute;top:12px;right:12px;
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  font-weight:1200;font-size:16px;
  color:#fff;background:var(--orange);
  box-shadow:0 10px 22px rgba(255,122,0,.28);
  border:1px solid rgba(255,255,255,.35);
  z-index:2;
}

/* Hover overlay + mobile fallback */
.ay-hover-actions{
  position:absolute;inset:10px;
  border-radius:14px;
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:10px;padding:10px;
  background:linear-gradient(to top,rgba(11,31,58,.72),rgba(11,31,58,0));
  opacity:0;transform:translateY(6px);
  pointer-events:none;
  transition:opacity .12s ease,transform .12s ease;
}
.ay-card:hover .ay-hover-actions{
  opacity:1;transform:translateY(0);
  pointer-events:auto;
}

/* Touch devices: show actions always */
@media (hover:none), (max-width:980px){
  .ay-hover-actions{
    position:static;inset:auto;
    opacity:1;transform:none;
    pointer-events:auto;
    background:transparent;
    padding:10px 0 0;
    flex-direction:column;
    align-items:stretch;
    justify-content:stretch;
  }
}

/* Buttons inside card */
.ay-btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:14px;
  font-weight:1100;font-size:13px;
  text-decoration:none;
  white-space:nowrap;
  width:100%;
}
.ay-btn--outline{
  color:#fff;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(11,31,58,.75);
}
@media (hover:none), (max-width:980px){
  .ay-btn--outline{
    background:var(--navy);
    border-color:rgba(11,31,58,.15);
  }
}
.ay-cart-btn .button{
  width:100%;
  border:0;
  border-radius:14px;
  background:var(--orange);
  color:#fff;
  font-weight:1200;
  padding:10px 12px;
  line-height:1.2;
}

/* ====== Responsive ====== */
@media (max-width:980px){
  .hero .wrap{grid-template-columns:1fr}
  .cat-grid{grid-template-columns:repeat(2,1fr)}
  .features{grid-template-columns:repeat(2,1fr)}
  .parentcats{grid-template-columns:repeat(3,1fr)}
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .posts-grid{grid-template-columns:1fr}
  .main-nav ul{display:none}
  .nav-toggle{display:inline-flex}
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .parentcats{grid-template-columns:repeat(2,1fr)}
}


/* ===== Force Archive Card FULL-WIDTH (viewport) ===== */
.ay-archive{
  padding:10px !important;
}
.ay-archive .ay-archive-wrap{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 10px !important; /* 10px left/right gap */
}
.ay-archive .ay-archive-card{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:14px !important;
  border-radius:20px !important;
}

/* اگر جایی container محدود کننده بود، این خط کمک می‌کند */
.ay-archive .container{
  max-width:none !important;
}

/* (اختیاری) کمی گپ بیشتر بین محصولات وقتی فول واید شد */
.ay-archive .woocommerce ul.products{
  gap:16px !important;
}


/* ===== Shop dropdown in navbar ===== */
.ay-shop-dd{position:relative}
.ay-shop-dd-panel{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:min(980px, calc(100vw - 32px));
  padding:12px;
  display:none;
  z-index:999;
}
.ay-shop-dd:hover .ay-shop-dd-panel{display:block}
@media (hover:none){
  /* روی موبایل hover نداریم، پس دراپ‌داون مخفی بماند (بهینه و ساده) */
  .ay-shop-dd-panel{display:none}
}

.ay-shop-dd-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:8px 8px 12px;
  border-bottom:1px solid var(--border);
  margin-bottom:10px;
}
.ay-shop-dd-title{font-weight:1000;color:var(--navy);font-size:16px}
.ay-shop-dd-sub{color:var(--muted);font-weight:700;font-size:13px}

/* ===== Custom header menu dropdown (Shop categories) ===== */
.ay-nav{position:relative}
.main-nav ul{display:flex;gap:14px;list-style:none;padding:0;margin:0}
.main-nav li{position:relative}

/* این پنل همیشه داخل هدر آماده است ولی فقط وقتی روی آیتم دارای کلاس ay-shop-dd بروی نمایش داده می‌شود */
#ay-shop-dd-panel{
  position:absolute;
  top:calc(100% + 10px);
  right:16px;
  width:min(980px, calc(100vw - 32px));
  padding:12px;
  display:none;
  z-index:999;
}

/* وقتی روی آیتم فروشگاه که کلاس ay-shop-dd دارد hover شود پنل نمایش داده شود */
.main-nav li.ay-shop-dd:hover ~ #ay-shop-dd-panel,
.main-nav li.ay-shop-dd:hover #ay-shop-dd-panel{
  display:block;
}

/* حالت درست: وقتی hover روی آیتم فروشگاه باشد، پنل نمایش داده شود */
.main-nav li.ay-shop-dd:hover + * {}

/* روش مطمئن: وقتی روی خود li.ay-shop-dd hover شد، پنل هدر نمایش داده شود */
.ay-nav:has(.main-nav li.ay-shop-dd:hover) #ay-shop-dd-panel{
  display:block;
}

/* Head */
.ay-shop-dd-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:8px 8px 12px;
  border-bottom:1px solid var(--border);
  margin-bottom:10px;
}
.ay-shop-dd-title{font-weight:1000;color:var(--navy);font-size:16px}
.ay-shop-dd-sub{color:var(--muted);font-weight:700;font-size:13px}

/* Mobile: disable hover dropdown for speed & UX (optional) */
@media (hover:none), (max-width:980px){
  #ay-shop-dd-panel{display:none !important;}
}

/* ===== Header custom menu (clean) ===== */
.main-nav .ay-menu{
  display:flex;
  gap:14px;
  list-style:none;
  padding:0;
  margin:0;
  align-items:center;
}
.main-nav .ay-menu > li{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
}
.main-nav .ay-menu a{
  padding:8px 10px;
  border-radius:12px;
  font-weight:800;
  color:var(--navy);
  display:inline-flex;
  align-items:center;
}
.main-nav .ay-menu a:hover{background:rgba(11,31,58,.06)}

/* toggle button next to shop */
.ay-dd-toggle{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(11,31,58,.12);
  background:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.ay-dd-caret{font-size:16px; color:var(--navy); transition:transform .12s ease}
li.ay-shop-dd.is-open .ay-dd-caret{transform:rotate(180deg)}

/* sub-menu base (WP) */
.main-nav .ay-menu .sub-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:min(980px, calc(100vw - 32px));
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:12px;
  margin:0;
  list-style:none;
  display:none; /* controlled by class */
  z-index:999;
}

/* open */
.main-nav .ay-menu li.is-open > .sub-menu{display:block}

/* on mobile, make dropdown full width */
@media (max-width:980px){
  .main-nav .ay-menu{flex-wrap:wrap}
  .main-nav .ay-menu .sub-menu{
    right:0; left:0; width:auto;
  }
}

/* ===== Mega menu (professional) ===== */

/* sub-menu container itself becomes a mega layer */
.main-nav .ay-menu > li.ay-shop-dd{position:relative}
.main-nav .ay-menu > li.ay-shop-dd > .sub-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:min(1040px, calc(100vw - 32px));
  margin:0;
  padding:0;                 /* مهم: چون داخلش wrap داریم */
  list-style:none;
  background:transparent;
  border:0;
  box-shadow:none;
  display:none;              /* JS کلاس is-open را می‌زند */
  z-index:999;
}
.main-nav .ay-menu > li.ay-shop-dd.is-open > .sub-menu{display:block}

/* چون ما محتوای mega را مستقیم return می‌کنیم، داخل ul ممکنه li نداشته باشه */
.main-nav .ay-menu > li.ay-shop-dd > .sub-menu::before,
.main-nav .ay-menu > li.ay-shop-dd > .sub-menu::after{display:none !important}

/* Mega wrap card */
.ay-mega-wrap{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 18px 45px rgba(2,6,23,.12);
  overflow:hidden;
}

/* Head */
.ay-mega-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 12px;
  background:linear-gradient(90deg, rgba(11,31,58,.06), rgba(255,122,0,.06));
  border-bottom:1px solid var(--border);
}
.ay-mega-title{
  font-weight:1100;
  color:var(--navy);
  font-size:16px;
}
.ay-mega-sub{
  margin-top:3px;
  color:var(--muted);
  font-weight:700;
  font-size:12.5px;
}
.ay-mega-all{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  background:var(--orange);
  color:#fff;
  font-weight:1100;
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 10px 22px rgba(255,122,0,.20);
  white-space:nowrap;
}
.ay-mega-all:hover{filter:brightness(.96)}

/* Body */
.ay-mega-body{padding:12px}

/* Make your existing tree look premium */
.ay-mega-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
}
.ay-mega-col{
  border:1px solid rgba(11,31,58,.10);
  border-radius:16px;
  padding:10px 10px 12px;
  background:#fff;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ay-mega-col:hover{
  transform:translateY(-1px);
  border-color:rgba(255,122,0,.30);
  box-shadow:0 14px 28px rgba(2,6,23,.08);
}
.ay-mega-parent{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:1100;
  color:var(--navy);
  padding:8px 10px;
  border-radius:12px;
  background:rgba(11,31,58,.05);
  border:1px solid rgba(11,31,58,.08);
}
.ay-mega-parent:hover{
  background:rgba(255,122,0,.08);
  border-color:rgba(255,122,0,.20);
}

.ay-mega-children{
  list-style:none;
  margin:10px 0 0;
  padding:0;
  display:grid;
  gap:6px;
}
.ay-mega-children a{
  display:block;
  padding:8px 10px;
  border-radius:12px;
  font-weight:850;
  color:rgba(15,23,42,.88);
  background:rgba(11,31,58,.03);
  border:1px solid rgba(11,31,58,.06);
}
.ay-mega-children a:hover{
  background:rgba(255,122,0,.08);
  border-color:rgba(255,122,0,.20);
  color:var(--navy);
}

/* Responsive mega */
@media (max-width:980px){
  .main-nav .ay-menu > li.ay-shop-dd > .sub-menu{
    right:0; left:0;
    width:auto;
  }
  .ay-mega-grid{grid-template-columns:repeat(2, 1fr)}
}
@media (max-width:560px){
  .ay-mega-grid{grid-template-columns:1fr}
}

/* ===============================
   Single Product (AmirYadak)
=============================== */

.ay-sp{margin:0 auto; max-width:1400px;}
.single-product .ay-main{padding-left:10px; padding-right:10px;}

.ay-sp__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr; /* تصویر کمی بزرگتر */
  gap:14px;
  align-items:start;
}

@media (max-width: 980px){
  .ay-sp__grid{grid-template-columns:1fr;}
}

/* Media card */
.ay-sp__media{
  border:1px solid rgba(11,31,58,.10);
  border-radius:20px;
  box-shadow:0 18px 40px rgba(2,6,23,.06);
  overflow:hidden;
  background:#fff;
}
.ay-sp__media-inner{
  padding:14px;
}

/* Gallery wrapper */
.ay-sp__media .woocommerce-product-gallery{
  margin:0 !important;
  width:100% !important;
}

/* Main image styling */
.ay-sp__media .woocommerce-product-gallery__wrapper{
  background:linear-gradient(135deg, rgba(11,31,58,.05), rgba(255,122,0,.07));
  border-radius:18px;
  padding:12px;
  border:1px solid rgba(11,31,58,.10);
}

.ay-sp__media .woocommerce-product-gallery__image img,
.ay-sp__media img.wp-post-image{
  width:100% !important;
  height:auto !important;
  border-radius:16px !important;
  background:#fff;
  border:1px solid rgba(11,31,58,.12);
  box-shadow:0 14px 30px rgba(2,6,23,.10);
}

/* Sale badge (Woo default: span.onsale) */
.ay-sp__media span.onsale{
  position:absolute !important;
  top:18px !important;
  right:18px !important;
  left:auto !important;
  min-width:44px !important;
  min-height:36px !important;
  padding:8px 10px !important;
  border-radius:14px !important;
  background:var(--orange) !important;
  color:#fff !important;
  font-weight:1200 !important;
  box-shadow:0 12px 26px rgba(255,122,0,.28) !important;
  border:1px solid rgba(255,255,255,.35) !important;
  z-index:3 !important;
}

/* Thumbnails nicer */
.ay-sp__media .flex-control-thumbs{
  margin-top:10px !important;
}
.ay-sp__media .flex-control-thumbs li img{
  border-radius:12px !important;
  border:1px solid rgba(11,31,58,.12);
  background:#fff;
}

/* Summary card */
.ay-sp__summary{
  border:1px solid rgba(11,31,58,.10);
  border-radius:20px;
  box-shadow:0 18px 40px rgba(2,6,23,.06);
  background:#fff;
}
.ay-sp__summary-inner{
  padding:16px;
}

/* Title */
.ay-sp__summary .product_title{
  margin:0 0 10px !important;
  color:var(--navy);
  font-weight:1100;
  font-size:18px;
  line-height:1.8;
}

/* Price */
.ay-sp__summary .price{
  margin:8px 0 14px !important;
  font-weight:1200;
  color:var(--navy);
  font-size:18px;
}
.ay-sp__summary .price del{
  opacity:.55;
  margin-left:8px;
}
.ay-sp__summary .price ins{
  text-decoration:none;
  color:var(--navy);
}

/* Short desc */
.ay-sp__summary .woocommerce-product-details__short-description{
  color:rgba(15,23,42,.80);
  font-weight:650;
  margin:0 0 14px;
}

/* Add to cart area */
.ay-sp__summary form.cart{
  display:grid;
  gap:10px;
  margin:0 0 8px !important;
}
.ay-sp__summary .quantity input.qty{
  width:100% !important;
  border-radius:14px;
  border:1px solid rgba(11,31,58,.12);
  padding:10px 12px;
}

/* Primary add to cart button */
.ay-sp__summary button.single_add_to_cart_button{
  border:0 !important;
  border-radius:16px !important;
  background:var(--orange) !important;
  color:#fff !important;
  font-weight:1200 !important;
  padding:12px 14px !important;
  box-shadow:0 14px 28px rgba(255,122,0,.22);
}
.ay-sp__summary button.single_add_to_cart_button:hover{
  filter:brightness(.96);
}

/* Consult button under add-to-cart */
.ay-consult-wrap{margin-top:8px;}
.ay-consult-btn{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(11,31,58,.14);
  background:rgba(11,31,58,.05);
  color:var(--navy);
  font-weight:1100;
}
.ay-consult-btn span{
  color:var(--orange);
  font-weight:1300;
}
.ay-consult-btn:hover{
  background:rgba(255,122,0,.08);
  border-color:rgba(255,122,0,.22);
}

/* Tabs/after section spacing */
.ay-sp__after{
  margin-top:14px;
}




/* ===============================
   Single Product – FINAL FIX
=============================== */

/* دو ستونه کردن خود ساختار ووکامرس (بدون نیاز به template override) */
.single-product div.product{
  display:grid;
  grid-template-columns: 1.05fr .95fr; /* تصویر کمی بزرگتر */
  gap:14px;
  align-items:start;
  margin:0 auto;
  max-width:1400px;
}

@media (max-width:980px){
  .single-product div.product{grid-template-columns:1fr;}
}

/* باکس گالری/تصویر */
.single-product div.product .woocommerce-product-gallery{
  background:#fff;
  border:1px solid rgba(11,31,58,.10);
  border-radius:20px;
  box-shadow:0 18px 40px rgba(2,6,23,.06);
  padding:14px;
  overflow:hidden;
  position:relative; /* برای نشان تخفیف */
}

/* قاب داخلی تصویر */
.single-product div.product .woocommerce-product-gallery__wrapper{
  background:linear-gradient(135deg, rgba(11,31,58,.05), rgba(255,122,0,.07));
  border:1px solid rgba(11,31,58,.10);
  border-radius:18px;
  padding:12px;
}

/* خود تصویر شاخص */
.single-product div.product .woocommerce-product-gallery__image img,
.single-product div.product img.wp-post-image{
  width:100% !important;
  height:auto !important;
  border-radius:16px !important;
  background:#fff;
  border:1px solid rgba(11,31,58,.12);
  box-shadow:0 14px 30px rgba(2,6,23,.10);
}

/* نشان تخفیف گوشه تصویر */
.single-product div.product span.onsale{
  position:absolute !important;
  top:18px !important;
  right:18px !important;
  left:auto !important;
  min-width:44px !important;
  min-height:36px !important;
  padding:8px 10px !important;
  border-radius:14px !important;
  background:var(--orange) !important;
  color:#fff !important;
  font-weight:1200 !important;
  box-shadow:0 12px 26px rgba(255,122,0,.28) !important;
  border:1px solid rgba(255,255,255,.35) !important;
  z-index:3 !important;
}

/* باکس معرفی/خرید */
.single-product div.product .summary{
  background:#fff;
  border:1px solid rgba(11,31,58,.10);
  border-radius:20px;
  box-shadow:0 18px 40px rgba(2,6,23,.06);
  padding:16px;
}

/* عنوان */
.single-product .summary .product_title{
  margin:0 0 10px !important;
  color:var(--navy);
  font-weight:1100;
  font-size:18px;
  line-height:1.8;
}

/* قیمت */
.single-product .summary .price{
  margin:8px 0 14px !important;
  font-weight:1200;
  color:var(--navy);
  font-size:18px;
}
.single-product .summary .price del{opacity:.55; margin-left:8px;}
.single-product .summary .price ins{text-decoration:none;}

/* توضیح کوتاه */
.single-product .summary .woocommerce-product-details__short-description{
  color:rgba(15,23,42,.80);
  font-weight:650;
  margin:0 0 14px;
}

/* فرم خرید: ستونی و زیبا */
.single-product .summary form.cart{
  display:grid;
  gap:10px;
  margin:0 !important;
}

/* تعداد */
.single-product .summary .quantity input.qty{
  width:100% !important;
  border-radius:14px;
  border:1px solid rgba(11,31,58,.12);
  padding:10px 12px;
}

/* دکمه خرید */
.single-product .summary button.single_add_to_cart_button{
  width:100%;
  border:0 !important;
  border-radius:16px !important;
  background:var(--orange) !important;
  color:#fff !important;
  font-weight:1200 !important;
  padding:12px 14px !important;
  box-shadow:0 14px 28px rgba(255,122,0,.22);
}
.single-product .summary button.single_add_to_cart_button:hover{filter:brightness(.96);}

/* دکمه مشاوره (زیر فرم) */
.ay-consult-wrap{margin-top:10px;}
.ay-consult-btn{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(11,31,58,.14);
  background:rgba(11,31,58,.05);
  color:var(--navy);
  font-weight:1100;
}
.ay-consult-btn span{color:var(--orange); font-weight:1300;}
.ay-consult-btn:hover{
  background:rgba(255,122,0,.08);
  border-color:rgba(255,122,0,.22);
}


/* ===============================
   Single Product layout FIX
   (prevents 3-column when extra blocks exist)
=============================== */

.single-product div.product{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:14px;
  align-items:start;
  margin:0 auto;
  max-width:1400px;
}

/* فقط گالری و خلاصه کنار هم باشند */
.single-product div.product > .woocommerce-product-gallery{
  grid-column:1;
}
.single-product div.product > .summary{
  grid-column:2;
}

/* هر چیز اضافی که داخل div.product چاپ شد، بیاد یک ردیف کامل زیرِ دو ستون */
.single-product div.product > :not(.woocommerce-product-gallery):not(.summary){
  grid-column:1 / -1;
}

/* موبایل */
@media (max-width:980px){
  .single-product div.product{grid-template-columns:1fr;}
  .single-product div.product > .woocommerce-product-gallery,
  .single-product div.product > .summary{
    grid-column:1 / -1;
  }
}

/* ===== Single Product: image 40% / summary 60% ===== */
@media (min-width: 981px){
  .single-product div.product{
    grid-template-columns: 40% 60% !important;
  }
}

@media (min-width: 981px){
  .single-product div.product > .woocommerce-product-gallery{max-width: 520px;}
}
/* =========================================
   Single Product FINAL: 40% image / 60% summary
   (Force Flex, ignores previous grid)
========================================= */
@media (min-width: 981px){
  .single-product .woocommerce div.product,
  .single-product div.product{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:14px !important;
    align-items:flex-start !important;
    max-width:1400px;
    margin:0 auto;
  }

  /* ستون تصویر = 40% */
  .single-product .woocommerce div.product > .woocommerce-product-gallery,
  .single-product div.product > .woocommerce-product-gallery{
    flex: 0 0 calc(40% - 7px) !important;
    width: calc(40% - 7px) !important;
    max-width: calc(40% - 7px) !important;
  }

  /* ستون معرفی = 60% */
  .single-product .woocommerce div.product > .summary,
  .single-product div.product > .summary{
    flex: 1 1 calc(60% - 7px) !important;
    width: calc(60% - 7px) !important;
    max-width: calc(60% - 7px) !important;
  }

  /* هر بخش اضافه‌ای مثل "خرید مطمئن..." بیاد زیرِ دو ستون */
  .single-product .woocommerce div.product > :not(.woocommerce-product-gallery):not(.summary),
  .single-product div.product > :not(.woocommerce-product-gallery):not(.summary){
    flex: 0 0 100% !important;
    width:100% !important;
  }
}

/* موبایل: تک ستون */
@media (max-width: 980px){
  .single-product .woocommerce div.product,
  .single-product div.product{
    display:block !important;
  }

  .single-product .woocommerce div.product > .woocommerce-product-gallery,
  .single-product .woocommerce div.product > .summary,
  .single-product div.product > .woocommerce-product-gallery,
  .single-product div.product > .summary{
    width:100% !important;
    max-width:100% !important;
  }
}

/* ===============================
   Single Product (AmirYadak)
   40% media / 60% summary
=============================== */

.ay-single-wrap{padding:0 10px}
.ay-single-card{border-radius:20px}

/* Grid */
.ay-sp__grid{
  display:grid;
  grid-template-columns: 40% 60%;
  gap:14px;
  align-items:start;
}

/* Mobile */
@media (max-width:980px){
  .ay-sp__grid{grid-template-columns:1fr}
}

/* Cards */
.ay-sp__media,
.ay-sp__summary{
  border-radius:20px;
  overflow:hidden;
}

/* Media box */
.ay-sp__media-inner{
  padding:14px;
  background:#fff;
}

/* Make gallery nice */
.woocommerce div.product .woocommerce-product-gallery{
  margin:0 !important;
  width:100% !important;
  float:none !important;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper{
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(11,31,58,.10);
  background:linear-gradient(135deg, rgba(11,31,58,.05), rgba(255,122,0,.07));
}
.woocommerce div.product .woocommerce-product-gallery__image img,
.woocommerce div.product img.wp-post-image{
  border-radius:16px !important;
  background:#fff;
  border:1px solid rgba(11,31,58,.12);
  box-shadow:0 14px 30px rgba(2,6,23,.10);
}

/* Sale badge */
.woocommerce span.onsale{
  background:var(--orange) !important;
  color:#fff !important;
  border-radius:14px !important;
  padding:8px 10px !important;
  font-weight:1200 !important;
  box-shadow:0 12px 26px rgba(255,122,0,.28) !important;
  border:1px solid rgba(255,255,255,.35) !important;
  min-width:44px !important;
  min-height:36px !important;
}

/* Summary */
.ay-sp__summary-inner{padding:16px}
.woocommerce div.product .product_title{
  color:var(--navy);
  font-weight:1100;
  font-size:18px;
  line-height:1.9;
  margin:0 0 10px !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price{
  font-weight:1200;
  color:var(--navy);
  font-size:18px;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del{opacity:.55}

/* Add to cart button */
.woocommerce .single_add_to_cart_button.button{
  width:100%;
  border-radius:16px !important;
  background:var(--orange) !important;
  border:0 !important;
  font-weight:1200 !important;
  padding:12px 14px !important;
  box-shadow:0 14px 28px rgba(255,122,0,.22);
}
.woocommerce .single_add_to_cart_button.button:hover{filter:brightness(.96)}

/* Quantity full width on mobile */
.woocommerce div.product form.cart{
  display:grid;
  gap:10px;
}
.woocommerce div.product form.cart .quantity input.qty{
  width:100% !important;
  border-radius:14px;
  border:1px solid rgba(11,31,58,.12);
  padding:10px 12px;
}

/* Consult button */
.ay-consult-wrap{margin-top:10px}
.ay-consult-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(11,31,58,.14);
  background:rgba(11,31,58,.05);
  color:var(--navy);
  font-weight:1100;
}
.ay-consult-btn span{color:var(--orange); font-weight:1300;}
.ay-consult-btn:hover{
  background:rgba(255,122,0,.08);
  border-color:rgba(255,122,0,.22);
}

/* Buy safe box */
.ay-buybox{margin-top:12px; border-radius:20px}
.ay-buybox-title{
  font-weight:1200;
  color:var(--navy);
  margin-bottom:10px;
}
.ay-trust{
  list-style:none;
  padding:0;
  margin:0 0 10px;
  display:grid;
  gap:6px;
  font-weight:800;
  color:rgba(15,23,42,.85);
}
.ay-support{
  display:grid;
  gap:8px;
  padding-top:10px;
  border-top:1px solid rgba(11,31,58,.10);
}
.ay-support-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-weight:900;
}
.ay-support-row a{color:var(--orange)}


/* =========================
   Archive responsive + Sidebar RIGHT (desktop)
   ========================= */

/* آرشیو فول واید واقعی */
.ay-archive{padding:10px !important}
.ay-archive-wrap{width:100%; margin:0; padding:0 10px}
.ay-archive-card{
  width:100%;
  max-width:none;      /* مهم: محدودیت عرض را بردار */
  margin:0;
  background:#fff;
  border:1px solid rgba(11,31,58,.10);
  border-radius:20px;
  box-shadow:0 18px 40px rgba(2,6,23,.06);
  padding:14px;
}

/* گرید اصلی: سایدبار سمت راست */
.ay-shop-layout{
  display:grid;
  grid-template-columns: 320px 1fr;  /* ستون اول در RTL سمت راست می‌افتد */
  grid-template-areas: "sidebar main";
  gap:14px;
  align-items:start;
}

.ay-shop-main{grid-area:main; min-width:0;}
.ay-shop-sidebar{grid-area:sidebar; min-width:0; position:sticky; top:92px;}

@media (max-width:980px){
  /* موبایل: اول محصولات، بعد سایدبار */
  .ay-shop-layout{
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar";
  }
  .ay-shop-sidebar{position:static; top:auto;}
}

/* =========================
   Products grid (Woo UL)
   ========================= */
.woocommerce ul.products,
.woocommerce-page ul.products{
  list-style:none !important;
  margin:10px 0 0 !important;
  padding:0 !important;
  display:grid !important;
  gap:14px !important;
  grid-template-columns:repeat(4, 1fr) !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after{display:none !important}

@media (max-width:1100px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{grid-template-columns:repeat(3,1fr) !important;}
}
@media (max-width:980px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{grid-template-columns:repeat(2,1fr) !important;}
}
@media (max-width:560px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{grid-template-columns:1fr !important;}
}

/* جلوگیری از float های پیشفرض ووکامرس */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  float:none !important;
  width:auto !important;
  margin:0 !important;
}

/* =========================
   Product card buttons: stack (NOT in one row)
   ========================= */

/* روی دسکتاپ هم دکمه‌ها زیر هم باشند */
.ay-hover-actions{
  display:flex;
  flex-direction:column;     /* مهم */
  align-items:stretch;       /* مهم */
  justify-content:flex-end;
  gap:10px;
}

/* هر دو دکمه تمام عرض */
.ay-hover-actions .ay-btn,
.ay-hover-actions .ay-cart-btn .button{
  width:100% !important;
}

/* در موبایل/تاچ: اکشن‌ها همیشه نمایش داده شود و زیر تصویر بیاید */
@media (hover:none), (max-width:980px){
  .ay-hover-actions{
    position:static !important;
    inset:auto !important;
    opacity:1 !important;
    transform:none !important;
    pointer-events:auto !important;
    background:transparent !important;
    padding:10px 0 0 !important;
  }
  .ay-btn--outline{
    background:var(--navy) !important;
    border-color:rgba(11,31,58,.15) !important;
    color:#fff !important;
  }
}

/* اگر داخل overlay هست، دکمه مشاهده با پس‌زمینه خوانا */
.ay-btn--outline{
  color:#fff;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(11,31,58,.75);
}


/* ===== Category description toggle (archive) ===== */
.ay-term-desc{
  margin:10px 0 12px;
  border:1px solid rgba(11,31,58,.10);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(2,6,23,.05);
}
.ay-term-desc__inner{padding:12px 14px}
.ay-term-desc__short{
  color:rgba(15,23,42,.88);
  font-weight:700;
  font-size:13.5px;
  line-height:1.9;
}
.ay-term-desc__full{
  margin-top:10px;
  color:rgba(15,23,42,.88);
  font-weight:700;
  font-size:13.5px;
  line-height:1.95;
}
.ay-term-desc__full p{margin:0 0 8px}
.ay-term-desc__toggle{
  margin-top:10px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid rgba(11,31,58,.14);
  background:rgba(11,31,58,.04);
  color:var(--navy);
  border-radius:14px;
  padding:10px 12px;
  font-weight:950;
  cursor:pointer;
  transition:background .12s ease, border-color .12s ease, transform .12s ease;
}
.ay-term-desc__toggle:hover{
  background:rgba(255,122,0,.08);
  border-color:rgba(255,122,0,.30);
  transform:translateY(-1px);
}
.ay-term-desc__chev{
  font-size:18px;
  line-height:1;
  transition:transform .12s ease;
}
.ay-term-desc.is-open .ay-term-desc__chev{transform:rotate(180deg)}

/* ===== Checkout (Amiryadak) ===== */
.ay-checkout{padding:10px}
.ay-checkout .card{border-radius:18px}

.ay-checkout__head{margin:0 0 12px}
.ay-checkout__head-inner{padding:14px}
.ay-checkout__title{font-weight:1000; color:var(--navy); font-size:18px}
.ay-checkout__subtitle{color:var(--muted); font-weight:700; font-size:13px; margin-top:4px}

.ay-checkout__grid{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:14px;
  align-items:start;
}

.ay-checkout__card-inner{padding:14px}

.ay-checkout__section-title{
  font-weight:1000;
  color:var(--navy);
  margin:0 0 10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(11,31,58,.10);
}

/* Woo fields: clean + easy */
.woocommerce form .form-row{margin:0 0 12px}
.woocommerce form .form-row label{
  font-weight:900;
  color:rgba(15,23,42,.85);
  margin-bottom:6px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select{
  width:100%;
  border:1px solid rgba(11,31,58,.14);
  border-radius:14px;
  padding:12px 12px;
  background:#fff;
  outline:none;
  transition:border-color .12s ease, box-shadow .12s ease;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus{
  border-color:rgba(255,122,0,.55);
  box-shadow:0 0 0 3px rgba(255,122,0,.12);
}
.woocommerce form .form-row textarea{min-height:92px; resize:vertical}

/* Order review table look */
.woocommerce-checkout-review-order-table{
  border:1px solid rgba(11,31,58,.10);
  border-radius:14px;
  overflow:hidden;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td{
  padding:10px 12px !important;
}
.woocommerce-checkout-review-order .woocommerce-checkout-payment{
  margin-top:12px;
  border-radius:14px;
}

/* Place order button */
#place_order.button,
.woocommerce #payment #place_order{
  border:0 !important;
  background:var(--orange) !important;
  color:#fff !important;
  border-radius:14px !important;
  font-weight:1000 !important;
  padding:12px 14px !important;
}

/* Mobile */
@media (max-width: 980px){
  .ay-checkout__grid{grid-template-columns:1fr}
}



/* =========================
   Home Slider (AmirYadak) — FINAL
   matches front-page.php markup
========================= */

.ay-home-slider{padding:14px 0 6px}

.ay-slider{
  position:relative;
  border-radius:22px;
}

.ay-slider__track{
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  border-radius:22px;
}
.ay-slider__track::-webkit-scrollbar{display:none}

.ay-slide{
  position:relative;
  flex:0 0 100%;
  scroll-snap-align:start;
  min-height:220px;
  border-radius:22px;
  overflow:hidden;
  background:rgba(11,31,58,.06);
}
@media (min-width:980px){
  .ay-slide{min-height:320px;}
}

/* media wrapper */
.ay-slide__media{
  position:absolute;
  inset:0;
  display:block;
}
.ay-slide__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* overlay for better text contrast */
.ay-slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(11,31,58,.78), rgba(11,31,58,.12));
  pointer-events:none;
}

/* caption card */
.ay-slide__cap{
  position:absolute;
  right:14px;
  left:14px;
  bottom:14px;
  z-index:2;
  border-radius:18px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 18px 45px rgba(2,6,23,.18);
}
@media (min-width:980px){
  .ay-slide__cap{
    right:18px;
    left:auto;
    width:min(560px, calc(100% - 36px));
  }
}

.ay-slide__cap-inner{padding:14px}

.ay-slide__title{
  font-weight:1100;
  color:var(--navy);
  font-size:16px;
  line-height:1.9;
}
@media (min-width:980px){
  .ay-slide__title{font-size:18px;}
}

.ay-slide__text{
  margin-top:6px;
  color:rgba(15,23,42,.72);
  font-weight:750;
  font-size:13px;
  line-height:1.9;
}

.ay-slide__actions{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* nav buttons */
.ay-slider__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(11,31,58,.45);
  color:#fff;
  font-size:24px;
  font-weight:1200;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:3;
  backdrop-filter: blur(6px);
}
.ay-slider__prev{right:12px}
.ay-slider__next{left:12px}

@media (max-width:560px){
  .ay-slider__nav{display:none;} /* موبایل: سوییپ */
}

/* dots */
.ay-slider__dots{
  position:absolute;
  bottom:10px;
  left:0; right:0;
  display:flex;
  justify-content:center;
  gap:8px;
  z-index:3;
}
.ay-slider__dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background:rgba(255,255,255,.50);
  cursor:pointer;
}
.ay-slider__dot.is-active{background:rgba(255,255,255,.95)}

/* motion safety */
@media (prefers-reduced-motion: reduce){
  .ay-slider__track{scroll-behavior:auto;}
}



/* ===== Blog card thumb + meta ===== */
.post-card__thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius:14px;
  overflow:hidden;
  background:rgba(11,31,58,.06);
  margin-bottom:10px;
}
.post-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.post-card__thumb-ph{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(11,31,58,.08), rgba(255,122,0,.10));
}
.post-card__thumb-ph svg{
  width:44px;
  height:44px;
  fill:rgba(11,31,58,.75);
}

.post-card__meta{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-weight:800;
  font-size:12.5px;
  margin:4px 0 8px;
}
.post-card__meta .dot{opacity:.8}


.ay-footer {
  background: linear-gradient(180deg, #3c5fa8, #2f4f9f);
  color: #fff;
  padding: 60px 20px 20px;
  border-radius: 40px 40px 0 0;
  margin-top: 80px;
}

.ay-footer-inner {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

.footer-logo {
  max-width: 140px;
}

.ay-footer-col h4,
.ay-footer-contact h4 {
  font-size: 15px;
  margin-bottom: 14px;
}

.ay-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ay-footer-col ul li {
  margin-bottom: 10px;
}

.ay-footer-col ul li a {
  color: #e4ebff;
  font-size: 14px;
  text-decoration: none;
}

.ay-footer-col ul li a:hover {
  text-decoration: underline;
}

.ay-footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
}

.ay-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.ay-footer-social a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.ay-footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  font-size: 13px;
}

/* 🟣 تبلت */
@media (max-width: 992px) {
  .ay-footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 🔵 موبایل */
@media (max-width: 600px) {
  .ay-footer {
    border-radius: 24px 24px 0 0;
    padding: 40px 16px 16px;
  }

  .ay-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ay-footer-social {
    justify-content: center;
  }
}



/* Blog section like screenshot */
.ay-blog-section{
  margin: 40px 0;
}
.ay-blog-wrap{
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 20px 24px;
  background: #1f5b8f; /* بک گراند مشابه تصویر */
  border-radius: 18px;
}

.ay-blog-title{
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 18px;
}

/* 4 cards grid */
.ay-blog-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ay-blog-card{
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.ay-blog-thumb{
  display:block;
  height: 150px;
  background:#f2f5f9;
}
.ay-blog-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.ay-blog-thumb--ph{
  width:100%;
  height:100%;
  background: linear-gradient(135deg, #e9eef6, #f8fbff);
}

.ay-blog-body{
  padding: 14px 14px 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  flex: 1;
}

.ay-blog-card-title{
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  line-height: 1.9;
}
.ay-blog-card-title a{
  color:#0f172a;
  text-decoration:none;
}
.ay-blog-card-title a:hover{ text-decoration: underline; }

.ay-blog-excerpt{
  font-size: 13px;
  color:#334155;
  margin:0;
  line-height: 2;
  flex: 1;
}

.ay-blog-meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  color:#475569;
}
.ay-blog-read{
  color:#1f5b8f;
  text-decoration:none;
  font-weight: 700;
}
.ay-blog-read:hover{ text-decoration: underline; }

/* Description under cards */
.ay-blog-desc{
  margin-top: 22px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px 14px;
}
.ay-blog-desc-title{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  text-align:center;
  color:#3b3b3b;
}
.ay-blog-desc-text{
  font-size: 14px;
  line-height: 2.25;
  color:#222;
}
.ay-desc-toggle{
  margin: 10px auto 0;
  display:block;
  border: 0;
  background:#1f5b8f;
  color:#fff;
  padding: 10px 16px;
  border-radius: 10px;
  cursor:pointer;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 1100px){
  .ay-blog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .ay-blog-wrap{ padding: 18px 12px; }
  .ay-blog-grid{ grid-template-columns: 1fr; }
  .ay-blog-thumb{ height: 170px; }
}


/* Blog section like screenshot */
.ay-blog-section{
  margin: 40px 0;
}
.ay-blog-wrap{
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 20px 24px;
  background: #1f5b8f; /* بک گراند مشابه تصویر */
  border-radius: 18px;
}

.ay-blog-title{
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 18px;
}

/* 4 cards grid */
.ay-blog-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ay-blog-card{
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.ay-blog-thumb{
  display:block;
  height: 150px;
  background:#f2f5f9;
}
.ay-blog-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.ay-blog-thumb--ph{
  width:100%;
  height:100%;
  background: linear-gradient(135deg, #e9eef6, #f8fbff);
}

.ay-blog-body{
  padding: 14px 14px 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  flex: 1;
}

.ay-blog-card-title{
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  line-height: 1.9;
}
.ay-blog-card-title a{
  color:#0f172a;
  text-decoration:none;
}
.ay-blog-card-title a:hover{ text-decoration: underline; }

.ay-blog-excerpt{
  font-size: 13px;
  color:#334155;
  margin:0;
  line-height: 2;
  flex: 1;
}

.ay-blog-meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  color:#475569;
}
.ay-blog-read{
  color:#1f5b8f;
  text-decoration:none;
  font-weight: 700;
}
.ay-blog-read:hover{ text-decoration: underline; }

/* Description under cards */
.ay-blog-desc{
  margin-top: 22px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px 14px;
}
.ay-blog-desc-title{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  text-align:center;
  color:#3b3b3b;
}
.ay-blog-desc-text{
  font-size: 14px;
  line-height: 2.25;
  color:#222;
}
.ay-desc-toggle{
  margin: 10px auto 0;
  display:block;
  border: 0;
  background:#1f5b8f;
  color:#fff;
  padding: 10px 16px;
  border-radius: 10px;
  cursor:pointer;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 1100px){
  .ay-blog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .ay-blog-wrap{ padding: 18px 12px; }
  .ay-blog-grid{ grid-template-columns: 1fr; }
  .ay-blog-thumb{ height: 170px; }
}


.ay-cat-slider {
  margin: 40px 0;
}

.ay-cat-title {
  text-align: center;
  font-weight: 900;
  margin-bottom: 20px;
}

.ay-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}

.ay-cat-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid #0d47a1;
  margin-bottom: 10px;
}

.ay-cat-card span {
  font-weight: 800;
  color: #0d47a1;
}



/* ===============================
   Category Slider (Home)
================================ */

.ay-cat-section{
  margin:50px 0;
}

.ay-cat-title{
  text-align:center;
  font-weight:900;
  font-size:20px;
  margin-bottom:25px;
  color:#0b1f3a;
}

.ay-cat-card{
  background:#fff;
  border-radius:18px;
  padding:20px 10px;
  text-align:center;
  display:block;
}

.ay-cat-card img{
  width:90px;
  height:90px;
  object-fit:contain;
  border-radius:50%;
  border:2px solid #0b1f3a;
  margin-bottom:10px;
}

.ay-cat-card span{
  display:block;
  font-weight:800;
  color:#0b1f3a;
}

.swiper-button-next,
.swiper-button-prev{
  color:#0b1f3a;
}

/* ===============================
   Category Slider (Home)
================================ */

.ay-cat-section{
  margin:50px 0;
}

.ay-cat-title{
  text-align:center;
  font-weight:900;
  font-size:20px;
  margin-bottom:25px;
  color:#0b1f3a;
}

.ay-cat-card{
  background:#fff;
  border-radius:18px;
  padding:20px 10px;
  text-align:center;
  display:block;
}

.ay-cat-card img{
  width:90px;
  height:90px;
  object-fit:contain;
  border-radius:50%;
  border:2px solid #0b1f3a;
  margin-bottom:10px;
}

.ay-cat-card span{
  display:block;
  font-weight:800;
  color:#0b1f3a;
}

.swiper-button-next,
.swiper-button-prev{
  color:#0b1f3a;
}



/* =========================================
   Category Swiper (NO CONFLICT + CLEAN)
========================================= */

.ay-cat-section{margin:42px 0;}
.ay-cat-title{
  text-align:center;
  font-weight:1000;
  color:var(--navy);
  font-size:20px;
  margin:0 0 18px;
}

/* خود swiper */
.ay-cat-swiper{
  position:relative;
  padding:0 56px; /* فضا برای دکمه‌ها */
}

/* هر اسلاید */
.ay-cat-swiper .swiper-slide{
  height:auto !important;
}

/* کارت */
.ay-cat-card{
  background:#fff;
  border:1px solid rgba(11,31,58,.10);
  border-radius:18px;
  padding:16px 10px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  min-height:150px;
  box-shadow:0 10px 26px rgba(2,6,23,.06);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ay-cat-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,122,0,.30);
  box-shadow:0 16px 34px rgba(2,6,23,.10);
}

.ay-cat-img{
  width:86px;
  height:86px;
  border-radius:999px;
  border:2px solid var(--navy);
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#fff;
}
.ay-cat-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:6px;
}
.ay-cat-ph{
  width:100%;
  height:100%;
  display:block;
  background:linear-gradient(135deg, rgba(11,31,58,.08), rgba(255,122,0,.10));
}

.ay-cat-name{
  font-weight:900;
  color:var(--navy);
  font-size:14px;
}

/* دکمه‌ها */
.ay-cat-swiper .swiper-button-next,
.ay-cat-swiper .swiper-button-prev{
  width:42px;
  height:42px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(11,31,58,.14);
  box-shadow:0 10px 24px rgba(2,6,23,.10);
  color:var(--navy);
}
.ay-cat-swiper .swiper-button-next:after,
.ay-cat-swiper .swiper-button-prev:after{
  font-size:16px;
  font-weight:900;
}

/* موبایل: پدینگ کم + دکمه کوچکتر */
@media (max-width:600px){
  .ay-cat-swiper{padding:0 44px;}
  .ay-cat-swiper .swiper-button-next,
  .ay-cat-swiper .swiper-button-prev{
    width:36px;height:36px;
  }
}



/* =========================
   AmirYadak Responsive Header
   ========================= */

:root{
  --ay-accent:#ff7a00;
  --ay-text:#0f172a;
  --ay-muted:#64748b;
  --ay-border:#e5e7eb;
  --ay-bg:#ffffff;
  --ay-soft:#f8fafc;
  --ay-shadow: 0 10px 30px rgba(2,6,23,.08);
}

.ay-container{
  width:min(1200px, 100%);
  margin:0 auto;
  padding:0 16px;
}

.ay-srOnly{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  border:0;
}

.ay-skip-link{
  position:absolute;
  right:12px;
  top:-60px;
  background:#000;
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  z-index:99999;
  transition:top .2s ease;
}
.ay-skip-link:focus{ top:12px; }

.ay-header{
  background:var(--ay-bg);
  border-bottom:1px solid var(--ay-border);
}

.ay-topbar{
  background:var(--ay-soft);
  border-bottom:1px solid var(--ay-border);
  font-size:13px;
}
.ay-topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
}
.ay-topbar__label{ color:var(--ay-text); font-weight:800; }
.ay-topbar__link{ color:var(--ay-text); text-decoration:none; font-weight:700; }
.ay-topbar__link:hover{ color:var(--ay-accent); }
.ay-topbar__sep{ opacity:.5; padding:0 8px; }

.ay-header__main{
  padding:12px 0;
}
.ay-header__grid{
  display:grid;
  grid-template-columns: auto 1fr 520px auto;
  align-items:center;
  gap:14px;
}

.ay-header__mobileLeft{
  display:none;
  gap:10px;
  align-items:center;
}

.ay-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--ay-text);
  min-width:220px;
}
.ay-brand__mark{
  width:44px;height:44px;
  border-radius:14px;
  background:rgba(255,122,0,.12);
  display:flex;
  align-items:center;
  justify-content:center;
}
.ay-brand__mark svg{ width:22px;height:22px; fill:var(--ay-accent); }
.ay-brand__text{ display:flex; flex-direction:column; line-height:1.2; }
.ay-brand__name{ font-size:16px; font-weight:900; }
.ay-brand__tagline{ font-size:12px; color:var(--ay-muted); margin-top:2px; }

.ay-search{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--ay-soft);
  border:1px solid var(--ay-border);
  border-radius:16px;
  padding:8px;
}
.ay-search__input{
  width:100%;
  border:0;
  background:transparent;
  outline:none;
  font-size:14px;
  padding:6px 10px;
}
.ay-search__btn{
  border:0;
  background:var(--ay-accent);
  color:#fff;
  font-weight:900;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  white-space:nowrap;
}
.ay-search__btn:hover{ filter:brightness(.95); }

.ay-actions{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
}

.ay-iconBtn{
  width:44px;height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid var(--ay-border);
  background:#fff;
  text-decoration:none;
  color:var(--ay-text);
  cursor:pointer;
  position:relative;
}
.ay-iconBtn:hover{ box-shadow:0 8px 20px rgba(2,6,23,.08); }
.ay-ic{ width:22px;height:22px; fill:currentColor; }

.ay-badge{
  position:absolute;
  top:-6px; left:-6px;
  background:var(--ay-accent);
  color:#fff;
  font-weight:900;
  font-size:12px;
  line-height:1;
  padding:6px 7px;
  border-radius:999px;
  border:2px solid #fff;
}

.ay-navbar{
  border-top:1px solid var(--ay-border);
  background:#fff;
}
.ay-navbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
}

.ay-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:42px;
  padding:0 14px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  border:1px solid var(--ay-border);
  color:var(--ay-text);
  background:#fff;
}
.ay-btn--accent{
  background:var(--ay-accent);
  border-color:var(--ay-accent);
  color:#fff;
}
.ay-btn--ghost{
  background:#fff;
}
.ay-btn:hover{ filter:brightness(.98); }
.ay-cta{ display:flex; gap:10px; align-items:center; }

/* Desktop menu */
.ay-menu{
  list-style:none;
  display:flex;
  gap:18px;
  align-items:center;
  margin:0;
  padding:0;
}
.ay-menu > li{ position:relative; }
.ay-menu a{
  text-decoration:none;
  color:var(--ay-text);
  font-weight:800;
  font-size:14px;
  padding:10px 8px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.ay-menu a:hover,
.ay-menu a:focus{
  background:rgba(255,122,0,.10);
  color:var(--ay-accent);
  outline:none;
}

/* Submenu */
.ay-menu .sub-menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:240px;
  background:#fff;
  border:1px solid var(--ay-border);
  border-radius:16px;
  box-shadow:var(--ay-shadow);
  padding:8px;
  list-style:none;
  margin:0;
  display:none;
  z-index:50;
}
.ay-menu li:hover > .sub-menu,
.ay-menu li:focus-within > .sub-menu{
  display:block;
}
.ay-menu .sub-menu a{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
}

/* Offcanvas */
.ay-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  z-index:9998;
}

.ay-offcanvas{
  position:fixed;
  top:0; right:0;
  width:min(86vw, 360px);
  height:100vh;
  background:#fff;
  z-index:9999;
  transform:translateX(110%);
  transition:transform .25s ease;
  box-shadow:var(--ay-shadow);
  display:flex;
  flex-direction:column;
}
.ay-offcanvas.is-open{ transform:translateX(0); }
.ay-offcanvas__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--ay-border);
}
.ay-offcanvas__title{ font-weight:900; color:var(--ay-text); }
.ay-offcanvas__body{
  padding:14px;
  overflow:auto;
}
.ay-search--mobile{ margin-bottom:12px; }

.ay-menu--mobile{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.ay-menu--mobile > li > a{
  width:100%;
  justify-content:space-between;
  padding:12px 12px;
  background:var(--ay-soft);
  border:1px solid var(--ay-border);
}
.ay-menu--mobile .sub-menu{
  position:static;
  display:none;
  margin-top:6px;
  border:0;
  box-shadow:none;
  padding:0;
}
.ay-menu--mobile li.is-open > .sub-menu{ display:block; }
.ay-menu--mobile .sub-menu a{
  background:#fff;
  border:1px solid var(--ay-border);
  margin-top:6px;
}

.ay-offcanvas__cta{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.ay-offcanvas__support{
  margin-top:16px;
  padding-top:12px;
  border-top:1px dashed var(--ay-border);
  color:var(--ay-muted);
  font-weight:700;
}
.ay-offcanvas__support a{ color:var(--ay-text); text-decoration:none; font-weight:900; }

/* Responsive breakpoints */
@media (max-width: 980px){
  .ay-topbar{ display:none; }
  .ay-header__grid{
    grid-template-columns: auto 1fr auto;
  }
  .ay-search{ display:none; }
  .ay-actions{ display:none; }
  .ay-header__mobileLeft{ display:flex; }
  .ay-navbar{ display:none; }
  .ay-brand{ min-width:auto; }
  .ay-brand__tagline{ display:none; }
}

/* =========================
   FIX: dropdown jump / hover gap
   ========================= */

/* مطمئن شو زیرمنو توسط والدها بریده نشه */
.ay-navbar,
.ay-navbar__inner,
.ay-nav,
.ay-container{
  overflow: visible !important;
}

/* لایه‌بندی صحیح */
.ay-navbar{ position: relative; z-index: 2000; }
.ay-menu > li{ position: relative; }

/* به جای فاصله (gap) زیرمنو رو دقیقا زیر آیتم بیار */
.ay-menu .sub-menu{
  top: 100% !important;     /* قبلاً calc(100% + 10px) بود */
  margin-top: 8px;          /* فاصله ظاهری */
  right: 0;
  z-index: 3000;
}

/* پل hover نامرئی: باعث میشه وقتی موس از آیتم میره سمت زیرمنو hover قطع نشه */
.ay-menu > li.menu-item-has-children::after{
  content:"";
  position:absolute;
  right:0;
  top:100%;
  width:100%;
  height:14px;              /* این قسمت فاصله رو پوشش میده */
}

/* اگر زیرمنو سمت چپ می‌افته یا از کادر بیرون می‌زنه */
.ay-menu .sub-menu{
  max-width: min(92vw, 320px);
}

/* موبایل: منوی آفکانواس تداخلی با hover دسکتاپ نداشته باشه */
@media (max-width: 980px){
  .ay-menu li:hover > .sub-menu,
  .ay-menu li:focus-within > .sub-menu{
    display: none;
  }
}

/* =========================
   FIX: dropdown jump (LEVEL 2 / nested submenu)
   ========================= */

/* هر آیتمی که زیرمنو دارد در همه سطوح */
.ay-menu .menu-item-has-children{
  position: relative;
}

/* موقعیت زیرمنوی سطح دوم (RTL: از سمت چپ آیتم باز شود) */
.ay-menu .sub-menu .sub-menu{
  top: 0 !important;
  right: 100% !important;   /* RTL: زیرمنوی دوم سمت چپ آیتمِ داخل زیرمنو باز می‌شود */
  margin-top: 0 !important;
  margin-right: 10px;       /* فاصله ظاهری بین دو باکس */
  z-index: 3100;
}

/* پل hover برای سطح دوم: فاصله بین آیتم سطح دوم و باکس زیرمنوی دوم را پوشش می‌دهد */
.ay-menu .sub-menu > li.menu-item-has-children::after{
  content: "";
  position: absolute;
  top: 0;
  right: 100%;              /* سمت باز شدن زیرمنو */
  width: 14px;              /* پل نامرئی */
  height: 100%;
}

/* زیرمنوی سطح دوم فقط وقتی باز شود که روی آیتم یا خود زیرمنو hover باشد */
.ay-menu .sub-menu > li.menu-item-has-children:hover > .sub-menu,
.ay-menu .sub-menu > li.menu-item-has-children:focus-within > .sub-menu{
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* اگر زیرمنوها با transition لرزش دارند، این کمک می‌کند */
.ay-menu .sub-menu{
  will-change: transform, opacity;
}


/* =========================
   Responsive Header (Pro)
   ========================= */

:root{
  --ay-accent:#ff7a00;
  --ay-navy:#0b2a45;
  --ay-border:rgba(15,23,42,.12);
  --ay-bg:#fff;
  --ay-text:#0f172a;
  --ay-muted:#64748b;
  --ay-radius:16px;
}

.ay-container{ max-width:1200px; margin:0 auto; padding:0 16px; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.ay-header{ background:var(--ay-bg); border-bottom:1px solid var(--ay-border); position:sticky; top:0; z-index:9999; }
.ay-topbar{ background:var(--ay-navy); color:#fff; font-size:12px; }
.ay-topbar-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 16px; }
.ay-topbar a{ color:#fff; opacity:.95; text-decoration:none; }
.ay-sep{ opacity:.55; margin:0 6px; }

.ay-headmain{ background:#fff; }
.ay-headmain-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; }

.ay-burger{
  width:44px; height:44px; border:1px solid var(--ay-border);
  background:#fff; border-radius:14px; display:none;
  align-items:center; justify-content:center; gap:5px; flex-direction:column;
}
.ay-burger span{ width:18px; height:2px; background:var(--ay-text); border-radius:2px; display:block; }

.ay-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ay-text); }
.ay-logo{
  width:44px; height:44px; border-radius:14px; background:rgba(255,122,0,.12);
  display:flex; align-items:center; justify-content:center;
}
.ay-logo svg{ width:22px; height:22px; fill:var(--ay-accent); }
.ay-brand-title{ font-weight:900; font-size:16px; line-height:1.1; }
.ay-brand-tagline{ font-size:12px; color:var(--ay-muted); margin-top:2px; }

.ay-actions{ display:flex; gap:8px; align-items:center; }
.ay-iconbtn{
  width:44px; height:44px; border:1px solid var(--ay-border);
  background:#fff; border-radius:14px; display:flex; align-items:center; justify-content:center;
  position:relative; text-decoration:none;
}
.ay-icon{ width:22px; height:22px; fill:var(--ay-text); opacity:.92; }
.ay-badge{
  position:absolute; top:-6px; left:-6px;
  min-width:18px; height:18px; padding:0 5px;
  border-radius:999px; background:var(--ay-accent); color:#fff;
  font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center;
}

.ay-searchrow{ padding:0 16px 12px; }
.ay-search{ display:flex; gap:10px; align-items:center; width:100%; }
.ay-search input{
  flex:1; height:44px; border-radius:14px; border:1px solid var(--ay-border);
  padding:0 14px; outline:none; background:#fff;
}
.ay-search button{
  height:44px; border-radius:14px; border:1px solid rgba(255,122,0,.35);
  background:var(--ay-accent); color:#fff; font-weight:800; padding:0 14px;
}

.ay-navbar{ border-top:1px solid var(--ay-border); background:#fff; }
.ay-navbar-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; }

.ay-btn{
  height:40px; padding:0 14px; border-radius:14px; font-weight:900;
  display:inline-flex; align-items:center; justify-content:center; text-decoration:none;
}
.ay-btn-accent{ background:var(--ay-accent); color:#fff; border:1px solid rgba(255,122,0,.35); }
.ay-btn-outline{ background:#fff; color:var(--ay-text); border:1px solid var(--ay-border); }
.ay-btn-block{ width:100%; }

.ay-menu{ display:flex; gap:18px; align-items:center; list-style:none; margin:0; padding:0; }
.ay-menu > li > a{ text-decoration:none; color:var(--ay-text); font-weight:800; padding:10px 6px; display:inline-block; }

.ay-menu .menu-item-has-children{ position:relative; }
.ay-menu .sub-menu{
  position:absolute; top:100%; right:0;
  background:#fff; border:1px solid var(--ay-border); border-radius:14px;
  min-width:220px; padding:8px; margin-top:10px;
  opacity:0; visibility:hidden; pointer-events:none;
  box-shadow:0 12px 30px rgba(2,6,23,.08);
}
.ay-menu .sub-menu a{ display:block; padding:10px 10px; border-radius:12px; text-decoration:none; color:var(--ay-text); font-weight:700; }
.ay-menu .sub-menu a:hover{ background:rgba(15,23,42,.05); }
.ay-menu > li:hover > .sub-menu,
.ay-menu > li:focus-within > .sub-menu{ opacity:1; visibility:visible; pointer-events:auto; }

/* nested submenu (fix jump in desktop too) */
.ay-menu .sub-menu .menu-item-has-children{ position:relative; }
.ay-menu .sub-menu .sub-menu{
  top:0; right:100%;
  margin-top:0; margin-right:10px;
}

/* =========================
   Mobile Drawer
   ========================= */

.ay-dim{
  position:fixed; inset:0; background:rgba(2,6,23,.45); z-index:9998;
}
.ay-drawer{
  position:fixed; top:0; right:0; height:100vh; width:min(86vw, 360px);
  background:#fff; z-index:9999;
  transform:translateX(102%); transition:transform .25s ease;
  display:flex; flex-direction:column;
  border-left:1px solid var(--ay-border);
}
.ay-drawer.is-open{ transform:translateX(0); }
.ay-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px; border-bottom:1px solid var(--ay-border);
}
.ay-drawer-title{ font-weight:900; color:var(--ay-text); }
.ay-drawer-close{
  width:40px; height:40px; border-radius:14px;
  border:1px solid var(--ay-border); background:#fff; font-size:22px; line-height:1;
}
.ay-drawer-body{ padding:14px; overflow:auto; }
.ay-drawer-cta{ display:grid; gap:10px; margin-bottom:12px; }

/* Mobile menu */
.ay-mmenu{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.ay-mmenu a{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 12px; border-radius:14px;
  text-decoration:none; color:var(--ay-text); font-weight:800;
  border:1px solid var(--ay-border);
}
.ay-mmenu .sub-menu{
  list-style:none; margin:6px 0 0; padding:0 10px 0 0;
  border-right:2px solid rgba(15,23,42,.08);
  display:none;
}
.ay-mmenu .sub-menu a{
  border:none;
  padding:10px 10px;
  font-weight:700;
}
.ay-mmenu .ay-subtoggle{
  width:34px; height:34px;
  border-radius:12px; border:1px solid var(--ay-border);
  background:#fff; display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 auto;
}
.ay-mmenu .ay-subtoggle::before{ content:"⌄"; font-size:16px; line-height:1; }
.ay-mmenu li.is-open > .sub-menu{ display:block; }
.ay-mmenu li.is-open > a .ay-subtoggle{ transform:rotate(180deg); }

/* =========================
   Responsive switches
   ========================= */

@media (max-width: 980px){
  .ay-navbar{ display:none; }         /* دسکتاپ منو مخفی */
  .ay-burger{ display:flex; }        /* همبرگر فعال */
  .ay-brand-tagline{ display:none; } /* جمع‌وجور */
  .ay-headmain-inner{ padding:10px 12px; }
  .ay-searchrow{ padding:0 12px 12px; }
}

@media (max-width: 420px){
  .ay-brand-title{ font-size:14px; }
  .ay-logo{ width:40px; height:40px; border-radius:14px; }
  .ay-iconbtn{ width:42px; height:42px; }
}




/* =========================
   Header v2 (Mobile-first)
   ========================= */
:root{
  --ay-accent:#ff7a00;
  --ay-navy:#0b2a45;
  --ay-border:rgba(15,23,42,.12);
  --ay-text:#0f172a;
  --ay-muted:#64748b;
  --ay-radius:16px;
}

.ay-container{ max-width:1200px; margin:0 auto; padding:0 16px; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.ay-header{ background:#fff; border-bottom:1px solid var(--ay-border); position:sticky; top:0; z-index:9999; }
.ay-topbar{ background:var(--ay-navy); color:#fff; font-size:12px; }
.ay-topbar-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 16px; }
.ay-topbar a{ color:#fff; opacity:.95; text-decoration:none; }
.ay-sep{ opacity:.55; margin:0 6px; }

.ay-headmain{ background:#fff; }
.ay-headmain-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:10px 16px;
}

.ay-burger{
  width:44px; height:44px; border:1px solid var(--ay-border);
  background:#fff; border-radius:14px;
  display:none; align-items:center; justify-content:center; gap:5px; flex-direction:column;
}
.ay-burger span{ width:18px; height:2px; background:var(--ay-text); border-radius:2px; display:block; }

.ay-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ay-text); }
.ay-logo{
  width:44px; height:44px; border-radius:14px; background:rgba(255,122,0,.12);
  display:flex; align-items:center; justify-content:center;
}
.ay-logo svg{ width:22px; height:22px; fill:var(--ay-accent); }
.ay-brand-title{ font-weight:900; font-size:16px; line-height:1.1; }
.ay-brand-tagline{ font-size:12px; color:var(--ay-muted); margin-top:2px; }

.ay-leftbox{
  display:flex; align-items:center; gap:8px;
  padding:6px; border:1px solid var(--ay-border); border-radius:18px;
  background:#fff;
}
.ay-search-compact{
  display:flex; align-items:center; gap:6px;
  border:1px solid var(--ay-border); border-radius:14px;
  height:40px; padding:0 6px; background:#fff;
}
.ay-search-compact input{
  width:170px; border:0; outline:0; background:transparent;
  padding:0 6px; font-size:13px;
}
.ay-searchbtn{
  width:34px; height:34px; border-radius:12px;
  border:1px solid rgba(255,122,0,.35);
  background:var(--ay-accent); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.ay-iconbtn{
  width:40px; height:40px; border-radius:14px;
  border:1px solid var(--ay-border); background:#fff;
  display:flex; align-items:center; justify-content:center;
  position:relative; text-decoration:none;
}
.ay-ico{ width:20px; height:20px; fill:var(--ay-text); opacity:.92; }
.ay-badge{
  position:absolute; top:-6px; left:-6px;
  min-width:18px; height:18px; padding:0 5px;
  border-radius:999px; background:var(--ay-accent); color:#fff;
  font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center;
}

/* Desktop navbar */
.ay-navbar{ border-top:1px solid var(--ay-border); background:#fff; }
.ay-navbar-inner{ display:flex; align-items:center; justify-content:flex-start; padding:10px 16px; }

.ay-menu{ display:flex; gap:18px; align-items:center; list-style:none; margin:0; padding:0; }
.ay-menu > li > a{ text-decoration:none; color:var(--ay-text); font-weight:800; padding:10px 6px; display:inline-block; }

.ay-menu .menu-item-has-children{ position:relative; }
.ay-menu .sub-menu{
  position:absolute; top:100%; right:0;
  background:#fff; border:1px solid var(--ay-border); border-radius:14px;
  min-width:220px; padding:8px; margin-top:10px;
  opacity:0; visibility:hidden; pointer-events:none;
  box-shadow:0 12px 30px rgba(2,6,23,.08);
}
.ay-menu .sub-menu a{ display:block; padding:10px 10px; border-radius:12px; text-decoration:none; color:var(--ay-text); font-weight:700; }
.ay-menu .sub-menu a:hover{ background:rgba(15,23,42,.05); }
.ay-menu > li:hover > .sub-menu,
.ay-menu > li:focus-within > .sub-menu{ opacity:1; visibility:visible; pointer-events:auto; }

/* nested submenu (stable) */
.ay-menu .sub-menu .menu-item-has-children{ position:relative; }
.ay-menu .sub-menu .sub-menu{ top:0; right:100%; margin-top:0; margin-right:10px; }

/* Drawer */
.ay-dim{ position:fixed; inset:0; background:rgba(2,6,23,.45); z-index:9998; }
.ay-drawer{
  position:fixed; top:0; right:0; height:100vh; width:min(86vw, 360px);
  background:#fff; z-index:9999;
  transform:translateX(102%); transition:transform .25s ease;
  display:flex; flex-direction:column; border-left:1px solid var(--ay-border);
}
.ay-drawer.is-open{ transform:translateX(0); }
.ay-drawer-head{ display:flex; align-items:center; justify-content:space-between; padding:14px; border-bottom:1px solid var(--ay-border); }
.ay-drawer-title{ font-weight:900; color:var(--ay-text); }
.ay-drawer-close{ width:40px; height:40px; border-radius:14px; border:1px solid var(--ay-border); background:#fff; font-size:22px; line-height:1; }
.ay-drawer-body{ padding:14px; overflow:auto; }

.ay-mmenu{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.ay-mmenu a{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px; border-radius:14px; text-decoration:none; color:var(--ay-text);
  font-weight:800; border:1px solid var(--ay-border);
}
.ay-mmenu .sub-menu{
  list-style:none; margin:6px 0 0; padding:0 10px 0 0;
  border-right:2px solid rgba(15,23,42,.08);
  display:none;
}
.ay-mmenu .sub-menu a{ border:none; padding:10px 10px; font-weight:700; }
.ay-mmenu .ay-subtoggle{
  width:34px; height:34px; border-radius:12px; border:1px solid var(--ay-border);
  background:#fff; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
}
.ay-mmenu .ay-subtoggle::before{ content:"⌄"; font-size:16px; line-height:1; }
.ay-mmenu li.is-open > .sub-menu{ display:block; }
.ay-mmenu li.is-open > a .ay-subtoggle{ transform:rotate(180deg); }

/* =========================
   Mobile rules (force)
   ========================= */
@media (max-width: 980px){
  .ay-navbar{ display:none !important; }     /* منوی دسکتاپ مخفی */
  .ay-burger{ display:flex !important; }    /* همبرگر فعال */
  .ay-brand-tagline{ display:none !important; }

  .ay-headmain-inner{ padding:10px 12px !important; gap:10px !important; }
  .ay-leftbox{ padding:6px !important; border-radius:18px !important; }

  .ay-search-compact input{ width:120px !important; } /* جمع‌وجورتر */
}

@media (max-width: 420px){
  .ay-brand-title{ font-size:14px !important; }
  .ay-logo{ width:40px !important; height:40px !important; }
  .ay-iconbtn{ width:38px !important; height:38px !important; border-radius:13px !important; }
  .ay-search-compact{ height:38px !important; }
  .ay-searchbtn{ width:32px !important; height:32px !important; }
  .ay-search-compact input{ width:92px !important; font-size:12px !important; }
}

/* =============================
   FIXES (mobile menu + grid + breadcrumbs)
   ============================= */

/* Mobile drawer: prevent body scroll */
body.ay-no-scroll{overflow:hidden !important;}

/* Drawer submenu toggle button */
.ay-drawer .ay-sub-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:0;
  background:transparent;
  border-radius:12px;
  cursor:pointer;
}
.ay-drawer li.menu-item-has-children{position:relative;}
.ay-drawer li.menu-item-has-children > a{padding-left:44px;}
.ay-drawer li.menu-item-has-children.ay-sub-open > .ay-sub-toggle span{transform:rotate(-90deg);display:inline-block;}
.ay-drawer .sub-menu{
  margin:6px 0 0;
  padding:0 12px 0 0;
  border-right:2px solid rgba(0,0,0,.06);
}
.ay-drawer .sub-menu a{opacity:.92;}

/* Products grid on mobile: 2 columns (only very small screens: 1 column) */
@media (max-width: 640px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
  }
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product{
    width:auto !important;
    margin:0 !important;
    float:none !important;
  }
}
@media (max-width: 380px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns:repeat(1, minmax(0, 1fr)) !important;
  }
}

/* Breadcrumb: hide any injected raw tags and make it clean */
.woocommerce-breadcrumb, .ay-breadcrumbs{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
  margin:10px 0;
}
.woocommerce-breadcrumb a, .ay-breadcrumbs a{color:inherit; text-decoration:none;}
.woocommerce-breadcrumb a:hover, .ay-breadcrumbs a:hover{text-decoration:underline;}

/* Desktop submenu hover stability (prevents "jump" between level 1 -> level 2) */
.ay-menu > li.menu-item-has-children{position:relative;}
.ay-menu > li.menu-item-has-children > .sub-menu{
  top:calc(100% + 6px);
}
.ay-menu > li.menu-item-has-children:hover > .sub-menu{display:block;}
.ay-menu > li.menu-item-has-children::after{
  content:"";
  position:absolute;
  right:0;
  left:0;
  top:100%;
  height:10px;
}

/* =====================================================
   ✅ FINAL OVERRIDES (v3)
   - منوی موبایل: قابل کلیک (z-index)
   - آرشیو محصولات: تمام‌عرض و ریسپانسیو
   ===================================================== */

.ay-burger{position:relative; z-index:80; touch-action:manipulation;}
.ay-drawer{z-index:70;}
.ay-drawer-backdrop{z-index:60;}

/* Shop archive layout should stack on mobile */
@media (max-width: 900px){
  .ay-shop-layout{grid-template-columns:1fr !important;}
  .ay-shop-main{min-width:0;}
  .ay-shop-side{margin-top:12px;}
}

/* Product grid: 2 columns on most mobiles, 1 column on very small screens */
@media (max-width: 680px){
  .woocommerce ul.products{grid-template-columns:repeat(2, minmax(0, 1fr)) !important;}
}
@media (max-width: 420px){
  .woocommerce ul.products{grid-template-columns:1fr !important;}
}

/* =====================================================
   FIXES v4 (mobile menu + archive responsiveness)
   ===================================================== */

/* Ensure header stays above sliders/overlays (fixes burger not clickable on home) */
.ay-header{position:sticky;top:0;z-index:10000;}
.ay-header *{pointer-events:auto;}

/* Drawer must be above everything */
.ay-drawer,.ay-drawer-backdrop{z-index:10001;}

/* Woo archive layout: never keep empty sidebar gap on mobile */
.ay-shop-layout{display:grid;grid-template-columns:1fr 320px;gap:16px;align-items:start;}
@media (max-width: 991.98px){
  .ay-shop-layout{grid-template-columns:1fr;}
  .ay-shop-sidebar{order:2;width:100%;}
  .ay-shop-main{order:1;width:100%;}
}

/* Product grid: 4 desktop, 2 mobile, 1 very small */
.woocommerce ul.products, .woocommerce-page ul.products{display:grid;gap:14px;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;margin:0;}
@media (max-width: 991.98px){
  .woocommerce ul.products, .woocommerce-page ul.products{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width: 767.98px){
  .woocommerce ul.products, .woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 420px){
  .woocommerce ul.products, .woocommerce-page ul.products{grid-template-columns:repeat(1,minmax(0,1fr));}
}

/* Make cards fill width */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{width:100% !important;float:none !important;}

/* =====================================================
   FIXES v4 (mobile menu + archive responsiveness)
   ===================================================== */

/* Ensure header stays above sliders/overlays (fixes burger not clickable on home) */
.ay-header{position:sticky;top:0;z-index:10000;}

/* Drawer must be above everything */
.ay-drawer-backdrop{z-index:10010;}
.ay-drawer{z-index:10020;}

/* Woo archive layout: no empty white sidebar on mobile */
.ay-shop-layout{width:100%;}
@media (max-width: 991px){
  .ay-shop-layout{display:block !important;}
  .ay-shop-main{width:100% !important;}
  .ay-shop-sidebar{width:100% !important; max-width:none !important; margin-top:14px;}
}

/* Products grid: fill viewport and be truly responsive */
.woocommerce ul.products{width:100% !important; margin:0 !important; padding:0 !important;}
.woocommerce ul.products li.product{width:auto !important; margin:0 !important;}
.woocommerce ul.products{display:grid !important; grid-template-columns:repeat(4, minmax(0,1fr)) !important; gap:12px !important;}
@media (max-width: 992px){
  .woocommerce ul.products{grid-template-columns:repeat(3, minmax(0,1fr)) !important;}
}
@media (max-width: 768px){
  .woocommerce ul.products{grid-template-columns:repeat(2, minmax(0,1fr)) !important;}
}
@media (max-width: 420px){
  .woocommerce ul.products{grid-template-columns:1fr !important;}
}

/* Prevent product cards from collapsing / leaving big blanks */
.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:38px;}

/* =========================================
   ✅ Mobile safety overrides (v5)
   ========================================= */
@media (max-width: 980px){
  .ay-shop-layout{grid-template-columns:1fr !important;grid-template-areas:"main" "sidebar" !important;}
  .ay-shop-main{min-width:0;}
  .ay-shop-sidebar{width:100%;}
}

/* Hide brand text on small screens (logo only) */
@media (max-width: 520px){
  .ay-brand-text{display:none !important;}
  .ay-topbar .container{justify-content:center;gap:10px;}
}

/* ===== Mobile fixes (archive full width + no empty sidebar) ===== */
@media (max-width: 767px){
  .ay-shop-layout{grid-template-columns:1fr !important;gap:12px !important;}
  .ay-shop-sidebar{display:none !important;}
  .ay-shop-main{width:100% !important;min-width:0 !important;}
  .woocommerce ul.products{width:100% !important;margin:0 !important;}
}
@media (max-width: 420px){
  .woocommerce ul.products{grid-template-columns:repeat(2, minmax(0,1fr)) !important;}
}

/* ===== AY Mobile Drawer FIX (safe) ===== */
.ay-dim{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
  opacity: 0;
  transition: opacity .2s ease;
}
.ay-dim.is-open{ opacity: 1; }

.ay-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 340px);
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(110%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 40px rgba(0,0,0,.12);
}
.ay-drawer.is-open{ transform: translateX(0); }

html.ay-drawer-open,
body.ay-drawer-open{
  overflow: hidden !important;
}

/* Drawer head */
.ay-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}
.ay-drawer-title{ font-weight: 800; }
.ay-drawer-close{
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

/* Mobile menu */
.ay-mmenu, .ay-drawer-nav ul{
  list-style: none;
  padding: 10px 12px;
  margin: 0;
}
.ay-mmenu li{
  position: relative;
  border-bottom: 1px solid #f1f1f1;
}
.ay-mmenu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

/* Subtoggle */
.ay-subtoggle{
  position:absolute;
  left: 8px;
  top: 8px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ay-mmenu li.menu-item-has-children > a{
  padding-left: 56px; /* جا برای دکمه */
}
.ay-mmenu li.is-open > .ay-subtoggle span{
  transform: rotate(180deg);
  display:inline-block;
}

/* nested UL */
.ay-mmenu ul{
  padding: 0 10px 10px 10px;
  margin: 0;
}
.ay-mmenu ul li a{
  font-weight: 600;
  opacity: .95;
  padding: 10px 10px;
}

/* Only mobile: show burger / drawer */
@media (min-width: 992px){
  .ay-burger{ display:none !important; }
  .ay-drawer, .ay-dim{ display:none !important; }
}




/* ===== AY Mobile Drawer - FIX ===== */
html.ay-drawer-open, body.ay-drawer-open{ overflow:hidden !important; }

/* ensure burger is clickable */
.ay-burger{ position:relative; z-index:10005; touch-action:manipulation; }

/* backdrop */
.ay-dim{
  position:fixed; inset:0;
  background:rgba(0,0,0,.38);
  z-index:10000;
  opacity:0;
  transition:opacity .2s ease;
}
.ay-dim.is-open{ opacity:1; }

/* drawer */
.ay-drawer{
  position:fixed; top:0; right:0;
  width:min(86vw, 340px);
  height:100vh;
  background:#fff;
  z-index:10001;
  transform:translateX(110%);
  transition:transform .22s ease;
  box-shadow:-18px 0 40px rgba(0,0,0,.12);
  display:flex; flex-direction:column;
}
.ay-drawer.is-open{ transform:translateX(0); }

/* mobile menu list */
.ay-mmenu{ list-style:none; margin:0; padding:10px 12px; }
.ay-mmenu li{ position:relative; border-bottom:1px solid #f1f1f1; }
.ay-mmenu a{ display:block; padding:12px 10px; text-decoration:none; font-weight:700; color:inherit; }

/* subtoggle */
.ay-subtoggle{
  position:absolute; left:8px; top:8px;
  width:38px; height:38px;
  border-radius:10px;
  border:1px solid #eee;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
}
.ay-mmenu li.menu-item-has-children > a{ padding-left:56px; }
.ay-mmenu li.is-open > .ay-subtoggle span{ transform:rotate(180deg); display:inline-block; }
.ay-mmenu ul{ list-style:none; margin:0; padding:0 10px 10px 10px; }
.ay-mmenu ul a{ font-weight:600; padding:10px 10px; }

/* show drawer only on mobile */
@media (min-width: 992px){
  .ay-drawer,.ay-dim{ display:none !important; }
  .ay-burger{ display:none !important; }
}


.ay-nav-toggle{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}

.ay-dim{
  position:fixed;inset:0;background:rgba(0,0,0,.38);
  z-index:10000;opacity:0;pointer-events:none;transition:opacity .2s ease;
}

.ay-drawer{
  position:fixed;top:0;right:0;height:100vh;width:min(86vw,340px);
  background:#fff;z-index:10001;transform:translateX(110%);
  transition:transform .22s ease;box-shadow:-18px 0 40px rgba(0,0,0,.12);
  display:flex;flex-direction:column;
}

.ay-nav-toggle:checked ~ .ay-dim{opacity:1;pointer-events:auto;}
.ay-nav-toggle:checked ~ .ay-drawer{transform:translateX(0);}

@media (min-width:992px){
  .ay-burger,.ay-dim,.ay-drawer{display:none!important;}
}

/* FIX mobile menu click issue */
.ay-header,
.ay-header * {
  pointer-events: auto !important;
}

.ay-burger {
  pointer-events: auto !important;
  cursor: pointer;
}


/* ===== Mobile Drawer Menu (Nice Submenus) ===== */

.ay-drawer {
  width: min(86vw, 360px);
  background: #fff;
}

.ay-drawer-body {
  padding: 12px 14px 18px;
}

.ay-mmenu,
.ay-mmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* هر آیتم منو مثل کارت */
.ay-mmenu > li {
  margin: 10px 0;
}

.ay-mmenu > li > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}





/* آیتم فعال */
.ay-mmenu li.current-menu-item > a,
.ay-mmenu li.current-menu-ancestor > a{
  border-color: rgba(255, 140, 0, .35);
  background: rgba(255, 122, 0, .06);
}

/* Festival */
.ay-festival-wrapper{
  text-align:center;
  padding:30px 15px;
}

.ay-festival-title{
  font-size:26px;
  margin-bottom:20px;
}

.ay-festival-button-wrap{
  margin-bottom:30px;
}

.ay-festival-btn{
  display:inline-block;
  padding:14px 30px;
  background:#e60023;
  color:#fff;
  font-weight:700;
  border-radius:8px;
  text-decoration:none;
  animation: ayBlink 1.2s infinite;
}

@keyframes ayBlink{
  0%{ transform: scale(1); opacity:1; }
  50%{ transform: scale(1.07); opacity:0.85; }
  100%{ transform: scale(1); opacity:1; }
}

@media (max-width:768px){
  .ay-festival-btn{
    width:100%;
    display:block;
  }
}


/* =========================================
   FIX: Shop archive width/shrink on desktop
   (prevents flex parents from squeezing layout)
========================================= */
@media (min-width: 992px){

  body.woocommerce-shop .ay-archive-wrap,
  body.post-type-archive-product .ay-archive-wrap,
  body.tax-product_cat .ay-archive-wrap,
  body.tax-product_tag .ay-archive-wrap{
    display:block !important;      /* اگر جایی flex شده باشد */
    width:100% !important;
    max-width:none !important;
  }

  body.woocommerce-shop .ay-archive-card,
  body.post-type-archive-product .ay-archive-card,
  body.tax-product_cat .ay-archive-card,
  body.tax-product_tag .ay-archive-card{
    display:block !important;      /* اگر جایی flex شده باشد */
    width:100% !important;
    max-width:none !important;
  }

  body.woocommerce-shop .ay-shop-layout,
  body.post-type-archive-product .ay-shop-layout,
  body.tax-product_cat .ay-shop-layout,
  body.tax-product_tag .ay-shop-layout{
    width:100% !important;
    max-width:none !important;
    flex: 1 1 100% !important;     /* اگر parent فلکس باشد، دیگه جمع نشود */
    min-width: 0 !important;
  }

  body.woocommerce-shop .ay-shop-main,
  body.post-type-archive-product .ay-shop-main,
  body.tax-product_cat .ay-shop-main,
  body.tax-product_tag .ay-shop-main{
    width:100% !important;
    min-width:0 !important;
  }
}




/* =========================================
   FINAL: Sidebar on RIGHT in RTL (Desktop)
========================================= */
@media (min-width: 992px){

  body.woocommerce-shop .ay-shop-layout,
  body.post-type-archive-product .ay-shop-layout,
  body.tax-product_cat .ay-shop-layout,
  body.tax-product_tag .ay-shop-layout{
    display:grid !important;
    grid-template-columns: 320px 1fr !important;     /* sidebar | main */
    grid-template-areas: "sidebar main" !important;  /* sidebar right in RTL via placement below */
    gap:14px !important;
    align-items:start !important;
  }

  body.woocommerce-shop .ay-shop-main,
  body.post-type-archive-product .ay-shop-main,
  body.tax-product_cat .ay-shop-main,
  body.tax-product_tag .ay-shop-main{
    grid-area: main !important;
    min-width:0 !important;
  }

  body.woocommerce-shop .ay-shop-sidebar,
  body.post-type-archive-product .ay-shop-sidebar,
  body.tax-product_cat .ay-shop-sidebar,
  body.tax-product_tag .ay-shop-sidebar{
    grid-area: sidebar !important;
    position:sticky;
    top:92px;
  }
}

/* Mobile: stack */
@media (max-width: 991.98px){
  .ay-shop-layout{grid-template-columns:1fr !important; grid-template-areas:"main" "sidebar" !important;}
  .ay-shop-sidebar{position:static !important; top:auto !important;}
}

/* =========================
   AY Floating Action Buttons
========================= */
.ay-fab{
  position:fixed;
  left:14px;
  bottom:14px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:10px;
  direction:rtl;
}

.ay-fab__toggle{
  width:52px;
  height:52px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  box-shadow:0 16px 34px rgba(2,6,23,.14);
  cursor:pointer;
  display:grid;
  place-items:center;
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.ay-fab__toggle:hover{transform:translateY(-1px)}
.ay-fab__icon{font-size:20px; line-height:1}

.ay-fab__menu{
  display:flex;
  flex-direction:column;
  gap:10px;
}



/* ✅ FORCE: Sidebar always on RIGHT (archive/shop) */
body.woocommerce-shop .ay-shop-layout,
body.post-type-archive-product .ay-shop-layout,
body.tax-product_cat .ay-shop-layout,
body.tax-product_tag .ay-shop-layout{
  display:grid !important;
  grid-template-columns: 1fr 320px !important; /* ستون دوم = سایدبار */
  grid-template-areas: "main sidebar" !important;
  gap:14px !important;
  align-items:start !important;
}

body.woocommerce-shop .ay-shop-main,
body.post-type-archive-product .ay-shop-main,
body.tax-product_cat .ay-shop-main,
body.tax-product_tag .ay-shop-main{
  grid-area: main !important;
  min-width:0 !important;
}

body.woocommerce-shop .ay-shop-sidebar,
body.post-type-archive-product .ay-shop-sidebar,
body.tax-product_cat .ay-shop-sidebar,
body.tax-product_tag .ay-shop-sidebar{
  grid-area: sidebar !important;
  min-width:0 !important;
}

/* موبایل: زیر هم */
@media (max-width:980px){
  body.woocommerce-shop .ay-shop-layout,
  body.post-type-archive-product .ay-shop-layout,
  body.tax-product_cat .ay-shop-layout,
  body.tax-product_tag .ay-shop-layout{
    grid-template-columns:1fr !important;
    grid-template-areas:"main" "sidebar" !important;
  }
  body.woocommerce-shop .ay-shop-sidebar,
  body.post-type-archive-product .ay-shop-sidebar,
  body.tax-product_cat .ay-shop-sidebar,
  body.tax-product_tag .ay-shop-sidebar{
    position:static !important;
    top:auto !important;
  }
}




/* =========================
   AY Floating Actions (PRO)
========================= */
.ay-fab{
  position:fixed;
  left:14px;
  bottom:14px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:10px;
  direction:rtl;
}

/* دکمه اصلی */
.ay-fab__toggle{
  width:48px;
  height:48px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  box-shadow:0 14px 30px rgba(2,6,23,.14);
  cursor:pointer;
  display:grid;
  place-items:center;
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.ay-fab__toggle:hover{transform:translateY(-1px)}
.ay-fab__icon{font-size:18px; line-height:1}

/* منو: پیش‌فرض بسته (که روی محتوا نیفته) */
.ay-fab__menu{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* آیتم‌ها */
.ay-fab__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 12px 26px rgba(2,6,23,.10);
  min-width:200px;
  font-weight:900;
  color:var(--navy);
  transition:transform .12s ease, opacity .12s ease;
}
.ay-fab__item:hover{transform:translateY(-1px)}
.ay-fab__i{width:26px; height:26px; display:grid; place-items:center; font-size:16px}
.ay-fab__t{font-size:13px}

/* دسکتاپ: فقط با hover باز شود (خیلی تمیز و مزاحم نیست) */
@media (min-width:981px){
  .ay-fab__menu[hidden]{display:none !important;}
  .ay-fab:hover .ay-fab__menu{display:flex;}
}

/* موبایل: کاملاً مینیمال */
@media (max-width:980px){
  .ay-fab{left:12px; bottom:12px; gap:8px}
  .ay-fab__toggle{width:44px;height:44px;border-radius:14px;opacity:.92}
  .ay-fab__item{min-width:180px;border-radius:14px}
}

/* هنگام اسکرول در موبایل: کم‌رنگ‌تر */
.ay-fab.is-dim .ay-fab__toggle{opacity:.70; box-shadow:0 10px 18px rgba(2,6,23,.10)}


/* =========================
   AY Floating Actions (FINAL)
========================= */
#ayFab.ay-fab{
  position:fixed !important;
  left:18px !important;
  bottom:18px !important;
  z-index:999999 !important;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  direction:rtl;

  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
}

/* Toggle button (bigger + premium) */
.ay-fab__toggle{
  width:64px;
  height:64px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.55);
  background: linear-gradient(135deg, #ff7a00, #ffb200);
  box-shadow:
    0 18px 44px rgba(2,6,23,.18),
    0 16px 34px rgba(255,122,0,.25);
  cursor:pointer;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
  transition: transform .12s ease, filter .12s ease;
}

/* Navy ring */
.ay-fab__toggle::before{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:20px;
  background: radial-gradient(circle at 30% 30%, rgba(11,31,58,.18), rgba(11,31,58,.02) 60%);
}

/* Glow ring */
.ay-fab__toggle::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:28px;
  background: radial-gradient(circle, rgba(255,122,0,.25), rgba(255,122,0,0) 60%);
  opacity:.9;
  filter: blur(2px);
  pointer-events:none;
}

.ay-fab__toggle:hover{transform: translateY(-1px)}
.ay-fab__toggle:active{transform: translateY(0) scale(.98)}

/* SVG Icon styling */
.ay-fab__svg{
  width:28px;
  height:28px;
  fill:#0b1f3a; /* navy */
  position:relative;
  z-index:1;
  filter: drop-shadow(0 6px 14px rgba(11,31,58,.18));
}

/* Menu container */
.ay-fab__menu{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Items (premium pill) */
.ay-fab__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  min-width:230px;
  border-radius:18px;
  background: rgba(255,255,255,.94);
  border:1px solid rgba(11,31,58,.12);
  box-shadow: 0 18px 40px rgba(2,6,23,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color:#0b1f3a;
  font-weight:950;
  transition: transform .14s ease;
}
.ay-fab__item:hover{transform: translateY(-1px)}

/* small icon bubble */
.ay-fab__i{
  width:38px;height:38px;
  border-radius:16px;
  display:grid;place-items:center;
  background: rgba(11,31,58,.06);
  border:1px solid rgba(11,31,58,.10);
  font-size:18px;
}
.ay-fab__t{font-size:13.5px}

/* =========================
   Desktop: MENU OPEN (always)
========================= */
@media (min-width: 981px){
  /* دسکتاپ: منو همیشه باز */
  .ay-fab__menu{display:flex !important;}
}

/* =========================
   Mobile: MENU CLOSED by default
   (only toggle visible)
========================= */
@media (max-width: 980px){
  #ayFab.ay-fab{left:12px !important; bottom:12px !important;}
  .ay-fab__toggle{width:58px;height:58px;border-radius:20px;}
  .ay-fab__svg{width:26px;height:26px;}
  .ay-fab__item{min-width:200px;border-radius:16px;padding:11px 12px;}

  /* موبایل: اگر بسته بود hidden */
  .ay-fab__menu[hidden]{display:none !important;}
}

/* =========================
   Attention animation (every 1s)
========================= */
@keyframes ayBuzz {
  0%   { transform: translateX(0) rotate(0deg); }
  15%  { transform: translateX(-1px) rotate(-1deg); }
  30%  { transform: translateX(2px) rotate(1deg); }
  45%  { transform: translateX(-2px) rotate(-1deg); }
  60%  { transform: translateX(2px) rotate(1deg); }
  75%  { transform: translateX(-1px) rotate(0deg); }
  100% { transform: translateX(0) rotate(0deg); }
}
@keyframes ayPulseRing {
  0% { box-shadow: 0 18px 44px rgba(2,6,23,.18), 0 16px 34px rgba(255,122,0,.25); }
  50%{ box-shadow: 0 22px 52px rgba(2,6,23,.22), 0 20px 44px rgba(255,122,0,.33); }
  100%{ box-shadow: 0 18px 44px rgba(2,6,23,.18), 0 16px 34px rgba(255,122,0,.25); }
}

.ay-fab.is-attn .ay-fab__toggle{
  animation: ayBuzz .22s ease-in-out, ayPulseRing 1.1s ease-in-out;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  .ay-fab.is-attn .ay-fab__toggle{animation:none !important;}
}


/* حذف فقط بنر/تایمر بالایی (قبل از هدر) */
body > .ay-bf-top,
body > .ay-bf-countdown{
  display:none !important;
}

/* ✅ SHOP SIDEBAR RIGHT (RTL FIX) */
@media (min-width: 992px){
  body.rtl .ay-shop-layout{
    grid-template-columns: 320px 1fr !important;        /* ستون اول = سمت راست در RTL */
    grid-template-areas: "sidebar main" !important;     /* سایدبار سمت راست */
  }
  body.rtl .ay-shop-sidebar{ grid-area: sidebar !important; }
  body.rtl .ay-shop-main{ grid-area: main !important; }
}

/* ✅ MOBILE DRAWER SUBMENU FIX */
.ay-drawer .sub-menu{ display:none; }  /* حالت پیش‌فرض بسته */
.ay-drawer li.ay-sub-open > .sub-menu{ display:block; }  /* وقتی JS کلاس داد، باز شود */

/* اگر بعضی جاها با is-open باز می‌کنی، این هم پوشش بده */
.ay-drawer li.is-open > .sub-menu{ display:block; }

.ay-drawer .ay-sub-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
}
.ay-drawer li.ay-sub-open > .ay-sub-toggle{ transform:rotate(180deg); }

/* =========================
   Mobile Drawer - Premium Glass UI
   ========================= */

/* بدنه منو */
.ay-drawer{
  width: min(86vw, 360px) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.78) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
  overflow: hidden;
}

/* هدر منو (بالا) */
.ay-drawer-head,
.ay-drawer-headbar,
.ay-drawer-header{
  padding: 14px 14px !important;
  background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(15,23,42,.78)) !important;
  color:#fff !important;
}

/* لیست منو */
.ay-drawer-nav ul,
.ay-drawer .menu,
.ay-drawer .ay-mmenu{
  list-style: none;
  margin: 0 !important;
  padding: 12px !important;
}

/* آیتم‌ها */
.ay-drawer .menu > li,
.ay-drawer .ay-mmenu > li{
  margin: 8px 0 !important;
}

/* لینک اصلی هر آیتم */
.ay-drawer .menu a,
.ay-drawer .ay-mmenu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  padding: 12px 12px !important;
  border-radius: 14px !important;

  background: rgba(255,255,255,.65);
  border: 1px solid rgba(15,23,42,.08);
  color: #0f172a !important;
  font-weight: 800;
  font-size: 14px;
  text-decoration:none !important;

  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.ay-drawer .menu a:active,
.ay-drawer .ay-mmenu a:active{
  transform: scale(.99);
}

/* حالت هاور/اکتیو */
.ay-drawer .menu li.current-menu-item > a,
.ay-drawer .menu li.current-menu-ancestor > a,
.ay-drawer .ay-mmenu li.current-menu-item > a,
.ay-drawer .ay-mmenu li.current-menu-ancestor > a{
  background: rgba(255,140,0,.16) !important;
  border-color: rgba(255,140,0,.28) !important;
  box-shadow: 0 10px 26px rgba(255,140,0,.10);
}

/* دکمه ساب‌منو (فلش‌ها) */
.ay-drawer .ay-sub-toggle,
.ay-drawer .ay-subtoggle{
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  border-radius: 12px !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  background: rgba(255,255,255,.75) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 8px 20px rgba(2,6,23,.08);
  transition: transform .2s ease;
}

/* چرخش فلش وقتی باز میشه */
.ay-drawer li.ay-sub-open > .ay-sub-toggle,
.ay-drawer li.is-open > .ay-subtoggle{
  transform: rotate(180deg);
}

/* ساب‌منو: فشرده و مرتب */
.ay-drawer .sub-menu{
  margin: 8px 0 0 !important;
  padding: 10px !important;
  border-radius: 14px !important;
  background: rgba(15,23,42,.04) !important;
  border: 1px dashed rgba(15,23,42,.12);
}

.ay-drawer .sub-menu a{
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  background: rgba(255,255,255,.72) !important;
}

/* بک‌دراپ پشت منو */
.ay-dim{
  background: rgba(2,6,23,.55) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}




/* Hide billing country field completely (label + wrapper) */
#billing_country_field,
.woocommerce-billing-fields #billing_country_field,
.woocommerce-checkout #billing_country_field,
#billing_country_field label,
#billing_country_field .woocommerce-input-wrapper,
#billing_country_field select,
#billing_country_field .select2,
#billing_country_field .select2-container {
  display: none !important;
}

/* In case any theme prints the label text separately */
label[for="billing_country"]{
  display:none !important;
}


/* === Home: equal feature cards height === */
.features{align-items:stretch}
.feature{align-items:center;min-height:88px}
.feature > div:last-child{display:flex;flex-direction:column;gap:2px}

/* === Archive category description: style headings when expanded === */
.ay-term-desc__full h2,
.ay-term-desc__full h3{margin:10px 0 6px;color:var(--navy);font-weight:900;line-height:1.5}
.ay-term-desc__full h2{font-size:18px}
.ay-term-desc__full h3{font-size:16px}
.ay-term-desc__full ul{margin:8px 0 8px;padding:0 18px;line-height:2}
.ay-term-desc__full a{text-decoration:underline}

/* === Home: 3 category blocks (title + cards) === */
.ay-catblocks-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}
.ay-catblock{grid-column:span 4;padding:14px}
.ay-catblock__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.ay-catblock__title{margin:0;color:var(--navy);font-size:16px;font-weight:900}
.ay-catblock__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.ay-catcard{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px;border:1px solid rgba(11,31,58,.10);border-radius:16px;background:#fff;transition:transform .12s ease, box-shadow .12s ease}
.ay-catcard:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(11,31,58,.10)}
.ay-catcard__thumb{width:88px;height:88px;border-radius:18px;background:linear-gradient(180deg, rgba(11,31,58,.06), rgba(255,255,255,.0));display:flex;align-items:center;justify-content:center;overflow:hidden}
.ay-catcard__thumb img{width:100%;height:100%;object-fit:cover}
.ay-catcard__name{font-weight:900;color:var(--text);text-align:center}
.ay-catcard__meta{color:var(--muted);font-weight:700;font-size:12px}

/* === Home: trust + FAQ (clean) === */
.ay-trust-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}
.ay-trust-card{grid-column:span 6;padding:16px}
.ay-trust-card__title{margin:0 0 10px;color:var(--navy);font-weight:900;font-size:16px}
.ay-trust-list{margin:0;padding:0 18px;line-height:2;color:var(--text);font-weight:600}
.ay-faq{display:flex;flex-direction:column;gap:10px}
.ay-faq-item{border:1px solid rgba(11,31,58,.10);border-radius:16px;padding:10px 12px;background:#fff}
.ay-faq-item > summary{cursor:pointer;font-weight:900;color:var(--text);list-style:none}
.ay-faq-item > summary::-webkit-details-marker{display:none}
.ay-faq-body{color:var(--muted);margin-top:6px;line-height:1.9;font-weight:600}

/* responsive */
@media (max-width: 980px){
  .ay-catblock{grid-column:span 12}
  .ay-catblock__grid{grid-template-columns:repeat(3,1fr)}
  .ay-trust-card{grid-column:span 12}
}
@media (max-width: 560px){
  .ay-catblock__grid{grid-template-columns:repeat(2,1fr)}
}

/* === v127: Front-page horizontal improvements === */
/* Ensure sections align with site container */
.ay-home-catblocks .ay-container,
.ay-blog-section .ay-container,
.ay-why .ay-container{width:100%}

/* Category blocks: stack + horizontal scroller */
.ay-catblocks-stack{display:flex;flex-direction:column;gap:12px}
.ay-catblock{padding:14px}
.ay-catblock__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.ay-catblock__hint{font-size:12px;color:var(--muted);font-weight:700;white-space:nowrap}

.ay-catblock__scroller{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:4px 2px 10px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.ay-catblock__scroller::-webkit-scrollbar{height:8px}
.ay-catblock__scroller::-webkit-scrollbar-thumb{background:rgba(11,31,58,.15);border-radius:999px}

.ay-catcard{
  min-width: 180px;
  max-width: 220px;
  flex:0 0 auto;
  scroll-snap-align:start;
}

/* Blog section: fill width, horizontal on desktop */
.ay-blog-wrap{max-width:none;width:100%;padding:28px 18px 22px}
.ay-blog-grid{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.ay-blog-grid::-webkit-scrollbar{height:10px}
.ay-blog-grid::-webkit-scrollbar-thumb{background:rgba(255,255,255,.35);border-radius:999px}
.ay-blog-card{min-width: 300px;max-width: 340px;flex:0 0 auto;scroll-snap-align:start}

@media (max-width: 900px){
  .ay-blog-card{min-width: 260px}
}
@media (max-width: 600px){
  .ay-blog-wrap{padding:18px 12px}
  .ay-blog-card{min-width: 80vw;max-width: 86vw}
}

/* Why AmirYadak: automotive themed, lively */
.ay-why-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px;align-items:stretch}
.ay-why-hero{grid-column:span 8;padding:18px;position:relative;overflow:hidden}
.ay-why-faq{grid-column:span 4;padding:18px}
.ay-why-hero:before{
  content:"";
  position:absolute;inset:-2px;
  background:radial-gradient(1200px 380px at 85% -10%, rgba(255,122,0,.22), transparent 55%),
             radial-gradient(900px 320px at 10% 10%, rgba(31,91,143,.18), transparent 55%);
  pointer-events:none;
}
.ay-why-hero > *{position:relative}
.ay-why-hero__title{margin:0 0 6px;color:var(--navy);font-size:18px;font-weight:900}
.ay-why-hero__subtitle{margin:0;color:var(--muted);font-weight:700;line-height:1.9}
.ay-why-hero__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.ay-why-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}
.ay-badge-pill{background:rgba(11,31,58,.06);border:1px solid rgba(11,31,58,.10);padding:7px 10px;border-radius:999px;font-weight:900;font-size:12px;color:var(--navy)}

.ay-why-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 14px}
.ay-why-point{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid rgba(11,31,58,.10);border-radius:16px;background:rgba(255,255,255,.82)}
.ay-why-point strong{display:block;color:var(--text);font-weight:900}
.ay-why-point small{display:block;color:var(--muted);font-weight:700;line-height:1.8;margin-top:2px}
.ay-why-ico{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:rgba(255,122,0,.10);border:1px solid rgba(255,122,0,.22);font-size:18px}

.ay-why-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.ay-why-faq__title{margin:0 0 10px;color:var(--navy);font-weight:900;font-size:16px}

@media (max-width: 980px){
  .ay-why-hero{grid-column:span 12}
  .ay-why-faq{grid-column:span 12}
}
@media (max-width: 560px){
  .ay-why-points{grid-template-columns:1fr}
}


/* =====================================================
   Blog – Single Post Layout (Isaco style)
   ===================================================== */
.post-page .container{max-width:1200px}
.post-grid{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:18px;
  align-items:start;
}
@media (max-width: 980px){
  .post-grid{grid-template-columns:1fr; gap:14px;}
}

.post-article{position:relative; overflow:hidden}
.post-header{margin-bottom:14px}
.post-badges{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.post-badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;
  background:rgba(255,122,0,.10);
  border:1px solid rgba(255,122,0,.22);
  color:var(--navy);
  font-weight:1000;
  font-size:12px;
  text-decoration:none !important;
}
.post-badge:hover{background:rgba(255,122,0,.14);border-color:rgba(255,122,0,.35)}
.post-badge-muted{background:rgba(11,31,58,.05);border-color:rgba(11,31,58,.10);color:var(--muted)}
.post-title{
  margin:0 0 8px;
  color:var(--navy);
  font-size:26px;
  line-height:1.35;
}
@media (max-width:680px){.post-title{font-size:20px}}
.post-meta{
  display:flex; flex-wrap:wrap; gap:8px;
  color:var(--muted);
  font-weight:800;
  font-size:12.5px;
}
.post-meta .dot{opacity:.6}

.post-thumb{
  margin:0 0 14px;
  border-radius:18px;
  overflow:hidden;
  background:rgba(11,31,58,.06);
  box-shadow:0 10px 28px rgba(11,31,58,.08);
}
.post-thumb img{width:100%; height:auto; display:block}

.post-content{
  font-size:15.5px;
  line-height:2.05;
}

/* TOC */
.post-toc{
  margin:0 0 14px;
  border-radius:18px;
  border:1px solid rgba(11,31,58,.10);
  background:linear-gradient(135deg, rgba(255,122,0,.08), rgba(11,31,58,.03));
  overflow:hidden;
}
.toc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px}
.toc-title{font-weight:1000;color:var(--navy)}
.toc-toggle{border:none;background:#fff;border:1px solid rgba(11,31,58,.12);border-radius:999px;padding:6px 10px;font-weight:900;color:var(--navy);cursor:pointer}
.toc-toggle:hover{border-color:rgba(255,122,0,.35)}
.toc-body{padding:10px 14px 14px}
.toc-loading{color:var(--muted);font-weight:800}
.toc-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.toc-link{display:flex;align-items:center;gap:10px;text-decoration:none !important;color:var(--navy);font-weight:900;padding:10px 12px;border-radius:14px;border:1px solid rgba(11,31,58,.08);background:rgba(255,255,255,.75)}
.toc-link:hover{border-color:rgba(255,122,0,.35);box-shadow:0 12px 26px rgba(11,31,58,.08)}
.toc-lvl{width:10px;height:10px;border-radius:999px;background:rgba(255,122,0,.80);box-shadow:0 10px 18px rgba(255,122,0,.20)}
.toc-sub .toc-lvl{background:rgba(11,31,58,.50)}
.toc-sub{padding-right:18px}
.post-toc.is-collapsed .toc-body{display:none}
.post-content h2{
  margin:22px 0 10px;
  font-size:18.5px;
  color:var(--navy);
}
.post-content h3{
  margin:18px 0 8px;
  font-size:16.5px;
  color:var(--navy);
}
.post-content a{font-weight:900; text-decoration:none}
.post-content a:hover{text-decoration:underline}

.post-sidebar .sidebar-sticky{
  position:sticky;
  top:86px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
@media (max-width:980px){
  .post-sidebar .sidebar-sticky{position:static}
}

.side-card{
  background:#fff;
  border:1px solid rgba(11,31,58,.08);
  border-radius:18px;
  box-shadow:0 10px 28px rgba(11,31,58,.06);
  overflow:hidden;
}
.side-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px 10px;
  background:linear-gradient(90deg, rgba(255,122,0,.10), rgba(11,31,58,.04));
}
.side-head h3{
  margin:0;
  font-size:14.5px;
  color:var(--navy);
  font-weight:900;
}
.side-icon{
  width:34px; height:34px;
  display:grid; place-items:center;
  border-radius:999px;
  background:rgba(255,122,0,.12);
  border:1px solid rgba(255,122,0,.18);
  font-size:16px;
}

.side-list{padding:10px 10px 12px; display:flex; flex-direction:column; gap:10px}
.side-item{
  display:flex; gap:10px; align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(11,31,58,.08);
  background:linear-gradient(180deg,#fff,rgba(11,31,58,.02));
  text-decoration:none !important;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.side-item:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(11,31,58,.10);
  border-color:rgba(255,122,0,.35);
}
.side-thumb{
  width:56px; height:56px;
  border-radius:14px;
  overflow:hidden;
  flex:0 0 56px;
  background:rgba(11,31,58,.06);
}
.side-thumb img{width:100%; height:100%; object-fit:cover; display:block}
.side-thumb-fallback{width:100%; height:100%; background:linear-gradient(135deg, rgba(11,31,58,.10), rgba(255,122,0,.12));}
.side-info{min-width:0}
.side-title{
  color:var(--navy);
  font-weight:900;
  font-size:13.5px;
  line-height:1.45;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.side-meta{color:var(--muted); font-weight:800; font-size:12px; margin-top:4px}
.side-empty{padding:12px 14px; color:var(--muted); font-weight:800}

.cat-chips{padding:12px; display:flex; flex-wrap:wrap; gap:8px}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 10px;
  border-radius:999px;
  background:rgba(11,31,58,.04);
  border:1px solid rgba(11,31,58,.10);
  color:var(--navy);
  font-weight:900;
  font-size:12.5px;
  text-decoration:none !important;
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}
.chip:hover{
  transform:translateY(-1px);
  background:rgba(255,122,0,.10);
  border-color:rgba(255,122,0,.35);
}
.chip-count{
  background:#fff;
  border:1px solid rgba(11,31,58,.10);
  border-radius:999px;
  padding:2px 8px;
  font-size:11.5px;
  color:var(--muted);
}

.post-related{margin-top:22px}
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 12px;
}
.section-title{
  margin:0;
  font-size:16px;
  color:var(--navy);
  font-weight:1000;
}
.section-link{
  font-weight:1000;
  text-decoration:none !important;
  color:var(--orange);
}
.section-link:hover{text-decoration:underline !important}

.related-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}
@media (max-width:680px){.related-grid{grid-template-columns:1fr}}
.related-card{
  display:block;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(11,31,58,.10);
  background:#fff;
  box-shadow:0 10px 26px rgba(11,31,58,.06);
  text-decoration:none !important;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.related-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(11,31,58,.10);
  border-color:rgba(255,122,0,.35);
}
.related-media{position:relative; height:150px; background:rgba(11,31,58,.06)}
.related-media img{width:100%; height:100%; object-fit:cover; display:block}
.related-fallback{width:100%; height:100%; background:linear-gradient(135deg, rgba(11,31,58,.12), rgba(255,122,0,.14));}
.related-badge{
  position:absolute;
  left:12px;
  top:12px;
  background:rgba(255,122,0,.92);
  color:#fff;
  font-weight:1000;
  font-size:11.5px;
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 10px 18px rgba(255,122,0,.25);
}
.related-body{padding:12px}
.related-title{
  color:var(--navy);
  font-weight:1000;
  font-size:14px;
  line-height:1.5;
  height:42px;
  overflow:hidden;
}
.related-meta{margin-top:6px; color:var(--muted); font-weight:800; font-size:12px}

/* Share bar */
.post-share{margin-top:18px;border:1px solid rgba(11,31,58,.10);border-radius:18px;padding:14px;background:linear-gradient(135deg, rgba(11,31,58,.03), rgba(255,122,0,.06))}
.share-title{font-weight:1000;color:var(--navy);margin-bottom:10px}
.share-actions{display:flex;flex-wrap:wrap;gap:10px}
.share-btn{display:inline-flex;align-items:center;gap:8px;border-radius:14px;padding:10px 12px;border:1px solid rgba(11,31,58,.10);background:#fff;color:var(--navy);font-weight:1000;text-decoration:none !important;cursor:pointer}
.share-btn:hover{border-color:rgba(255,122,0,.35);box-shadow:0 12px 26px rgba(11,31,58,.10)}
.share-ico{width:28px;height:28px;display:grid;place-items:center;border-radius:999px;background:rgba(255,122,0,.12);border:1px solid rgba(255,122,0,.20)}
.share-note{margin-top:10px;color:var(--navy);font-weight:1000}

/* Author box */
.post-authorbox{margin-top:18px;display:flex;gap:12px;align-items:flex-start;border:1px solid rgba(11,31,58,.10);border-radius:18px;padding:14px;background:#fff;box-shadow:0 10px 28px rgba(11,31,58,.06)}
.author-avatar img{border-radius:16px;box-shadow:0 10px 22px rgba(11,31,58,.10)}
.author-name{font-weight:1000;color:var(--navy);font-size:14.5px}
.author-bio{margin-top:6px;color:var(--muted);font-weight:800;line-height:1.9}
.author-actions{margin-top:10px;display:flex;flex-wrap:wrap;gap:10px}
.author-btn{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:14px;border:1px solid rgba(11,31,58,.12);background:rgba(11,31,58,.03);color:var(--navy);font-weight:1000;text-decoration:none !important}
.author-btn:hover{border-color:rgba(255,122,0,.35)}
.author-btn-solid{background:rgba(255,122,0,.92);border-color:rgba(255,122,0,.92);color:#fff}
.author-btn-solid:hover{filter:brightness(.98)}

/* Sidebar CTA */
.side-cta{border-radius:18px;overflow:hidden;border:1px solid rgba(11,31,58,.10);box-shadow:0 12px 32px rgba(11,31,58,.08);background:linear-gradient(135deg, rgba(11,31,58,.92), rgba(255,122,0,.92));color:#fff}
.side-cta-top{padding:14px 14px 12px}
.side-cta-title{font-weight:1100;font-size:14.5px;line-height:1.6}
.side-cta-sub{margin-top:6px;opacity:.92;font-weight:800;line-height:1.9;font-size:12.5px}
.side-cta-actions{display:flex;gap:10px;padding:0 14px 14px}
.cta-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.10);color:#fff;font-weight:1100;text-decoration:none !important}
.cta-solid{background:#fff;color:var(--navy);border-color:#fff}
.cta-btn:hover{filter:brightness(.98)}

/* Popular rank */
.side-rank{width:30px;height:30px;display:grid;place-items:center;border-radius:999px;background:rgba(255,122,0,.16);border:1px solid rgba(255,122,0,.25);font-weight:1100;color:var(--navy);flex:0 0 30px}

