:root {
  --black: #000000;
  --black-2: #0a0a0a;
  --black-3: #141414;
  --charcoal: #4a4a4a;
  --red: #c02026;
  --red-2: #e0343a;
  --red-dim: rgba(192, 32, 38, 0.16);
  --green: #3a8a3e;
  --green-2: #4ea052;
  --green-dim: rgba(58, 138, 62, 0.16);
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.1);
  --font-display: "Syne", "Vazirmatn", sans-serif;
  --font-body: "Vazirmatn", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --shell: min(1160px, calc(100% - 2 * var(--space)));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(800px 380px at 100% 0%, var(--red-dim), transparent 55%),
    radial-gradient(700px 320px at 0% 30%, var(--green-dim), transparent 50%),
    var(--black);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--red); color: #fff; padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Brand shaft mark — logo geometry */
.shaft-mark {
  display: inline-grid;
  width: 1.15em;
  height: 1.45em;
  position: relative;
  vertical-align: -0.2em;
}
.shaft-mark::before,
.shaft-mark::after {
  content: "";
  position: absolute;
  inset-inline: 12%;
  height: 46%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.shaft-mark::before {
  top: 0;
  background: var(--green);
  animation: shaft-up 2.8s var(--ease) infinite;
}
.shaft-mark::after {
  bottom: 0;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: shaft-down 2.8s var(--ease) infinite;
}

/* Header */
.site-header {
  position: absolute; inset-inline: 0; top: 0; z-index: 50;
  padding: .55rem 0 0;
  transition: padding .35s var(--ease);
}
.site-header.is-solid,
.site-header.is-scrolled {
  position: sticky;
  padding: .35rem 0 0;
}
.site-header__inner {
  position: relative;
  width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: .85rem;
  padding: .55rem .7rem .55rem 1rem;
}
.site-header__chrome {
  display: none;
  position: absolute; inset: 0; z-index: 0;
  border-radius: 999px; pointer-events: none;
  background: rgba(8, 8, 8, 0.92);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.site-header.is-solid .site-header__chrome,
.site-header.is-scrolled .site-header__chrome {
  display: block;
}
.site-header.is-solid .site-header__inner,
.site-header.is-scrolled .site-header__inner {
  padding: .4rem .55rem .4rem .85rem;
}
.brand {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(.95rem, 1.8vw, 1.15rem); letter-spacing: -0.03em;
  flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.brand:hover { transform: translateY(-1px); }
.brand img { height: 42px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img,
.site-header.is-solid .brand img { height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; gap: .1rem; }
.brand__text strong { color: #d4d4d4; font-weight: 800; letter-spacing: .05em; font-size: .78rem; }
.brand__text em { font-style: normal; color: var(--red); letter-spacing: .08em; font-size: .72rem; }

.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; flex: 1; justify-content: center;
}
.nav__sheet { display: contents; }
.nav__top,
.nav-close,
.nav__cta { display: none; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .15rem; align-items: center; flex-wrap: wrap; justify-content: center;
}
.nav-list a {
  position: relative; color: rgba(255,255,255,.78);
  font-weight: 500; font-size: .86rem;
  padding: .55rem .7rem; border-radius: 999px;
  transition: color .25s, background .25s, transform .25s var(--ease);
  white-space: nowrap;
}
.nav-list a::after { display: none; }
.nav-list a:hover,
.nav-list .current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.nav-list .current-menu-item > a {
  background: linear-gradient(135deg, var(--green-dim), var(--red-dim));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.header-actions {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: .4rem; flex-shrink: 0;
}
.header-cta {
  display: none; padding: .55rem 1rem; font-size: .82rem;
  border-radius: 999px; min-height: 40px;
}
.header-auth-desktop { display: none; align-items: center; gap: .35rem; }
.nav-auth {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-top: 1.25rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.header-auth {
  padding: .5rem .85rem; font-size: .82rem; border-radius: 999px;
}
@media (min-width: 961px) {
  .header-auth-desktop { display: inline-flex; }
  .nav-auth { display: none; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none !important; }
}
.balabar-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  border: 1px solid var(--line); padding: .45rem .75rem;
  min-height: 40px; min-width: 40px; border-radius: 999px;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.balabar-cart:hover {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.balabar-cart__count {
  min-width: 1.2rem; height: 1.2rem; display: inline-grid; place-items: center;
  background: var(--red); color: #fff; font-size: .7rem; font-weight: 700;
  border-radius: 999px;
}
.nav-toggle {
  display: none; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: #fff; padding: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 999px;
  align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.nav-toggle.is-active { background: var(--red); border-color: var(--red); }
.nav-toggle__box {
  position: relative; width: 18px; height: 14px; display: block;
}
.nav-toggle__box span {
  position: absolute; inset-inline: 0; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease);
}
.nav-toggle__box span:nth-child(1) { top: 0; }
.nav-toggle__box span:nth-child(2) { top: 6px; }
.nav-toggle__box span:nth-child(3) { top: 12px; }
.nav-toggle.is-active .nav-toggle__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle.is-active .nav-toggle__box span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-active .nav-toggle__box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.62);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }
body.nav-is-open { overflow: hidden; }

/* Hero — brand-first composition */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: grid; align-items: end; overflow: hidden; background: var(--black);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.4) contrast(1.08) brightness(.85);
  transform: scale(1.06);
  animation: drift 24s var(--ease) infinite alternate;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.7) 42%, rgba(0,0,0,.28) 100%),
    linear-gradient(0deg, rgba(0,0,0,.88) 0%, transparent 48%),
    linear-gradient(135deg, var(--green-dim), transparent 40%, var(--red-dim));
}
.hero__content {
  position: relative; z-index: 2;
  width: var(--shell); margin: 0 auto;
  padding: 0 0 clamp(3.8rem, 10vh, 6.2rem);
}
.hero__logo {
  width: min(220px, 48vw);
  margin: 0 0 1rem;
  opacity: 0; transform: translateY(24px);
  animation: rise 1s var(--ease) .08s forwards;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.5));
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  line-height: .98; letter-spacing: -0.045em;
  margin: 0 0 .7rem;
  opacity: 0; transform: translateY(26px);
  animation: rise 1s var(--ease) .18s forwards;
}
.hero__brand .outline {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.88);
  text-stroke: 1.5px rgba(255,255,255,.88);
}
.hero__brand em { font-style: normal; color: var(--red); }
.hero__lead {
  max-width: 34ch; margin: 0 0 1.45rem;
  color: rgba(255,255,255,.84); font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0; transform: translateY(20px);
  animation: rise 1s var(--ease) .32s forwards;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .7rem;
  opacity: 0; transform: translateY(16px);
  animation: rise 1s var(--ease) .46s forwards;
}
.hero__scroll {
  position: absolute; z-index: 2; inset-inline-end: var(--space); bottom: 1.5rem;
  display: inline-flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.62); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; animation: rise 1s var(--ease) .7s forwards;
}
.hero__scroll-line {
  width: 2px; height: 46px;
  background: linear-gradient(to bottom, var(--green), var(--red));
  animation: pulse-line 1.8s ease-in-out infinite;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.35rem; font-weight: 700; border: 1px solid transparent;
  border-radius: 12px;
  transition: transform .3s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red {
  background: var(--red); color: #fff;
}
.btn--red:hover {
  background: var(--red-2);
  box-shadow: 0 14px 34px rgba(192, 32, 38, 0.32);
}
.btn--green {
  background: var(--green); color: #fff;
}
.btn--green:hover {
  background: var(--green-2);
  box-shadow: 0 14px 34px rgba(58, 138, 62, 0.28);
}
.btn--ghost {
  background: transparent; border-color: rgba(255,255,255,.38); color: #fff;
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.btn--outline-green {
  background: transparent; border-color: var(--green); color: #fff;
}
.btn--outline-green:hover { background: var(--green-dim); }

/* Dual motion band */
.dual-band {
  display: grid; grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
}
.dual-band__item {
  padding: clamp(1.4rem, 4vw, 2.2rem) var(--space);
  position: relative;
}
.dual-band__item:first-child {
  background: linear-gradient(180deg, var(--green-dim), transparent 70%);
  border-inline-end: 1px solid var(--line);
}
.dual-band__item:last-child {
  background: linear-gradient(180deg, var(--red-dim), transparent 70%);
}
.dual-band__item span {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .45rem;
}
.dual-band__item:first-child span { color: var(--green); }
.dual-band__item:last-child span { color: var(--red); }
.dual-band__item strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem); letter-spacing: -.02em; margin-bottom: .35rem;
}
.dual-band__item p { margin: 0; color: var(--muted); max-width: 34ch; }

/* Sections */
.section { padding: clamp(3.4rem, 8vw, 6.2rem) 0; }
.section--panel {
  background:
    linear-gradient(180deg, rgba(58,138,62,.05), transparent 28%),
    linear-gradient(0deg, rgba(192,32,38,.05), transparent 28%),
    var(--black-2);
  border-block: 1px solid var(--line);
}
.section__head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); max-width: 40rem; }
.section__head--row {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: end; gap: 1rem; max-width: none;
}
.section__eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--red); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .45rem;
}
.section__eyebrow--green { color: var(--green); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.12; letter-spacing: -0.035em; margin: 0 0 .55rem;
}
.section__text { margin: 0; color: var(--muted); }

/* Process */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem; counter-reset: step;
}
.process__item {
  position: relative; padding-top: 1.15rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--red)) 1;
  transition: transform .35s var(--ease);
}
.process__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  color: var(--green); margin-bottom: .55rem;
}
.process__item:nth-child(even)::before { color: var(--red); }
.process__item:hover { transform: translateY(-4px); }
.process__item strong {
  display: block; font-family: var(--font-display);
  font-size: 1.05rem; margin-bottom: .35rem;
}
.process__item span { color: var(--muted); font-size: .94rem; }

/* Feature rail */
.feature-rail {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center;
}
.feature-rail__visual {
  min-height: clamp(260px, 40vw, 440px);
  background:
    linear-gradient(160deg, rgba(58,138,62,.35), transparent 45%),
    linear-gradient(20deg, rgba(192,32,38,.35), transparent 50%),
    url("https://balabaronline.com/wp-content/uploads/2025/02/4-scaled-e1739199419753.jpg") center/cover;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.feature-rail__visual.has-custom-image {
  background-size: cover;
  background-position: center;
}
.feature-rail__visual::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--red));
}

/* Products */
ul.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(.65rem, 1.6vw, 1rem);
}
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
ul.products li.product {
  margin: 0 !important; width: 100% !important; float: none !important;
  background: var(--black-3); border: 1px solid var(--line); padding: 0;
  overflow: hidden; display: flex; flex-direction: column;
  border-radius: 10px;
  transition: border-color .3s, transform .35s var(--ease);
}
ul.products li.product:hover {
  border-color: rgba(192, 32, 38, 0.5);
  transform: translateY(-2px);
}
ul.products li.product a.woocommerce-LoopProduct-link { display: block; flex: 1; }
ul.products li.product a img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform .7s var(--ease), filter .4s ease;
  filter: grayscale(.15);
}
ul.products li.product:hover a img { transform: scale(1.03); filter: none; }
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display); font-size: .88rem; font-weight: 700;
  line-height: 1.35; margin: .55rem .65rem .2rem; padding: 0; color: #fff;
}
ul.products li.product .price {
  display: block; margin: 0 .65rem .55rem; color: var(--red); font-weight: 700; font-size: .86rem;
}
ul.products li.product .button,
ul.products li.product .added_to_cart {
  margin: auto .65rem .7rem; background: #fff; color: #000 !important;
  border: 0; border-radius: 8px; font-weight: 700; font-size: .8rem;
  padding: .5rem .65rem; text-align: center;
}
ul.products li.product .button:hover { background: var(--red); color: #fff !important; }

/* Blog rail */
.post-rail {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.post-card {
  display: flex; flex-direction: column;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--red)) 1;
  padding-top: 1rem;
  transition: transform .35s var(--ease);
}
.post-card:hover { transform: translateY(-4px); }
.post-card__media {
  aspect-ratio: 16/10; overflow: hidden; margin-bottom: .9rem;
  border: 1px solid var(--line); background: var(--black-3);
}
.post-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25); transition: transform .7s var(--ease), filter .4s;
}
.post-card:hover .post-card__media img { transform: scale(1.05); filter: none; }
.post-card__meta {
  color: var(--muted); font-size: .8rem; margin-bottom: .4rem;
  display: flex; gap: .6rem; align-items: center;
}
.post-card__meta::before {
  content: ""; width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--green);
}
.post-card:nth-child(even) .post-card__meta::before { background: var(--red); }
.post-card h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  line-height: 1.3; margin: 0 0 .5rem; letter-spacing: -.02em;
}
.post-card p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.post-card__more {
  margin-top: .9rem; color: #fff; font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .35rem;
}
.post-card__more::after {
  content: ""; width: .55rem; height: .55rem;
  border-inline-end: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* Blog archive / single */
.post-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.post-grid .post-card { padding-bottom: 1rem; }
.entry {
  max-width: 720px;
}
.entry__meta {
  display: flex; flex-wrap: wrap; gap: .75rem;
  color: var(--muted); font-size: .9rem; margin: 0 0 1.25rem;
}
.entry__thumb {
  margin: 0 0 1.5rem; border: 1px solid var(--line);
  overflow: hidden;
}
.entry__thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 {
  font-family: var(--font-display); letter-spacing: -.02em;
}
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* CTA */
.cta-band {
  text-align: center;
  background:
    radial-gradient(520px 220px at 30% 0%, var(--green-dim), transparent 65%),
    radial-gradient(520px 220px at 70% 0%, var(--red-dim), transparent 65%),
    var(--black-2);
  border-block: 1px solid var(--line);
}
.cta-band .section__title { margin-inline: auto; max-width: 18ch; }
.cta-actions {
  margin-top: 1.25rem; display: flex; flex-wrap: wrap;
  justify-content: center; gap: .65rem;
}

/* Content pages */
.balabar-prose {
  max-width: 42rem;
  color: rgba(255,255,255,.88);
  line-height: 1.85;
}
.balabar-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  margin: 2rem 0 .85rem;
  letter-spacing: -.02em;
}
.balabar-prose p { margin: 0 0 1rem; color: var(--muted); }
.balabar-prose ul, .balabar-prose ol { margin: 0 0 1.25rem; padding-inline-start: 1.2rem; color: var(--muted); }
.balabar-prose li { margin: .4rem 0; }
.balabar-prose strong { color: #fff; font-weight: 600; }
.balabar-prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.balabar-prose__note {
  border-inline-start: 3px solid var(--green);
  padding: .85rem 1rem;
  background: var(--black-2);
  border: 1px solid var(--line);
  border-inline-start-width: 3px;
  border-inline-start-color: var(--green);
}
.balabar-steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .75rem;
  counter-reset: balabar-step;
}
.balabar-steps li {
  counter-increment: balabar-step;
  position: relative;
  padding: .9rem 1rem .9rem 2.8rem;
  background: var(--black-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.balabar-steps li::before {
  content: counter(balabar-step);
  position: absolute;
  inset-inline-start: .75rem;
  top: .85rem;
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--green);
  border: 1px solid rgba(58,138,62,.45);
}
.balabar-steps li:nth-child(even)::before { color: var(--red); border-color: rgba(192,32,38,.45); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.project-card {
  background: var(--black-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.22);
}
.project-card__media {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}
.project-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__body { padding: 1rem 1.05rem 1.15rem; }
.project-card__body span {
  display: block; color: var(--green); font-size: .82rem; margin-bottom: .35rem;
}
.project-card:nth-child(even) .project-card__body span { color: var(--red); }
.project-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.35rem);
}
.howto-card {
  background: var(--black-2);
  border: 1px solid var(--line);
  padding: 1.15rem 1.1rem 1.25rem;
  position: relative;
}
.howto-card__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  display: block;
  margin-bottom: .65rem;
}
.howto-card:nth-child(even) .howto-card__num { color: var(--red); }
.howto-card h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 .45rem;
}
.howto-card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Page hero */
.page-hero {
  padding: 7.2rem 0 2.4rem;
  background:
    radial-gradient(620px 260px at 100% 0%, var(--red-dim), transparent 60%),
    radial-gradient(520px 220px at 0% 100%, var(--green-dim), transparent 55%),
    var(--black-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0; letter-spacing: -0.03em;
}
.page-hero__lead { max-width: 42ch; color: var(--muted); margin: .7rem 0 0; }
.page-hero__actions {
  display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem;
}
.site-main { padding: 2.4rem 0 4rem; }

/* Shop chrome */
.shop-main { padding-top: 1.5rem; }
.shop-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.shop-cats__item {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line); padding: .65rem .9rem;
  min-height: 44px;
  color: rgba(255,255,255,.85); font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.shop-cats__item span { color: var(--muted); font-size: .78rem; }
.shop-cats__item:hover,
.shop-cats__item.is-active {
  border-color: var(--red); background: var(--red-dim); color: #fff;
}
.shop-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: .85rem; margin: 0 0 1.4rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.woocommerce-result-count { margin: 0; color: var(--muted); font-size: .92rem; }
.woocommerce-ordering select {
  background: var(--black-3); color: #fff; border: 1px solid var(--line); padding: .55rem .8rem;
}
.woocommerce-pagination { margin: 2rem 0 0; }
.woocommerce-pagination ul {
  display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0;
}
.woocommerce-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem;
  padding: 0 .55rem; border: 1px solid var(--line); color: #fff;
}
.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination a.page-numbers:hover {
  border-color: var(--red); background: var(--red-dim);
}
.page-description:empty,
.term-description:empty,
.woocommerce .page-title { display: none; }

.contact-split {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 2.75rem); align-items: start;
}
.contact-split__aside { border-top: 2px solid var(--red); padding-top: 1rem; }
.contact-split__aside strong {
  display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .45rem;
}
.contact-split__aside p { color: var(--muted); margin: 0 0 1rem; }
.contact-split__form { border-top: 1px solid var(--line); padding-top: 1rem; }

/* About team */
.about-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.about-team__item {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--red)) 1;
  padding-top: 1rem;
}
.about-team__photo {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--black-3);
}
.about-team__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(.2);
  transition: transform .7s var(--ease), filter .4s;
}
.about-team__item:hover .about-team__photo img {
  transform: scale(1.04);
  filter: none;
}
.about-team__role {
  display: block;
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}
.about-team__item:nth-child(even) .about-team__role { color: var(--red); }
.about-team__item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 .55rem;
  letter-spacing: -.02em;
}
.about-team__item p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

/* Single product */
.page-hero--product { padding-bottom: 1.4rem; }
.page-hero--product h1 { display: none; }
.page-hero__kicker {
  margin: .35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--muted);
  letter-spacing: -.02em;
}
.balabar-product {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  margin-top: .5rem;
}
.balabar-product__gallery .woocommerce-product-gallery {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--black-3);
}
.balabar-product__gallery .woocommerce-product-gallery__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.balabar-product__summary {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--red)) 1;
  padding-top: 1rem;
}
.balabar-product__meta {
  display: flex; flex-wrap: wrap; gap: .65rem;
  margin-bottom: .7rem; color: var(--muted); font-size: .85rem;
}
.balabar-product__cat { color: var(--green); font-weight: 700; }
.balabar-product__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  line-height: 1.15; letter-spacing: -.03em;
  margin: 0 0 .85rem;
}
.woocommerce div.product p.price,
.balabar-product .price {
  color: var(--red); font-size: 1.45rem; font-weight: 700; margin: 0 0 1rem;
}
.balabar-product .woocommerce-product-details__short-description {
  color: var(--muted); margin-bottom: 1.25rem;
}
.balabar-product form.cart {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  margin-bottom: 1.25rem;
}
.balabar-product form.cart .quantity .qty {
  background: #0f0f0f; border: 1px solid var(--line); color: #fff;
  padding: .7rem .6rem; width: 4.5rem;
}
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce #respond input#submit.alt,
.balabar-product form.cart button.single_add_to_cart_button {
  background: var(--red) !important; color: #fff !important; border-radius: 0 !important;
  padding: .85rem 1.25rem !important; font-weight: 700 !important;
}
.balabar-product__trust {
  display: grid; gap: .45rem; margin-top: 1.25rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.balabar-product__trust a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.balabar-product__tabs {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-tabs ul.tabs {
  background: var(--black-2); border: 1px solid var(--line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none; margin: 0; padding: .5rem .75rem 0;
  display: flex; flex-wrap: wrap; gap: .35rem;
  border-bottom: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent; border: 1px solid var(--line); margin: 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block; padding: .55rem .9rem; color: var(--muted);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-color: var(--red); background: var(--red-dim);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce-Tabs-panel { padding: 1.25rem; color: #ddd; }
.related.products > h2,
.upsells.products > h2 {
  font-family: var(--font-display); font-size: 1.45rem; margin: 2rem 0 1rem;
}

/* Cart */
.balabar-cart-layout {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.balabar-cart-layout > .woocommerce-cart-form { min-width: 0; }
.balabar-cart-items,
.balabar-cart-totals .cart_totals {
  background: var(--black-2);
  border: 1px solid var(--line);
  padding: 1.15rem;
}
.balabar-cart-items__head { margin-bottom: 1rem; }
.balabar-cart-items__title { font-size: 1.45rem; margin: 0; }
.woocommerce-cart table.shop_table {
  background: transparent; border: 0; width: 100%;
}
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  border-color: var(--line); color: #fff; padding: .85rem .4rem;
  vertical-align: middle;
}
.woocommerce-cart .product-thumbnail img { width: 72px; height: 72px; object-fit: cover; }
.woocommerce-cart .product-remove a {
  color: #fff; border: 1px solid var(--line);
  width: 1.8rem; height: 1.8rem; display: inline-grid; place-items: center;
}
.woocommerce-cart .product-remove a:hover { border-color: var(--red); color: var(--red); }
.woocommerce-cart .product-quantity .qty {
  width: 4.5rem; background: #0f0f0f; border: 1px solid var(--line);
  color: #fff; padding: .45rem .5rem; border-radius: 0;
}
.woocommerce-cart .actions {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  justify-content: space-between;
}
.woocommerce-cart .actions .button,
.woocommerce-cart .coupon .button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .shipping-calculator-form .button {
  background: var(--red) !important; color: #fff !important; border: 0 !important;
  border-radius: 0 !important; font-weight: 700 !important;
  padding: .7rem 1.1rem !important;
}
.woocommerce-cart .coupon {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.woocommerce-cart .coupon input {
  background: #0f0f0f; border: 1px solid var(--line); color: #fff; padding: .65rem .75rem;
}
.cart_totals h2 {
  font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 1rem;
}
.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
  border-color: var(--line); color: #fff; padding: .7rem 0;
}
.woocommerce-shipping-calculator { margin-top: .75rem; }
.woocommerce-shipping-calculator .shipping-calculator-button {
  color: var(--green-2); text-decoration: underline; text-underline-offset: 3px;
}
.shipping-calculator-form {
  margin-top: .75rem; display: grid; gap: .65rem;
}
.shipping-calculator-form .input-text,
.shipping-calculator-form select {
  width: 100%; background: #0f0f0f; border: 1px solid var(--line);
  color: #fff; padding: .65rem .75rem; border-radius: 0;
}
.balabar-cart-help { margin-top: 1rem; }
.balabar-cart-help a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.balabar-cart-empty {
  max-width: 36rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--red)) 1;
  padding-top: 1rem;
}
.balabar-cart-empty__actions {
  justify-content: flex-start;
  margin-top: 1.25rem;
}
@media (max-width: 720px) {
  .woocommerce-cart table.shop_table thead { display: none; }
  .woocommerce-cart table.shop_table tr {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: .35rem .65rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }
  .woocommerce-cart table.shop_table td {
    border: 0; padding: 0;
  }
  .woocommerce-cart .product-remove { grid-column: 1; grid-row: 1; }
  .woocommerce-cart .product-thumbnail { grid-column: 1; grid-row: 2; }
  .woocommerce-cart .product-name { grid-column: 2 / -1; grid-row: 1; }
  .woocommerce-cart .product-price { grid-column: 2; grid-row: 2; color: var(--muted); }
  .woocommerce-cart .product-quantity { grid-column: 2; grid-row: 3; }
  .woocommerce-cart .product-subtotal { grid-column: 3; grid-row: 2; font-weight: 700; }
  .woocommerce-cart table.shop_table .actions {
    display: flex; grid-column: 1 / -1; grid-row: auto;
    padding-top: .75rem;
  }
  .woocommerce-cart .product-price::before,
  .woocommerce-cart .product-quantity::before,
  .woocommerce-cart .product-subtotal::before {
    content: attr(data-title) ": ";
    color: var(--muted);
    font-weight: 500;
    margin-inline-end: .25rem;
  }
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 0; border: 0; border-inline-start: 3px solid var(--red);
  background: var(--black-3); color: #fff;
}
.woocommerce-checkout table.shop_table {
  background: var(--black-2); border: 1px solid var(--line);
}
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td { border-color: var(--line); color: #fff; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: #0f0f0f; border: 1px solid var(--line); color: #fff; border-radius: 0;
}

/* Account / dashboard — kill Woo float layout, use CSS grid */
.woocommerce-account .shop-main { padding-bottom: 2.5rem; }
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after { display: none !important; content: none !important; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  clear: none !important;
}
.balabar-account-nav {
  background: var(--black-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  position: sticky;
  top: 5.5rem;
}
.balabar-account-nav ul {
  list-style: none;
  margin: 0;
  padding: .75rem;
  display: grid;
  gap: 0;
}
.balabar-account-nav li { margin: 0; }
.balabar-account-nav a {
  display: block;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
  color: rgba(255,255,255,.85);
  transition: background .2s, color .2s;
}
.balabar-account-nav li:last-child a { border-bottom: 0; }
.balabar-account-nav .is-active a,
.balabar-account-nav a:hover {
  background: var(--red-dim);
  color: #fff;
}
.woocommerce-MyAccount-content {
  background: var(--black-2);
  border: 1px solid var(--line);
  padding: clamp(.9rem, 2.5vw, 1.35rem) !important;
  overflow-x: clip;
}
.balabar-dash { min-width: 0; }
.balabar-dash__welcome h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  margin: .25rem 0 .45rem;
  letter-spacing: -.02em;
  line-height: 1.25;
  word-break: break-word;
}
.balabar-dash__welcome p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.88rem, 2.4vw, 1rem);
  line-height: 1.7;
  display: grid;
  gap: .35rem;
}
.balabar-dash__phone strong { color: #fff; }
.balabar-dash__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.25rem 0 1.4rem;
}
.balabar-dash__stat {
  border: 1px solid var(--line);
  padding: .85rem .9rem;
  background: var(--black-3);
  min-width: 0;
}
.balabar-dash__stat strong {
  display: block;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-family: var(--font-display);
}
.balabar-dash__stat span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
  display: block;
}
.balabar-dash__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.balabar-dash__card {
  display: block;
  border: 1px solid var(--line);
  border-top: 2px solid var(--green);
  padding: 1rem;
  background: var(--black-3);
  min-width: 0;
  transition: transform .3s var(--ease), border-color .2s, background .2s;
}
.balabar-dash__card:nth-child(even) { border-top-color: var(--red); }
.balabar-dash__card:hover { transform: translateY(-3px); background: #181818; }
.balabar-dash__card-label {
  display: block;
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.balabar-dash__card:nth-child(even) .balabar-dash__card-label { color: var(--red); }
.balabar-dash__card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(.98rem, 2.4vw, 1.05rem);
  margin-bottom: .35rem;
  line-height: 1.35;
}
.balabar-dash__card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.balabar-dash__card--muted { opacity: .92; border-top-color: var(--charcoal); }

/* Account forms, addresses, orders */
.woocommerce-account .woocommerce-Address,
.woocommerce-account .u-column1,
.woocommerce-account .u-column2,
.woocommerce-account .col-1,
.woocommerce-account .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.woocommerce-account .u-columns,
.woocommerce-account .col2-set,
.woocommerce-account .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}
.woocommerce-account .u-columns::before,
.woocommerce-account .u-columns::after,
.woocommerce-account .col2-set::before,
.woocommerce-account .col2-set::after { display: none !important; content: none !important; }
.woocommerce-account .woocommerce-Address {
  border: 1px solid var(--line);
  background: var(--black-3);
  padding: 1rem;
}
.woocommerce-account .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}
.woocommerce-account .woocommerce-Address-title h3 { margin: 0; font-size: 1rem; }
.woocommerce-account .woocommerce-MyAccount-content .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 .9rem !important;
  padding: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-content .form-row-first,
.woocommerce-account .woocommerce-MyAccount-content .form-row-last {
  width: 100% !important;
}
.woocommerce-account .woocommerce-MyAccount-content label {
  display: block;
  margin-bottom: .35rem;
  color: rgba(255,255,255,.88);
}
.woocommerce-account .woocommerce-MyAccount-content input.input-text,
.woocommerce-account .woocommerce-MyAccount-content textarea,
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content .select2-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: .7rem 1.15rem;
  background: var(--red);
  border: 0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.woocommerce-account .woocommerce-orders-table-wrapper,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-orders-table,
.woocommerce-account .shop_table_responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  background: var(--black-3);
}
.woocommerce-account table.shop_table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  background: transparent;
}
.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
  border-bottom: 1px solid var(--line);
  padding: .75rem .85rem;
  text-align: start;
  color: #fff;
  vertical-align: middle;
  white-space: nowrap;
}
.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account table.shop_table .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .45rem .75rem;
  margin: .15rem .2rem .15rem 0;
  background: var(--black-2);
  border: 1px solid var(--line);
  color: #fff;
  white-space: nowrap;
}
.woocommerce-account .woocommerce-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .balabar-dash__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .balabar-account-nav {
    position: sticky;
    top: 4.4rem;
    z-index: 20;
    border-top-width: 2px;
  }
  .balabar-account-nav ul {
    display: flex;
    gap: .45rem;
    padding: .65rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }
  .balabar-account-nav li { flex: 0 0 auto; }
  .balabar-account-nav a {
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: .55rem .9rem;
    white-space: nowrap;
    font-size: .9rem;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }
  .balabar-account-nav li:last-child a { border-bottom: 1px solid var(--line); }
  .balabar-account-nav .is-active a {
    border-color: var(--red);
    background: var(--red-dim);
  }
  .balabar-dash__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
  }
  .balabar-dash__stat { padding: .7rem .55rem; text-align: center; }
  .balabar-dash__card:hover { transform: none; }
}
@media (max-width: 720px) {
  .balabar-dash__grid { grid-template-columns: 1fr; }
  .balabar-dash__stats {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .balabar-dash__stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    text-align: start;
    padding: .75rem .85rem;
  }
  .balabar-dash__stat strong { font-size: 1.1rem; }
  .woocommerce-account .u-columns,
  .woocommerce-account .col2-set,
  .woocommerce-account .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
  .woocommerce-account .woocommerce-MyAccount-content .button,
  .woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
    width: 100%;
  }
  .woocommerce-account table.shop_table {
    min-width: 0;
    width: 100%;
  }
  .woocommerce-account table.shop_table thead { display: none; }
  .woocommerce-account table.shop_table,
  .woocommerce-account table.shop_table tbody,
  .woocommerce-account table.shop_table tr,
  .woocommerce-account table.shop_table td {
    display: block;
    width: 100%;
  }
  .woocommerce-account table.shop_table tr {
    border-bottom: 1px solid var(--line);
    padding: .85rem;
  }
  .woocommerce-account table.shop_table tr:last-child { border-bottom: 0; }
  .woocommerce-account table.shop_table td {
    border: 0;
    padding: .25rem 0;
    white-space: normal;
    text-align: start;
  }
  .woocommerce-account table.shop_table td::before {
    content: attr(data-title);
    display: block;
    color: var(--muted);
    font-size: .75rem;
    margin-bottom: .15rem;
  }
  .woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-actions .button,
  .woocommerce-account table.shop_table .button {
    width: 100%;
    margin: .35rem 0 0;
  }
}
@media (max-width: 420px) {
  .balabar-account-nav a { padding: .5rem .75rem; font-size: .84rem; }
  .balabar-dash__card { padding: .9rem; }
}

/* Footer */
.site-footer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20,20,20,.4), transparent 28%),
    #050505;
  border-top: 1px solid var(--line);
  padding: 0 0 0;
  overflow: hidden;
  margin-top: 2rem;
}
.site-footer__glow {
  position: absolute; inset-inline: 10% auto; top: -80px; width: min(420px, 70vw); height: 180px;
  background: radial-gradient(circle, var(--red-dim), transparent 70%);
  pointer-events: none; animation: footer-glow 6s ease-in-out infinite alternate;
}
.site-footer__glow::after {
  content: ""; position: absolute; inset-inline-start: 55%; top: 20px;
  width: min(360px, 60vw); height: 160px;
  background: radial-gradient(circle, var(--green-dim), transparent 70%);
}
.site-footer__inner {
  position: relative; z-index: 1;
  width: var(--shell); margin-inline: auto;
  display: grid; grid-template-columns: 1.4fr .9fr .9fr; gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2.8rem, 6vw, 4rem) 0 2rem;
  align-items: start;
}
.site-footer__inner--bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 0 1.4rem; grid-template-columns: none;
}
.site-footer p { margin: .55rem 0 0; color: var(--muted); font-size: .92rem; max-width: 36ch; }
.site-footer__mark {
  display: flex; align-items: center; gap: .55rem; margin: .85rem 0 .2rem;
}
.site-footer__mark .shaft-mark { font-size: 1.45rem; }
.site-footer__mark .brand {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
}
.site-footer__mark .brand em { font-style: normal; color: var(--red); }
.site-footer__logo img {
  height: 44px; width: auto; opacity: .92;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.4));
}
.site-footer__col h3 {
  margin: 0 0 1rem; font-family: var(--font-display); font-size: .95rem;
  letter-spacing: .02em; color: #fff;
}
.site-footer__links {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .55rem;
}
.site-footer__links a {
  color: var(--muted); font-size: .92rem;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: color .25s, transform .25s var(--ease);
}
.site-footer__links a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--red));
  opacity: .55; transition: opacity .25s, transform .25s var(--ease);
}
.site-footer__links a:hover {
  color: #fff; transform: translateX(-4px);
}
.site-footer__links a:hover::before { opacity: 1; transform: scale(1.2); }
.site-footer__phone {
  margin-top: 1.35rem; display: inline-flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(192,32,38,.08));
  border-radius: 14px; max-width: 100%;
  transition: border-color .3s, transform .35s var(--ease), background .3s;
}
.site-footer__phone:hover {
  border-color: rgba(192,32,38,.45);
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(192,32,38,.14));
}
.site-footer__phone-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(192,32,38,.35);
  animation: call-bob 2.4s var(--ease) infinite;
}
.site-footer__phone strong {
  display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em;
}
.site-footer__phone em {
  display: block; font-style: normal; color: var(--muted); font-size: .78rem; margin-top: .15rem;
}
.site-footer__trust { margin-top: 1.25rem; }
.site-footer__bottom {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.35);
}
.site-footer__bottom p { margin: 0; font-size: .85rem; }
.site-footer__top {
  color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600;
  padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease);
}
.site-footer__top:hover {
  color: #fff; border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.06); transform: translateY(-2px);
}

/* Floating actions (WhatsApp + call) */
.float-actions {
  position: fixed; z-index: 45;
  inset-inline-end: 1.15rem;
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .35s;
  pointer-events: none;
}
.float-actions.is-visible {
  transform: none; opacity: 1;
  pointer-events: auto;
  animation: float-in .55s var(--ease) both;
}
.float-call,
.float-wa {
  position: relative;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 54px; padding: .65rem .95rem .65rem .7rem;
  color: #fff; font-weight: 700; font-size: .88rem;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s;
  pointer-events: auto;
}
.float-call {
  background: linear-gradient(135deg, var(--green), #2f7533);
  box-shadow: 0 14px 36px rgba(58,138,62,.4), 0 0 0 1px rgba(255,255,255,.08);
}
.float-wa {
  background: linear-gradient(135deg, #25d366, #1ebe57);
  box-shadow: 0 14px 36px rgba(37,211,102,.4), 0 0 0 1px rgba(255,255,255,.08);
}
.float-call:hover,
.float-wa:hover {
  transform: translateY(-3px);
}
.float-call:hover {
  box-shadow: 0 18px 44px rgba(58,138,62,.5), 0 0 0 1px rgba(255,255,255,.12);
}
.float-wa:hover {
  box-shadow: 0 18px 44px rgba(37,211,102,.5), 0 0 0 1px rgba(255,255,255,.12);
}
.float-call__icon,
.float-wa__icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16);
  position: relative; z-index: 1;
}
.float-call__label,
.float-wa__label { position: relative; z-index: 1; padding-inline-end: .15rem; }
.float-call__ring {
  position: absolute; inset: -6px; border-radius: 999px;
  border: 2px solid rgba(58,138,62,.55);
  animation: call-pulse 2.2s var(--ease) infinite;
  pointer-events: none;
}
.float-call__ring--delay { animation-delay: 1.1s; }

.mobile-cta { display: none !important; }

.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .22s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .34s; }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: scale(1.12) translate3d(-1%, 1%, 0); } }
@keyframes pulse-line {
  0%, 100% { opacity: .35; transform: scaleY(.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}
@keyframes shaft-up {
  0%, 100% { transform: translateY(2px); opacity: .85; }
  50% { transform: translateY(-3px); opacity: 1; }
}
@keyframes shaft-down {
  0%, 100% { transform: translateY(-2px); opacity: .85; }
  50% { transform: translateY(3px); opacity: 1; }
}
@keyframes call-pulse {
  0% { transform: scale(.92); opacity: .7; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
@keyframes call-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(24px) scale(.9); }
  to { opacity: 1; transform: none; }
}
@keyframes footer-glow {
  from { opacity: .55; transform: translateX(0); }
  to { opacity: 1; transform: translateX(-18px); }
}
@keyframes nav-item-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .process, .post-rail, .feature-rail, .dual-band, .about-team,
  .single-product div.product, .balabar-product, .balabar-cart-layout,
  .contact-split, .site-footer__inner, .post-grid,
  .project-grid, .howto-grid { grid-template-columns: 1fr; }
  .site-footer__inner--bottom { display: flex; }
  .dual-band__item:first-child { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header { padding: .55rem 0 0; }
  .site-header__chrome { display: block; }
  .site-header__inner { padding: .4rem .45rem .4rem .8rem; }

  .nav {
    position: fixed; inset: 0; z-index: 9999;
    display: block; flex: none; justify-content: stretch;
    pointer-events: none;
  }
  .nav.is-open {
    pointer-events: auto;
    z-index: 100000;
  }
  .nav__sheet {
    display: flex; flex-direction: column;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(88vw, 360px);
    max-width: 100%;
    z-index: 100001;
    background:
      radial-gradient(420px 220px at 100% 0%, var(--red-dim), transparent 55%),
      radial-gradient(380px 200px at 0% 100%, var(--green-dim), transparent 50%),
      #0a0a0a;
    border-inline-end: 1px solid var(--line);
    padding: 1.15rem 1.25rem 1.75rem;
    padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-110%);
    transition: transform .4s var(--ease);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    box-shadow: 24px 0 60px rgba(0,0,0,.5);
  }
  html[dir="rtl"] .nav__sheet {
    transform: translateX(110%);
    box-shadow: -24px 0 60px rgba(0,0,0,.5);
  }
  .nav.is-open .nav__sheet,
  html[dir="rtl"] .nav.is-open .nav__sheet { transform: none; }
  .nav__top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.35rem; gap: 1rem; flex-shrink: 0;
  }
  .nav__eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    color: var(--muted); font-size: .85rem; font-weight: 600;
  }
  .nav-close {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255,255,255,.05);
    color: #fff; cursor: pointer;
  }
  .nav-close span {
    position: relative; width: 16px; height: 16px; display: block;
  }
  .nav-close span::before,
  .nav-close span::after {
    content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px; background: currentColor;
  }
  .nav-close span::before { transform: rotate(45deg); }
  .nav-close span::after { transform: rotate(-45deg); }
  .nav-list {
    flex-direction: column; align-items: stretch; gap: .3rem; flex-wrap: nowrap;
  }
  .nav-list li { opacity: 1; transform: none; }
  .nav.is-open .nav-list li {
    animation: nav-item-in .4s var(--ease) both;
  }
  .nav.is-open .nav-list li:nth-child(1) { animation-delay: .04s; }
  .nav.is-open .nav-list li:nth-child(2) { animation-delay: .08s; }
  .nav.is-open .nav-list li:nth-child(3) { animation-delay: .12s; }
  .nav.is-open .nav-list li:nth-child(4) { animation-delay: .16s; }
  .nav.is-open .nav-list li:nth-child(5) { animation-delay: .2s; }
  .nav.is-open .nav-list li:nth-child(6) { animation-delay: .24s; }
  .nav.is-open .nav-list li:nth-child(7) { animation-delay: .28s; }
  .nav.is-open .nav-list li:nth-child(8) { animation-delay: .32s; }
  .nav-list a {
    font-size: 1.12rem; font-weight: 600;
    display: flex; min-height: 48px; align-items: center;
    padding: .7rem .9rem; border-radius: 12px;
    color: rgba(255,255,255,.92); white-space: normal;
  }
  .nav__cta {
    display: block; margin-top: auto; padding-top: 1.35rem; flex-shrink: 0;
  }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: inline-flex; z-index: 100002; }
  .brand, .header-actions { z-index: 100002; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .page-hero { padding-top: 6.4rem; }
  .page-hero__actions { flex-direction: column; align-items: stretch; }
  .page-hero__actions .btn { width: 100%; justify-content: center; text-align: center; }
  ul.products { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
}
@media (max-width: 720px) {
  .process, .post-grid, .project-grid, .howto-grid { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .float-call__label,
  .float-wa__label { display: none; }
  .float-call,
  .float-wa { padding: .7rem; min-width: 54px; justify-content: center; }
  .brand__text { display: none; }
  .brand img { height: 36px; }
  .hero__content { padding-bottom: 3.2rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .site-footer__inner--bottom { flex-direction: column; align-items: flex-start; }
  ul.products { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
  ul.products li.product .woocommerce-loop-product__title { font-size: .8rem; margin: .45rem .5rem .15rem; }
  ul.products li.product .price { font-size: .78rem; margin: 0 .5rem .45rem; }
  ul.products li.product .button,
  ul.products li.product .added_to_cart { margin: auto .5rem .55rem; font-size: .74rem; padding: .45rem .5rem; }
}
@media (min-width: 721px) and (max-width: 960px) {
  .project-grid, .howto-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .about-team { grid-template-columns: repeat(2, 1fr); }
  ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > *, .nav-list li { opacity: 1; transform: none; }
  .float-actions,
  .float-call,
  .float-wa { opacity: 1; transform: none; }
}

/* Invoice cart (override) */
.invoice-main { padding-top: 6.5rem; padding-bottom: 3rem; }
.invoice-page-head { margin-bottom: 1.5rem; }
.invoice-page-head h1 { margin: .35rem 0; font-family: var(--font-display); }
.invoice-wrap { max-width: 1100px; margin-inline: auto; width: 100%; }
.invoice {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 28%), #0c0c0c;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  overflow: hidden;
}
.invoice::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--red));
}
.invoice__head {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 1rem; border-bottom: 1px dashed var(--line);
}
.invoice__brand {
  display: flex; gap: .75rem; align-items: center;
  flex: 1 1 16rem; min-width: 0;
}
.invoice__logo {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  object-fit: contain;
  flex-shrink: 0;
}
.invoice__brand-text {
  flex: 1 1 auto;
  min-width: 0;
}
.invoice__company {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  margin-bottom: .2rem;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.invoice__brand-text span,
.invoice__brand span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.invoice__meta { text-align: start; min-width: 11rem; flex: 0 0 auto; }
.invoice__badge {
  display: inline-flex; margin-bottom: .55rem; padding: .25rem .65rem;
  border: 1px solid rgba(192,32,38,.45); color: #ffb4b0; font-size: .78rem; font-weight: 700;
}
.invoice__meta dl { margin: 0; display: grid; gap: .35rem; }
.invoice__meta dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.invoice__meta dt { color: var(--muted); margin: 0; }
.invoice__meta dd { margin: 0; font-weight: 700; }
.invoice__parties {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin: 1.15rem 0 1.35rem;
}
.invoice__parties > div {
  border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: .9rem 1rem;
  min-width: 0;
}
.invoice__label { display: block; color: var(--muted); font-size: .78rem; margin-bottom: .35rem; font-weight: 600; }
.invoice__parties strong { display: block; margin-bottom: .25rem; }
.invoice__parties p { margin: 0; color: var(--muted); font-size: .88rem; }
.invoice__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.invoice__table { width: 100%; border-collapse: collapse; margin: 0 !important; background: transparent !important; }
.invoice__table th,
.invoice__table td {
  border: 1px solid var(--line) !important;
  border-inline-start: 0 !important; border-block-start: 0 !important;
  color: #fff !important; padding: .75rem .65rem !important; vertical-align: middle !important;
  background: transparent !important;
}
.invoice__table thead th {
  background: rgba(255,255,255,.04) !important;
  font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.85) !important;
}
.invoice__table tbody tr:nth-child(even) td { background: rgba(255,255,255,.015) !important; }
.invoice__table .product-index { width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.invoice__table .product-price,
.invoice__table .product-subtotal { white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice__table .product-subtotal { font-weight: 700; }
.invoice__item { display: flex; gap: .75rem; align-items: flex-start; min-width: 0; }
.invoice__thumb { flex-shrink: 0; }
.invoice__thumb img { width: 52px; height: 52px; object-fit: cover; border: 1px solid var(--line); display: block; }
.invoice__item-body { min-width: 0; }
.invoice__item-body a { color: inherit; }
.invoice__sku { display: block; margin-top: .25rem; color: var(--muted); font-size: .78rem; }
.invoice__table .product-quantity .qty {
  width: 4.2rem; background: #101010; border: 1px solid var(--line);
  color: #fff; padding: .4rem .45rem; text-align: center;
}
.invoice__table .product-remove a {
  color: #fff; border: 1px solid var(--line);
  width: 1.75rem; height: 1.75rem; display: inline-grid; place-items: center;
}
.invoice__table .product-remove a:hover { border-color: var(--red); color: var(--red); }
.invoice__toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .85rem; margin-top: 1rem;
}
.invoice__coupon,
.invoice__toolbar-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.invoice__coupon input {
  background: #101010; border: 1px solid var(--line); color: #fff; padding: .65rem .75rem; min-width: 10rem;
  max-width: 100%; box-sizing: border-box;
}
.invoice .button,
.invoice-totals .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--red) !important; color: #fff !important; border: 0 !important;
  border-radius: 10px !important; font-weight: 700 !important; padding: .7rem 1.1rem !important;
}
.invoice button[name="update_cart"] {
  background: transparent !important; border: 1px solid var(--line) !important; color: #fff !important;
}
.invoice__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18.5rem);
  gap: 1rem;
  margin-top: 1.15rem; padding-top: 1rem; border-top: 1px dashed var(--line);
  align-items: start;
  justify-content: space-between;
}
.invoice__notes { min-width: 0; }
.invoice__notes ul { margin: .35rem 0 0; padding: 0 1rem 0 0; color: var(--muted); font-size: .88rem; }
.invoice__notes li { margin-bottom: .35rem; }
.invoice__back { margin: 1rem 0 0; }
.invoice__back a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* Override WooCommerce .cart-collaterals .cart_totals { float; width:48% } */
.invoice__summary,
.invoice__summary.cart-collaterals {
  width: 100% !important;
  max-width: 18.5rem !important;
  float: none !important;
  clear: none !important;
  min-width: 0;
  display: block;
  justify-self: stretch;
}
.invoice__summary::before,
.invoice__summary::after { display: none !important; content: none !important; }
.invoice .cart-collaterals .cart_totals,
.invoice-totals,
.invoice .cart_totals {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.invoice-totals {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: .75rem .9rem;
}
.invoice-totals__title {
  margin: 0 0 .55rem;
  font-family: var(--font-display);
  font-size: 1rem;
}
.invoice-totals table.shop_table {
  margin: 0 !important; border: 0 !important; background: transparent !important;
  width: 100% !important; display: table !important;
}
.invoice-totals table.shop_table tbody { display: table-row-group !important; }
.invoice-totals table.shop_table tr { display: table-row !important; }
.invoice-totals table.shop_table th,
.invoice-totals table.shop_table td {
  display: table-cell !important;
  border: 0 !important; border-bottom: 1px solid var(--line) !important;
  padding: .42rem 0 !important; color: #fff !important; background: transparent !important;
  width: auto !important;
  white-space: pre-wrap;
  vertical-align: middle !important;
  line-height: 1.4;
}
.invoice-totals table.shop_table th {
  text-align: start !important;
  font-weight: 600;
  color: var(--muted) !important;
  padding-inline-end: .75rem !important;
  width: 42% !important;
}
.invoice-totals table.shop_table td {
  text-align: end !important;
  font-variant-numeric: tabular-nums;
}
.invoice-totals table.shop_table tr:last-child th,
.invoice-totals table.shop_table tr:last-child td { border-bottom: 0 !important; }
.invoice-totals .order-total th,
.invoice-totals .order-total td { font-size: 1.02rem; padding-top: .55rem !important; }
.invoice-totals .order-total th { color: #fff !important; }
.invoice-totals .order-total td { color: #ffb4b0 !important; font-weight: 800; }
.invoice-totals .wc-proceed-to-checkout { margin-top: .75rem; }
.invoice-totals .checkout-button {
  width: 100% !important; text-align: center; justify-content: center; display: inline-flex !important;
  box-sizing: border-box;
  padding: .65rem .9rem !important;
}
.invoice-totals .woocommerce-shipping-destination,
.invoice-totals .shipping-calculator-button {
  font-size: .8rem;
  line-height: 1.45;
}
.invoice__seal {
  position: absolute; inset-inline-end: 1.2rem; bottom: 1.2rem;
  display: grid; place-items: center; gap: .2rem; opacity: .22; pointer-events: none;
  transform: rotate(-8deg);
}
.invoice__seal .shaft-mark { font-size: 2rem; }
.invoice__seal em { font-style: normal; font-family: var(--font-display); font-size: .75rem; }
.invoice--empty .balabar-cart-empty { padding: 2rem 0 1rem; text-align: center; max-width: none; border: 0; }
.invoice--empty .balabar-cart-empty__actions { justify-content: center; }
.invoice .cross-sells { display: none !important; }
@media (max-width: 800px) {
  .invoice-main { padding-top: 5.25rem; padding-bottom: 2rem; }
  .invoice { padding: .9rem .75rem 1.1rem; }
  .invoice__head { flex-direction: column; gap: .85rem; }
  .invoice__brand { width: 100%; flex: 1 1 auto; }
  .invoice__meta { width: 100%; min-width: 0; }
  .invoice__parties,
  .invoice__foot { grid-template-columns: 1fr; gap: .85rem; }
  .invoice__summary,
  .invoice__summary.cart-collaterals {
    max-width: none !important;
    width: 100% !important;
  }
  .invoice__toolbar { flex-direction: column; align-items: stretch; }
  .invoice__coupon,
  .invoice__toolbar-actions { width: 100%; }
  .invoice__coupon input { min-width: 0; flex: 1 1 auto; width: 100%; }
  .invoice__coupon .button,
  .invoice__toolbar-actions .button { flex: 1 1 auto; text-align: center; justify-content: center; }
  .invoice__table-wrap { border: 0; overflow: visible; }
  .invoice__table,
  .invoice__table tbody { display: block !important; width: 100% !important; }
  .invoice__table thead { display: none !important; }
  .invoice__table tbody tr {
    display: grid !important;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: .45rem .55rem;
    padding: .85rem .7rem;
    margin-bottom: .65rem;
    border: 1px solid var(--line) !important;
    background: rgba(255,255,255,.02) !important;
  }
  .invoice__table td {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .invoice__table .product-index { grid-column: 1; grid-row: 1; align-self: start; padding-top: .15rem !important; }
  .invoice__table .product-name { grid-column: 2 / -1; grid-row: 1; }
  .invoice__table .product-price,
  .invoice__table .product-quantity,
  .invoice__table .product-subtotal {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .4rem;
  }
  .invoice__table .product-price::before,
  .invoice__table .product-quantity::before,
  .invoice__table .product-subtotal::before {
    content: attr(data-title);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
  }
  .invoice__table .product-price { grid-column: 2; grid-row: 2; color: var(--muted) !important; }
  .invoice__table .product-quantity { grid-column: 2; grid-row: 3; }
  .invoice__table .product-subtotal { grid-column: 3; grid-row: 2; justify-self: end; font-weight: 700; }
  .invoice__table .product-remove { grid-column: 3; grid-row: 3; justify-self: end; }
  .invoice__item { gap: .55rem; }
  .invoice__thumb img { width: 44px; height: 44px; }
  .invoice__seal { display: none; }
  .invoice-totals { padding: .7rem .8rem; }
}
@media (max-width: 480px) {
  .invoice__company { font-size: 1.05rem; }
  .invoice__brand-text span { font-size: .8rem; }
  .invoice__parties > div { padding: .75rem .8rem; }
  .invoice .button,
  .invoice-totals .checkout-button {
    width: 100% !important;
  }
}

/* Checkout invoice */
.invoice--checkout .invoice__checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.35rem;
}
.invoice--checkout .invoice__checkout-grid.col2-set::before,
.invoice--checkout .invoice__checkout-grid.col2-set::after { display: none !important; content: none !important; }
.invoice--checkout .invoice__panel {
  float: none !important;
  width: 100% !important;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: 1rem 1.1rem;
  box-sizing: border-box;
}
.invoice--checkout .woocommerce-billing-fields > h3,
.invoice--checkout .woocommerce-shipping-fields > h3,
.invoice--checkout .woocommerce-additional-fields > h3,
.invoice--checkout #order_review_heading {
  margin: 0 0 .85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.invoice--checkout .form-row {
  margin: 0 0 .75rem;
  padding: 0;
  width: 100% !important;
  float: none !important;
}
.invoice--checkout .form-row label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}
.invoice--checkout .form-row .required { color: #ffb4b0; }
.invoice--checkout .form-row input.input-text,
.invoice--checkout .form-row textarea,
.invoice--checkout .form-row select,
.invoice--checkout .select2-container .select2-selection--single {
  width: 100%;
  background: #101010 !important;
  border: 1px solid var(--line) !important;
  color: #fff !important;
  border-radius: 0 !important;
  min-height: 2.6rem;
  padding: .65rem .75rem;
}
.invoice--checkout .select2-container .select2-selection__rendered { color: #fff !important; line-height: 2.4rem !important; }
.invoice--checkout .select2-container .select2-selection__arrow { height: 2.4rem !important; }
.invoice__checkout-review {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 1.1rem 1.25rem;
}
.invoice__review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px dashed var(--line);
}
.invoice__review-head .invoice__label { width: 100%; margin: 0; }
.invoice__review-head h3 { margin: 0; }
.invoice__review-head .invoice__back { margin: 0; }
.invoice__row-no {
  display: inline-block;
  min-width: 1.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-inline-end: .15rem;
}
.invoice--checkout .invoice__review-table {
  width: 100% !important;
  margin: 0 0 1rem !important;
  border: 1px solid var(--line) !important;
}
.invoice--checkout .invoice__review-table th,
.invoice--checkout .invoice__review-table td {
  border: 1px solid var(--line) !important;
  border-inline-start: 0 !important;
  border-block-start: 0 !important;
  padding: .7rem .65rem !important;
  color: #fff !important;
  background: transparent !important;
  white-space: pre-wrap;
  vertical-align: middle !important;
}
.invoice--checkout .invoice__review-table thead th {
  background: rgba(255,255,255,.04) !important;
  font-size: .82rem;
}
.invoice--checkout .invoice__review-table .product-total,
.invoice--checkout .invoice__review-table tfoot td {
  text-align: end !important;
  white-space: pre-wrap;
  font-variant-numeric: tabular-nums;
}
.invoice--checkout .invoice__review-table tfoot th {
  text-align: start !important;
  color: var(--muted) !important;
  font-weight: 600;
}
.invoice--checkout .invoice__review-table .order-total th {
  color: #fff !important;
  font-size: 1.05rem;
}
.invoice--checkout .invoice__review-table .order-total td {
  color: #ffb4b0 !important;
  font-weight: 800;
  font-size: 1.05rem;
}
.invoice--checkout .woocommerce-shipping-methods,
.invoice-totals .woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.invoice--checkout .woocommerce-shipping-methods li,
.invoice-totals .woocommerce-shipping-methods li {
  margin: 0;
}
.invoice--checkout .woocommerce-shipping-methods label,
.invoice-totals .woocommerce-shipping-methods label {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  align-items: center;
  white-space: pre-wrap;
}

.invoice__payment .wc_payment_methods {
  list-style: none;
  margin: .5rem 0 1rem;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.invoice__payment .wc_payment_methods > li {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  padding: .75rem .9rem;
  margin: 0;
}
.invoice__payment .payment_box {
  background: transparent !important;
  color: var(--muted) !important;
  margin: .55rem 0 0 !important;
  padding: .55rem 0 0 !important;
  border-top: 1px dashed var(--line);
}
.invoice__payment .payment_box::before { display: none !important; }
.invoice__payment #place_order,
.invoice--checkout #place_order {
  width: 100%;
  background: var(--red) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: .85rem 1.2rem !important;
  margin-top: .5rem;
}
.invoice--checkout .woocommerce-privacy-policy-text,
.invoice--checkout .woocommerce-terms-and-conditions-wrapper {
  color: var(--muted);
  font-size: .88rem;
}
@media (max-width: 800px) {
  .invoice--checkout .invoice__checkout-grid { grid-template-columns: 1fr; }
  .invoice--checkout .invoice__review-table thead { display: none; }
  .invoice--checkout .invoice__review-table tbody tr {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: .35rem;
    padding: .75rem .65rem;
    border-bottom: 1px solid var(--line);
  }
  .invoice--checkout .invoice__review-table tbody td { border: 0 !important; padding: 0 !important; }
  .invoice--checkout .invoice__review-table tfoot tr {
    display: flex !important;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .65rem;
  }
  .invoice--checkout .invoice__review-table tfoot th,
  .invoice--checkout .invoice__review-table tfoot td {
    border: 0 !important;
    padding: 0 !important;
  }
}

