/*
Theme Name: یدک تی‌آر‌دی
Theme URI: https://www.instagram.com/yadak_trd
Author: Yadak TRD
Description: قالب فروشگاهی کارگاه تجهیزات حمل موتورکراس و آفرود. راست‌چین، واکنش‌گرا، سازگار با ووکامرس و گوتنبرگ. محتوا در افزونه همراه و ووکامرس می‌ماند.
Version: 1.2.9
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yadak-trd
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready, rtl-language-support, blog
*/

@font-face {
  font-family: Vazirmatn;
  src: url("assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("assets/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0eb;
  --card: #fffcf8;
  --ink: #16181b;
  --muted: #5c636a;
  --mist: #d5cfc6;
  --line: #e4ddd3;
  --line-dark: #3a3f44;
  --red: #c4121a;
  --red-deep: #8e0d13;
  --on-red: #fff7f6;
  --graphite: #121416;
  --steel: #23272b;
  --on-graphite: #f6f3ee;
  --sand: #e8e2d8;
  --ok: #1d6b3a;
  --radius: 4px;
  --content: 1120px;
  --shadow: 0 1px 2px rgb(22 24 27 / 0.06);
  --font: Vazirmatn, system-ui, sans-serif;
  --gap: 1.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: auto; }
html.yadak-smooth { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; }
button, [role="button"], .button, .yadak-btn { cursor: pointer; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: var(--red); color: var(--on-red); }

.skip-link {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--card);
  padding: 0.5rem 0.75rem;
}
.skip-link:focus { top: 0.75rem; }

.container { width: min(var(--content), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(46rem, calc(100% - 2rem)); margin-inline: auto; }

.topbar {
  background: var(--red);
  color: var(--on-red);
  font-size: 0.85rem;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar .container {
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar .grow { display: none; }

.site-header {
  position: relative;
  z-index: 40;
  background: var(--graphite);
  color: var(--on-graphite);
  border-bottom: 1px solid var(--line-dark);
}
.site-header.is-sticky { position: sticky; top: 0; }
.site-header.is-paper { background: var(--card); color: var(--ink); border-bottom-color: var(--line); }
.home .site-header.is-transparent {
  position: absolute;
  inset-inline: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
}
.home .site-header.is-transparent.is-sticky { position: absolute; top: 0; }
.home .topbar + .site-header.is-transparent { top: 2.25rem; }

.header-bar {
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand strong { display: block; font-size: 1rem; line-height: 1.2; }
.brand small { display: block; color: var(--mist); font-size: 0.75rem; }
.site-header.is-paper .brand small { color: var(--muted); }
.brand .custom-logo-link { display: flex; }
.brand .custom-logo { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.mark { width: 2.75rem; height: 2.75rem; flex: none; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: inherit;
}
.nav-toggle-lines { width: 1.25rem; display: grid; gap: .25rem; }
.nav-toggle-lines i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle-label { font-size: .78rem; font-weight: 700; }
.mobile-nav-backdrop { display: none; }

.primary-nav { margin-inline-start: 0.5rem; }
.primary-nav .menu,
.primary-nav .menu ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; align-items: center; gap: 0.15rem; }
.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.7rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  min-width: 14rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 30;
}
.primary-nav li { position: relative; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-submenu-open > .sub-menu { display: block; }
.primary-nav .sub-menu a { font-weight: 500; }
.primary-nav > .menu > li.mega { position: static; }
.primary-nav > .menu > li.mega > .sub-menu {
  inset-inline: 0;
  top: 100%;
  display: none;
  padding: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.primary-nav > .menu > li.mega:hover > .sub-menu,
.primary-nav > .menu > li.mega:focus-within > .sub-menu,
.primary-nav > .menu > li.mega.is-submenu-open > .sub-menu { display: grid; }
@media (min-width: 761px) {
  .primary-nav > .menu > li.menu-item-has-children > a {
    position: relative;
  }
  .primary-nav > .menu > li.menu-item-has-children > a::after {
    content: "";
    position: absolute;
    inset-inline: -1rem;
    top: 100%;
    height: 1.5rem;
    background: transparent;
    pointer-events: auto;
    z-index: 31;
  }
  .primary-nav > .menu > li > .sub-menu::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -1.25rem;
    height: 1.25rem;
    background: transparent;
    pointer-events: auto;
  }
  .primary-nav > .menu > li > .sub-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease 0.22s, visibility 0s linear 0.4s;
  }
  .primary-nav > .menu > li.mega > .sub-menu {
    display: grid;
  }
  .primary-nav > .menu > li:hover > .sub-menu,
  .primary-nav > .menu > li:focus-within > .sub-menu,
  .primary-nav > .menu > li.is-submenu-open > .sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s, 0s;
  }
}
.primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu {
  position: static;
  display: block;
  border: 0;
  box-shadow: none;
  background: transparent;
  min-width: 0;
}

.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 0.35rem; }
.header-tools a,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0 0.35rem;
  font-weight: 650;
}
.search-form { display: flex; }
.search-form input[type="search"] {
  width: 11rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: var(--steel);
  color: var(--on-graphite);
  padding-inline: 0.7rem;
}
.site-header.is-paper .search-form input[type="search"] {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.yadak-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding-inline: 0.3rem;
  border-radius: 99px;
  background: var(--red);
  color: var(--on-red);
  font-size: 0.75rem;
}

.hero { background: var(--graphite); color: var(--on-graphite); }
.home .site-header.is-transparent ~ .hero,
.home .hero.is-offset { padding-top: 2rem; }
.hero-grid, .split, .card-grid, .facts, .post-grid, .project-grid {
  display: grid;
  gap: var(--gap);
}
.hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-block: 3.2rem; }
.kicker { color: var(--mist); margin: 0; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0.6rem 0; }
.lede { color: var(--mist); max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.hero img, .media img, .archive-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }

.yadak-btn, .button, button.button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--red);
  color: var(--on-red);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.2;
}
.yadak-btn:hover, .button:hover, a.button:hover { background: var(--red-deep); color: var(--on-red); }
.yadak-btn.dark, .button.alt { background: var(--graphite); color: var(--on-graphite); }
.yadak-btn.ghost {
  background: transparent;
  color: var(--on-graphite);
  border-color: var(--line-dark);
}
.site-main .yadak-btn.ghost, .paper-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.section { padding-block: 2.4rem; }
.section-head, .row-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-head h2, .row-between h2 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.more { color: var(--red); font-weight: 700; text-decoration: none; }

.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.cat-card, .info-card, .post-card, .project-card, .product, .woocommerce ul.products li.product {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cat-card { display: flex; flex-direction: column; min-height: 9rem; padding: 1rem; text-decoration: none; }
.cat-card strong { margin-top: 0.4rem; }
.cat-card span { color: var(--muted); font-size: 0.86rem; }

.feature-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1rem; }
.feature-main, .side-card { background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.feature-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pad { padding: 1.1rem 1.2rem 1.3rem; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.band { background: var(--sand); border-block: 1px solid var(--line); padding-block: 2rem; }
.side-stack { display: grid; gap: 1rem; }
.side-card { display: grid; grid-template-columns: 8.5rem 1fr; }
.side-card img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0.8rem 0 0; list-style: none; }
.chips li { border: 1px solid var(--line); padding: 0.1rem 0.45rem; font-size: 0.85rem; }

.card-grid, .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.cols-2, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card, .project-card, .info-card { text-decoration: none; color: inherit; }
.post-card img, .project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.meta { color: var(--muted); font-size: 0.82rem; }

.site-footer { background: var(--graphite); color: var(--on-graphite); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding-block: 2.4rem; }
.footer-cols-3 .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-cols-2 .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-cols-1 .footer-grid { grid-template-columns: 1fr; }
.site-footer a { color: inherit; }
.site-footer .widget-title, .site-footer h2 { font-size: 1rem; }
.legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 0.9rem;
  color: var(--mist);
  font-size: 0.85rem;
}
.site-main { padding-bottom: 3rem; }
.page-head { padding-top: 1.6rem; }
.crumbs { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.6rem; }
.crumbs a { color: inherit; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: var(--radius); }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.5rem; align-items: start; }
.layout-sidebar.sidebar-left { grid-template-columns: 17rem minmax(0, 1fr); }
.layout-sidebar.sidebar-left .primary { order: 2; }
.widget { background: var(--card); border: 1px solid var(--line); padding: 0.9rem 1rem; margin-bottom: 1rem; }
.widget ul { padding-inline-start: 1.1rem; }

.wc-shell { display: block; }
.shop-archive .wc-shell {
  display: grid;
  grid-template-columns: 16.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-top: 1.4rem;
}
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.shop-filters { background: var(--card); border: 1px solid var(--line); padding: 0.9rem; }
.shop-filters summary { font-weight: 700; cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; }
.filter-block { border-top: 1px solid var(--line); padding-top: 0.7rem; margin-top: 0.7rem; }
.filter-block label { display: flex; gap: 0.4rem; align-items: center; font-size: 0.92rem; }
.swatch {
  width: 0.9rem; height: 0.9rem; border-radius: 99px; border: 1px solid var(--line); display: inline-block;
}
.price-row { display: flex; gap: 0.4rem; }
.price-row input, .field, input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="url"], textarea, select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
}
textarea.field, textarea { min-height: 8rem; }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto !important; margin: 0 !important; padding: 0 0 0.9rem; position: relative; }
.woocommerce ul.products li.product a img { margin: 0; aspect-ratio: 4/3; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0.7rem 0.85rem 0; font-size: 1rem; }
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .stock { padding-inline: 0.85rem; color: var(--ink); }
.woocommerce ul.products li.product .button { margin: 0.6rem 0.85rem 0; }
.woocommerce span.onsale {
  background: var(--red);
  color: var(--on-red);
  min-height: 0;
  line-height: 1.4;
  border-radius: var(--radius);
  inset-inline-start: 0.5rem;
  inset-block-start: 0.5rem;
  right: auto;
  left: auto;
}
.stock.in { color: var(--ok); }
.stock.out { color: var(--red); }
.yadak-tools { display: flex; gap: 0.4rem; padding: 0.4rem 0.85rem 0; }
.yadak-tools button, .yadak-tools a.tool {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 2.25rem;
  font-size: 0.8rem;
}
.loop-tools .yadak-tools { padding-inline: 0; }

.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; padding-top: 1.4rem; }
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary { float: none; width: auto; }
.woocommerce.single-product div.product div.images,
.woocommerce.single-product div.product div.summary {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.consult-note { color: var(--red); font-weight: 700; }

/* Single product editorial layout */
.single-product .site-main { background: #f4f0e9; }
.single-product .wc-shell { padding-top: 1.1rem; padding-bottom: 4rem; }
.single-product .breadcrumbs { margin-bottom: 1.2rem; color: #77716a; font-size: .83rem; }
.single-product div.product {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.2rem);
  align-items: start;
  padding-top: 0;
}
.single-product div.product .woocommerce-product-gallery {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
  background: #e9e5df;
  border: 1px solid #ddd6cc;
}
.single-product div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.single-product div.product .woocommerce-product-gallery__image a { display: block; }
.single-product div.product .woocommerce-product-gallery__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; padding: .65rem; margin: 0; }
.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: auto !important; float: none !important; }
.single-product .woocommerce-product-gallery .flex-control-thumbs img { aspect-ratio: 1; object-fit: cover; border: 1px solid transparent; }
.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { border-color: #c4121a; }
.single-product div.product .summary {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  padding-top: .35rem;
}
.single-product-eyebrow { margin: 0 0 .45rem; color: #69635d; font-size: .85rem; }
.single-product div.product .product_title { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.25; letter-spacing: -.035em; }
.single-product-sku { margin: .45rem 0 1rem; color: #8a837b; font-size: .84rem; }
.single-product div.product .summary > .price { margin: 1rem 0 .2rem; color: #111315; font-size: 1.15rem; font-weight: 700; }
.single-product div.product .summary > .price .amount { color: inherit; }
.single-product div.product .woocommerce-product-details__short-description { margin-top: 1.2rem; color: #59544e; font-size: 1rem; line-height: 2; }
.single-product-features { margin: 1.25rem 0 1.4rem; padding: 0; list-style: none; }
.single-product-features li { position: relative; margin: .35rem 0; padding-inline-start: 1rem; font-size: .9rem; font-weight: 600; }
.single-product-features li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35rem; width: 3px; height: 1.15rem; background: #c4121a; }
.single-product div.product form.cart { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: 1.2rem 0 .65rem; }
.single-product div.product form.cart .quantity { margin: 0 !important; }
.single-product div.product form.cart .button { min-height: 3rem; border-radius: 3px; background: #111315; }
.single-product-contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1rem; }
.single-product-contact-actions .consult-note { flex: 1 0 100%; margin: 0 0 .35rem; }
.single-product-contact-actions .button { min-height: 2.9rem; display: inline-flex; align-items: center; border: 1px solid #ddd6cc; border-radius: 3px; background: #fffdf9; color: #111315; }
.single-product-contact-actions .button.alt { background: #fffdf9; color: #111315; }
.single-product-contact-actions .product-call { background: #111315; border-color: #111315; color: #fff; }
.product-copy-link { flex: 1 0 100%; width: fit-content; margin-top: .25rem; padding: 0; border: 0; background: transparent; color: #77716a; font-size: .82rem; text-decoration: underline; }
.single-product div.product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 3.8rem;
  padding-top: 0;
  border-top: 0;
}
.single-product .woocommerce-tabs ul.tabs { display: flex; justify-content: flex-start; gap: 1.75rem; margin: 0 !important; padding: 0 !important; border-bottom: 1px solid #ddd6cc; }
.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.single-product .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.single-product .woocommerce-tabs ul.tabs li a { padding: .8rem .15rem !important; color: #625d57 !important; font-size: .9rem; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: #111315 !important; border-bottom: 3px solid #c4121a; }
.single-product .woocommerce-tabs .panel { margin: 0 !important; padding: 1.4rem 0 2rem; color: #393531; line-height: 2.1; }
.single-product .related.products { grid-column: 1 / -1; margin-top: 1.5rem; }
.single-product .related.products > h2 { margin-bottom: 1rem; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.single-product .related.products ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.single-product .related.products li.product { padding-bottom: 1rem; border-radius: 0; box-shadow: none; }
.single-product .related.products .star-rating,
.single-product .related.products .onsale,
.single-product .related.products .yadak-tools { display: none !important; }
.single-product .related.products li.product img { aspect-ratio: 4 / 3; }
.single-product .single-back-to-shop { grid-column: 1 / -1; margin: 1rem 0 0; text-align: start; }
.single-product .single-back-to-shop a { color: #c4121a; font-weight: 700; text-decoration: none; }

.pager { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1.2rem; }
.pager a, .pager span { min-width: 2.4rem; min-height: 2.4rem; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--card); text-decoration: none; }

.comment-list { list-style: none; padding: 0; }
.comment-list li { border-top: 1px solid var(--line); padding-block: 0.8rem; }
.hp { position: absolute; left: -9999px; }

.dialog {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  width: min(40rem, calc(100% - 2rem));
  padding: 1rem;
}
.dialog::backdrop { background: rgb(18 20 22 / 0.55); }

.cols-list .card-grid, .layout-list .post-grid { grid-template-columns: 1fr; }
.magazine .post-grid { grid-template-columns: 1.4fr 1fr 1fr; }

table.compare { width: 100%; border-collapse: collapse; background: var(--card); }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 0.55rem; vertical-align: top; text-align: start; }

.notice-bar { background: #fff4d8; border: 1px solid #e3c98a; padding: 0.7rem 0.9rem; }

@media (max-width: 1020px) {
  .hero-grid, .feature-grid, .layout-sidebar, .shop-archive .wc-shell, .single-product div.product { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid, .post-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid, .facts, .footer-grid, .footer-cols-3 .footer-grid, .footer-cols-2 .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar .grow { display: none; }
  .search-form { display: none; }
  .search-form.is-open { display: flex; position: absolute; inset-inline: 1rem; top: 4.2rem; }
  .search-form.is-open input { width: 100%; background: var(--card); color: var(--ink); }
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .summary { grid-column: 1; grid-row: auto; }
  .single-product .related.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 761px) {
  .shop-filters > .filter-body { display: block !important; }
}

@media (max-width: 760px) {
  body.nav-open { overflow: hidden; }
  .topbar { font-size: .72rem; }
  .topbar .container { min-height: 1.9rem; white-space: nowrap; }
  .site-header { z-index: 100; }
  .site-header.is-sticky { top: 0; }
  .header-bar {
    min-height: 4.35rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
  }
  .brand { min-width: 0; grid-column: 1; grid-row: 1; }
  .brand .custom-logo { width: 2.55rem; height: 2.55rem; }
  .brand > span { min-width: 0; }
  .brand strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand small { max-width: 13rem; font-size: .67rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle {
    position: relative;
    z-index: 105;
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 3.5rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .45rem .6rem;
    border: 1px solid rgb(255 255 255 / .16);
    border-radius: 4px;
  }
  body.nav-open .nav-toggle-lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle-lines i:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle-lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .primary-nav {
    position: fixed;
    z-index: 103;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(21rem, 88vw);
    overflow-y: auto;
    padding: 6.25rem 1rem 9rem;
    margin: 0;
    background: #15181b;
    border-inline-end: 1px solid #34383c;
    box-shadow: 20px 0 60px rgb(0 0 0 / .35);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
  }
  body.rtl .primary-nav { transform: translateX(105%); }
  body.nav-open .primary-nav { transform: translateX(0); visibility: visible; }
  .primary-nav::before {
    content: "فهرست سایت";
    display: block;
    margin-bottom: .75rem;
    padding: 0 .8rem .85rem;
    border-bottom: 1px solid #303438;
    color: #9ea3a7;
    font-size: .78rem;
    font-weight: 700;
  }
  .primary-nav .menu { flex-direction: column; align-items: stretch; gap: .15rem; }
  .primary-nav .menu > li > a {
    min-height: 3.25rem;
    justify-content: space-between;
    padding-inline: .8rem;
    border-bottom: 1px solid rgb(255 255 255 / .075);
    font-size: 1rem;
  }
  .primary-nav .sub-menu, .primary-nav > .menu > li.mega > .sub-menu,
  .primary-nav li:hover > .sub-menu, .primary-nav > .menu > li.mega:hover > .sub-menu {
    display: block;
    position: static;
    grid-template-columns: 1fr;
    background: transparent;
    color: inherit;
    border: 0;
    box-shadow: none;
    min-width: 0;
  }
  .primary-nav .sub-menu { padding: .2rem .7rem .6rem !important; }
  .primary-nav .sub-menu a { min-height: 2.65rem; padding-inline: .75rem; color: #c8cdd1; font-size: .86rem; }
  .header-tools {
    position: fixed;
    z-index: 104;
    inset-inline-start: 1rem;
    bottom: 1rem;
    width: min(19rem, calc(88vw - 2rem));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin: 0;
    padding-top: .8rem;
    border-top: 1px solid #303438;
    transform: translateX(-120%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
  }
  body.rtl .header-tools { transform: translateX(120%); }
  body.nav-open .header-tools { transform: translateX(0); visibility: visible; }
  .header-tools > a,
  .header-tools > .icon-btn {
    min-width: 0;
    min-height: 2.75rem;
    padding: .4rem;
    border: 1px solid #34383c;
    border-radius: 4px;
    background: #202428;
    font-size: .78rem;
  }
  .header-tools .header-cart { position: relative; }
  .header-tools .yadak-cart-count { position: absolute; top: -.4rem; inset-inline-end: -.25rem; }
  .header-tools .search-form {
    position: absolute;
    inset-inline: 0;
    bottom: 3.45rem;
    display: none;
    padding: .65rem;
    background: #202428;
    border: 1px solid #34383c;
  }
  .header-tools .search-form.is-open { display: flex; top: auto; }
  .header-tools .search-form input[type="search"] { width: 100%; background: #15181b; }
  .mobile-nav-backdrop {
    position: fixed;
    z-index: 102;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgb(0 0 0 / .62);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }
  body.nav-open .mobile-nav-backdrop { display: block; opacity: 1; visibility: visible; }
  .cat-grid, .card-grid, .post-grid, .project-grid, .facts, .footer-grid,
  .service-grid, .woocommerce ul.products, .magazine .post-grid { grid-template-columns: 1fr; }
  .side-card { grid-template-columns: 6.5rem 1fr; }
  .shop-filters:not([open]) > .filter-body { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.yadak-smooth { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.road-band { background: #121416; color: #f6f3ee; }
.road-band img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.road-grid { display: grid; gap: 1.5rem; align-items: end; padding-block: 2.5rem; }
.road-band .kicker, .road-band p { color: #d5d0c8; }
.cta-box { border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(0, 0, 0, 0.28); border-radius: 8px; padding: 1.4rem; }
.cta-box .yadak-btn { margin-top: 1rem; }
.float-call {
  position: fixed;
  z-index: 40;
  bottom: 1rem;
  inset-inline-start: 1rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: #c4121a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
@media (min-width: 64rem) {
  .road-grid { grid-template-columns: 1.3fr 0.7fr; }
}

.home-hero { position: relative; height: 100svh; min-height: 36rem; overflow: hidden; background: #121416; color: #f6f3ee; }
.home-slide { position: absolute; inset: 0; opacity: 0; }
.home-slide.is-active { opacity: 1; }
.home-hero .home-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-scrim { position: absolute; inset: 0; background: linear-gradient(to top, #121416 0%, rgba(18, 20, 22, .55) 42%, rgba(18, 20, 22, .2) 100%); }
.home-copy { position: absolute; z-index: 2; inset-inline: 0; bottom: 7rem; }
.home-copy h1 { max-width: 16em; font-size: clamp(2rem, 4.4vw, 3.4rem); margin: .4rem 0; }
.home-copy .lede { max-width: 36rem; color: #d9d3cb; }
.home-actions { position: absolute; z-index: 3; inset-inline: 0; bottom: 1.6rem; display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.hero-nav { display: flex; gap: .35rem; align-items: center; }
.hero-nav button { min-width: 2.75rem; min-height: 2.75rem; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; border-radius: 4px; }
.hero-nav .dot { width: .7rem; min-width: .7rem; height: .7rem; min-height: .7rem; padding: 0; border-radius: 99px; background: rgba(255,255,255,.45); }
.hero-nav .dot.is-active { background: #c4121a; border-color: #c4121a; }
.home-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-cats em { color: var(--muted); font-style: normal; font-size: .78rem; }
.build-band, .road-band { background: #121416; color: #f6f3ee; }
.build-film { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
.build-copy { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; padding-block: 1.5rem; }
.build-copy h2, .road-band h2 { margin: .3rem 0; }
.road-grid { grid-template-columns: 1.3fr 0.7fr; }
.section.tight { padding-top: 0; }
.mag-cover { display: grid; grid-template-columns: 1.15fr .85fr; background: #121416; color: #f6f3ee; text-decoration: none; overflow: hidden; }
.mag-cover img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.mag-cover span { display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem; padding: 1.6rem; }
.mag-cover strong { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.mag-cover em { color: #d9d3cb; font-style: normal; max-width: 28rem; }
.float-stack { position: fixed; z-index: 40; bottom: 1rem; inset-inline-end: 1rem; display: flex; flex-direction: column; gap: .45rem; }
.float-stack .float-call { position: static; }
.float-wa { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem 1rem; border-radius: 8px; background: #fff; color: #121416; border: 1px solid #d9d3cb; font-weight: 700; text-decoration: none; }
.site-footer .footer-grid ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.site-footer .footer-grid li { margin: .35rem 0; }
@media (max-width: 63.99rem) {
  .home-cats, .mag-cover, .build-copy, .road-grid { grid-template-columns: 1fr; }
  .build-copy { align-items: flex-start; flex-direction: column; }
}

/* Homepage cinematic redesign — 2026-10 */
.home {
  --home-cream: #f4f0e9;
  --home-card: #fffdf9;
  --home-dark: #111315;
  --home-red: #cf1421;
  background: var(--home-cream);
}
.home main { overflow: clip; }
.home .site-header { box-shadow: 0 10px 30px rgb(0 0 0 / .16); }
.home .header-bar { min-height: 4.4rem; }
.home .section { padding-block: clamp(3.4rem, 7vw, 6.4rem); }
.home .section.tight { padding-top: 0; padding-bottom: clamp(3.2rem, 6vw, 5.5rem); }
.home .section-head { margin-bottom: 1.5rem; align-items: end; }
.home .section-head h2 { margin: .2rem 0 0; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.home .section-head .meta { color: var(--home-red); font-weight: 700; }
.home .section-head .more { color: var(--home-red); font-weight: 700; text-decoration: none; }

.home-hero {
  height: clamp(34rem, 56vw, 44rem);
  min-height: 34rem;
  isolation: isolate;
  border-bottom: 4px solid var(--home-red);
}
.home-slide { transition: opacity .7s ease; }
.home-slide .home-film { transform: scale(1.015); }
.home-slide.is-active .home-film { animation: yadak-home-drift 12s ease-out both; }
@keyframes yadak-home-drift { from { transform: scale(1.055); } to { transform: scale(1.015); } }
.home-scrim {
  background:
    linear-gradient(90deg, rgb(8 10 12 / .08), rgb(8 10 12 / .35)),
    linear-gradient(0deg, rgb(8 10 12 / .94) 0%, rgb(8 10 12 / .36) 48%, rgb(8 10 12 / .14) 100%);
}
.home-copy { bottom: 8rem; }
.home-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .6rem;
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
}
.home-copy .kicker::before { content: ""; width: 2.25rem; height: 3px; background: var(--home-red); }
.home-copy h1 {
  max-width: 17em;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  text-shadow: 0 2px 28px rgb(0 0 0 / .35);
}
.home-copy .lede { max-width: 44rem; margin-top: .9rem; color: #eee9e2; font-size: clamp(1rem, 1.4vw, 1.16rem); }
.home-actions { bottom: 2.1rem; gap: .75rem; }
.home-actions .yadak-btn { min-height: 3.1rem; padding-inline: 1.3rem; border-radius: 2px; }
.home-actions .ghost { border-color: rgb(255 255 255 / .55); background: rgb(15 17 19 / .42); backdrop-filter: blur(8px); }
.home-actions .hero-nav { margin-inline-start: auto; }
.hero-nav button { transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.hero-nav button:hover { background: var(--home-red); border-color: var(--home-red); color: #fff; transform: translateY(-2px); }

.home-category-section { background: var(--home-cream); }
.home-cats { gap: 1px; background: #dcd5cb; border: 1px solid #dcd5cb; box-shadow: 0 16px 45px rgb(26 23 19 / .08); }
.home-cats .cat-card {
  position: relative;
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  padding: 1.45rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--home-card);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.home-cats .cat-card::after { content: "←"; position: absolute; inset-inline-end: 1.35rem; bottom: 1rem; color: var(--home-red); font-size: 1.15rem; }
.home-cats .cat-card strong { font-size: 1.03rem; }
.home-cats .cat-card span { color: #6f6a64; font-size: .86rem; line-height: 1.75; }
.home-cats .cat-card:hover { z-index: 1; background: var(--home-dark); color: #fff; transform: translateY(-4px); }
.home-cats .cat-card:hover span, .home-cats .cat-card:hover em { color: #d9d4cc; }

.home-cinema-band { position: relative; background: var(--home-dark); border-bottom: 1px solid #2b2e31; }
.home-cinema-band .build-film { aspect-ratio: 16 / 8.25; max-height: 78vh; background: #090a0b; }
.home-cinema-band .build-copy {
  min-height: 9.5rem;
  padding-block: 1.8rem;
  border-top: 1px solid rgb(255 255 255 / .08);
}
.home-cinema-band .build-copy > div { max-width: 48rem; }
.home-cinema-band .kicker { margin: 0; color: #bdb8b0; font-size: .82rem; }
.home-cinema-band h2 { color: #fff; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.home-cinema-band p { margin-bottom: 0; color: #d6d1ca; }
.home-cinema-band .yadak-btn { flex: none; min-width: 9rem; }

.home-trust-band { padding-block: 2.3rem; background: #e8e1d7; border-block: 1px solid #d8cfc3; }
.home-trust-band .facts { gap: 1px; background: #d4cbc0; }
.home-trust-band .fact { min-height: 8.5rem; padding: 1.25rem; border: 0; border-radius: 0; background: #f7f3ed; }
.home-trust-band .fact strong { display: block; margin-bottom: .35rem; font-size: 1rem; }
.home-trust-band .fact p { margin: 0; color: #69645e; font-size: .86rem; }

.home-shop-section,
.home-services-section,
.home-projects-section,
.home-magazine-section { background: var(--home-cream); }
.home-shop-section .products { gap: 1rem !important; }
.home-shop-section .woocommerce ul.products li.product {
  overflow: hidden;
  border: 1px solid #ddd6cc;
  border-radius: 0;
  background: var(--home-card);
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-shop-section .woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgb(20 18 16 / .1); }
.home-shop-section .woocommerce ul.products li.product img { aspect-ratio: 1 / .82; object-fit: cover; background: #ece8e2; }
.home-shop-section .home-product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.home-shop-section .home-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #ddd6cc !important;
  border-radius: 0 !important;
  background: #fffdf9 !important;
  box-shadow: none !important;
}
.home-product-media { position: relative; display: block; overflow: hidden; background: #e8e4df; }
.home-product-media img {
  width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  transition: transform .35s ease;
}
.home-product-card:hover .home-product-media img { transform: scale(1.025); }
.home-product-badge {
  position: absolute;
  top: .8rem;
  inset-inline-start: .8rem;
  z-index: 2;
  padding: .25rem .65rem;
  border: 1px solid #368653;
  background: rgb(255 255 255 / .68);
  color: #267241;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  backdrop-filter: blur(6px);
}
.home-product-badge.is-consult { border-color: #d71927; color: #c4121a; }
.home-product-body { flex: 1; display: flex; flex-direction: column; padding: 1rem 1rem .95rem; }
.home-product-category { color: #77716a; font-size: .76rem; }
.home-product-body h3 { margin: .35rem 0 .55rem; font-size: 1.08rem; line-height: 1.55; }
.home-product-body h3 a { color: #111315; text-decoration: none; }
.home-product-body > p { min-height: 4.8em; margin: 0; color: #66615b; font-size: .85rem; line-height: 1.85; }
.home-product-footer { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.home-product-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem 1rem;
  border-radius: 3px;
  background: #111315;
  color: #fff !important;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.home-product-button:hover { background: #c4121a; }
.home-product-price { color: #111315; font-size: .92rem; white-space: nowrap; }
.home-product-price del { display: none; }
.home-product-price ins { text-decoration: none; }
.home-product-consult { color: #c4121a; font-size: .85rem; line-height: 1.55; }

.home-services-section .service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border: 0;
  background: transparent;
}
.home-services-section .info-card {
  min-height: 7.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.3rem 1.55rem 1.4rem;
  border: 1px solid #ddd6cc;
  border-radius: 0;
  background: #fffdf9;
  box-shadow: none;
}
.home-services-section .info-card h3 {
  margin: 0 0 .55rem;
  color: #111315;
  font-size: 1.12rem;
  line-height: 1.55;
}
.home-services-section .info-card p {
  margin: 0;
  color: #67615b;
  font-size: .9rem;
  line-height: 1.9;
}
.home-services-section .info-card:hover {
  border-color: #c9bfb3;
  color: inherit;
  transform: none;
}
.home-projects-section .project-grid { gap: 1px; background: #dcd5cb; border: 1px solid #dcd5cb; }
.home-projects-section .entry-card { border: 0; border-radius: 0; background: var(--home-card); box-shadow: none; }
.home-projects-section .entry-card img { aspect-ratio: 4 / 3; object-fit: cover; }

.home-magazine-section .mag-cover { border-bottom: 4px solid var(--home-red); box-shadow: 0 22px 55px rgb(20 18 16 / .13); }
.home-magazine-section .mag-cover span { padding: clamp(1.5rem, 4vw, 3.4rem); }
.home-magazine-section .mag-cover small { color: #ff5d66; font-weight: 700; }

.home-road-band .road-video-stage { position: relative; isolation: isolate; }
.home-road-band .road-video-stage::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgb(8 10 12 / .58), transparent 62%); pointer-events: none; }
.home-road-band .build-film { aspect-ratio: 16 / 7.5; min-height: 32rem; }
.home-road-band .road-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.home-road-band .cta-box {
  width: min(24rem, 38vw);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 0;
  border-color: rgb(255 255 255 / .24);
  background: rgb(17 19 21 / .88);
  box-shadow: 0 18px 50px rgb(0 0 0 / .28);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.home-road-band .cta-box h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); }
.home-road-band .cta-box .yadak-btn { width: 100%; justify-content: center; margin-top: 1rem; }

@media (max-width: 63.99rem) {
  .home-hero { height: 42rem; min-height: 42rem; }
  .home-copy { bottom: 9.5rem; }
  .home-copy h1 { max-width: 13em; font-size: clamp(2.15rem, 8vw, 3.65rem); }
  .home-actions .hero-nav { width: 100%; margin-inline-start: 0; }
  .home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-shop-section .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cinema-band .build-film, .home-road-band .build-film { aspect-ratio: 4 / 3; }
  .home-road-band .cta-box { width: min(23rem, 52vw); }
}
@media (max-width: 39.99rem) {
  .home .section { padding-block: 3.2rem; }
  .home-hero { height: 39rem; min-height: 39rem; }
  .home-copy { bottom: 10.5rem; }
  .home-copy .lede { font-size: .92rem; }
  .home-actions { bottom: 1.1rem; }
  .home-actions .yadak-btn { flex: 1 1 calc(50% - .5rem); justify-content: center; padding-inline: .75rem; font-size: .86rem; }
  .home-cats { grid-template-columns: 1fr; }
  .home-shop-section .home-product-grid { grid-template-columns: 1fr; }
  .home-services-section .service-grid { grid-template-columns: 1fr; }
  .home-cats .cat-card { min-height: 8.5rem; }
  .home-cinema-band .build-film, .home-road-band .build-film { aspect-ratio: 1 / 1; }
  .home-road-band .build-film { min-height: 38rem; }
  .home-road-band .road-video-stage::after { background: linear-gradient(0deg, rgb(8 10 12 / .78), transparent 75%); }
  .home-road-band .road-overlay { align-items: flex-end; justify-content: center; padding-bottom: 1rem; }
  .home-road-band .cta-box { width: calc(100% - 1rem); padding: 1.25rem; }
  .home-cinema-band .build-copy { min-height: 0; padding-block: 1.35rem 1.6rem; }
  .home-magazine-section .mag-cover { grid-template-columns: 1fr; }
  .single-product .wc-shell { width: min(100% - 1.25rem, var(--content)); }
  .single-product div.product { gap: 1.4rem; }
  .single-product div.product .product_title { font-size: 2rem; }
  .single-product .related.products ul.products { grid-template-columns: 1fr; }
  .single-product .woocommerce-tabs ul.tabs { gap: .8rem; overflow-x: auto; }
}

/* ==========================================================================
   Blog, Category Archives & Single Article Redesign — 2026-10
   ========================================================================== */

.blog-main,
.single-post-main {
  background: #f4f0e9;
  padding-bottom: 4.5rem;
}

/* 1. Blog Hero Banner & Toolbar */
.blog-hero {
  position: relative;
  background: linear-gradient(135deg, #121417 0%, #1c2025 100%);
  color: #f6f3ee;
  border-bottom: 4px solid var(--red);
  padding: 1.75rem 0 2.1rem;
  margin-bottom: 2.25rem;
}

.blog-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.blog-hero .crumbs {
  margin: 0;
  color: #aeb4ba;
  font-size: 0.84rem;
}
.blog-hero .crumbs a {
  color: #d7dce0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-hero .crumbs a:hover {
  color: #fff;
}
.blog-hero .crumbs .sep {
  margin-inline: 0.35rem;
  opacity: 0.55;
}

.blog-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.75rem;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: #f6f3ee;
  font-size: 0.78rem;
  font-weight: 600;
}

.blog-hero-body {
  max-width: 52rem;
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  color: #ff6068;
  font-size: 0.84rem;
  font-weight: 700;
}
.blog-kicker::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  background: var(--red);
  display: inline-block;
}

.blog-hero h1 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: clamp(1.75rem, 3.3vw, 2.65rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.blog-lede {
  margin: 0;
  color: #cfd4d9;
  font-size: 0.96rem;
  line-height: 1.9;
  max-width: 48rem;
}

.blog-toolbar {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-cat-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.05);
  color: #e4e7eb;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.blog-pill:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.28);
  color: #fff;
  transform: translateY(-1px);
}
.blog-pill.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.blog-pill small {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding-inline: 0.3rem;
  border-radius: 99px;
  background: rgb(0 0 0 / 0.28);
  color: inherit;
  font-size: 0.73rem;
}

.blog-search-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 19rem;
  max-width: 24rem;
}
.blog-search-form input[type="search"] {
  flex: 1;
  min-height: 2.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(15 17 19 / 0.65);
  color: #fff;
  font-size: 0.86rem;
}
.blog-search-form input[type="search"]::placeholder {
  color: #9aa1a8;
}
.blog-search-form input[type="search"]:focus {
  border-color: var(--red);
  outline: none;
}
.blog-search-form button {
  flex: none;
  min-height: 2.55rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease;
}
.blog-search-form button:hover {
  background: var(--red-deep);
}

/* 2. Blog Shell & Layout with Sticky Sidebar */
.blog-shell.layout-sidebar,
.single-post-shell.layout-sidebar {
  grid-template-columns: minmax(0, 1fr) 20.5rem;
  gap: 2rem;
  align-items: start;
}
.blog-shell.layout-sidebar.sidebar-left,
.single-post-shell.layout-sidebar.sidebar-left {
  grid-template-columns: 20.5rem minmax(0, 1fr);
}

/* 3. Featured Article Showcase Card */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  background: #fffdf9;
  border: 1px solid #dcd4c8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgb(20 18 16 / 0.07);
  margin-bottom: 2.25rem;
}
.blog-featured-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1b1e22;
  min-height: 18rem;
}
.blog-featured-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.blog-featured-card:hover .blog-featured-media img {
  transform: scale(1.03);
}
.blog-featured-tag {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
}
.blog-featured-content {
  padding: clamp(1.35rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  color: #6c665f;
  font-size: 0.82rem;
}
.blog-meta-cat {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: #f1ebe2;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}
.blog-featured-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.42;
}
.blog-featured-title a {
  color: #141619;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-featured-title a:hover {
  color: var(--red);
}
.blog-featured-excerpt {
  margin: 0 0 1.35rem;
  color: #57524c;
  font-size: 0.93rem;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-featured-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #ebe4da;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.blog-featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 6px;
  padding: 0.5rem 1.15rem;
  font-size: 0.88rem;
}
.blog-featured-btn i {
  font-style: normal;
  transition: transform 0.2s ease;
}
.blog-featured-btn:hover i {
  transform: translateX(-3px);
}
.blog-featured-author {
  color: #77716a;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 4. Blog Section Heading & Article Cards Grid */
.blog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #e2dbd0;
}
.blog-section-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #141619;
  position: relative;
}
.blog-section-head span {
  color: #6e6861;
  font-size: 0.84rem;
  font-weight: 600;
}

.layout-sidebar .post-grid.blog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.post-grid.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.post-card.blog-card {
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid #dfd7cb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgb(20 18 16 / 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card.blog-card:hover {
  transform: translateY(-4px);
  border-color: #c9bfb1;
  box-shadow: 0 16px 34px rgb(20 18 16 / 0.1);
}

.post-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #202428;
  aspect-ratio: 16 / 10;
}
.post-card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card.blog-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 2;
  padding: 0.2rem 0.65rem;
  border-radius: 5px;
  background: rgb(18 20 22 / 0.84);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  border-inline-start: 3px solid var(--red);
}

.post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.1rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #77716a;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.post-card-title {
  margin: 0 0 0.6rem;
  font-size: 1.06rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title a {
  color: #141619;
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-card-title a:hover {
  color: var(--red);
}

.post-card-excerpt {
  margin: 0 0 1rem;
  color: #5c5751;
  font-size: 0.87rem;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid #eee8de;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}
.post-card-readmore i {
  font-style: normal;
  transition: transform 0.2s ease;
}
.post-card.blog-card:hover .post-card-readmore i {
  transform: translateX(-4px);
}

.blog-more-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.5rem;
  background: #fffdf9;
  border: 1px solid #dcd4c8;
  border-radius: 10px;
}
.blog-more-banner strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.blog-more-banner p {
  margin: 0;
  color: #5c5751;
  font-size: 0.88rem;
}

/* 5. Sticky Blog Sidebar */
.blog-sidebar {
  position: sticky;
  top: 5.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.blog-sidebar .widget {
  margin: 0;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #dfd7cb;
  background: #fffdf9;
  box-shadow: 0 6px 20px rgb(20 18 16 / 0.04);
}
.blog-sidebar .widget-title {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  color: #141619;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #ebe4da;
}

.blog-sidebar .sidebar-cta-card {
  background: #14171a;
  color: #f6f3ee;
  border-color: #2b3036;
  border-top: 4px solid var(--red);
}
.sidebar-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #ff6068;
  font-size: 0.76rem;
  font-weight: 700;
}
.blog-sidebar .sidebar-cta-card .widget-title {
  color: #fff;
  border-bottom-color: rgb(255 255 255 / 0.1);
}
.blog-sidebar .sidebar-cta-card p {
  margin: 0 0 1.1rem;
  color: #cfd4d9;
  font-size: 0.86rem;
  line-height: 1.85;
}
.sidebar-cta-actions {
  display: grid;
  gap: 0.55rem;
}
.sidebar-call-btn {
  width: 100%;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 6px;
}
.sidebar-shop-btn {
  width: 100%;
  justify-content: center;
  border-radius: 6px;
  color: #f6f3ee !important;
  border-color: rgb(255 255 255 / 0.22) !important;
  font-size: 0.84rem;
}
.sidebar-shop-btn:hover {
  background: rgb(255 255 255 / 0.08) !important;
}

.sidebar-equip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.sidebar-equip-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  background: #f7f3ec;
  border: 1px solid #ebe3d7;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.sidebar-equip-list li a:hover {
  background: #fff;
  border-color: var(--red);
  transform: translateX(-2px);
}
.sidebar-equip-list strong {
  display: block;
  font-size: 0.87rem;
  color: #141619;
}
.sidebar-equip-list span {
  display: block;
  font-size: 0.75rem;
  color: #6f6962;
}
.sidebar-equip-list i {
  font-style: normal;
  color: var(--red);
  font-weight: 700;
}

.sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.sidebar-post-item {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
}
.sidebar-post-thumb {
  display: block;
  width: 4.4rem;
  height: 3.4rem;
  border-radius: 6px;
  overflow: hidden;
  background: #202428;
}
.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-post-info strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #16181b;
  transition: color 0.2s ease;
}
.sidebar-post-item:hover .sidebar-post-info strong {
  color: var(--red);
}
.sidebar-post-info small {
  display: block;
  margin-top: 0.2rem;
  color: #7a736b;
  font-size: 0.74rem;
}

/* 6. Single Article Redesign */
.single-post-shell {
  padding-top: 1.75rem;
}
.single-article-card {
  background: #fffdf9;
  border: 1px solid #dfd7cb;
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  box-shadow: 0 8px 28px rgb(20 18 16 / 0.05);
}

.single-post-header {
  margin-bottom: 1.5rem;
}
.single-post-header .crumbs {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}
.single-post-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  color: #6e6861;
  font-size: 0.83rem;
}
.single-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.single-cat-badge:hover {
  background: var(--red-deep);
  color: #fff;
}

.single-post-title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.38;
  color: #141619;
}

.single-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #f6f2ea;
  border: 1px solid #e6dfd3;
}
.single-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.single-author-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  background: #14171a;
  border-bottom: 3px solid var(--red);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.single-author-info strong {
  display: block;
  font-size: 0.88rem;
  color: #141619;
}
.single-author-info span {
  display: block;
  font-size: 0.77rem;
  color: #6c665f;
}
.single-share-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #d5cdc0;
  background: #fff;
  color: #141619;
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.single-share-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.single-featured-media {
  margin: 0 0 1.65rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2dbd0;
}
.single-featured-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Auto Table of Contents */
.single-toc {
  margin: 0 0 1.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: 9px;
  background: #f7f3ec;
  border: 1px solid #e3dbd0;
  border-inline-start: 4px solid var(--red);
}
.single-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.single-toc-head strong {
  font-size: 0.95rem;
  color: #141619;
}
.single-toc-toggle {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #d5cdc0;
  background: #fff;
  color: #555;
  font-size: 0.76rem;
  font-weight: 600;
}
.single-toc-list {
  margin: 0.8rem 0 0;
  padding-inline-start: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.45rem 1.25rem;
}
.single-toc.is-collapsed .single-toc-list {
  display: none;
}
.single-toc-list li {
  font-size: 0.86rem;
  line-height: 1.6;
}
.single-toc-list a {
  color: #2b2f33;
  text-decoration: none;
}
.single-toc-list a:hover {
  color: var(--red);
}

/* Editorial Content Typography */
.single-entry-content {
  font-size: 1.02rem;
  line-height: 2.02;
  color: #222528;
}
.single-entry-content h2 {
  margin: 2.2rem 0 0.85rem;
  padding-inline-start: 0.85rem;
  border-inline-start: 4px solid var(--red);
  font-size: clamp(1.28rem, 2.2vw, 1.55rem);
  color: #141619;
  scroll-margin-top: 5.5rem;
}
.single-entry-content h3 {
  margin: 1.7rem 0 0.65rem;
  font-size: 1.16rem;
  color: #1c2024;
}
.single-entry-content p {
  margin: 0 0 1.2rem;
}
.single-entry-content ul,
.single-entry-content ol {
  margin: 0 0 1.35rem;
  padding-inline-start: 1.4rem;
}
.single-entry-content li {
  margin-bottom: 0.45rem;
}
.single-entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-inline-start: 4px solid var(--red);
  background: #f7f3ec;
  border-radius: 6px;
  color: #3a3632;
  font-style: normal;
}
.single-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid #dfd7cb;
}
.single-entry-content th,
.single-entry-content td {
  padding: 0.65rem 0.85rem;
  border: 1px solid #e5ddd2;
  text-align: start;
}
.single-entry-content th {
  background: #16191d;
  color: #fff;
  font-weight: 700;
}
.single-entry-content tr:nth-child(even) td {
  background: #faf7f2;
}

/* End-of-Article Workshop CTA */
.single-workshop-cta {
  margin-top: 2.4rem;
  padding: 1.6rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #14171a 0%, #20252b 100%);
  color: #f6f3ee;
  border-bottom: 4px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.single-workshop-cta-copy {
  flex: 1 1 24rem;
}
.single-workshop-cta-copy h2 {
  margin: 0.3rem 0 0.6rem;
  color: #fff;
  font-size: 1.25rem;
}
.single-workshop-cta-copy p {
  margin: 0 0 1rem;
  color: #cfd4d9;
  font-size: 0.88rem;
  line-height: 1.85;
}
.single-workshop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.single-workshop-links a {
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: #f6f3ee;
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.single-workshop-links a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.single-workshop-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 13.5rem;
}
.single-workshop-cta-actions .yadak-btn {
  width: 100%;
  justify-content: center;
  border-radius: 6px;
}
.single-workshop-cta-actions .yadak-btn.ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.28);
}

.single-tags {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ebe4da;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
}
.single-tags a {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: #f3eee6;
  color: #4a453f;
  text-decoration: none;
}
.single-tags a:hover {
  background: var(--red);
  color: #fff;
}

/* Post Navigation & Related Posts */
.single-post-nav .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.single-post-nav .nav-links a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border-radius: 9px;
  background: #fffdf9;
  border: 1px solid #dfd7cb;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.single-post-nav .nav-links a:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.single-post-nav .nav-label {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
}
.single-post-nav .nav-title {
  color: #141619;
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.single-related-posts {
  margin-top: 2.5rem;
}
.post-grid.related-post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

/* 7. Pagination Styling */
.pager .navigation.pagination {
  width: 100%;
}
.pager .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.75rem;
}
.pager .page-numbers {
  min-width: 2.6rem;
  min-height: 2.6rem;
  padding: 0.35rem 0.8rem;
  border-radius: 7px;
  border: 1px solid #dad1c4;
  background: #fffdf9;
  color: #16181b;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pager .page-numbers:hover {
  border-color: var(--red);
  color: var(--red);
}
.pager .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* 8. Responsive Breakpoints for Blog & Single */
@media (max-width: 1020px) {
  .blog-shell.layout-sidebar,
  .single-post-shell.layout-sidebar,
  .blog-shell.layout-sidebar.sidebar-left,
  .single-post-shell.layout-sidebar.sidebar-left {
    grid-template-columns: 1fr;
  }
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
  .blog-featured-media {
    min-height: 14rem;
  }
  .post-grid.related-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .blog-hero {
    padding: 1.25rem 0 1.5rem;
    margin-bottom: 1.5rem;
  }
  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-cat-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }
  .blog-pill {
    white-space: nowrap;
    flex: none;
  }
  .blog-search-form {
    max-width: none;
    flex: 1 1 auto;
  }
  .layout-sidebar .post-grid.blog-grid,
  .post-grid.blog-grid,
  .post-grid.related-post-grid,
  .single-post-nav .nav-links {
    grid-template-columns: 1fr;
  }
  .single-workshop-cta-actions {
    width: 100%;
  }
}

/* ==========================================================================
   Wishlist & Product Comparison System — 2026-10
   ========================================================================== */

.yadak-svg-icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

.is-wishlisted .icon-heart,
.yadak-wishlist-btn.is-on .icon-heart {
  fill: var(--red);
  stroke: var(--red);
}

/* Header Wishlist & Compare Links */
.header-wishlist-link,
.header-compare-link,
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.5rem !important;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.header-wishlist-link:hover,
.header-compare-link:hover,
.header-cart:hover {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.wishlist-count,
.compare-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding-inline: 0.3rem;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.14);
  color: #f6f3ee;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}
.wishlist-count.has-items,
.compare-count.has-items {
  background: var(--red);
  color: #fff;
}

/* Product Card Floating Overlay Tools (Shop, Category, Related, Home) */
.woocommerce ul.products li.product,
.home-product-media-wrap {
  position: relative;
}

.yadak-card-floating-tools {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.yadak-card-floating-tools .yadak-wishlist-btn,
.yadak-card-floating-tools .yadak-compare-btn {
  width: 2.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgb(20 22 25 / 0.14);
  background: rgb(255 253 249 / 0.92);
  backdrop-filter: blur(6px);
  color: #16181b;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.yadak-card-floating-tools .tool-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.yadak-card-floating-tools .yadak-wishlist-btn:hover,
.yadak-card-floating-tools .yadak-compare-btn:hover {
  transform: scale(1.08);
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}
.yadak-card-floating-tools .yadak-wishlist-btn.is-on {
  border-color: var(--red);
  background: #fff5f5;
  color: var(--red);
}
.yadak-card-floating-tools .yadak-compare-btn.is-on {
  border-color: #14171a;
  background: #14171a;
  color: #fff;
}

/* Bottom Card Tools Bar (.yadak-tools in Shop Loop) */
.yadak-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem 0;
}
.yadak-tools button.tool {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  border: 1px solid #dad1c4;
  background: #faf7f2;
  color: #16181b;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.yadak-tools button.tool:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}
.yadak-tools button.yadak-wishlist-btn.is-on {
  border-color: var(--red);
  background: #fff3f3;
  color: var(--red);
}
.yadak-tools button.yadak-compare-btn.is-on {
  border-color: #14171a;
  background: #14171a;
  color: #fff;
}

/* Single Product Wishlist & Compare Action Bar */
.single-product-tools-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e3dbd0;
}
.single-product-tools-wrap .single-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: 1px solid #d5cdc0;
  background: #fffdf9;
  color: #141619;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.single-product-tools-wrap .single-tool-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.single-product-tools-wrap .yadak-wishlist-btn.is-on {
  border-color: var(--red);
  background: #fff3f3;
  color: var(--red);
}
.single-product-tools-wrap .yadak-compare-btn.is-on {
  border-color: #14171a;
  background: #14171a;
  color: #fff;
}

/* Dedicated Wishlist & Compare Pages */
.wishlist-page-main,
.compare-page-main {
  background: #f4f0e9;
  padding-bottom: 4.5rem;
}

.tools-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.tools-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tools-hero-actions .yadak-btn.ghost {
  color: #f6f3ee;
  border-color: rgb(255 255 255 / 0.25);
}
.tools-hero-actions .yadak-btn.ghost:hover {
  background: rgb(255 255 255 / 0.1);
}
.tools-clear-btn {
  border-color: rgb(255 96 104 / 0.5) !important;
  color: #ff8086 !important;
}

.tools-page-container {
  min-height: 20rem;
}
[data-tools-stage].is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Empty State Card */
.wishlist-empty-state {
  background: #fffdf9;
  border: 1px solid #dfd7cb;
  border-radius: 12px;
  padding: clamp(2rem, 5vw, 3.6rem) 1.5rem;
  text-align: center;
  max-width: 44rem;
  margin: 1rem auto;
  box-shadow: 0 8px 28px rgb(20 18 16 / 0.05);
}
.wishlist-empty-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #f6f1e8;
  border: 1px solid #e5ddd0;
  color: var(--red);
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
}
.wishlist-empty-icon .yadak-svg-icon {
  width: 1.85rem;
  height: 1.85rem;
}
.wishlist-empty-state h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: #141619;
}
.wishlist-empty-state p {
  margin: 0 auto 1.4rem;
  max-width: 34rem;
  color: #5c5751;
  font-size: 0.93rem;
  line-height: 1.9;
}

/* Wishlist Grid & Product Cards */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.wishlist-product-card {
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid #dfd7cb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgb(20 18 16 / 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wishlist-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgb(20 18 16 / 0.1);
}
.wishlist-card-media {
  position: relative;
  background: #e9e4dc;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.wishlist-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.wishlist-product-card:hover .wishlist-card-media img {
  transform: scale(1.03);
}
.wishlist-card-status {
  position: absolute;
  bottom: 0.65rem;
  inset-inline-start: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  background: rgb(20 23 26 / 0.85);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}
.wishlist-card-status.is-ready {
  border-inline-start: 3px solid #268948;
}
.wishlist-card-status.is-consult {
  border-inline-start: 3px solid var(--red);
}
.wishlist-remove-chip {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgb(20 22 25 / 0.16);
  background: rgb(255 255 255 / 0.92);
  color: #16181b;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wishlist-remove-chip:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.wishlist-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem 1.2rem;
}
.wishlist-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.77rem;
  color: #77716a;
}
.wishlist-card-sku {
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: #f2ede4;
  color: #4a453f;
  font-weight: 600;
}
.wishlist-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.45;
}
.wishlist-card-title a {
  color: #141619;
  text-decoration: none;
}
.wishlist-card-title a:hover {
  color: var(--red);
}
.wishlist-card-desc {
  margin: 0 0 0.9rem;
  color: #5c5751;
  font-size: 0.85rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wishlist-card-price-row {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #eee8de;
  margin-bottom: 0.85rem;
}
.wishlist-price {
  color: #141619;
  font-size: 1rem;
}
.wishlist-consult-label {
  color: var(--red);
  font-size: 0.84rem;
}
.wishlist-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wishlist-main-btn {
  flex: 1;
  min-height: 2.6rem;
  font-size: 0.85rem;
  border-radius: 6px;
}
.wishlist-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.6rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #d5cdc0;
  background: #faf7f2;
  color: #141619;
  font-size: 0.82rem;
  font-weight: 600;
}
.wishlist-compare-btn.is-on {
  background: #14171a;
  border-color: #14171a;
  color: #fff;
}

/* Compare Quick Picker & Add Bar */
.compare-quick-picker {
  max-width: 34rem;
  margin: 0 auto 1.4rem;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  background: #f7f3ec;
  border: 1px solid #e4dcd0;
  text-align: start;
}
.compare-quick-picker label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.compare-picker-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.compare-picker-row select {
  flex: 1 1 15rem;
  min-height: 2.65rem;
  border-radius: 6px;
}
.compare-picker-row .yadak-btn {
  flex: none;
  min-height: 2.65rem;
  border-radius: 6px;
}

.compare-add-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: #fffdf9;
  border: 1px solid #dfd7cb;
  border-radius: 10px;
}
.compare-add-bar-label strong {
  display: block;
  font-size: 0.94rem;
  color: #141619;
}
.compare-add-bar-label span {
  font-size: 0.8rem;
  color: #6f6962;
}
.compare-add-bar .compare-picker-row {
  flex: 1 1 24rem;
  max-width: 34rem;
}

/* Side-by-Side Comparison Table (.yadak-compare-table) */
.compare-table-scroll {
  width: 100%;
  overflow-x: auto;
  background: #fffdf9;
  border: 1px solid #dfd7cb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(20 18 16 / 0.06);
}

.yadak-compare-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  table-layout: fixed;
}
.yadak-compare-table th,
.yadak-compare-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid #e9e2d8;
  border-inline-start: 1px solid #e9e2d8;
  vertical-align: top;
  text-align: start;
  font-size: 0.89rem;
  line-height: 1.75;
}
.yadak-compare-table tr:last-child th,
.yadak-compare-table tr:last-child td {
  border-bottom: 0;
}

.yadak-compare-table .compare-feature-col {
  width: 13.5rem;
  background: #16191d;
  color: #f6f3ee;
  font-weight: 700;
  font-size: 0.86rem;
  border-inline-start: 0;
  border-bottom-color: #2a2f35;
  position: sticky;
  inset-inline-start: 0;
  z-index: 3;
}
.yadak-compare-table thead .compare-feature-col {
  vertical-align: middle;
  font-size: 0.96rem;
  border-top-right-radius: 11px;
}

.yadak-compare-table tbody tr:nth-child(even) td {
  background: #faf7f1;
}

.compare-col-head {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.compare-remove-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.6rem;
  border-radius: 5px;
  border: 1px solid #dfd7cb;
  background: #f7f3ec;
  color: #5c5751;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.compare-remove-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.compare-col-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #e9e4dc;
  border: 1px solid #e2dbd0;
  aspect-ratio: 4 / 3;
}
.compare-col-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-col-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
}
.compare-col-title a {
  color: #141619;
  text-decoration: none;
}
.compare-col-title a:hover {
  color: var(--red);
}
.compare-buy-btn {
  width: 100%;
  min-height: 2.55rem;
  border-radius: 6px;
  font-size: 0.84rem;
}

.compare-placeholder-col {
  background: #faf7f1;
  vertical-align: middle !important;
}
.compare-placeholder-box {
  padding: 1.25rem;
  border: 2px dashed #d5cdc0;
  border-radius: 10px;
  text-align: center;
}
.compare-placeholder-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #eee7dc;
  color: var(--red);
  display: inline-grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.compare-placeholder-box strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.compare-placeholder-box p {
  margin: 0 0 0.85rem;
  color: #6b655e;
  font-size: 0.82rem;
}
.is-placeholder-cell {
  color: #b5ada2;
  text-align: center !important;
}

.compare-price-val {
  color: #141619;
  font-size: 0.98rem;
}
.compare-consult-val {
  color: var(--red);
  font-weight: 700;
  font-size: 0.84rem;
}
.compare-stock-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
}
.compare-stock-badge.is-in {
  background: #e7f6ec;
  color: #1c6b36;
}
.compare-stock-badge.is-consult {
  background: #fff0f0;
  color: var(--red);
}
.compare-stock-badge.is-out {
  background: #f2eee8;
  color: #6b655e;
}
.compare-sku-val {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #f0ebe1;
  font-family: monospace;
  font-size: 0.82rem;
}
.compare-sub-note {
  display: block;
  margin-top: 0.25rem;
  color: #6e6861;
  font-size: 0.78rem;
}
.compare-desc-cell {
  color: #55504a;
  font-size: 0.84rem;
}

/* Floating Toast Notification */
.yadak-tool-toast {
  position: fixed;
  z-index: 95;
  bottom: 1.25rem;
  inset-inline-start: 1.25rem;
  max-width: min(26rem, calc(100vw - 2.5rem));
  background: #14171a;
  color: #f6f3ee;
  border: 1px solid #2e3338;
  border-inline-start: 4px solid var(--red);
  border-radius: 9px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 16px 38px rgb(0 0 0 / 0.32);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.yadak-tool-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.yadak-tool-toast-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.yadak-tool-toast-text {
  font-size: 0.85rem;
  font-weight: 600;
}
.yadak-tool-toast-link {
  color: #ff6068;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.yadak-tool-toast-link:hover {
  color: #fff;
}

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

@media (max-width: 760px) {
  .wishlist-grid {
    grid-template-columns: 1fr;
  }
  .yadak-compare-table .compare-feature-col {
    width: 9.2rem;
    font-size: 0.78rem;
    padding: 0.75rem 0.65rem;
  }
  .yadak-compare-table td {
    padding: 0.75rem 0.75rem;
    font-size: 0.82rem;
  }
  .header-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Header, Search Box, Action Icons & Topbar Redesign — 2026-10
   ========================================================================== */

/* 1. Topbar (Contact Info, Location & Working Hours) */
.topbar {
  background: linear-gradient(90deg, #b80f17 0%, #cf151e 50%, #b80f17 100%);
  color: #ffffff;
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.82rem;
  line-height: 1.5;
}

.topbar .topbar-inner {
  width: min(var(--content), calc(100% - 2.5rem));
  padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  padding-block: 0.25rem;
}

.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #ffffff;
  font-weight: 500;
  margin: 0;
}

.topbar-icon {
  width: 0.92rem;
  height: 0.92rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  opacity: 0.92;
}

.topbar-sep {
  color: rgb(255 255 255 / 0.45);
  font-size: 0.78rem;
  user-select: none;
}

.topbar-location {
  font-weight: 600;
}

.topbar-announce {
  color: #fff6f6;
}

.topbar-hours {
  padding: 0.14rem 0.6rem;
  border-radius: 99px;
  background: rgb(0 0 0 / 0.18);
  color: #ffffff;
  font-size: 0.79rem;
}

.topbar-phone {
  padding: 0.16rem 0.7rem;
  border-radius: 99px;
  background: rgb(18 20 22 / 0.32);
  border: 1px solid rgb(255 255 255 / 0.24);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.82rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.topbar-phone:hover {
  background: #121416;
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.topbar-phone strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 2. Main Header Container, Brand & Primary Navigation Spacing */
.site-header {
  background: #14171b;
  border-bottom: 1px solid #2b3037;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.18);
}

.site-header .header-bar {
  width: min(var(--content), calc(100% - 2.5rem));
  padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.35rem;
  margin-inline-end: 0.35rem;
}
.site-header .brand strong {
  color: #ffffff;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}
.site-header .brand small {
  color: #cbd5e1;
  font-size: 0.74rem;
  margin-top: 0.1rem;
}

@media (min-width: 761px) {
  .site-header .primary-nav {
    margin-inline-start: 0.25rem;
    margin-inline-end: auto;
  }
  .site-header .primary-nav > .menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .site-header .primary-nav > .menu > li > a {
    min-height: 2.55rem;
    padding-inline: 0.78rem;
    border-radius: 7px;
    color: #f1f5f9;
    font-size: 0.91rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .site-header .primary-nav > .menu > li:hover > a,
  .site-header .primary-nav > .menu > li.current-menu-item > a,
  .site-header .primary-nav > .menu > li.current-menu-ancestor > a {
    background: rgb(255 255 255 / 0.09);
    color: #ffffff;
  }
}

/* 3. High-Contrast Header Search Form (.header-search) */
.header-tools .search-form.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: clamp(12.5rem, 17vw, 16rem);
  height: 2.55rem;
  background: #232931;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-tools .search-form.header-search:hover {
  background: #282f38;
  border-color: rgb(255 255 255 / 0.52);
}

.header-tools .search-form.header-search:focus-within {
  background: #1d2229;
  border-color: #ff4752;
  box-shadow: 0 0 0 3px rgb(196 18 26 / 0.28);
}

.header-tools .search-form.header-search .search-field {
  flex: 1;
  width: 100% !important;
  min-width: 0;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  padding: 0 0.8rem 0 0.35rem !important;
  font-size: 0.84rem;
  font-weight: 500;
  outline: none !important;
  box-shadow: none !important;
}

.header-tools .search-form.header-search .search-field::placeholder {
  color: #dce4ee !important;
  opacity: 1 !important;
  font-weight: 400;
}

.header-tools .search-form.header-search .search-submit {
  flex: none;
  width: 2.35rem;
  height: 100%;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-tools .search-form.header-search .search-submit:hover {
  background: var(--red);
  color: #ffffff;
}

/* Hide redundant search-toggle button on desktop when inline search box is visible */
@media (min-width: 1081px) {
  .header-tools .search-toggle {
    display: none !important;
  }
}

/* 4. Left Action Buttons (Wishlist, Compare, Cart) Alignment & Balance */
.header-tools.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.header-tools .header-action-btn,
.header-tools .search-toggle {
  height: 2.55rem;
  min-height: 2.55rem;
  min-width: 2.55rem;
  padding: 0 0.72rem !important;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.06);
  color: #f8fafc !important;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-tools .header-action-btn:hover,
.header-tools .search-toggle:hover {
  background: rgb(255 255 255 / 0.14);
  border-color: rgb(255 255 255 / 0.4);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.header-tools .header-action-btn .yadak-svg-icon,
.header-tools .search-toggle .yadak-svg-icon {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
}

.header-tools .wishlist-count,
.header-tools .compare-count,
.header-tools .yadak-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.38rem;
  height: 1.38rem;
  padding-inline: 0.32rem;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.16);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
}

.header-tools .wishlist-count.has-items,
.header-tools .compare-count.has-items,
.header-tools .yadak-cart-count.has-items,
.header-tools .header-cart .yadak-cart-count {
  background: var(--red);
  color: #ffffff;
}

/* 5. Responsive Adjustments (Compact Desktop, Tablet & Mobile) */
@media (min-width: 761px) and (max-width: 1220px) {
  .header-tools .header-action-btn .action-label {
    display: none;
  }
  .header-tools .header-action-btn {
    padding: 0 0.55rem !important;
  }
  .header-tools .search-form.header-search {
    width: 12rem;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .topbar-announce,
  .topbar-sep {
    display: none;
  }
  .header-tools .search-toggle {
    display: inline-flex !important;
  }
  .header-tools .search-toggle span {
    display: none;
  }
  .header-tools .search-form.header-search {
    display: none;
    position: absolute;
    inset-inline: 1.25rem;
    top: calc(100% + 0.45rem);
    width: auto;
    height: 2.85rem;
    z-index: 60;
    background: #1b2026;
    border-color: rgb(255 255 255 / 0.38);
    box-shadow: 0 14px 34px rgb(0 0 0 / 0.35);
  }
  .header-tools .search-form.header-search.is-open {
    display: flex;
  }
}

@media (max-width: 760px) {
  .topbar .topbar-inner {
    width: calc(100% - 1.5rem);
    padding-inline: 0.25rem;
    min-height: 2.2rem;
    justify-content: space-between;
    gap: 0.4rem 0.65rem;
  }
  .topbar-announce,
  .topbar-sep {
    display: none;
  }
  .topbar-location {
    font-size: 0.75rem;
  }
  .topbar-hours {
    font-size: 0.73rem;
    padding: 0.1rem 0.48rem;
  }
  .topbar-phone {
    font-size: 0.76rem;
    padding: 0.12rem 0.58rem;
  }

  .site-header .header-bar {
    width: calc(100% - 1.5rem);
    padding-inline: 0.25rem;
    min-height: 4.25rem;
  }

  .header-tools.header-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .header-tools .header-action-btn,
  .header-tools .search-toggle {
    width: 100%;
    height: 2.75rem;
    padding: 0 0.6rem !important;
    background: #20252b;
    border-color: rgb(255 255 255 / 0.22);
    font-size: 0.8rem;
  }
  .header-tools .header-cart .yadak-cart-count {
    position: static;
  }
  .header-tools .search-form.header-search {
    position: absolute;
    inset-inline: 0;
    bottom: calc(100% + 0.55rem);
    top: auto;
    width: 100%;
    height: 2.8rem;
    padding: 0;
    background: #232931;
    border: 1px solid rgb(255 255 255 / 0.38);
    display: none;
  }
  .header-tools .search-form.header-search.is-open {
    display: flex;
  }
}

@media (max-width: 480px) {
  .topbar-location {
    display: none;
  }
  .topbar-end {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Shop Submenu ("فروشگاه") Compact RTL Layout & Responsive Optimization
   ========================================================================== */

@media (min-width: 761px) {
  /* Anchor dropdown directly to the "فروشگاه" item instead of full-header width */
  .site-header .primary-nav > .menu > li.menu-item-has-children,
  .site-header .primary-nav > .menu > li.mega {
    position: relative !important;
  }

  /* Subtle caret indicator on top-level parent item ("فروشگاه") */
  .site-header .primary-nav > .menu > li.menu-item-has-children > a {
    gap: 0.38rem;
  }
  .site-header .primary-nav > .menu > li.menu-item-has-children > a::before {
    content: "▾";
    order: 2;
    font-size: 0.72rem;
    line-height: 1;
    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .site-header .primary-nav > .menu > li.menu-item-has-children:hover > a::before,
  .site-header .primary-nav > .menu > li.menu-item-has-children.is-submenu-open > a::before {
    transform: rotate(180deg);
    opacity: 1;
  }

  /* Invisible hover bridge between "فروشگاه" button and panel */
  .site-header .primary-nav > .menu > li.menu-item-has-children > a::after {
    content: "";
    position: absolute;
    inset-inline: -0.5rem;
    top: 100%;
    height: 1rem;
    background: transparent;
    pointer-events: auto;
    z-index: 45;
  }

  /* Compact, fitted dropdown panel positioned directly below "فروشگاه" in RTL */
  .site-header .primary-nav > .menu > li > .sub-menu,
  .site-header .primary-nav > .menu > li.mega > .sub-menu {
    position: absolute !important;
    top: calc(100% + 0.4rem) !important;
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    right: 0 !important;
    left: auto !important;
    width: max-content !important;
    min-width: 26.5rem !important;
    max-width: min(32rem, calc(100vw - 2rem)) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0.75rem 0.4rem !important;
    margin: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    background: #fffdf9 !important;
    color: #16181b !important;
    border: 1px solid #d5cdc0 !important;
    border-top: 3px solid var(--red) !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 36px rgb(15 18 22 / 0.18), 0 3px 10px rgb(15 18 22 / 0.08) !important;
    z-index: 50 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(8rem, 10rem)) !important;
    align-items: start !important;
    gap: 0 !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.18s ease 0.2s, transform 0.18s ease 0.2s, visibility 0s linear 0.38s;
  }

  .site-header .primary-nav > .menu > li > .sub-menu::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -0.65rem;
    height: 0.65rem;
    background: transparent;
    pointer-events: auto;
  }

  .site-header .primary-nav > .menu > li:hover > .sub-menu,
  .site-header .primary-nav > .menu > li:focus-within > .sub-menu,
  .site-header .primary-nav > .menu > li.is-submenu-open > .sub-menu {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition-delay: 0s, 0s, 0s !important;
  }

  /* Column groups inside the "فروشگاه" panel */
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0 !important;
    padding: 0.15rem 0.65rem !important;
    margin: 0 !important;
    border-inline-start: 1px solid #ebe4da;
  }
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li:first-child {
    border-inline-start: 0;
  }

  /* Column Header Links (حمل و جابه‌جایی | کارگاه | تمرین) */
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li > a {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    min-height: 2rem !important;
    padding: 0.28rem 0.5rem !important;
    margin-bottom: 0.3rem !important;
    border-bottom: 1px solid #e6dfd5 !important;
    border-radius: 5px 5px 0 0 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #14171b !important;
    background: transparent !important;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease;
  }
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li > a::before {
    content: "";
    width: 3px;
    height: 0.85rem;
    border-radius: 2px;
    background: var(--red);
    flex: none;
  }
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li > a:hover,
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li > a:focus-visible {
    color: var(--red) !important;
    background: #f6f1e8 !important;
  }

  /* Second-level list inside each column */
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu::before {
    display: none !important;
  }

  /* Second-level item links (تریلر حمل، یدک‌کش، استند، رمپ، جک استند) */
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu > li {
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu > li > a {
    display: flex !important;
    align-items: center !important;
    min-height: 1.9rem !important;
    padding: 0.25rem 0.55rem !important;
    border-radius: 6px !important;
    font-size: 0.83rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #3b4046 !important;
    background: transparent !important;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, padding-inline-start 0.18s ease;
  }
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu > li > a:hover,
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu > li > a:focus-visible {
    background: #f4eee4 !important;
    color: var(--red) !important;
    padding-inline-start: 0.72rem !important;
  }
}

/* Tablet range (761px - 1020px): keep compact so panel stays inside viewport */
@media (min-width: 761px) and (max-width: 1020px) {
  .site-header .primary-nav > .menu > li > .sub-menu,
  .site-header .primary-nav > .menu > li.mega > .sub-menu {
    min-width: 23.5rem !important;
    grid-template-columns: repeat(3, minmax(7.2rem, 8.8rem)) !important;
    padding: 0.65rem 0.35rem !important;
  }
  .site-header .primary-nav > .menu > li.mega > .sub-menu > li {
    padding: 0.1rem 0.5rem !important;
  }
}

/* Mobile Drawer Submenu Optimization (<= 760px) */
@media (max-width: 760px) {
  .primary-nav {
    direction: rtl;
    text-align: right;
  }
  .primary-nav .menu > li > a {
    min-height: 2.75rem !important;
    padding: 0.4rem 0.65rem !important;
    font-size: 0.94rem !important;
  }
  .primary-nav > .menu > li.mega > .sub-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    padding: 0.35rem 0.5rem 0.55rem !important;
    margin: 0.15rem 0 0.35rem !important;
    background: rgb(255 255 255 / 0.03) !important;
    border: 1px solid rgb(255 255 255 / 0.08) !important;
    border-radius: 8px !important;
  }
  .primary-nav > .menu > li.mega > .sub-menu > li {
    padding: 0.15rem 0 !important;
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
  }
  .primary-nav > .menu > li.mega > .sub-menu > li:last-child {
    border-bottom: 0;
  }
  .primary-nav > .menu > li.mega > .sub-menu > li > a {
    min-height: 2rem !important;
    padding: 0.2rem 0.45rem !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }
  .primary-nav > .menu > li.mega > .sub-menu > li > a::before {
    content: "";
    width: 3px;
    height: 0.8rem;
    border-radius: 2px;
    background: var(--red);
    flex: none;
  }
  .primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.2rem 0.35rem !important;
    padding: 0.15rem 0.6rem 0.25rem 0.25rem !important;
    margin: 0 !important;
  }
  .primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu > li > a {
    min-height: 1.95rem !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 5px !important;
    background: rgb(255 255 255 / 0.04) !important;
    color: #d7dde4 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
  }
  .primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu > li > a:hover,
  .primary-nav > .menu > li.mega > .sub-menu > li > .sub-menu > li > a:focus-visible {
    background: var(--red) !important;
    color: #ffffff !important;
  }
}

/* Mobile footer: readable columns without horizontal overflow. */
@media (max-width: 760px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    padding-block: 2rem;
  }
  .site-footer .footer-grid > div { min-width: 0; overflow-wrap: anywhere; }
  .site-footer .footer-grid > div:first-child,
  .site-footer .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer .brand { grid-column: auto; grid-row: auto; max-width: 100%; }
  .site-footer .brand strong, .site-footer .brand small { white-space: normal; overflow: visible; text-overflow: clip; }
  .site-footer .footer-grid p { margin-block: .65rem 0; }
}
@media (max-width: 340px) {
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* eNamad trust seal (2026-11-01) */
.site-footer .footer-trust{margin-top:.9rem;display:flex;gap:.6rem;align-items:center}
.site-footer .footer-trust a{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:10px;padding:.35rem;line-height:0;border:1px solid rgba(255,255,255,.18)}
.site-footer .footer-trust img{width:88px;height:auto;display:block}
@media (max-width:760px){.site-footer .footer-trust{justify-content:flex-start}}
