/*
Theme Name: دیاری — قالب کدی
Theme URI: https://dyari-gift.ir
Description: قالب فرزند سبک برای کادویی دیاری؛ صفحه اصلی کاملاً با کد (بدون صفحه‌ساز). پالت: کرم #F6F1EB، سرمه‌ای #27324A، طلایی #C99A4B، زیتونی #6E7448.
Author: کادویی دیاری
Version: 1.9.23
Template: twentytwentyfive
Text Domain: dyari-code
*/

/* ---------- فونت وزیرمتن (داخل قالب، بدون افزونه) ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- پایه ---------- */
.dyari-home {
  --dy-bg: #F6F1EB;
  --dy-navy: #27324A;
  --dy-gold: #C99A4B;
  --dy-olive: #6E7448;
  --dy-border: #E8DDC9;
  --dy-card: #FFFFFF;
  --dy-muted: #7A7466;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--dy-bg);
  color: var(--dy-navy);
  min-height: 100vh;
  line-height: 1.8;
  padding-bottom: 80px;
}
.dyari-home *, .dyari-home *::before, .dyari-home *::after { box-sizing: border-box; }
.dyari-home img { max-width: 100%; display: block; }
.dyari-home a { text-decoration: none; color: inherit; }
.dyari-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }

/* ---------- هدر پیلی شناور ---------- */
.dyari-header {
  position: fixed;
  top: 14px;
  inset-inline: 16px;
  z-index: 1000;
  max-width: 1200px;
  margin-inline: auto;
}
body.admin-bar .dyari-header { top: 46px; }
.dyari-pill {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 253, 249, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 154, 75, .45);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  box-shadow: 0 10px 30px rgba(39, 50, 74, .13);
}
.dyari-logo img { height: 42px; width: auto; }
.dyari-nav { margin-inline-start: auto; }
.dyari-nav ul {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.dyari-nav a {
  font-weight: 500; font-size: 15.5px; color: var(--dy-navy);
  transition: color .2s;
}
.dyari-nav a:hover { color: var(--dy-gold); }
.dyari-head-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; padding-inline-start: 6px; }
.dyari-cart {
  position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dy-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; transition: background .2s;
}
.dyari-cart:hover { background: var(--dy-olive); }
.dyari-cart-badge {
  position: absolute; top: -5px; inset-inline-start: -5px;
  background: var(--dy-gold); color: #fff;
  min-width: 20px; height: 20px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  padding-inline: 5px;
}
.dyari-account {
  font-size: 14.5px; font-weight: 500; color: var(--dy-navy);
  border: 1px solid var(--dy-border); border-radius: 999px; padding: 7px 16px;
  background: #fff; transition: all .2s; white-space: nowrap;
}
.dyari-account:hover { border-color: var(--dy-gold); color: var(--dy-gold); }
.dyari-burger { display: none; }
.dyari-burger-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--dy-border); background: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 20px; color: var(--dy-navy); cursor: pointer;
}
.dyari-mobile-nav {
  display: none;
  margin-top: 8px;
  background: rgba(255, 253, 249, .97);
  border: 1px solid rgba(201, 154, 75, .45);
  border-radius: 22px; padding: 10px 20px;
  box-shadow: 0 10px 30px rgba(39, 50, 74, .13);
}
.dyari-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.dyari-mobile-nav li { border-bottom: 1px solid var(--dy-border); }
.dyari-mobile-nav li:last-child { border-bottom: 0; }
.dyari-mobile-nav a { display: block; padding: 10px 2px; font-weight: 500; }
#dyari-menu-toggle:checked ~ .dyari-mobile-nav { display: block; }

/* ---------- هیرو ---------- */
.dyari-hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  background-image: url('https://dyari-gift.ir/wp-content/uploads/2026/11/dyari-hero.webp');
  background-size: cover;
  background-position: center;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.dyari-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(246, 241, 235, .92) 0%, rgba(246, 241, 235, .55) 42%, rgba(246, 241, 235, 0) 72%);
}
.dyari-hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 110px; padding-bottom: 60px; }
.dyari-hero h1 {
  font-size: 42px; font-weight: 700; line-height: 1.5;
  color: var(--dy-navy); margin: 0 0 14px; max-width: 560px;
}
.dyari-hero p {
  font-size: 17.5px; color: #4A4438; margin: 0 0 26px; max-width: 480px; line-height: 2;
}
.dyari-cta {
  display: inline-block;
  background: var(--dy-gold); color: #fff;
  font-weight: 700; font-size: 16.5px;
  padding: 13px 34px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(201, 154, 75, .45);
  transition: all .2s;
}
.dyari-cta:hover { background: var(--dy-olive); transform: translateY(-2px); }

/* ---------- نوار ویژگی ---------- */
.dyari-features { margin-top: -25px; position: relative; z-index: 5; }
.dyari-features-row { display: flex; gap: 14px; flex-wrap: nowrap; align-items: stretch; }
.dyari-feature {
  flex: 1 1 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--dy-card);
  border: 1px solid var(--dy-border);
  border-radius: 16px;
  padding: 8px 10px;
  text-align: center;
}
.dyari-feature .dyari-feature-icon {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  background: rgba(110, 116, 72, .14); color: var(--dy-olive);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.dyari-feature h3 { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--dy-navy); }

/* ---------- بخش‌ها ---------- */
.dyari-section { margin-top: 56px; }
.dyari-section-head { text-align: center; margin-bottom: 26px; }
.dyari-section-head h2 {
  display: inline-block; margin: 0; font-size: 26px; font-weight: 700; color: var(--dy-navy);
  padding-bottom: 10px; position: relative;
}
.dyari-section-head h2::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 50%;
  transform: translateX(50%); width: 64px; height: 3px; border-radius: 3px;
  background: var(--dy-gold);
}

/* ---------- جنسیت ---------- */
.dyari-gender { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dyari-gender a { border-radius: 20px; overflow: hidden; display: block; box-shadow: 0 8px 24px rgba(39, 50, 74, .10); }
.dyari-gender img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s; }
.dyari-gender a:hover img { transform: scale(1.04); }

/* ---------- دسته‌بندی (اسکرول افقی) ---------- */
.dyari-cats {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 4px 2px 14px;
  scrollbar-width: thin; scrollbar-color: var(--dy-gold) rgba(201, 154, 75, .15);
}
.dyari-cats::-webkit-scrollbar { height: 8px; }
.dyari-cats::-webkit-scrollbar-thumb { background: var(--dy-gold); border-radius: 99px; }
.dyari-cats::-webkit-scrollbar-track { background: rgba(201, 154, 75, .15); border-radius: 99px; }
.dyari-cat {
  flex: 0 0 208px; scroll-snap-align: start;
  background: transparent; border: 0; padding: 0;
  display: block; transition: transform .2s;
}
.dyari-cat:hover { transform: translateY(-3px); }
.dyari-cat img { width: 100%; height: auto; border-radius: 14px; }

/* ---------- کارت محصول ---------- */
.dyari-card {
  background: var(--dy-card); border: 1px solid var(--dy-border); border-radius: 18px;
  padding: 0 0 10px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: all .2s;
}
.dyari-card:hover { box-shadow: 0 14px 30px rgba(39, 50, 74, .11); transform: translateY(-3px); }
.dyari-card .dyari-card-img { border-radius: 0; overflow: hidden; display: block; }
.dyari-card .dyari-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.dyari-card h3 {
  margin: 10px 14px 4px; font-size: 15px; font-weight: 700; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 3.2em;
}
.dyari-card h3.dyari-long-title { font-size: 13px; }
.dyari-home .dyari-card-sale h3{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:0; }
.dyari-home .dyari-card:has(.dyari-price del) h3{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:0; }
.dyari-home .dyari-card-sale .dyari-add,.dyari-home .dyari-card:has(.dyari-price del) .dyari-add{margin-top:auto; }
.dyari-card h3 a { color: var(--dy-navy); transition: color .2s; }
.dyari-card h3 a:hover { color: var(--dy-gold); }
.dyari-card .dyari-price { margin: 0 14px 12px; padding-top: 2px; font-size: 16.5px; font-weight: 700; color: var(--dy-gold); }
.dyari-card .dyari-price del { color: var(--dy-muted); font-size: 13.5px; font-weight: 400; margin-inline-end: 8px; }
.dyari-card .dyari-price ins { text-decoration: none; }
.dyari-badge {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  background: var(--dy-olive); color: #fff; font-size: 12.5px; font-weight: 700;
  border-radius: 999px; padding: 3px 12px;
}
.dyari-add {
  display: block; text-align: center; width: 90%; margin: 0 auto 6px;
  background: var(--dy-navy); color: #fff !important; font-weight: 700; font-size: 13px;
  border-radius: 12px; padding: 9px 8px; transition: background .2s;
}
.dyari-add:hover { background: var(--dy-olive); }
/* متن دکمه‌های افزودن به سبد ووکامرس (صفحه محصول و فروشگاه) هم سفید */
.single_add_to_cart_button,
.woocommerce a.button.add_to_cart_button,
.woocommerce button.button.add_to_cart_button { color: #fff !important; }
.dyari-add.dyari-out { background: #B9B2A4; pointer-events: none; }

/* ---------- پیشنهادهای خاص: ردیف اسکرولی ---------- */
.dyari-scroller {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--dy-gold) transparent;
}
.dyari-scroller::-webkit-scrollbar { height: 6px; }
.dyari-scroller::-webkit-scrollbar-thumb { background: var(--dy-gold); border-radius: 6px; }
.dyari-scroller .dyari-card { flex: 0 0 188px; }

/* ---------- گرید محصولات ---------- */
.dyari-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- فوتر ---------- */
.dyari-footer {
  margin-top: 70px; background: #FFFDF9;
  border-top: 1px solid var(--dy-border);
  padding: 44px 0 0;
}
.dyari-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.dyari-footer h4 { margin: 0 0 14px; font-size: 16.5px; font-weight: 700; color: var(--dy-navy); }
.dyari-footer p { margin: 0; color: var(--dy-muted); font-size: 14.5px; line-height: 2; max-width: 340px; }
.dyari-footer ul { list-style: none; margin: 0; padding: 0; }
.dyari-footer li { margin-bottom: 8px; }
.dyari-footer li a { color: #4A4438; font-size: 14.5px; transition: color .2s; }
.dyari-footer-grid>div:nth-child(3) ul{columns:2;column-gap:18px; }
.dyari-footer-grid>div:nth-child(3) li{break-inside:avoid; }
.dyari-footer-grid>div:nth-child(2){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:start; }
.dyari-footer-grid>div:nth-child(2) h4{grid-column:1/-1; }
.dyari-enamad-frame{background:#fff;border:2px solid #C99A4B;border-radius:16px;padding:14px;display:flex;align-items:center;justify-content:center; }
.dyari-enamad-frame img{max-width:100%;height:auto;display:block; }
.dyari-footer li a:hover { color: var(--dy-gold); }
.dyari-footer-logo img { height: 46px; width: auto; margin-bottom: 12px; }
.dyari-footer-bottom {
  margin-top: 34px; padding: 16px; text-align: center;
  border-top: 1px solid var(--dy-border);
  color: var(--dy-muted); font-size: 13.5px;
}

/* ---------- موبایل ---------- */
@media (max-width: 900px) {
  .dyari-grid { grid-template-columns: repeat(3, 1fr); }
  .dyari-cat { flex-basis: 184px; }
}
@media (max-width: 781px) {
  .dyari-header { top: 10px; inset-inline: 10px; }
  body.admin-bar .dyari-header { top: 42px; }
  .dyari-pill { padding: 5px 12px 5px 7px; gap: 10px; }
  .dyari-logo img { height: 30px; }
  .dyari-nav, .dyari-account { display: none; }
  .dyari-burger-btn { display: flex; }
  .dyari-cart { width: 37px; height: 37px; font-size: 17px; }
  .dyari-hero { min-height: 320px; border-radius: 0 0 24px 24px; }
  .dyari-hero-inner { padding-top: 92px; padding-bottom: 40px; }
  .dyari-hero h1 { font-size: 24px; max-width: 300px; }
  .dyari-hero p { font-size: 14px; max-width: 280px; }
  .dyari-cta { font-size: 14px; padding: 11px 26px; }
  .dyari-features { margin-top: -21px; }
  .dyari-features-row { gap: 8px; }
  .dyari-feature { padding: 7px 6px; gap: 7px; }
  .dyari-feature .dyari-feature-icon { width: 26px; height: 26px; flex-basis: 26px; font-size: 14px; }
  .dyari-feature h3 { font-size: 13.5px; }
  .dyari-section { margin-top: 40px; }
  .dyari-section-head h2 { font-size: 21px; }
  .dyari-gender { gap: 12px; }
  .dyari-cats { gap: 12px; }
  .dyari-cat { flex-basis: 47%; }
  .dyari-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dyari-scroller .dyari-card { flex-basis: 47%; }
  .dyari-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 420px) {
  .dyari-feature h3 { font-size: 12px; }
  .dyari-card h3 { font-size: 13.5px; }
  .dyari-card h3.dyari-long-title { font-size: 12px; }
  .dyari-card .dyari-price { font-size: 15px; }
}

/* ---------- سبد خرید شناور (کشویی) ---------- */
.dyari-cart { cursor: pointer; }
.dyari-cart-state { display: none; }
.dyari-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(39, 50, 74, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.dyari-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1101;
  width: 380px; max-width: 92vw;
  background: #FFFDF9;
  box-shadow: 12px 0 34px rgba(39, 50, 74, .20);
  transform: translateX(-110%);
  transition: transform .3s ease;
  display: flex; flex-direction: column;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--dy-navy);
}
#dyari-cart-toggle:checked ~ .dyari-overlay { opacity: 1; pointer-events: auto; }
#dyari-cart-toggle:checked ~ .dyari-drawer { transform: translateX(0); }
.dyari-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--dy-border);
  font-size: 17px;
}
.dyari-drawer-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--dy-border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; color: var(--dy-navy);
}
.dyari-drawer-close:hover { border-color: var(--dy-gold); color: var(--dy-gold); }
.dyari-drawer-items { flex: 1; overflow-y: auto; padding: 6px 20px; }
.dyari-drawer-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--dy-border);
}
.dyari-drawer-item:last-child { border-bottom: 0; }
.dyari-drawer-thumb { flex: 0 0 64px; }
.dyari-drawer-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.dyari-drawer-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dyari-drawer-name { font-size: 14.5px; font-weight: 700; color: var(--dy-navy); line-height: 1.8; }
.dyari-drawer-name:hover { color: var(--dy-gold); }
.dyari-drawer-meta { font-size: 13px; color: var(--dy-muted); }
.dyari-drawer-price { font-size: 15px; font-weight: 700; color: var(--dy-gold); }
.dyari-drawer-remove { color: var(--dy-muted); font-size: 14px; padding: 2px 4px; }
.dyari-drawer-remove:hover { color: #C0392B; }
.dyari-drawer-foot { border-top: 1px solid var(--dy-border); padding: 16px 20px 20px; }
.dyari-drawer-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; margin-bottom: 14px;
}
.dyari-drawer-total strong { color: var(--dy-navy); font-size: 17.5px; }
.dyari-drawer-checkout {
  display: block; text-align: center;
  background: var(--dy-gold); color: #fff; font-weight: 700; font-size: 16px;
  border-radius: 12px; padding: 13px; transition: background .2s;
}
.dyari-drawer-checkout:hover { background: var(--dy-olive); }
.dyari-drawer-viewcart {
  display: block; text-align: center; margin-top: 10px;
  background: #fff; color: var(--dy-navy); font-weight: 500; font-size: 15px;
  border: 1px solid var(--dy-border); border-radius: 12px; padding: 11px;
  transition: all .2s;
}
.dyari-drawer-viewcart:hover { border-color: var(--dy-navy); }
/* ---------- فوتر ثابت ۴ دکمه‌ای ---------- */
.dyari-tabbar {
  position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); inset-inline: 12px; z-index: 1005;
  max-width: 720px; margin-inline: auto;
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 154, 75, .5);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(39, 50, 74, .18);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.dyari-tabbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.dyari-tab {
  position: relative;
  background: none; border: 0; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 6px 4px 5px;
  color: var(--dy-navy); cursor: pointer;
  transition: color .2s;
}
.dyari-tab:hover { color: var(--dy-gold); }
.dyari-tab-icon { font-size: 20px; line-height: 1.25; position: relative; }
.dyari-tab-label { font-size: 11.5px; font-weight: 500; }
.dyari-tab-active { color: var(--dy-gold); }
.dyari-tab-disabled { cursor: default; }
.dyari-tab-disabled:hover { color: var(--dy-gold); }
.dyari-tab-active .dyari-tab-label { font-weight: 700; }
.dyari-tab-badge {
  position: absolute; top: -6px; inset-inline-start: -12px;
  background: var(--dy-gold); color: #fff;
  min-width: 19px; height: 19px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center;
  padding-inline: 5px;
}

/* ---------- پنل‌های فوتر (جستجو / دسته‌بندی) ---------- */
.dyari-sheet {
  position: fixed; z-index: 1006;
  bottom: calc(74px + env(safe-area-inset-bottom));
  inset-inline: 12px;
  max-width: 680px; margin: 0 auto;
  background: #FFFDF9;
  border: 1px solid rgba(201, 154, 75, .5);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(39, 50, 74, .22);
  padding: 16px 18px 18px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--dy-navy);
  opacity: 0; transform: translateY(14px);
  pointer-events: none; transition: opacity .22s, transform .22s;
}
.dyari-sheet.dyari-sheet-open {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.dyari-tab-on { color: var(--dy-gold); }
.dyari-tab-on .dyari-tab-label { font-weight: 700; }
.dyari-sheet-x { font-family: inherit; line-height: 1; }
.dyari-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; margin-bottom: 12px;
}
.dyari-search-form { display: flex; gap: 10px; }
.dyari-search-form input[type="search"] {
  flex: 1; min-width: 0;
  border: 1px solid var(--dy-border); border-radius: 12px;
  padding: 11px 14px; font-family: inherit; font-size: 15px;
  background: #fff; color: var(--dy-navy);
}
.dyari-search-form input[type="search"]:focus { outline: 2px solid rgba(201, 154, 75, .55); border-color: var(--dy-gold); }
.dyari-search-form button {
  background: var(--dy-gold); color: #fff; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 15px;
  border-radius: 12px; padding: 11px 22px; transition: background .2s;
}
.dyari-search-form button:hover { background: var(--dy-olive); }
.dyari-sheet-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.dyari-sheet-feat {
  position: relative; display: block; height: 88px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(201, 154, 75, .65);
  box-shadow: 0 6px 16px rgba(39, 50, 74, .12);
}
.dyari-sheet-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dyari-sheet-feat-label {
  position: absolute; bottom: 8px; inset-inline: 8px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 253, 249, .93);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 10px; padding: 5px 10px;
  font-size: 13.5px; font-weight: 700; color: var(--dy-navy);
}
.dyari-live-results { margin-top: 12px; max-height: 330px; overflow-y: auto; }
.dyari-live-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 12px; color: var(--dy-navy);
  transition: background .15s;
}
.dyari-live-item:hover { background: rgba(201, 154, 75, .09); }
.dyari-live-item img, .dyari-live-noimg {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  flex-shrink: 0; background: #fff; border: 1px solid var(--dy-border);
}
.dyari-live-noimg { display: flex; align-items: center; justify-content: center; font-size: 20px; }
.dyari-live-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.6; }
.dyari-live-price { font-size: 13.5px; font-weight: 700; color: var(--dy-gold); white-space: nowrap; }
.dyari-live-old { text-decoration: line-through; color: #9aa0aa; font-weight: 400; font-size: 12px; }
.dyari-live-empty { text-align: center; color: #8a8f98; font-size: 13.5px; padding: 10px 0 4px; }
.dyari-live-all {
  display: block; text-align: center; margin-top: 6px; padding: 9px 0 2px;
  border-top: 1px solid var(--dy-border);
  font-size: 14px; font-weight: 700; color: var(--dy-olive);
}
.dyari-drawer-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dyari-drawer-item.dyari-removing { opacity: .4; pointer-events: none; }
.dyari-qty {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--dy-border); border-radius: 999px;
  padding: 2px; margin-top: 3px; background: #fff;
}
.dyari-qty-btn {
  width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: rgba(201, 154, 75, .14); color: var(--dy-navy);
  font-size: 15px; line-height: 1; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.dyari-qty-btn:hover { background: var(--dy-gold); color: #fff; }
.dyari-qty-num { min-width: 22px; text-align: center; font-size: 13.5px; font-weight: 700; }
.dyari-add.dyari-adding { opacity: .6; pointer-events: none; }
.dyari-add.dyari-added { background: var(--dy-olive) !important; }
.dyari-more-card {
  flex: 0 0 112px; scroll-snap-align: end;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--dy-navy);
}
.dyari-more-circle {
  width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid var(--dy-gold); color: var(--dy-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; background: rgba(201, 154, 75, .08);
  transition: all .2s;
}
.dyari-more-card:hover .dyari-more-circle { background: var(--dy-gold); color: #fff; }
.dyari-more-text { font-size: 13.5px; font-weight: 700; }
.dyari-empty-note {
  text-align: center; color: #8a8f98; font-size: 15px;
  border: 1.5px dashed var(--dy-border); border-radius: 16px;
  padding: 28px 16px; background: rgba(255, 253, 249, .6);
}
.dyari-sheet-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.dyari-sheet-cat {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--dy-border); border-radius: 12px;
  padding: 9px 14px; font-size: 14.5px; font-weight: 500; color: var(--dy-navy);
  background: #fff; transition: all .2s;
}
.dyari-sheet-cat:hover { border-color: var(--dy-gold); color: var(--dy-gold); }
.dyari-sheet-count {
  background: rgba(110, 116, 72, .14); color: var(--dy-olive);
  border-radius: 999px; font-size: 12px; font-weight: 700;
  min-width: 24px; text-align: center; padding: 1px 7px;
}

.dyari-drawer-empty { text-align: center; padding: 48px 24px; }
.dyari-drawer-empty-icon { font-size: 46px; margin-bottom: 10px; }
.dyari-drawer-empty p { color: var(--dy-muted); margin: 0 0 20px; }
.dyari-drawer-empty .dyari-drawer-checkout { max-width: 220px; margin: 0 auto; }

/* ---------- کروم دیاری روی بقیه صفحات (هدر/فوتر/سبد/نوار پایین) ---------- */
.dyari-chrome {
  --dy-bg: #F6F1EB;
  --dy-navy: #27324A;
  --dy-gold: #C99A4B;
  --dy-olive: #6E7448;
  --dy-border: #E8DDC9;
  --dy-card: #FFFFFF;
  --dy-muted: #7A7466;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--dy-navy);
  line-height: 1.8;
}
.dyari-chrome *, .dyari-chrome *::before, .dyari-chrome *::after { box-sizing: border-box; }
.dyari-chrome img { max-width: 100%; display: block; }
.dyari-chrome a { text-decoration: none; color: inherit; }
body.dyari-has-chrome { padding-top: 100px; padding-bottom: 96px; }
@media (max-width: 640px) {
  body.dyari-has-chrome { padding-top: 92px; }
}

/* ---------- عنوان صفحه فروشگاه و دسته‌ها: وسط‌چین و شکیل ---------- */
/* در قالب بلاکی، عنوان آرشیو با بلوک «عنوان کوئری» چاپ می‌شود */
body.dyari-has-chrome .wp-block-query-title,
body.dyari-has-chrome .woocommerce-products-header { text-align: center; }
body.dyari-has-chrome .wp-block-query-title,
body.dyari-has-chrome .woocommerce-products-header__title {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #27324A;
  line-height: 1.4;
  margin: 4px 0 6px;
}
body.dyari-has-chrome .wp-block-query-title::after,
body.dyari-has-chrome .woocommerce-products-header__title::after {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  border-radius: 99px;
  margin: 12px auto 4px;
  background: linear-gradient(90deg, transparent, #C99A4B 30%, #C99A4B 70%, transparent);
}
@media (max-width: 640px) {
  body.dyari-has-chrome .wp-block-query-title,
  body.dyari-has-chrome .woocommerce-products-header__title { font-size: 27px; }
}

/* ---------- حذف خط «نمایش … نتیجه» در فروشگاه و دسته‌ها ---------- */
body.dyari-has-chrome .woocommerce-result-count { display: none !important; }

/* ---------- کارت‌های کالای فروشگاه و دسته‌ها: طرح افقی (عکس راست، اطلاعات چپ) ---------- */
/* چیدمان مطلق: ارتفاع کارت دقیقاً هم‌قد عکس است و قیمت به کف کارت می‌چسبد */
body.dyari-has-chrome .wc-block-product-template {
  display: flex; flex-direction: column; gap: 12px;
}
body.dyari-has-chrome li.wc-block-product {
  background: #fff;
  border: 1px solid #E8DDC9;
  border-radius: 18px;
  padding: 12px;
  padding-inline-start: 176px;
  min-height: 214px;
  box-sizing: border-box;
  position: relative;
  display: block;
  box-shadow: 0 2px 10px rgba(39, 50, 74, .04);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
body.dyari-has-chrome li.wc-block-product:hover {
  border-color: #C99A4B;
  box-shadow: 0 8px 25px rgba(100, 80, 40, .08);
  transform: translateY(-3px);
}
body.dyari-has-chrome .wc-block-components-product-image {
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  width: 150px; height: 190px;
  border-radius: 13px;
  overflow: hidden;
  background: #F6F1EB;
  margin: 0;
}
body.dyari-has-chrome .wc-block-components-product-image > a,
body.dyari-has-chrome .wc-block-components-product-image__inner-container {
  display: block; height: 100%;
}
body.dyari-has-chrome .wc-block-components-product-image__inner-container { aspect-ratio: auto !important; }
body.dyari-has-chrome .wc-block-components-product-image img {
  width: 100%; height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
body.dyari-has-chrome li.wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.06); }
body.dyari-has-chrome li.wc-block-product .wp-block-post-title {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
  margin: 2px 0 6px;
  text-align: start;
  min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.dyari-has-chrome li.wc-block-product .wp-block-post-title a { color: #27324A; transition: color .2s; }
body.dyari-has-chrome li.wc-block-product .wp-block-post-title a:hover { color: #C99A4B; }
body.dyari-has-chrome li.wc-block-product .wp-block-woocommerce-product-price {
  position: absolute;
  bottom: -6px; inset-inline-start: 176px;
  margin: 0;
  min-width: 0;
}
body.dyari-has-chrome li.wc-block-product .wc-block-components-product-price {
  display: flex; flex-direction: column; gap: 2px;
  text-align: start;
  color: #C99A4B;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  padding: 0;
}
body.dyari-has-chrome li.wc-block-product .wc-block-components-product-price del { color: #7A7466; font-size: 11.5px; font-weight: 400; }
body.dyari-has-chrome li.wc-block-product .wc-block-components-product-price ins { text-decoration: none; }
body.dyari-has-chrome li.wc-block-product .wc-block-components-product-button {
  position: absolute;
  bottom: -6px; inset-inline-end: 12px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.dyari-has-chrome li.wc-block-product .wc-block-components-product-button__button,
body.dyari-has-chrome li.wc-block-product .wc-block-components-product-button .wp-block-button__link {
  width: 38px !important; height: 38px !important;
  min-width: 0 !important; min-height: 0 !important;
  background-color: #6E7448 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 3H5L7.2 14H18L21 6H6' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9' cy='19' r='1.5' fill='white'/%3E%3Ccircle cx='17' cy='19' r='1.5' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 19px 19px;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  border: 0 !important;
  border-radius: 11px;
  padding: 0 !important;
  cursor: pointer;
  transition: background-color .25s;
}
body.dyari-has-chrome li.wc-block-product .wc-block-components-product-button__button:hover,
body.dyari-has-chrome li.wc-block-product .wc-block-components-product-button .wp-block-button__link:hover { background-color: #C99A4B !important; }
body.dyari-has-chrome li.wc-block-product .wc-block-components-product-sale-badge {
  position: absolute;
  top: 20px; inset-inline-start: 20px;
  z-index: 2;
  background: #6E7448;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
}
body.dyari-has-chrome li.wc-block-product a.added_to_cart {
  display: inline-block;
  margin-inline-end: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6E7448;
  vertical-align: middle;
}
@media (max-width: 640px) {
  body.dyari-has-chrome li.wc-block-product { padding: 10px; padding-inline-start: 160px; min-height: 192px; border-radius: 15px; }
  body.dyari-has-chrome .wc-block-components-product-image { top: 10px; inset-inline-start: 10px; width: 138px; height: 172px; }
  body.dyari-has-chrome li.wc-block-product .wp-block-post-title { font-size: 12.5px; }
  body.dyari-has-chrome li.wc-block-product .wp-block-woocommerce-product-price { bottom: -8px; inset-inline-start: 160px; }
  body.dyari-has-chrome li.wc-block-product .wc-block-components-product-price { font-size: 14.5px; }
  body.dyari-has-chrome li.wc-block-product .wc-block-components-product-button { bottom: -8px; inset-inline-end: 10px; }
  body.dyari-has-chrome li.wc-block-product .wc-block-components-product-sale-badge { top: 17px; inset-inline-start: 17px; }
}

/* ---------- دکمه مرتب‌سازی فروشگاه ---------- */
body.dyari-has-chrome .woocommerce-ordering select.orderby {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #27324A;
  background: #fff;
  border: 1px solid #E8DDC9;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 8px rgba(39, 50, 74, .05);
  transition: border-color .2s;
}
body.dyari-has-chrome .woocommerce-ordering select.orderby:hover,
body.dyari-has-chrome .woocommerce-ordering select.orderby:focus { border-color: #C99A4B; }

/* ---------- فشرده‌سازی سربرگ فروشگاه: عنوان و فیلترها کمتر جا بگیرند ---------- */
body.dyari-has-chrome .wc-block-components-breadcrumb { margin: 0 0 2px; font-size: 13px; }
body.dyari-has-chrome .wp-block-query-title { font-size: 26px; margin: 0 0 2px; }
body.dyari-has-chrome .wp-block-query-title::after { width: 90px; margin: 7px auto 2px; }
body.dyari-has-chrome .woocommerce-ordering { margin: 2px 0 6px; }
@media (max-width: 640px) {
  body.dyari-has-chrome .wp-block-query-title { font-size: 23px; }
}

/* ---------- ارتفاع ناحیه هدر در بقیه صفحات مثل صفحه اصلی ---------- */
body.dyari-has-chrome { padding-top: 82px; }
@media (max-width: 640px) {
  body.dyari-has-chrome { padding-top: 78px; }
}

/* ---------- بج تخفیف صفحه محصول هم سبز زیتونی ---------- */
body.dyari-has-chrome .woocommerce span.onsale { background: #6E7448; color: #fff; }

/* ---------- آیکون‌های تصویری نوار پایین ---------- */
.dyari-tab-icon img.dyari-tab-img { width: 25px; height: 25px; object-fit: contain; display: block; }

/* ============================================================
   صفحه محصول (۱.۹.۰): گالری با بندانگشتی عمودی چپ، اسم زیر عکس،
   انتخاب‌گر دکمه‌ای، قیمت چپ، جدول مشخصات، توضیحات وسط‌چین
   ============================================================ */
body.dyari-has-chrome .dyari-product-main { padding-bottom: 8px; }

/* --- گالری: عکس اصلی راست، ستون بندانگشتی‌ها سمت چپ --- */
body.dyari-has-chrome .woocommerce-product-gallery {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 6px;
}
body.dyari-has-chrome .woocommerce-product-gallery .flex-viewport {
  flex: 1 1 auto; min-width: 0; border-radius: 18px;
}
body.dyari-has-chrome .woocommerce-product-gallery__wrapper { margin: 0; }
body.dyari-has-chrome .woocommerce-product-gallery__wrapper img,
body.dyari-has-chrome .woocommerce-product-gallery > img {
  border-radius: 18px; display: block; width: 100%;
}
body.dyari-has-chrome .woocommerce-product-gallery .flex-control-thumbs {
  order: 2; flex: 0 0 auto;
  display: flex !important; flex-direction: column; gap: 8px;
  width: 64px; max-height: 480px; overflow-y: auto; overflow-x: hidden;
  margin: 0 !important; padding: 2px; list-style: none;
  scrollbar-width: thin; scrollbar-color: #C99A4B transparent;
}
body.dyari-has-chrome .woocommerce-product-gallery .flex-control-thumbs li {
  width: 100% !important; float: none !important; margin: 0 !important;
}
body.dyari-has-chrome .woocommerce-product-gallery .flex-control-thumbs img {
  border-radius: 10px; border: 2px solid transparent; opacity: .7;
  display: block; width: 100%; cursor: pointer; transition: opacity .2s, border-color .2s;
}
body.dyari-has-chrome .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  border-color: #C99A4B; opacity: 1;
}
body.dyari-has-chrome .woocommerce-product-gallery__trigger { z-index: 5; }

/* --- اسم کالا زیر عکس، کوچک‌تر --- */
body.dyari-has-chrome .dyari-product-title {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 21px !important; font-weight: 800; line-height: 1.7;
  color: #27324A; margin: 14px 0 4px; text-align: start;
}
@media (max-width: 640px) {
  body.dyari-has-chrome .dyari-product-title { font-size: 18.5px !important; }
  body.dyari-has-chrome .woocommerce-product-gallery .flex-control-thumbs { width: 54px; max-height: 330px; }
}

/* --- ردیف خرید: فرم راست، قیمت سمت چپ --- */
body.dyari-has-chrome .dyari-buy-row {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  align-items: flex-start; margin-top: 8px;
}
body.dyari-has-chrome .dyari-buy-row .wp-block-woocommerce-add-to-cart-form {
  flex: 1 1 320px; min-width: 0;
}
body.dyari-has-chrome .dyari-product-price {
  flex: 0 0 auto; margin: 0; padding-top: 4px;
}
body.dyari-has-chrome .dyari-product-price .wc-block-components-product-price,
body.dyari-has-chrome .dyari-product-price .price {
  color: #C99A4B; font-size: 21px; font-weight: 800;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  display: flex; flex-direction: column; text-align: end; gap: 2px; padding: 0;
}
body.dyari-has-chrome .dyari-product-price del { color: #7A7466; font-size: 14px; font-weight: 400; }
body.dyari-has-chrome .dyari-product-price ins { text-decoration: none; }

/* --- فرم متغیرها و انتخاب‌گر دکمه‌ای --- */
body.dyari-has-chrome .dyari-product-main .variations { width: 100%; margin: 0 0 6px; border-collapse: collapse; }
body.dyari-has-chrome .dyari-product-main .variations tr { display: block; margin-bottom: 14px; }
body.dyari-has-chrome .dyari-product-main .variations th,
body.dyari-has-chrome .dyari-product-main .variations td { display: block; padding: 0; text-align: start; border: 0; }
body.dyari-has-chrome .dyari-product-main .variations label {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-weight: 700; font-size: 15px; color: #27324A;
}
body.dyari-has-chrome .dyari-sel-val { color: #6E7448; font-weight: 800; }
body.dyari-has-chrome .dyari-product-main .reset_variations { display: none !important; }
.dyari-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.dyari-swatch {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid #E3D7BE; border-radius: 12px;
  padding: 8px 14px; cursor: pointer;
  font-family: 'Vazirmatn', Tahoma, sans-serif; font-size: 14px; color: #27324A;
  transition: border-color .2s, box-shadow .2s;
}
.dyari-swatch .dyari-dot {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid rgba(39, 50, 74, .25);
}
.dyari-swatch .dyari-check {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  background: #27324A; color: #fff; font-size: 10px; line-height: 1;
  align-items: center; justify-content: center; flex: 0 0 auto;
}
.dyari-swatch.dyari-on { border-color: #27324A; box-shadow: inset 0 0 0 1px #27324A; }
.dyari-swatch.dyari-on .dyari-check { display: inline-flex; }
.dyari-swatch.dyari-oos { opacity: .55; border-style: dashed; cursor: not-allowed; }
.dyari-oos-tag { font-size: 10.5px; color: #B3402A; font-weight: 700; }
body.dyari-has-chrome .dyari-product-main .stock.in-stock { color: #6E7448; font-weight: 700; font-size: 13.5px; }
body.dyari-has-chrome .dyari-product-main .stock.out-of-stock { color: #B3402A; font-weight: 700; font-size: 13.5px; }
body.dyari-has-chrome .dyari-product-main .woocommerce-variation-price { margin: 4px 0 10px; }
body.dyari-has-chrome .dyari-product-main .woocommerce-variation-price .price {
  color: #C99A4B; font-size: 19px; font-weight: 800; font-family: 'Vazirmatn', Tahoma, sans-serif;
}

/* --- تعداد با دکمه‌های + و − و دکمه افزودن --- */
body.dyari-has-chrome .dyari-product-main form.cart .woocommerce-variation-add-to-cart,
body.dyari-has-chrome .dyari-product-main form.cart:not(.variations_form) {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch;
}
body.dyari-has-chrome .dyari-product-main .quantity.dyari-stepper {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1.5px solid #E3D7BE; border-radius: 13px; padding: 3px; background: #fff;
}
body.dyari-has-chrome .dyari-product-main .quantity input.qty {
  width: 42px; text-align: center; border: 0 !important; background: transparent;
  font-family: 'Vazirmatn', Tahoma, sans-serif; font-weight: 700; font-size: 15px; color: #27324A;
  -moz-appearance: textfield; appearance: textfield; padding: 4px 0; margin: 0;
}
body.dyari-has-chrome .dyari-product-main .quantity input.qty::-webkit-outer-spin-button,
body.dyari-has-chrome .dyari-product-main .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.dyari-step-btn {
  width: 33px; height: 33px; border-radius: 9px; border: 0; cursor: pointer;
  background: #F6F1EB; color: #27324A; font-size: 18px; line-height: 1;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.dyari-step-btn:hover { background: #EFE6D2; }
body.dyari-has-chrome .dyari-product-main .single_add_to_cart_button {
  background: #6E7448 !important; color: #fff !important; border: 0 !important;
  border-radius: 13px; padding: 12px 30px; cursor: pointer;
  font-family: 'Vazirmatn', Tahoma, sans-serif; font-weight: 800; font-size: 15px;
  transition: background .2s;
}
body.dyari-has-chrome .dyari-product-main .single_add_to_cart_button:hover { background: #C99A4B !important; }
body.dyari-has-chrome .dyari-product-main .single_add_to_cart_button.disabled,
body.dyari-has-chrome .dyari-product-main .single_add_to_cart_button:disabled {
  background: #C9C2B2 !important; cursor: not-allowed; opacity: .8;
}

/* --- جدول مشخصات --- */
.dyari-specs { margin-top: 36px; }
.dyari-specs-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid #EFE7D6; border-radius: 14px; overflow: hidden;
}
.dyari-specs-table th {
  text-align: start; color: #27324A; font-size: 13.5px; font-weight: 700;
  width: 36%; padding: 11px 14px; background: #FBF8F1; border-bottom: 1px solid #F1E9D8;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.dyari-specs-table td {
  padding: 11px 14px; font-size: 14px; color: #4A4438;
  border-bottom: 1px solid #F1E9D8; font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.dyari-specs-table tr:last-child th, .dyari-specs-table tr:last-child td { border-bottom: 0; }

/* --- توضیحات وسط‌چین و متای زیر آن --- */
.dyari-desc { margin-top: 36px; }
.dyari-desc-body {
  text-align: center; line-height: 2.05; font-size: 15px; color: #4A4438;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.dyari-desc-body h2, .dyari-desc-body h3 { color: #27324A; text-align: center; }
.dyari-product-meta {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: center; font-size: 13px; color: #7A7466;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.dyari-product-meta a { color: #6E7448; font-weight: 700; }

/* --- اسکرولرهای پایین صفحه محصول --- */
.dyari-prod-scroll { margin-top: 38px; }

/* اصلاح ردیف خرید (۱.۹.۱): قیمت حتماً هم‌ردیف فرم و در انتهای چپ بماند */
body.dyari-has-chrome .dyari-buy-row { flex-wrap: nowrap !important; }
body.dyari-has-chrome .dyari-buy-row .wp-block-woocommerce-add-to-cart-form { min-width: 0; }
@media (max-width: 640px) {
  body.dyari-has-chrome .dyari-product-main .single_add_to_cart_button { padding: 11px 16px; font-size: 14px; }
  body.dyari-has-chrome .dyari-product-price .wc-block-components-product-price,
  body.dyari-has-chrome .dyari-product-price .price { font-size: 18px; }
}

/* جای قیمت (۱.۹.۲، به خواست کاربر): موبایل بالای دکمه افزودن، دسکتاپ انتهای چپ ردیف */
body.dyari-has-chrome .dyari-buy-row .wp-block-woocommerce-add-to-cart-form { order: 1; }
body.dyari-has-chrome .dyari-buy-row .dyari-product-price { order: 2; }
@media (max-width: 640px) {
  body.dyari-has-chrome .dyari-buy-row { flex-direction: column; flex-wrap: nowrap !important; gap: 8px; }
  body.dyari-has-chrome .dyari-buy-row .dyari-product-price {
    order: 0; align-self: flex-start; padding-top: 0;
  }
  body.dyari-has-chrome .dyari-buy-row .dyari-product-price .wc-block-components-product-price,
  body.dyari-has-chrome .dyari-buy-row .dyari-product-price .price { text-align: start; }
  body.dyari-has-chrome .dyari-buy-row .wp-block-woocommerce-add-to-cart-form { order: 1; width: 100%; }
}

/* پیام شناور «به سبد افزوده شد» (۱.۹.۳) — بالای نوار پایینی شناور، ۵ ثانیه */
.dyari-toast {
  position: fixed; left: 50%; bottom: 104px; z-index: 100000;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: #27324A; color: #fff; border-radius: 999px;
  padding: 12px 24px; max-width: calc(100vw - 32px); text-align: center;
  font-family: 'Vazirmatn', Tahoma, sans-serif; font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(39, 50, 74, .35);
  transition: opacity .3s ease, transform .3s ease;
}
.dyari-toast.dyari-toast-show { opacity: 1; transform: translate(-50%, 0); }

/* چیدمان نهایی قیمت (۱.۹.۵): قیمت سطر جدا و بالای فرم خرید — بدون فلکس */
body.dyari-has-chrome .dyari-product-price {
  display: block; margin: 12px 0 14px; padding: 0; text-align: start;
}
body.dyari-has-chrome .dyari-product-price .wc-block-components-product-price,
body.dyari-has-chrome .dyari-product-price .price {
  display: block; text-align: start;
}
body.dyari-has-chrome .dyari-product-price del {
  margin-inline-start: 10px; font-size: 15px;
}

/* === Dyari cart page (2026-11-03) — cream/navy/gold/olive; cart page only, cart drawer untouched === */
body.woocommerce-cart main{background:#F6F1EB;color:#27324A;overflow-x:hidden}
body.woocommerce-cart main *,body.woocommerce-cart main *::before,body.woocommerce-cart main *::after{box-sizing:border-box}
body.woocommerce-cart main .wp-block-woocommerce-cart,body.woocommerce-cart main .woocommerce,body.woocommerce-cart main .wc-block-cart,body.woocommerce-cart main .wc-block-cart__main,body.woocommerce-cart main .wc-block-cart__sidebar{max-width:100%;min-width:0}
body.woocommerce-cart main h1,body.woocommerce-cart main .wp-block-post-title,body.woocommerce-cart main .cart_totals h2{color:#27324A;font-family:'Vazirmatn',Tahoma,sans-serif}
body.woocommerce-cart main a{color:#27324A}
body.woocommerce-cart main img{max-width:100%;height:auto}
body.woocommerce-cart main .wc-block-cart-items,body.woocommerce-cart main table.shop_table.cart{background:#fff;border:1px solid #C99A4B;border-radius:18px;padding:8px 20px;box-shadow:0 8px 24px rgba(39,50,74,.06)}
body.woocommerce-cart main .wc-block-cart-item{border-bottom:1px solid rgba(201,154,75,.35);padding:18px 0}
body.woocommerce-cart main .wc-block-cart-item:last-child{border-bottom:0}
body.woocommerce-cart main .wc-block-cart-item__image img,body.woocommerce-cart main .product-thumbnail img{width:84px;height:84px;object-fit:cover;border:1px solid #C99A4B;border-radius:14px;max-width:100%}
body.woocommerce-cart main .wc-block-cart-item__product,body.woocommerce-cart main .wc-block-cart-item__product-name,body.woocommerce-cart main .product-name{min-width:0;overflow-wrap:anywhere;word-break:break-word}
body.woocommerce-cart main .wc-block-cart-item__product-name a,body.woocommerce-cart main .product-name a{color:#27324A;font-weight:700}
body.woocommerce-cart main .wc-block-components-product-price,body.woocommerce-cart main .product-price,body.woocommerce-cart main .product-subtotal{color:#27324A;overflow-wrap:anywhere}
body.woocommerce-cart main .wc-block-components-quantity-selector{border:1px solid #C99A4B;border-radius:999px;background:#fff;min-width:0}
body.woocommerce-cart main .wc-block-components-quantity-selector button{color:#27324A}
body.woocommerce-cart main .wc-block-components-quantity-selector input{color:#27324A;font-family:'Vazirmatn',Tahoma,sans-serif}
body.woocommerce-cart main .wc-block-cart-item__remove-link,body.woocommerce-cart main a.remove{color:#27324A;text-decoration:underline;text-underline-offset:3px}
body.woocommerce-cart main .wc-block-cart-item__remove-link:hover,body.woocommerce-cart main a.remove:hover{color:#C99A4B}
body.woocommerce-cart main .wc-block-cart__sidebar{width:100%}
body.woocommerce-cart main .wc-block-cart__totals,body.woocommerce-cart main .cart_totals{background:#fff;border:1px solid #C99A4B;border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(39,50,74,.06)}
body.woocommerce-cart main .wc-block-components-totals-item,body.woocommerce-cart main .cart_totals th,body.woocommerce-cart main .cart_totals td{color:#27324A}
body.woocommerce-cart main .wc-block-components-totals-coupon__form{display:flex;flex-wrap:wrap;gap:10px;max-width:100%}
body.woocommerce-cart main .wc-block-components-totals-coupon__input input,body.woocommerce-cart main .coupon input.input-text{border:1px solid #C99A4B!important;border-radius:12px;background:#F6F1EB;color:#27324A;min-width:0;flex:1 1 160px}
body.woocommerce-cart main .wc-block-components-totals-coupon__button button,body.woocommerce-cart main .coupon button.button{border:1px solid #C99A4B!important;border-radius:12px;background:#fff!important;color:#27324A!important;font-family:'Vazirmatn',Tahoma,sans-serif}
body.woocommerce-cart main .wc-block-cart__submit-button,body.woocommerce-cart main .checkout-button.button.alt,body.woocommerce-cart main .wc-proceed-to-checkout a{background:#6E7448!important;border:1px solid #6E7448!important;color:#fff!important;border-radius:14px;padding:14px 20px;width:100%;font-family:'Vazirmatn',Tahoma,sans-serif;font-weight:700;box-shadow:0 8px 20px rgba(110,116,72,.28)}
body.woocommerce-cart main .wc-block-cart__submit-button:hover,body.woocommerce-cart main .checkout-button.button.alt:hover{background:#5C633D!important;border-color:#5C633D!important}
body.woocommerce-cart main table.shop_table.cart{width:100%}
@media(max-width:768px){body.woocommerce-cart main .wc-block-cart{display:flex!important;flex-direction:column!important}body.woocommerce-cart main .wc-block-cart__main,body.woocommerce-cart main .wc-block-cart__sidebar,body.woocommerce-cart main .wc-block-cart__totals,body.woocommerce-cart main .cart_totals{width:100%!important;max-width:100%!important}body.woocommerce-cart main .wc-block-cart-item{display:flex;flex-wrap:wrap}body.woocommerce-cart main .wc-block-cart-items,body.woocommerce-cart main table.shop_table.cart{padding:4px 14px}body.woocommerce-cart main .wc-block-cart-item__image img{width:64px;height:64px}}
@media(max-width:600px){body.woocommerce-cart main .wc-block-cart-item__product{flex:1 1 140px}body.woocommerce-cart main .wc-block-cart-item__quantity{flex-wrap:wrap}body.woocommerce-cart main .wc-block-cart__submit-button,body.woocommerce-cart main .checkout-button.button.alt{width:100%}body.woocommerce-cart main table.shop_table.cart,body.woocommerce-cart main table.shop_table.cart tbody,body.woocommerce-cart main table.shop_table.cart tr,body.woocommerce-cart main table.shop_table.cart td{display:block;width:100%;max-width:100%}body.woocommerce-cart main table.shop_table.cart thead{display:none}}
/* Cart page, second pass: same rules keyed only to the cart block itself, so they apply even if the page body lacks the WooCommerce body class. These selectors exist only on the cart page. */
main:has(.wp-block-woocommerce-cart){background:#F6F1EB;color:#27324A;overflow-x:hidden}
main .wp-block-woocommerce-cart,main .wc-block-cart,main .wc-block-cart__main,main .wc-block-cart__sidebar{box-sizing:border-box;max-width:100%;min-width:0;font-family:'Vazirmatn',Tahoma,sans-serif;color:#27324A}
main .wc-block-cart-items,main table.shop_table.cart{background:#fff;border:1px solid #C99A4B;border-radius:18px;padding:8px 20px;box-shadow:0 8px 24px rgba(39,50,74,.06)}
main .wc-block-cart-item{border-bottom:1px solid rgba(201,154,75,.35);padding:18px 0}
main .wc-block-cart-item:last-child{border-bottom:0}
main .wc-block-cart-item__image img,main .product-thumbnail img{width:84px;height:84px;object-fit:cover;border:1px solid #C99A4B;border-radius:14px;max-width:100%}
main .wc-block-cart-item__product,main .wc-block-cart-item__product-name,main .product-name{min-width:0;overflow-wrap:anywhere;word-break:break-word}
main .wc-block-cart-item__product-name a,main .product-name a{color:#27324A;font-weight:700}
main .wc-block-components-quantity-selector{border:1px solid #C99A4B;border-radius:999px;background:#fff;min-width:0}
main .wc-block-components-quantity-selector button,main .wc-block-components-quantity-selector input{color:#27324A;font-family:'Vazirmatn',Tahoma,sans-serif}
main .wc-block-cart-item__remove-link,main a.remove{color:#27324A}
main .wc-block-cart__totals,main .cart_totals{background:#fff;border:1px solid #C99A4B;border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(39,50,74,.06)}
main .wc-block-components-totals-coupon__form{display:flex;flex-wrap:wrap;gap:10px;max-width:100%}
main .wc-block-components-totals-coupon__input input,main .coupon input.input-text{border:1px solid #C99A4B!important;border-radius:12px;background:#F6F1EB;color:#27324A;min-width:0;flex:1 1 160px}
main .wc-block-components-totals-coupon__button button,main .coupon button.button{border:1px solid #C99A4B!important;border-radius:12px;background:#fff!important;color:#27324A!important;font-family:'Vazirmatn',Tahoma,sans-serif}
main .wc-block-cart__submit-button,main .checkout-button.button.alt,main .wc-proceed-to-checkout a{background:#6E7448!important;border:1px solid #6E7448!important;color:#fff!important;border-radius:14px;padding:14px 20px;width:100%;font-family:'Vazirmatn',Tahoma,sans-serif;font-weight:700;box-shadow:0 8px 20px rgba(110,116,72,.28)}
main .wc-block-cart__submit-button:hover,main .checkout-button.button.alt:hover{background:#5C633D!important;border-color:#5C633D!important}
@media(max-width:768px){main .wc-block-cart{display:flex!important;flex-direction:column!important}main .wc-block-cart__main,main .wc-block-cart__sidebar,main .wc-block-cart__totals,main .cart_totals{width:100%!important;max-width:100%!important}main .wc-block-cart-item{display:flex;flex-wrap:wrap}main .wc-block-cart-items,main table.shop_table.cart{padding:4px 14px}main .wc-block-cart-item__image img{width:64px;height:64px}}
@media(max-width:600px){main .wc-block-cart-item__product{flex:1 1 140px}main .wc-block-cart-item__quantity{flex-wrap:wrap}main .wc-block-cart__submit-button,main .checkout-button.button.alt{width:100%}main table.shop_table.cart,main table.shop_table.cart tbody,main table.shop_table.cart tr,main table.shop_table.cart td{display:block;width:100%;max-width:100%}main table.shop_table.cart thead{display:none}}

/* Totals sidebar as a gold-bordered card (the sidebar itself holds coupon, totals and checkout). */
main .wc-block-cart__sidebar{background:#fff;border:1px solid #C99A4B;border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(39,50,74,.06)}
main .wc-block-cart__sidebar .wc-block-cart__totals{border:0;box-shadow:none;padding:0}
/* === Cart line total under the quantity stepper (2026-11-03, v1.9.10) ===
   Each Cart block item row becomes a grid. display:contents on the
   details and quantity wrappers lets the product, stepper, remove link
   and line total be placed as separate grid items, so the total sits in
   the row under the stepper, next to the remove icon, instead of in a
   far column that overflowed the card on narrow screens. The unit price
   under the product title is untouched. The items-table header (which
   labelled the old far total column) is hidden. */
body.woocommerce-cart main .wc-block-cart-items thead,body.woocommerce-cart main .wc-block-cart-items__header,main .wc-block-cart-items thead,main .wc-block-cart-items__header{display:none!important}
body.woocommerce-cart main .wc-block-cart-item,body.woocommerce-cart main .wc-block-cart-items__row,main .wc-block-cart-item,main .wc-block-cart-items__row{display:grid!important;grid-template-columns:84px minmax(0,auto) auto minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:14px;row-gap:8px;align-items:start;min-width:0}
body.woocommerce-cart main .wc-block-cart-item__details,body.woocommerce-cart main .wc-block-cart-item__quantity,main .wc-block-cart-item__details,main .wc-block-cart-item__quantity{display:contents}
body.woocommerce-cart main .wc-block-cart-item__image,main .wc-block-cart-item__image{grid-column:1;grid-row:1/span 3;align-self:start;min-width:0}
body.woocommerce-cart main .wc-block-cart-item__product,main .wc-block-cart-item__product{grid-column:2/span 3;grid-row:1;min-width:0}
body.woocommerce-cart main .wc-block-components-quantity-selector,main .wc-block-components-quantity-selector{grid-column:2;grid-row:2;justify-self:start;min-width:0}
body.woocommerce-cart main .wc-block-cart-item__remove-link,main .wc-block-cart-item__remove-link{grid-column:3;grid-row:3;justify-self:start;align-self:center;min-width:0}
body.woocommerce-cart main .wc-block-cart-item__total,main .wc-block-cart-item__total{grid-column:4;grid-row:3;justify-self:start;align-self:center;min-width:0;max-width:100%;text-align:start;overflow-wrap:anywhere}
body.woocommerce-cart main .wc-block-cart-item__total .wc-block-components-product-price,body.woocommerce-cart main .wc-block-cart-item__total .wc-block-cart-item__total-price-and-sale-badge-wrapper,main .wc-block-cart-item__total .wc-block-components-product-price,main .wc-block-cart-item__total .wc-block-cart-item__total-price-and-sale-badge-wrapper{text-align:start}
body.woocommerce-cart main table.shop_table.cart .product-subtotal,main table.shop_table.cart .product-subtotal{min-width:0;overflow-wrap:anywhere}
@media(max-width:768px){body.woocommerce-cart main .wc-block-cart-item,body.woocommerce-cart main .wc-block-cart-items__row,main .wc-block-cart-item,main .wc-block-cart-items__row{grid-template-columns:64px minmax(0,auto) auto minmax(0,1fr);column-gap:10px}body.woocommerce-cart main .wc-block-cart-item__total,main .wc-block-cart-item__total{font-size:15px}}
@media(max-width:600px){body.woocommerce-cart main .wc-block-cart-item,body.woocommerce-cart main .wc-block-cart-items__row,main .wc-block-cart-item,main .wc-block-cart-items__row{column-gap:8px;row-gap:6px}body.woocommerce-cart main .wc-block-cart-item__total,body.woocommerce-cart main .wc-block-cart-item__total .wc-block-components-product-price,main .wc-block-cart-item__total,main .wc-block-cart-item__total .wc-block-components-product-price{font-size:14px;line-height:1.4;white-space:normal}}

/* === Cart line total: remove link to the total row (2026-11-03, v1.9.11) ===
   Stronger placement for the quantity wrapper and the remove button,
   including class-substring and direct-child matches, so the remove
   button lands in the row under the stepper, next to the line total. */
body.woocommerce-cart main .wc-block-cart-item__quantity,body.woocommerce-cart main .wc-block-cart-items__row .wc-block-cart-item__quantity,main .wc-block-cart-item__quantity{display:contents!important}
body.woocommerce-cart main .wc-block-cart-item__remove-link,main .wc-block-cart-item__remove-link,body.woocommerce-cart main [class*="wc-block-cart-item__remove"],main [class*="wc-block-cart-item__remove"],body.woocommerce-cart main .wc-block-cart-item__details>button,body.woocommerce-cart main .wc-block-cart-item__details>a,body.woocommerce-cart main .wc-block-cart-item__quantity>button,body.woocommerce-cart main .wc-block-cart-item__quantity>a,main .wc-block-cart-item__details>button,main .wc-block-cart-item__details>a,main .wc-block-cart-item__quantity>button,main .wc-block-cart-item__quantity>a{grid-column:3!important;grid-row:3!important;justify-self:start!important;align-self:center!important}
body.woocommerce-cart main .wc-block-components-quantity-selector,main .wc-block-components-quantity-selector{grid-column:2!important;grid-row:2!important}
body.woocommerce-cart main .wc-block-cart-item__total,main .wc-block-cart-item__total{grid-column:4!important;grid-row:3!importa
/* === Cart line total: fixed grid columns (2026-11-03, v1.9.13) ===
   Fixed widths for the stepper and remove columns keep the remove icon
   and the line total adjacent in the row under the stepper, instead of
   letting the spanning product title widen the stepper column. */
body.woocommerce-cart main .wc-block-cart-item,body.woocommerce-cart main .wc-block-cart-items__row,main .wc-block-cart-item,main .wc-block-cart-items__row{grid-template-columns:84px 124px 28px minmax(0,1fr)!important}
@media(max-width:768px){body.woocommerce-cart main .wc-block-cart-item,body.woocommerce-cart main .wc-block-cart-items__row,main .wc-block-cart-item,main .wc-block-cart-items__row{grid-template-columns:64px 124px 28px minmax(0,1fr)!important}}

/* === Cart line total: align trash and total to the top of their row (2026-11-03, v1.9.14) === */
body.woocommerce-cart main .wc-block-cart-item__remove-link,main .wc-block-cart-item__remove-link,body.woocommerce-cart main .wc-block-cart-item__total,main .wc-block-cart-item__total{align-self:start!important;margin-top:0!important;padding-top:0!important}
body.woocommerce-cart main .wc-block-cart-item__total .wc-block-components-product-price,body.woocommerce-cart main .wc-block-cart-item__total .wc-block-cart-item__total-price-and-sale-badge-wrapper,main .wc-block-cart-item__total .wc-block-components-product-price,main .wc-block-cart-item__total .wc-block-cart-item__total-price-and-sale-badge-wrapper{margin-top:0!important;padding-top:0!important}
/* === Cart line total: neutralise grid, JS moves total beside trash (2026-11-03, v1.9.15) ===
   The earlier grid rules (v1.9.10-v1.9.14) are neutralised here so the
   Cart block returns to its normal table layout. A small JS snippet
   then moves each line total into a flex row with the remove control,
   under the quantity stepper. The items-table header stays hidden,
   as the far total column no longer exists. */
body.woocommerce-cart main .wc-block-cart-item,body.woocommerce-cart main .wc-block-cart-items__row,main .wc-block-cart-item,main .wc-block-cart-items__row{display:table-row!important;grid-template-columns:none!important;grid-template-rows:none!important;column-gap:0!important;row-gap:0!important;align-items:normal!important}
body.woocommerce-cart main .wc-block-cart-item__details,main .wc-block-cart-item__details{display:table-cell!important;grid-column:auto!important;grid-row:auto!important}
body.woocommerce-cart main .wc-block-cart-item__quantity,main .wc-block-cart-item__quantity{display:flex!important;align-items:center!important;gap:12px!important}
body.woocommerce-cart main .wc-block-cart-item__image,main .wc-block-cart-item__image{display:table-cell!important;grid-column:auto!important;grid-row:auto!important;align-self:auto!important}
body.woocommerce-cart main .wc-block-cart-item__product,main .wc-block-cart-item__product{display:block!important;grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;align-self:auto!important}
body.woocommerce-cart main .wc-block-components-quantity-selector,main .wc-block-components-quantity-selector{display:flex!important;grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;align-self:auto!important}
body.woocommerce-cart main .wc-block-cart-item__remove-link,main .wc-block-cart-item__remove-link,body.woocommerce-cart main [class*="wc-block-cart-item__remove"],main [class*="wc-block-cart-item__remove"]{grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;align-self:auto!important}
body.woocommerce-cart main .wc-block-cart-item__total,main .wc-block-cart-item__total{display:table-cell!important;grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;align-self:auto!important;margin-top:0!important;padding-top:0!important}
.dyari-cart-total-row{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin-top:10px!important;min-width:0!important}
.dyari-cart-total-row .wc-block-cart-item__total{display:block!important;grid-column:auto!important;grid-row:auto!important;min-width:0!important;max-width:100%!important;text-align:start!important;overflow-wrap:anywhere!important}
.dyari-cart-total-row .wc-block-cart-item__remove-link,.dyari-cart-total-row [class*="wc-block-cart-item__remove"]{flex-shrink:0!important;margin:0!important}
.dyari-cart-total-row .wc-block-cart-item__total .wc-block-components-product-price,.dyari-cart-total-row .wc-block-cart-item__total .wc-block-cart-item__total-price-and-sale-badge-wrapper{text-align:start!important;margin-top:0!important;padding-top:0!important}
@media(max-width:768px){.dyari-cart-total-row{gap:8px!important}.dyari-cart-total-row .wc-block-cart-item__total{font-size:15px!important}}
@media(max-width:600px){.dyari-cart-total-row .wc-block-cart-item__total,.dyari-cart-total-row .wc-block-cart-item__total .wc-block-components-product-price{font-size:14px!important;line-height:1.4!important;white-space:normal!important}}

	/* === Dyari card alignment (2026-11-03, v1.9.17): buttons fixed to the card bottom; all titles two lines === */
	.dyari-scroller { align-items: stretch; }
	.dyari-card { padding-bottom: 58px; }
	.dyari-card h3, .dyari-card.dyari-card-sale h3 { -webkit-line-clamp: 2; min-height: 48px; }
	.dyari-card .dyari-price { min-height: 56px; line-height: 1.7; display: flex; flex-direction: column; justify-content: flex-end; }
	.dyari-card .dyari-add { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0 auto; }
	@media (max-width: 420px) { .dyari-card h3, .dyari-card.dyari-card-sale h3 { min-height: 44px; } }
/* dyari-checkout-page: checkout styling matching the cart palette. */
body.woocommerce-checkout{
  background:#F6F1EB;
  color:#27324A;
  font-family:'Vazirmatn',Tahoma,sans-serif;
  overflow-x:hidden;
}
body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout form.woocommerce-checkout,
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review{
  max-width:100%;
  box-sizing:border-box;
}
body.woocommerce-checkout .woocommerce-checkout h3,
body.woocommerce-checkout .woocommerce-checkout h2{
  color:#27324A;
  font-family:'Vazirmatn',Tahoma,sans-serif;
}
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-form-coupon,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message{
  background:#FFFFFF;
  border:2px solid #C99A4B;
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
}
body.woocommerce-checkout .woocommerce-checkout label{
  color:#27324A;
  font-weight:600;
}
body.woocommerce-checkout .woocommerce-checkout input[type="text"],
body.woocommerce-checkout .woocommerce-checkout input[type="tel"],
body.woocommerce-checkout .woocommerce-checkout input[type="email"],
body.woocommerce-checkout .woocommerce-checkout input[type="password"],
body.woocommerce-checkout .woocommerce-checkout textarea,
body.woocommerce-checkout .woocommerce-checkout select{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  background:#FFFFFF;
  color:#27324A;
  border:1.5px solid #C99A4B;
  border-radius:10px;
  padding:12px 14px;
  font-family:'Vazirmatn',Tahoma,sans-serif;
}
body.woocommerce-checkout .woocommerce-checkout input:focus,
body.woocommerce-checkout .woocommerce-checkout textarea:focus,
body.woocommerce-checkout .woocommerce-checkout select:focus{
  border-color:#27324A;
  outline:none;
}
body.woocommerce-checkout .select2-container{
  width:100% !important;
  max-width:100%;
}
body.woocommerce-checkout .select2-container .select2-selection{
  border:1.5px solid #C99A4B !important;
  border-radius:10px !important;
  min-height:48px;
}
body.woocommerce-checkout .select2-container .select2-selection__rendered{
  color:#27324A !important;
  line-height:46px !important;
  font-family:'Vazirmatn',Tahoma,sans-serif;
}
body.woocommerce-checkout .select2-dropdown{
  border:1.5px solid #C99A4B !important;
  border-radius:12px !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table{
  width:100%;
  border-collapse:collapse;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td{
  padding:10px 8px;
  border-bottom:1px solid #E8DDC9;
  word-break:break-word;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td{
  color:#27324A;
  font-weight:700;
}
body.woocommerce-checkout #place_order{
  background:#6E7448;
  color:#FFFFFF;
  border:none;
  border-radius:12px;
  padding:16px 28px;
  font-family:'Vazirmatn',Tahoma,sans-serif;
  font-weight:700;
  font-size:17px;
  width:100%;
  cursor:pointer;
}
body.woocommerce-checkout #place_order:hover{
  background:#27324A;
}
body.woocommerce-checkout .woocommerce-error{
  max-width:100%;
  box-sizing:border-box;
}
@media (max-width:768px){
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review{
    width:100% !important;
    float:none !important;
    padding:16px;
  }
  body.woocommerce-checkout .woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .woocommerce-checkout .form-row-last{
    width:100% !important;
    float:none !important;
    margin-right:0;
    margin-left:0;
  }
  body.woocommerce-checkout #place_order{
    width:100%;
  }
  body.woocommerce-checkout .woocommerce-checkout-review-order-table{
    font-size:14px;
  }
}
@media (max-width:600px){
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review{
    padding:12px;
    border-radius:12px;
  }
  body.woocommerce-checkout .woocommerce-checkout input[type="text"],
  body.woocommerce-checkout .woocommerce-checkout input[type="tel"],
  body.woocommerce-checkout .woocommerce-checkout textarea{
    font-size:16px;
  }
}
/* dyari-checkout-form-scope: form-scoped duplicate of checkout card/input/button rules. */
form.woocommerce-checkout #customer_details,
form.woocommerce-checkout #order_review{
  background:#FFFFFF;
  border:2px solid #C99A4B;
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
}
form.woocommerce-checkout input[type="text"],
form.woocommerce-checkout input[type="tel"],
form.woocommerce-checkout textarea,
form.woocommerce-checkout select{
  border:1.5px solid #C99A4B !important;
  border-radius:10px !important;
}
form.woocommerce-checkout #place_order{
  background:#6E7448 !important;
  color:#FFFFFF !important;
	
}
/* dyari-coupon-toggle: style the coupon toggle notice like the other checkout cards. */
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.dyari-checkout-page .woocommerce-form-coupon-toggle{
  background:#FFFFFF;
  border:2px solid #C99A4B;
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle > div,
body.dyari-checkout-page .woocommerce-form-coupon-toggle > div{
  border:none !important;
  background:transparent !important;
  padding:0 !important;
  margin:0 !important;
}
}
/* Scroller two-price cards: one-line smaller title (sale + range-price variable). The leading } closes the pre-existing unclosed @media (max-width:600px) at the end of this file. */
.dyari-scroller .dyari-card.dyari-card-sale h3,
.dyari-scroller .dyari-card:has(.dyari-price del) h3,
.dyari-scroller .dyari-card:has(.dyari-price .woocommerce-Price-amount ~ .woocommerce-Price-amount) h3{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:0;font-size:13px;}
.dyari-scroller .dyari-card.dyari-card-sale .dyari-add,
.dyari-scroller .dyari-card:has(.dyari-price del) .dyari-add,
.dyari-scroller .dyari-card:has(.dyari-price .woocommerce-Price-amount ~ .woocommerce-Price-amount) .dyari-add{margin-top:auto;}/* Dyari product-page scrollers (single product): same look as the homepage scrollers.   Root cause: the --dy-* design tokens above are declared only under .dyari-home, so on   single product pages - which use the same .dyari-card / .dyari-scroller markup via the   [dyari_scrollers] shortcode - the variables were undefined: card background/border and   the gold add-to-cart button became invisible, and the theme default link underline showed   on card titles. Declaring the tokens on :root (same values) restores the homepage card   look here without changing the homepage. */:root {  --dy-bg: #F6F1EB;  --dy-navy: #27324A;  --dy-gold: #C99A4B;  --dy-olive: #6E7448;  --dy-border: #E8DDC9;  --dy-card: #FFFFFF;  --dy-muted: #7A7466;}.dyari-prod-scroll { font-family: 'Vazirmatn', Tahoma, sans-serif; color: var(--dy-navy); line-height: 1.8; }.dyari-prod-scroll *, .dyari-prod-scroll *::before, .dyari-prod-scroll *::after { box-sizing: border-box; }.dyari-prod-scroll img { max-width: 100%; display: block; }.dyari-prod-scroll a, .dyari-prod-scroll a:hover, .dyari-prod-scroll a:focus, .dyari-prod-scroll a:active { text-decoration: none; color: inherit; }.dyari-prod-scroll .dyari-scroller { scrollbar-width: none; }.dyari-prod-scroll .dyari-scroller::-webkit-scrollbar { display: none; }

/* DYARI MANUAL SPECIAL OFFERS (2026-11-09): the homepage "پیشنهادهای خاص" scroller gets a
   distinct deep-navy band so it stands out from the other scrollers. Only this section
   is styled; all other .dyari-section scrollers keep the default cream page background. */
.dyari-section.dyari-special-offers {
    background: #27324A;
    padding: 34px 0 40px;
    margin-top: 56px;
}
.dyari-section.dyari-special-offers .dyari-section-head h2 {
    color: #C99A4B;
}
.dyari-section.dyari-special-offers .dyari-section-head h2::after {
    background: #C99A4B;
}
.dyari-section.dyari-special-offers .dyari-more-card {
    color: #F6F1EB;
}
.dyari-section.dyari-special-offers .dyari-scroller {
    scrollbar-color: #C99A4B rgba(255, 255, 255, .12);
}