/* AroaCMS block styles — RTL, responsive, no external assets or CDN. */

/* Bundled Lucide "map pin" as a mask, so no icon font or CDN is ever needed
   for the pseudo-element markers below. */
:root { --aroa-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------- structure */
.blk { position: relative; }
.blk-only-mobile { display: none; }
@media (max-width: 1200px) {
  .blk-only-desktop { display: none; }
  .blk-only-mobile { display: block; }
}
@media (min-width: 901px) {
  .blk-only-mobile { display: none; }
}

/* Scroll animation (progressively enhanced; visible without JavaScript) */
.blk-animate { opacity: 1; }
.js .blk-animate { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .blk-animate[data-animation="fade"] { transform: none; }
.js .blk-animate[data-animation="fade-down"] { transform: translateY(-18px); }
.js .blk-animate[data-animation="fade-left"] { transform: translateX(-24px); }
.js .blk-animate[data-animation="fade-right"] { transform: translateX(24px); }
.js .blk-animate[data-animation="zoom-in"] { transform: scale(.94); }
.js .blk-animate[data-animation="slide-up"] { transform: translateY(34px); }
.js .blk-animate.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .blk-animate { opacity: 1; transform: none; transition: none; }
}

/* Section headings shared by content blocks */
.blk-head { margin-bottom: 26px; }
.blk-head .section-title { margin-bottom: 10px; }
.blk-head .section-sub { margin-bottom: 0; }

.blk-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 1200px) { .blk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .blk-grid { grid-template-columns: 1fr; } }

/* Product grid widget — theme-neutral so it looks right on every theme. */
.blk-products .product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color, #e5e7eb); background: var(--surface, #fff); transition: box-shadow .18s, transform .18s; }
.blk-products .product-card:hover { box-shadow: 0 10px 30px rgba(15, 23, 42, .1); transform: translateY(-3px); }
.blk-products .product-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f5f9; }
.blk-products .product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.blk-products .product-card:hover .product-media img { transform: scale(1.05); }
.blk-products .product-media-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 800; color: #94a3b8; font-size: 1.4rem; }
.blk-products .card-body { display: grid; gap: 8px; padding: 14px; }
.blk-products .card-body h3 { margin: 0; font-size: .98rem; line-height: 1.5; }
.blk-products .card-body p { margin: 0; color: var(--text-muted, #64748b); font-size: .82rem; line-height: 1.7; }
.blk-products .product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.blk-products .product-price strong { color: var(--color-primary, #2563eb); font-size: 1rem; }
.blk-products .product-price del { color: #94a3b8; font-size: .8rem; }
.blk-products .btn-block { width: 100%; text-align: center; }

/* Minimal layout: image, title and price only — a dense, clean catalogue. */
.blk-products .products-minimal .card-body { padding: 10px 12px; gap: 6px; }
.blk-products .products-minimal .card-body h3 { font-size: .9rem; }
.blk-products .products-minimal .product-media { aspect-ratio: 1 / 1; }

/* List layout: horizontal rows, like a marketplace result list. */
.blk-products .products-list { grid-template-columns: 1fr; gap: 12px; }
.blk-products .product-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: stretch; overflow: hidden; border: 1px solid var(--border-color, #e5e7eb); background: var(--surface, #fff); transition: box-shadow .18s; }
.blk-products .product-row:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.blk-products .product-row .product-media { aspect-ratio: auto; min-height: 140px; border-radius: 0; }
.blk-products .product-row .card-body { align-content: center; padding: 16px 18px; }
.blk-products .product-row .card-body h3 { font-size: 1.05rem; }
@media (max-width: 620px) { .blk-products .product-row { grid-template-columns: 110px 1fr; gap: 10px; } .blk-products .product-row .card-body { padding: 10px; } }

/* Classified ads (directory) widget — card grid and result list. */
.blk-listings .listing-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color, #e5e7eb); background: var(--surface, #fff); transition: box-shadow .18s, transform .18s; }
.blk-listings .listing-card:hover { box-shadow: 0 10px 30px rgba(15, 23, 42, .1); transform: translateY(-3px); }
.blk-listings .listing-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f5f9; }
.blk-listings .listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.blk-listings .listing-card:hover .listing-media img { transform: scale(1.05); }
.blk-listings .listing-media-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 800; color: #94a3b8; font-size: 1.4rem; }
.blk-listings .card-body { display: grid; gap: 8px; padding: 14px; }
.blk-listings .card-body h3 { margin: 0; font-size: .98rem; line-height: 1.5; }
.blk-listings .card-body p { margin: 0; color: var(--text-muted, #64748b); font-size: .82rem; line-height: 1.7; }
.blk-listings .listing-featured { justify-self: start; background: #fef3c7; color: #92400e; border-radius: 999px; font-size: .68rem; font-weight: 700; padding: 1px 9px; }
.blk-listings .listing-meta { display: flex; gap: 8px; flex-wrap: wrap; color: #64748b; font-size: .78rem; }
.blk-listings .listing-city::before { content: ""; display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-inline-end: 4px; background: currentColor; -webkit-mask: var(--aroa-pin) center / contain no-repeat; mask: var(--aroa-pin) center / contain no-repeat; }
.blk-listings .listing-price strong { color: var(--color-primary, #2563eb); font-size: 1rem; }
.blk-listings .btn-block { width: 100%; text-align: center; }
.blk-listings .listings-list { grid-template-columns: 1fr; gap: 12px; }
.blk-listings .listing-row { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: stretch; overflow: hidden; border: 1px solid var(--border-color, #e5e7eb); background: var(--surface, #fff); transition: box-shadow .18s; }
.blk-listings .listing-row:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.blk-listings .listing-row .listing-media { aspect-ratio: auto; min-height: 140px; }
.blk-listings .listing-row .card-body { align-content: center; padding: 16px 18px; }
@media (max-width: 620px) { .blk-listings .listing-row { grid-template-columns: 110px 1fr; gap: 10px; } .blk-listings .listing-row .card-body { padding: 10px; } }

/* Public classified archive and single page (outside the block wrapper). */
.listing-card { display: flex; flex-direction: column; overflow: hidden; }
.listing-card .listing-media, .listing-detail-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f5f9; border-radius: 12px; }
.listing-card .listing-media img, .listing-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-media-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 140px; font-weight: 800; color: #94a3b8; font-size: 1.4rem; }
.listing-featured { justify-self: start; background: #fef3c7; color: #92400e; border-radius: 999px; font-size: .68rem; font-weight: 700; padding: 1px 9px; }
.listing-meta { display: flex; gap: 8px; flex-wrap: wrap; color: #64748b; font-size: .8rem; }
.listing-city::before { content: ""; display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-inline-end: 4px; background: currentColor; -webkit-mask: var(--aroa-pin) center / contain no-repeat; mask: var(--aroa-pin) center / contain no-repeat; }
.listing-price strong, .listing-detail-price { color: var(--color-primary, #2563eb); font-size: 1.1rem; font-weight: 800; }
.listing-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.listing-detail-body { display: grid; gap: 12px; }
.listing-detail-body h1 { margin: 0; font-size: 1.5rem; }
.listing-detail-desc { margin-top: 24px; }
.listing-detail-desc h2 { font-size: 1.1rem; margin-bottom: 8px; }
@media (max-width: 760px) { .listing-detail { grid-template-columns: 1fr; } }

.blk-heading { font-weight: var(--heading-weight, 800); line-height: 1.35; }
.blk-text > :last-child { margin-bottom: 0; }
.blk-divider { display: block; }
.blk-spacer { width: 100%; }
.blk-image { margin: 0; }
.blk-image img { max-width: 100%; }
.blk-image figcaption { font-size: .88rem; color: var(--text-muted); margin-top: 8px; text-align: center; }
.blk-html > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- heading/button */
.blk-button .btn { min-height: 42px; }
.btn-block { width: 100%; justify-content: center; }
.btn-ico { display: inline-flex; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--color-primary); }
.btn-ghost:hover { background: var(--bg-muted); }
.btn-light { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn-light:hover { background: var(--bg-muted); color: var(--color-primary-hover); }
.btn-dark { background: #0f172a; color: #fff; border-color: #0f172a; }
.btn-link { background: none; border: none; padding: 4px 8px; border-radius: 8px; color: var(--color-primary); font-weight: 600; transition: background .15s, color .15s; }
.btn-link:hover { background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-lg { padding: 12px 24px; font-size: 1.02rem; }
.btn-xl { padding: 15px 30px; font-size: 1.1rem; }

/* ---------------------------------------------------------- icon boxes */
.iconbox { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 24px 18px; height: 100%; transition: transform .2s, box-shadow .2s; }
.iconbox:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, var(--shadow)); }
.iconbox-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: var(--color-primary-soft, #dbeafe); color: var(--color-primary); margin-bottom: 14px; }
.iconbox-title { font-size: 1.05rem; margin-bottom: 8px; }
.iconbox-text { color: var(--text-muted); font-size: .93rem; margin: 0; }
.iconbox-link { display: block; color: inherit; text-decoration: none; }
.iconbox-link:hover { text-decoration: none; }

/* --------------------------------------------------------- icon list */
.blk-iconlist { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: 14px 22px; text-align: var(--il-align, right); }
.blk-iconlist .il-item { margin: 0; }
.blk-iconlist .il-link { display: flex; gap: 12px; align-items: flex-start;
  color: inherit; text-decoration: none; }
.blk-iconlist .il-link:hover { text-decoration: none; }
.blk-iconlist .il-item > .il-icon,
.blk-iconlist .il-link > .il-icon { flex: 0 0 auto; display: inline-flex;
  align-items: center; justify-content: center; }
.blk-iconlist .il-body { display: flex; flex-direction: column; gap: 3px; }
.blk-iconlist .il-title { font-weight: 700; font-size: 1rem; line-height: 1.5; }
.blk-iconlist .il-text { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.blk-iconlist--plain .il-icon { color: var(--color-primary); }
.blk-iconlist--check .il-icon { width: calc(var(--il-icon, 20px) + 14px);
  height: calc(var(--il-icon, 20px) + 14px); border-radius: 50%;
  background: var(--color-primary-soft, #dbeafe); color: var(--color-primary); }
.blk-iconlist--boxed { gap: 16px; }
.blk-iconlist--boxed .il-item { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px); padding: 16px 18px; height: 100%; }
@media (max-width: 1200px) { .blk-iconlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .blk-iconlist { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- stats */
.blk-stats .stat { text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 22px 14px; }
.blk-stats .stat-value { font-size: 2rem; font-weight: 800; color: var(--color-primary); line-height: 1.2; }
.blk-stats .stat-label { color: var(--text-muted); font-size: .92rem; margin-top: 6px; }

/* -------------------------------------------------------------- tabs */
.blk-tabs { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); overflow: hidden; }
.blk-tabs .tab-nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); background: var(--bg-muted); padding: 6px; }
.blk-tabs .tab-btn { background: none; border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; font-family: inherit; font-size: .95rem; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.blk-tabs .tab-btn:hover { color: var(--color-primary); }
.blk-tabs .tab-btn.is-active { background: var(--bg-card); color: var(--color-primary); border-color: var(--border); }
.blk-tabs .tab-pane { display: none; padding: 22px; }
.blk-tabs .tab-pane.is-active { display: block; }

/* --------------------------------------------------------- accordion */
.blk-accordion, .blk-faq { border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); overflow: hidden; background: var(--bg-card); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: none; border: none; padding: 16px 18px; font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--text-main); text-align: right; cursor: pointer; }
.acc-head:hover { color: var(--color-primary); }
.acc-ico { display: inline-flex; flex-shrink: 0; transition: transform .25s; color: var(--color-primary); }
.acc-item.is-open .acc-ico { transform: rotate(45deg); }
[data-icon="chevron"] .acc-item.is-open .acc-ico { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 18px 18px; color: var(--text-muted); }
.acc-item.is-open .acc-body { display: block; }
.acc-body > .rich-content > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------- countdown */
.blk-countdown { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cd-unit { min-width: 84px; text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 14px 10px; }
.cd-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--color-primary); line-height: 1.2; }
.cd-lbl { font-size: .82rem; color: var(--text-muted); }
.cd-expired { width: 100%; text-align: center; font-weight: 700; color: var(--color-danger); }

/* -------------------------------------------------------------- TOC */
.blk-toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 18px; }
.blk-toc.is-sticky { position: sticky; top: calc(var(--header-height, 72px) + 16px); }
.toc-head { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 10px; color: var(--text-main); }
.toc-head svg { color: var(--color-primary); }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-item a { display: block; padding: 6px 0; font-size: .93rem; color: var(--text-muted); border-right: 2px solid transparent; padding-right: 10px; }
.toc-item a:hover, .toc-item a.is-active { color: var(--color-primary); border-right-color: var(--color-primary); text-decoration: none; }
.toc-level-3 a { padding-right: 22px; font-size: .89rem; }
.toc-level-4 a { padding-right: 34px; font-size: .86rem; }

/* ------------------------------------------------------------ slider */
/* The outer <section> also carries `blk-slider`; target the real frame via its
   data attribute so the section does not clip the configured radius. */
.blk-slider[data-slider] { position: relative; border-radius: var(--slider-radius, 12px); overflow: hidden; }
.blk-slider .slider-track { position: relative; height: var(--slider-height, 420px); }
.blk-slider .slide { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.blk-slider .slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.blk-slider[data-effect="slide"] .slider-track { display: flex; }
.blk-slider[data-effect="slide"] .slide { position: relative; flex: 0 0 100%; transform: translateX(100%); transition: transform .5s ease, opacity .5s ease; }
.blk-slider[data-effect="slide"] .slide.is-active { transform: translateX(0); }
.slide-overlay { position: absolute; inset: 0; }
.slide-content { position: relative; z-index: 2; width: 100%; max-width: var(--container-width, 1140px); margin: 0 auto; padding: 0 24px; color: #fff; }
.slide-title { font-size: clamp(1.4rem, 3.4vw, 2.4rem); color: #fff; margin-bottom: 12px; }
.slide-text { font-size: 1.05rem; color: rgba(255,255,255,.92); margin-bottom: 18px; max-width: 640px; }
.slider-arrow, .carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-main); }
.slider-arrow:hover, .carousel-arrow:hover { background: #fff; color: var(--color-primary); }
.slider-arrow.prev, .carousel-arrow.prev { right: 14px; }
.slider-arrow.next, .carousel-arrow.next { left: 14px; }
.slider-dots { position: absolute; bottom: 14px; right: 0; left: 0; z-index: 3; display: flex; gap: 8px; justify-content: center; }
.slider-dots .dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; }
.slider-dots .dot.is-active { background: #fff; width: 22px; border-radius: 5px; }

/* --------------------------------------------------------------- hero */
.blk-hero { position: relative; min-height: var(--hero-height, 460px); border-radius: var(--hero-radius, 12px); overflow: hidden; background-size: cover; background-position: center; background-color: #0f172a; display: flex; align-items: center; margin: 0 auto; max-width: var(--container-width, 1140px); }
.hero-video { position: absolute; inset: 0; }
.hero-video iframe { width: 100%; height: 100%; border: 0; }
.hero-overlay { position: absolute; inset: 0; }
.blk-hero .hero-content { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; color: #fff; width: 100%; }
.hero-title { font-size: clamp(1.7rem, 4vw, 2.9rem); color: #fff; margin-bottom: 14px; line-height: 1.25; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255,255,255,.9); margin-bottom: 24px; max-width: 720px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------------------------------------- carousel */
.blk-carousel[data-carousel] { position: relative; overflow: hidden; }
.blk-carousel .carousel-track { display: flex; gap: var(--gap, 16px); transition: transform .45s ease; }
.blk-carousel .carousel-item { flex: 0 0 calc((100% - (var(--cols, 4) - 1) * var(--gap, 16px)) / var(--cols, 4)); min-width: 0; }
.carousel-card { background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; height: 100%; }
.carousel-plain { border: none; background: none; }
.carousel-bordered { background: none; border: 1px solid var(--color-primary); }
.carousel-media { overflow: hidden; }
.carousel-media { position: relative; }
.carousel-media--icon {
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; background: var(--color-primary-light, #eff6ff);
  color: var(--color-primary);
}
.carousel-media--icon svg { width: 34px; height: 34px; }
.carousel-media-icon {
  position: absolute; inset-inline-start: 10px; bottom: 10px;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.94); color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(15,23,42,.18);
}
.carousel-media img { width: 100%; height: 170px; object-fit: cover; }
.carousel-body { padding: 16px; }
.carousel-title { font-size: 1.02rem; margin-bottom: 8px; }
.carousel-text { font-size: .9rem; color: var(--text-muted); margin: 0; }
.carousel-eyebrow { display: block; font-size: .8rem; color: var(--color-primary); font-weight: 700; margin-bottom: 4px; }
.carousel-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.carousel-link:hover { text-decoration: none; }
.blk-carousel .carousel-arrow { top: 40%; background: #fff; }
.carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.carousel-dots .dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--border); cursor: pointer; }
.carousel-dots .dot.is-active { background: var(--color-primary); width: 20px; border-radius: 4px; }

/* Responsive columns: a fixed 4-up track on a phone squeezes cards into
   unreadable slivers and leaves nothing to slide. Shrink the per-view count
   as the viewport narrows so the same data stays legible and the arrows and
   autoplay actually have room to move. */
@media (max-width: 1024px) {
  .blk-carousel[data-carousel] { --cols: 3 !important; }
}
@media (max-width: 820px) {
  .blk-carousel[data-carousel] { --cols: 2 !important; }
  .blk-carousel .carousel-arrow { width: 38px; height: 38px; }
}
@media (max-width: 560px) {
  .blk-carousel[data-carousel] { --cols: 1 !important; }
  .blk-carousel .carousel-arrow { width: 34px; height: 34px; top: 38%; }
  .carousel-media img { height: 200px; }
}

/* Story-style carousel: circular avatars inside a gradient ring, the way
   Iranian corporate sites present a "team line-up" or a highlights reel. */
.carousel-story {
  background: none; border: none; text-align: center; padding: 4px;
}
.carousel-story .carousel-media {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50% !important;
  padding: 3px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent, #7c3aed));
}
.carousel-story .carousel-media img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.carousel-story .carousel-media--icon { padding: 0; border: 3px solid var(--color-primary-soft, #dbeafe); background: var(--bg-muted); }
.carousel-story .carousel-media--icon svg { width: 40%; height: 40%; }
.carousel-story .carousel-body { padding: 9px 3px 0; }
.carousel-story .carousel-title { font-size: .9rem; margin: 0 0 2px; }
.carousel-story .carousel-text { font-size: .78rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-story .carousel-media-icon { display: none; }

/* ------------------------------------------------------------ gallery */
.blk-gallery-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap, 12px); }
.gallery-item { display: block; overflow: hidden; background: var(--bg-muted); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .blk-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* -------------------------------------------------------------- video */
.blk-video { position: relative; overflow: hidden; background: #000; }
.blk-video iframe, .blk-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------- stars */
.stars { display: inline-flex; gap: 2px; color: var(--color-warning); }
.stars .star { display: inline-flex; opacity: .28; }
.stars .star.is-on { opacity: 1; }
.stars svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------- team */
.blk-team .team-member { text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 22px 16px; }
.team-avatar { width: 92px; height: 92px; object-fit: cover; margin: 0 auto 12px; display: block; }
.team-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--color-primary-soft, #dbeafe); color: var(--color-primary); }
.team-name { font-size: 1.05rem; margin-bottom: 2px; }
.team-role { display: block; font-size: .86rem; color: var(--color-primary); font-weight: 700; margin-bottom: 8px; }
.team-bio { font-size: .9rem; color: var(--text-muted); margin-bottom: 10px; }
.team-socials { display: flex; gap: 8px; justify-content: center; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-muted); color: var(--text-muted); }
.social-link:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* ------------------------------------------------------- testimonials */
.testimonial { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 20px; height: 100%; }
.testimonial-quote { border-right: 4px solid var(--color-primary); }
.testimonial-minimal { border: none; background: none; padding: 0; }
.testimonial-bubble { border-radius: 16px 16px 16px 4px; background: var(--bg-muted); }
.testimonial-text { margin: 10px 0 14px; font-size: .95rem; color: var(--text-main); line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 44px; height: 44px; object-fit: cover; }
.testimonial-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--color-primary-soft, #dbeafe); color: var(--color-primary); }
.testimonial-meta { display: flex; flex-direction: column; }
.testimonial-meta small { color: var(--text-muted); font-size: .82rem; }

/* ------------------------------------------------------------ pricing */
.price-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 26px 22px; text-align: center; height: 100%; display: flex; flex-direction: column; }
.price-card.is-featured { border-color: var(--color-primary); box-shadow: var(--shadow-lg, var(--shadow-md, var(--shadow))); }
.price-badge { position: absolute; top: -12px; right: 50%; transform: translateX(50%); background: var(--color-primary); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 14px; border-radius: 999px; }
.price-name { font-size: 1.15rem; margin-bottom: 12px; }
.price-amount { margin-bottom: 16px; }
.price-amount span { display: block; font-size: 1.8rem; font-weight: 800; color: var(--color-primary); }
.price-amount small { color: var(--text-muted); font-size: .86rem; }
.price-features { list-style: none; padding: 0; margin: 0 0 20px; text-align: right; flex: 1; }
.price-features li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .93rem; color: var(--text-muted); }
.price-features svg { color: var(--color-success); flex-shrink: 0; }

/* ---------------------------------------------------------------- CTA */
.cta-box { padding: 40px 26px; border-radius: var(--radius-lg, 12px); }
.cta-primary { background: var(--color-primary); color: #fff; }
.cta-soft { background: var(--color-primary-soft, #dbeafe); color: var(--text-main); }
.cta-dark { background: #0f172a; color: #fff; }
.cta-light { background: var(--bg-card); border: 1px solid var(--border); }
.cta-gradient { background: linear-gradient(120deg, var(--color-primary), var(--color-accent, #7c3aed)); color: #fff; }
.cta-title { margin-bottom: 10px; }
.cta-primary .cta-title, .cta-dark .cta-title, .cta-gradient .cta-title { color: #fff; }
.cta-text { margin-bottom: 20px; opacity: .92; }

/* ------------------------------------------------------------- author */
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 22px; }
.author-avatar { width: 84px; height: 84px; object-fit: cover; flex-shrink: 0; }
.author-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--color-primary-soft, #dbeafe); color: var(--color-primary); }
.author-eyebrow { display: block; font-size: .8rem; color: var(--text-muted); }
.author-name { font-size: 1.1rem; margin-bottom: 2px; }
.author-role { display: block; font-size: .86rem; color: var(--color-primary); font-weight: 700; margin-bottom: 8px; }
.author-bio { font-size: .93rem; color: var(--text-muted); margin-bottom: 10px; }
.author-body .team-socials { justify-content: flex-start; }
@media (max-width: 560px) { .author-box { flex-direction: column; align-items: center; text-align: center; } }

/* ------------------------------------------------------------ rating */
.blk-rating { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 22px; }
.rating-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rating-num { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); }
.rating-count { font-size: .88rem; color: var(--text-muted); }
.rating-form { display: grid; gap: 12px; }
.rating-label { font-weight: 700; font-size: .95rem; }
.rating-picker { display: flex; gap: 4px; direction: ltr; justify-content: flex-start; }
.rating-star { background: none; border: none; padding: 0; cursor: pointer; color: var(--border); }
.rating-star.is-on { color: var(--color-warning); }
.rating-fields { display: grid; gap: 8px; }
.rating-result, .ticket-result, .form-result { font-size: .92rem; }
.rating-result.is-ok, .ticket-result.is-ok { color: var(--color-success); }
.rating-result.is-error, .ticket-result.is-error { color: var(--color-danger); }
.rating-field-label { font-size: .82rem; font-weight: 700; color: var(--text-muted); margin-bottom: -4px; }
.review-list { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 18px; }
.review-item { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); background: var(--bg-muted); }
.review-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary-soft, #dbeafe); color: var(--color-primary); font-weight: 800; }
.review-main { flex: 1; min-width: 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.review-head strong { font-size: .92rem; }
.review-head time { font-size: .76rem; color: var(--text-muted); margin-inline-start: auto; }
.review-stars { display: inline-flex; gap: 1px; color: var(--color-warning); }
.review-text { margin: 0; font-size: .9rem; line-height: 1.85; color: var(--text-main); }

/* ------------------------------------------------------------ ticket */
.ticket-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 22px; }
.ticket-form .form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ticket-form .form-row .form-group { flex: 1 1 200px; }

/* ------------------------------------------------------------ search */
.blk-search { position: relative; }
.blk-search .search-form { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--search-radius, 10px); padding: 8px 12px; }
.blk-search .search-ico { display: inline-flex; color: var(--text-muted); flex-shrink: 0; }
.blk-search .search-input { flex: 1; border: none; background: none; font-family: inherit; font-size: 1rem; color: var(--text-main); min-width: 0; padding: 8px 6px; }
.blk-search .search-input:focus { outline: none; }
.blk-search .search-submit { flex-shrink: 0; }
.blk-search-pill .search-form { border-radius: 999px; }
.blk-search-minimal .search-form { border: none; border-bottom: 2px solid var(--border); border-radius: 0; background: none; padding: 4px 0; }
.blk-search-hero .search-form { padding: 14px 16px; box-shadow: var(--shadow-lg, var(--shadow-md, var(--shadow))); }
.search-suggestions { position: absolute; z-index: 30; margin-top: 6px; width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md, var(--shadow)); overflow: hidden; max-height: 360px; overflow-y: auto; }
.search-suggestions a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-main); }
.search-suggestions a:last-child { border-bottom: none; }
.search-suggestions a:hover, .search-suggestions a.is-active { background: var(--bg-muted); text-decoration: none; }
.search-suggestions .sug-type { font-size: .78rem; color: var(--text-muted); display: block; }

/* ----------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1200px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 20px; text-align: center; color: inherit; display: block; }
a.contact-item:hover { border-color: var(--color-primary); text-decoration: none; }
.contact-item-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 14px; background: var(--color-primary-soft, #dbeafe); color: var(--color-primary); margin-bottom: 10px; }
.contact-item h4 { margin-bottom: 6px; font-size: 1rem; }
.contact-value { font-size: .93rem; color: var(--text-muted); margin: 0; }
.contact-form-wrap { margin-top: 24px; }

/* -------------------------------------------------------- quick call */
.blk-quickcall { display: flex; gap: 10px; }
.qc-row { flex-direction: row; flex-wrap: wrap; }
.qc-column { flex-direction: column; align-items: flex-start; }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.qc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .93rem; background: var(--qc-color, var(--color-primary)); color: #fff; border: 1px solid var(--qc-color, var(--color-primary)); }
.qc-btn:hover { text-decoration: none; filter: brightness(.94); color: #fff; }
.qc-outline .qc-btn { background: none; color: var(--qc-color, var(--color-primary)); }
.qc-soft .qc-btn { background: var(--color-primary-soft, #dbeafe); color: var(--color-primary); border-color: transparent; }
.qc-whatsapp { --qc-color: #25d366; }
.qc-telegram { --qc-color: #229ed9; }
.qc-rubika { --qc-color: #7b3fe4; }
.qc-eitaa { --qc-color: #ef7d00; }
.qc-bale { --qc-color: #00a6a6; }
.qc-mobile, .qc-phone { --qc-color: var(--color-primary); }

/* ------------------------------------------------------- social/share */
.blk-social, .blk-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-title { font-weight: 700; font-size: .95rem; margin-left: 6px; }
.social-circle .social-link, .share-circle .share-btn, .blk-share.share-circle .share-btn { border-radius: 50%; width: 42px; height: 42px; }
.social-rounded .social-link, .share-rounded .share-btn, .blk-share.share-rounded .share-btn { border-radius: 10px; width: 42px; height: 42px; }
.social-sm .social-link { width: 34px; height: 34px; }
.social-lg .social-link { width: 50px; height: 50px; }
.social-plain .social-link { background: none; }
.blk-share .share-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-muted); color: var(--text-muted); border: 1px solid var(--border); width: 42px; height: 42px; cursor: pointer; }
.blk-share .share-btn:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.blk-share.share-branded .share-whatsapp:hover { background: #25d366; border-color: #25d366; }
.blk-share.share-branded .share-telegram:hover { background: #229ed9; border-color: #229ed9; }
.blk-share.share-branded .share-eitaa:hover { background: #ef7d00; border-color: #ef7d00; }
.blk-share.share-branded .share-rubika:hover { background: #7b3fe4; border-color: #7b3fe4; }
.blk-share.share-branded .share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.blk-share.share-branded .share-whatsapp, .blk-share.share-branded .share-telegram { background: #fff; }
.social-link span { font-size: .9rem; }

/* Share — labelled, branded and accessible */
.blk-share-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0; }
.blk-share-wrap .share-title { margin: 0; }
.blk-share .share-btn { gap: 7px; padding: 0 12px; width: auto; min-width: 42px; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease; }
.blk-share .share-btn:active { transform: scale(.96); }
.blk-share.share-circle .share-btn, .blk-share.share-rounded .share-btn { width: 42px; padding: 0; }
.blk-share.has-labels .share-btn { width: auto; padding: 0 14px; }
.share-label { font-size: .84rem; font-weight: 600; white-space: nowrap; }
.share-btn.is-copied { background: var(--color-success, #16a34a); color: #fff; border-color: var(--color-success, #16a34a); }
.share-count { font-size: .82rem; color: var(--text-muted); }
.share-toast { font-size: .82rem; font-weight: 700; color: var(--color-success, #16a34a); background: var(--color-success-soft, #ecfdf5); border-radius: 999px; padding: 4px 12px; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.share-toast.is-visible { opacity: 1; transform: translateY(0); }
.blk-share.share-branded .share-bale:hover { background: #00a6a6; border-color: #00a6a6; }
.blk-share.share-branded .share-x:hover, .blk-share.share-branded .share-twitter:hover { background: #111; border-color: #111; }
.blk-share.share-branded .share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.blk-share.share-branded .share-pinterest:hover { background: #e60023; border-color: #e60023; }
.blk-share.share-branded .share-email:hover { background: #475569; border-color: #475569; }
.blk-share.share-branded .share-copy:hover, .blk-share.share-branded .share-native:hover { background: var(--color-primary); border-color: var(--color-primary); }
@media (max-width: 560px) {
  .blk-share-wrap { gap: 8px 10px; }
  .blk-share.has-labels .share-btn { padding: 0 10px; }
  .share-label { font-size: .78rem; }
}

/* --------------------------------------------------------------- map */
.blk-map { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--map-radius, 12px); overflow: hidden; }
.map-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); background: var(--bg-muted); }
.map-tab { background: none; border: 1px solid transparent; border-radius: 8px; padding: 7px 16px; font-family: inherit; font-weight: 700; font-size: .9rem; color: var(--text-muted); cursor: pointer; }
.map-tab.is-active { background: var(--bg-card); color: var(--color-primary); border-color: var(--border); }
.map-pane { display: none; }
.map-pane.is-active { display: block; }
.map-canvas { height: var(--map-height, 380px); background: var(--bg-muted); }
.map-canvas iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { height: var(--map-height, 380px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--text-muted); }
.map-placeholder svg { color: var(--color-primary); opacity: .7; }
.map-address { font-weight: 700; color: var(--text-main); }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; justify-content: center; }
.map-actions .btn { gap: 6px; }

/* ----------------------------------------------------------- lightbox */
.aroa-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.aroa-lightbox img { max-width: 96vw; max-height: 90vh; border-radius: 10px; }
.aroa-lightbox-close { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.14); border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.aroa-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: none; color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.aroa-lightbox-nav.prev { right: 20px; }
.aroa-lightbox-nav.next { left: 20px; }

/* -------------------------------------------------------- floating UI */
/* The rail sits on the right edge (RTL) and is offset above the chat bubble so
   the scroll-to-top button can never overlap the bubble. */
.float-wrap { position: fixed; bottom: 92px; right: 22px; z-index: 900; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.float-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; color: #fff; background: var(--color-primary); box-shadow: var(--shadow-lg, var(--shadow-md, var(--shadow))); }
.float-btn:hover { filter: brightness(.94); color: #fff; }
.float-call { background: var(--color-success); }
/* A labelled call pill: the icon alone cannot distinguish two numbers, so the
   number itself is shown next to a per-channel icon. */
.float-call-pill { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; box-shadow: var(--shadow-lg, var(--shadow-md, var(--shadow))); }
.float-call-pill:hover { color: #fff; filter: brightness(.94); }
.float-call-pill .float-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.22); flex-shrink: 0; }
.float-call-pill .float-num { display: none; }
.float-call-phone { background: var(--color-success); }
.float-call-mobile { background: var(--color-info, #0891b2); }
.float-call-email { background: var(--color-secondary, #64748b); }
.float-call-whatsapp { background: #25d366; }
.float-call-link { background: var(--color-primary); }
.float-top { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border); display: none; }
.float-top.is-visible { display: inline-flex; }
.chat-bubble { position: fixed; bottom: 22px; right: 22px; z-index: 950; }
.chat-bubble .chat-toggle { width: 58px; height: 58px; border-radius: 50%; border: none; background: var(--color-primary); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg, var(--shadow-md, var(--shadow))); }
.chat-bubble .chat-toggle .ico-close { display: none; }
.chat-bubble.is-open .chat-toggle .ico-open { display: none; }
.chat-bubble.is-open .chat-toggle .ico-close { display: inline-flex; }
.chat-panel { position: absolute; bottom: 70px; right: 0; width: 280px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg, var(--shadow-md, var(--shadow))); overflow: hidden; display: none; }
.chat-bubble.is-open .chat-panel { display: block; }
.chat-head { padding: 14px 16px; background: var(--color-primary); color: #fff; }
.chat-head strong { display: block; font-size: 1rem; }
.chat-head small { opacity: .9; font-size: .82rem; }
.chat-list { display: flex; flex-direction: column; }
.chat-list a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-main); font-size: .93rem; }
.chat-list a:last-child { border-bottom: none; }
.chat-list a:hover { background: var(--bg-muted); text-decoration: none; }
.chat-list .chat-online { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text-main); font: inherit; font-size: .93rem; text-align: right; cursor: pointer; }
.chat-list .chat-online:hover { background: var(--bg-muted); }
.chat-list .chat-online .chat-ico { background: var(--color-primary); }
.chat-list .chat-ico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; flex-shrink: 0; }
.chat-phone .chat-ico { background: var(--color-success); }
.chat-mobile .chat-ico { background: var(--color-info, #0891b2); }
.chat-email .chat-ico { background: var(--color-secondary, #64748b); }
.chat-link .chat-ico { background: var(--color-primary); }
.chat-call .chat-ico { background: var(--color-success); }
.chat-whatsapp .chat-ico { background: #25d366; }
.chat-telegram .chat-ico { background: #229ed9; }
.chat-eitaa .chat-ico { background: #ef7d00; }
.chat-rubika .chat-ico { background: #7b3fe4; }
.chat-bale .chat-ico { background: #00a6a6; }

/* Dark mode is applied by Brand::css via [data-theme="dark"]; keep block
   surfaces aligned with the shared surface tokens. */
[data-theme="dark"] .iconbox,
[data-theme="dark"] .price-card,
[data-theme="dark"] .testimonial,
[data-theme="dark"] .blk-toc,
[data-theme="dark"] .blk-accordion,
[data-theme="dark"] .blk-faq,
[data-theme="dark"] .blk-tabs,
[data-theme="dark"] .blk-rating,
[data-theme="dark"] .ticket-form,
[data-theme="dark"] .blk-map,
[data-theme="dark"] .author-box,
[data-theme="dark"] .blk-stats .stat,
[data-theme="dark"] .team-member,
[data-theme="dark"] .carousel-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .blk-search .search-form { background: var(--bg-card); }

/* ======================================================= archive + cards */
.archive { padding: 40px 0; }
.archive-head { margin-bottom: 22px; }
.archive-head h1 { font-size: 1.6rem; margin-bottom: 6px; }
.archive-sub { color: var(--text-muted); max-width: 70ch; }
.archive-count {
  display: inline-block; margin-top: 8px; font-size: .82rem; font-weight: 700;
  color: var(--color-primary); background: var(--bg-muted);
  border-radius: 999px; padding: 3px 12px;
}
.archive-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.archive-main { min-width: 0; }
.archive-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }
.side-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.side-card h3 { font-size: 1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.side-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.side-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 6px; color: var(--text-main); font-size: .92rem;
}
.side-list a:hover { background: var(--bg-muted); color: var(--color-primary); text-decoration: none; }
.side-list em { font-style: normal; font-size: .78rem; color: var(--text-muted); background: var(--bg-muted); border-radius: 999px; padding: 1px 8px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-chip {
  display: inline-block; font-size: .82rem; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-muted); color: var(--text-main); border: 1px solid var(--border);
}
.tag-chip:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; text-decoration: none; }

.blog-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-image-empty {
  display: flex; align-items: center; justify-content: center; height: 170px;
  background: var(--bg-muted); color: var(--text-muted);
}
.blog-title { font-size: 1.05rem; }
.blog-date { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: 4px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; }
.page-link {
  min-width: 38px; text-align: center; padding: 7px 11px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-main); font-size: .88rem; font-weight: 700;
}
.page-link:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.page-link.is-current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.empty-state {
  padding: 34px 18px; text-align: center; color: var(--text-muted);
  background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius);
}
.muted { color: var(--text-muted); }
.preview-banner {
  background: var(--color-warning); color: #fff; text-align: center;
  padding: 9px 14px; font-size: .88rem; font-weight: 700;
}

/* ============================================================ article */
.article { padding: 34px 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.article-main { min-width: 0; }
.article-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }
.article-head { margin-bottom: 18px; }
.article-head h1 { font-size: 1.75rem; line-height: 1.45; margin: 6px 0 12px; }
.article-cat {
  display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 11px;
  border-radius: 999px; background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
}
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .84rem; color: var(--text-muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-figure { margin: 0 0 20px; }
.article-figure img { width: 100%; border-radius: 12px; }
.page-figure img { width: 100%; border-radius: 12px; }
.article-body { font-size: 1.02rem; }
.article-body h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.article-body h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 22px 14px 0; }
.article-body img { border-radius: 10px; margin: 10px 0; }
.article-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 26px 0 18px; font-size: .88rem; color: var(--text-muted);
}
.article-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.article-nav a {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card);
}
.article-nav a:hover { border-color: var(--color-primary); text-decoration: none; }
.article-nav span { font-size: .78rem; color: var(--text-muted); }
.article-nav strong { font-size: .92rem; color: var(--text-main); }
.art-nav-next { text-align: left; }
.related-posts { margin: 28px 0; }

/* =========================================================== comments */
.comments-section { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.comments-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.comments-head .section-title { margin: 0; }
.comments-note { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); }
.comments-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px; border: 1px dashed var(--border); border-radius: var(--radius-lg, 12px); color: var(--text-muted); text-align: center; margin-bottom: 22px; }
.comments-empty p { margin: 0; }
.comment-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.comment-item { display: flex; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 16px; }
.comment-avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary-soft, #dbeafe); color: var(--color-primary); font-weight: 800; font-size: 1.05rem; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment-head strong { font-size: .95rem; }
.comment-head time { font-size: .78rem; color: var(--text-muted); }
.comment-body { font-size: .93rem; color: var(--text-main); white-space: pre-line; line-height: 1.9; }
.comment-tools { margin-top: 8px; }
.comment-reply-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; padding: 2px 0; font-family: inherit; font-size: .82rem; font-weight: 700; color: var(--color-primary); cursor: pointer; }
.comment-reply-btn { border-radius: 999px; padding: 4px 10px; transition: background .15s, color .15s; }
.comment-reply-btn:hover { color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.comment-children { margin-top: 12px; padding-inline-start: 14px; border-inline-start: 2px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.comment-child { padding: 12px; background: var(--bg-muted); }
.comment-reply-form { margin-top: 12px; padding: 14px; }
.comment-reply-form .form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.comment-reply-form .form-row .form-group { flex: 1 1 160px; }
.comment-actions { display: flex; gap: 8px; }
.comment-counter { display: block; margin-top: 4px; font-size: .76rem; color: var(--text-muted); text-align: end; }
.comment-counter.is-near { color: var(--color-danger); }
.comment-form-title { font-size: 1.05rem; margin-bottom: 12px; }
@media (max-width: 560px) {
  .comment-item { padding: 12px; }
  .comment-avatar { flex-basis: 36px; width: 36px; height: 36px; font-size: .95rem; }
  .comment-head { flex-direction: column; gap: 2px; }
}

/* =============================================================== forms */
.stack-form { display: flex; flex-direction: column; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stack-form .form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stack-form .form-row .form-group { flex: 1 1 190px; }
.form-note { font-size: .8rem; color: var(--text-muted); }
.req { color: var(--color-danger); font-weight: 700; }
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  inset-inline-start: 0 !important;
}
.form-result { font-size: .88rem; font-weight: 700; min-height: 1px; }
.form-result.is-ok { color: var(--color-success); }
.form-result.is-error { color: var(--color-danger); }

/* ============================================================ services */
.service-page { padding: 32px 0; }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.service-main { min-width: 0; }
.service-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }
.service-head { margin-bottom: 16px; }
.service-head h1 { font-size: 1.7rem; margin-bottom: 8px; }
.service-sub { color: var(--text-muted); }
.service-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: var(--text-muted); margin-top: 8px; }
.service-figure img { width: 100%; border-radius: 12px; margin-bottom: 18px; }
.service-image-empty { display: flex; align-items: center; justify-content: center; height: 220px; border-radius: 12px; background: var(--bg-muted); color: var(--text-muted); margin-bottom: 18px; }
.service-features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 18px 0; }
.service-features li { display: flex; align-items: flex-start; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 13px; font-size: .92rem; }
.service-faq { margin: 24px 0; }
.service-price { font-size: 1.05rem; font-weight: 800; color: var(--color-primary); }
.service-card { height: 100%; }
.service-flag, .service-cat {
  display: inline-block; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 2px 10px;
}
.service-cat { background: var(--bg-muted); color: var(--text-muted); }
.service-flag { background: color-mix(in srgb, var(--color-success) 15%, transparent); color: var(--color-success); }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }

/* ============================================================ bookings */
.booking-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.booking-card h3 { font-size: 1.02rem; margin-bottom: 12px; }
.booking-service { font-size: .92rem; font-weight: 700; color: var(--color-primary); margin-bottom: 6px; }
.booking-deposit { font-size: .82rem; color: var(--text-muted); margin: 8px 0; }
.booking-card .form-group { margin-bottom: 10px; }
.booking-card .form-group label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 5px; }

/* ============================================================ checkout */
.pricing-page { padding: 40px 0; }
.pricing-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.pricing-head h1 { font-size: 1.9rem; margin-bottom: 10px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.price-setup { font-size: .82rem; color: var(--text-muted); }
.price-desc { font-size: .88rem; color: var(--text-muted); }
.compare-wrap { overflow-x: auto; margin-top: 34px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--bg-card); }
.compare-table th, .compare-table td { padding: 11px 13px; border-bottom: 1px solid var(--border); font-size: .9rem; text-align: right; }
.compare-table thead th { background: var(--bg-muted); font-size: .88rem; }
.compare-table .yes { color: var(--color-success); font-weight: 700; }
.compare-table .no { color: var(--text-muted); }
.checkout-page { padding: 34px 0; }
.acc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.acc-nav__item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; color: var(--text-muted); font-size: .9rem; text-decoration: none; transition: background .15s, color .15s; }
.acc-nav__item:hover { background: var(--bg-muted); color: var(--text-main); }
.acc-nav__item.is-active { background: color-mix(in srgb, var(--color-primary) 12%, #fff); color: var(--color-primary); font-weight: 700; }
.acc-nav__ico { display: inline-flex; }
.acc-nav__ico svg { width: 18px; height: 18px; }
.checkout-head { margin: 0 0 26px; }
.checkout-step { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 12%, #fff); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.checkout-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 6px; }
.checkout-sub { color: var(--text-muted); margin: 0; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 18px; }
.checkout-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.checkout-card__title { font-size: 1.05rem; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.checkout-summary { position: sticky; top: 90px; }
.checkout-summary .order-summary { border-radius: 14px; padding: 20px; }
.order-line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: .9rem; border-bottom: 1px dashed var(--border); }
.order-line span { color: var(--text-muted); }
.order-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; padding: 14px 0 4px; font-size: 1rem; }
.order-total strong { font-size: 1.2rem; color: var(--color-primary); }
.order-features { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.order-features__title { font-size: .82rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.order-features ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.order-features li { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; }
.order-features li svg { color: var(--color-success); flex-shrink: 0; margin-top: 2px; }
.order-trust { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-muted); }
.order-trust svg { color: var(--color-success); flex-shrink: 0; }
.gateway-item__body { display: flex; flex-direction: column; gap: 2px; }
.btn-lg { padding: 14px 20px; font-size: 1rem; }
@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}
.order-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.order-summary h3 { font-size: 1rem; margin-bottom: 12px; }
.gateway-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.gateway-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); cursor: pointer;
}
.gateway-item:has(input:checked) { border-color: var(--color-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.gateway-item strong { font-size: .95rem; }
.gateway-item span { font-size: .8rem; color: var(--text-muted); }
.result-page { padding: 48px 0; }
.result-card { max-width: 560px; margin: 0 auto; text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 30px 24px; }
.result-icon { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.result-icon.ok { background: var(--color-success); }
.result-icon.bad { background: var(--color-danger); }
.result-amount { font-size: 1.5rem; font-weight: 800; margin: 12px 0; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.status-card { max-width: 620px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.status-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.status-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.status-list li span:first-child { color: var(--text-muted); }
.license-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.license-card { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; font-size: .9rem; }
.license-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-muted); color: var(--color-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ============================================================= support */
.support-page { padding: 34px 0; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.support-main { min-width: 0; }
.support-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.table-scroll { overflow-x: auto; }

/* ============================================================== search */
.search-page-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 20px; }
.search-page-form input[type="search"] { flex: 1 1 260px; }
.search-filters {
  display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; flex: 0 1 auto;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.search-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-card); font-size: .84rem; color: var(--text-main);
}
.filter-chip:hover { border-color: var(--color-primary); text-decoration: none; }
.filter-chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.search-page-form .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .search-page-form input[type="search"] { flex: 1 1 100%; }
  .search-filters { order: 2; flex: 1 1 auto; min-width: 0; }
  .search-page-form .btn { order: 3; flex: 0 0 auto; }
}
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.search-item h2, .search-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.search-item p { font-size: .9rem; color: var(--text-muted); margin-bottom: 8px; }
.search-type { display: inline-block; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--bg-muted); color: var(--text-muted); }
.search-go { display: flex; align-items: center; justify-content: center; }

/* ======================================================== contact page */
.contact-section { padding: 34px 0; }
.contact-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.contact-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.contact-form { margin-top: 18px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.toc-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 18px 0; }

/* ========================================================== hero extras */
.hero-copy { display: flex; flex-direction: column; gap: 14px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-placeholder { width: 100%; min-height: 220px; border-radius: 12px; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.hero-quickcall { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.page-head { margin-bottom: 20px; }
.page-sub { color: var(--text-muted); }
.crumb-sep { color: var(--text-muted); margin: 0 6px; }
.auth-footer { margin-top: 16px; font-size: .85rem; color: var(--text-muted); }
.alert-warning { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
[data-theme="dark"] .alert-warning { background: rgba(217,119,6,.15); color: #fdba74; }

@media (max-width: 1000px) {
  .archive-grid, .article-grid, .service-layout, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .archive-side, .article-side, .service-side, .support-side { position: static; }
}
@media (max-width: 640px) {
  .blog-grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .article-nav { grid-template-columns: minmax(0, 1fr); }
  .article-head h1 { font-size: 1.35rem; }
  .service-head h1 { font-size: 1.35rem; }
}

[data-theme="dark"] .side-card,
[data-theme="dark"] .comment-item,
[data-theme="dark"] .stack-form,
[data-theme="dark"] .booking-card,
[data-theme="dark"] .order-summary,
[data-theme="dark"] .gateway-item,
[data-theme="dark"] .result-card,
[data-theme="dark"] .status-card,
[data-theme="dark"] .license-card,
[data-theme="dark"] .search-item,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .compare-table,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .toc-box,
[data-theme="dark"] .article-nav a { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .compare-table thead th { background: var(--bg-muted); }

/* Hero with a CSS gradient backdrop (no external image needed). */
.blk-hero.hero-on-gradient { box-shadow: 0 18px 50px rgba(15,23,42,.28), inset 0 0 0 1px rgba(255,255,255,.06); }
.blk-hero.hero-on-gradient .hero-buttons .btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.blk-hero.hero-on-gradient .hero-buttons .btn-outline:hover { background: rgba(255,255,255,.12); }

/* Popup navigation block (menu widget) */
.blk-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.blk-menu--column .blk-menu-list { flex-direction: column; align-items: stretch; gap: 4px; }
.blk-menu--grid .blk-menu-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 18px; }
.blk-menu-item { position: relative; }
.blk-menu-item > a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 8px; color: var(--text-main); font-weight: 600; text-decoration: none; transition: background .18s, color .18s; }
.blk-menu-item > a:hover, .blk-menu-item > a:focus-visible { background: var(--bg-muted); color: var(--color-primary); }
.blk-menu-ico { color: currentColor; stroke: currentColor; flex: 0 0 auto; }
.blk-menu-caret { color: currentColor; transition: transform .2s; }
.blk-menu-item:hover > a .blk-menu-caret, .blk-menu-item:focus-within > a .blk-menu-caret { transform: rotate(180deg); }
.blk-menu-sub { position: absolute; top: 100%; right: 0; min-width: 210px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); padding: 8px; list-style: none; margin: 6px 0 0; display: none; z-index: 40; }
.blk-menu-item:hover > .blk-menu-sub, .blk-menu-item:focus-within > .blk-menu-sub { display: block; animation: aroa-menu-in .16s ease both; }
.blk-menu-sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: .92rem; }
.blk-menu-sub a:hover { background: var(--bg-muted); color: var(--color-primary); }
@media (max-width: 640px) {
  .blk-menu-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .blk-menu-sub { position: static; box-shadow: none; border: 0; border-right: 2px solid var(--border); border-radius: 0; margin: 0 0 6px; padding: 0 10px; }
}

/* --------------------------------------------------- full-width block */
/* Break the section out of the page container so it spans the viewport. */
.blk-full { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.blk-full > .container { max-width: var(--container-width, 1200px); margin-inline: auto; }
/* Slider images are real <img> elements now, so they carry alt text. */
.blk-slider .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.blk-slider .slide-overlay { z-index: 1; }
/* ------------------------------------------------ floating rail polish */
.float-top { width: 44px; height: 44px; background: var(--bg-card, #fff); color: var(--text-main, #1f2937);
  border: 1px solid var(--border, #e5e7eb); display: none; box-shadow: 0 6px 18px rgba(15,23,42,.14);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease; }
.float-top.is-visible { display: inline-flex; }
.float-top:hover { transform: translateY(-3px); color: var(--color-primary, #2563eb); border-color: var(--color-primary, #2563eb); box-shadow: 0 10px 24px rgba(15,23,42,.2); }
.float-top svg { width: 20px; height: 20px; stroke-width: 2.6; }
.float-wrap { gap: 12px; }
.float-call-pill { box-shadow: 0 8px 20px rgba(15,23,42,.16); transition: transform .18s ease, filter .18s ease; }
.float-call-pill:hover { transform: translateY(-2px); }
.chat-bubble .chat-toggle { transition: transform .18s ease, box-shadow .18s ease; }
.chat-bubble .chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,23,42,.24); }
/* ---- Portfolio (نمونه‌کار): case-study cards with filters ---- */
.blk-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.blk-filter-btn {
  border: 1px solid var(--border, #e2e8f0); background: #fff; color: var(--text-main, #0f172a);
  padding: 7px 16px; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer;
  transition: all .18s ease;
}
.blk-filter-btn:hover { border-color: var(--color-primary, #4f46e5); color: var(--color-primary, #4f46e5); }
.blk-filter-btn.is-on { background: var(--color-primary, #4f46e5); border-color: var(--color-primary, #4f46e5); color: #fff; font-weight: 700; }
.portfolio-grid { align-items: stretch; }
.portfolio-card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--border, #e7ecf3); box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,23,42,.12); }
.portfolio-card.is-filtered { display: none; }
.portfolio-media { position: relative; display: block; aspect-ratio: 16/11; overflow: hidden; background: var(--bg-muted, #f1f5f9); }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.portfolio-card:hover .portfolio-media img { transform: scale(1.06); }
.portfolio-cta {
  position: absolute; inset-inline: 0; bottom: 0; padding: 10px; text-align: center;
  background: linear-gradient(transparent, rgba(2,6,23,.72)); color: #fff; font-weight: 700; font-size: .86rem;
  opacity: 0; transform: translateY(8px); transition: all .25s ease;
}
.portfolio-card:hover .portfolio-cta { opacity: 1; transform: translateY(0); }
.portfolio-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.portfolio-cat {
  align-self: flex-start; font-size: .74rem; font-weight: 700; color: var(--color-primary, #4f46e5);
  background: color-mix(in srgb, var(--color-primary, #4f46e5) 12%, #fff); padding: 3px 10px; border-radius: 999px;
}
.portfolio-title { margin: 0; font-size: 1.08rem; line-height: 1.6; }
.portfolio-title a { color: inherit; text-decoration: none; }
.portfolio-title a:hover { color: var(--color-primary, #4f46e5); }
.portfolio-result { margin: 0; font-size: .92rem; color: var(--text-muted, #47546b); line-height: 1.85; }
.portfolio-client { margin: 0; font-size: .82rem; color: var(--text-muted, #6f7c9b); }
.portfolio-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; font-size: .78rem; }
.portfolio-year { background: var(--bg-muted, #f1f5f9); color: var(--text-muted, #47546b); padding: 3px 10px; border-radius: 6px; }
.portfolio-tech { color: var(--text-muted, #6f7c9b); }
.portfolio-ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-size: 1.6rem; font-weight: 800; color: var(--color-primary, #4f46e5);
  background: color-mix(in srgb, var(--color-primary, #4f46e5) 10%, var(--bg-muted, #f1f5f9));
}
.pf-archive-filter { margin-top: 4px; }

/* ---- Portfolio single page (case study detail) ---- */
.portfolio-hero { margin: 0 0 26px; }
.portfolio-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.5; margin: 8px 0 12px; }
.portfolio-lead { font-size: 1.05rem; line-height: 2; color: var(--text-muted, #47546b); max-width: 60ch; margin: 0 0 20px; }
.portfolio-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
  margin: 0; padding: 16px; background: var(--bg-card, #fff); border: 1px solid var(--border, #e7ecf3); border-radius: 14px;
}
.portfolio-facts > div { display: flex; flex-direction: column; gap: 4px; }
.portfolio-facts dt { font-size: .78rem; color: var(--text-muted, #6f7c9b); }
.portfolio-facts dd { margin: 0; font-weight: 700; color: var(--text-main, #0f172a); }
.portfolio-facts dd a { color: var(--color-primary, #4f46e5); }
.portfolio-cover { margin: 0 0 26px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border, #e7ecf3); }
.portfolio-cover img { display: block; width: 100%; height: auto; }
.portfolio-content { margin: 0 0 30px; }
.portfolio-gallery { margin: 0 0 34px; }
.portfolio-gallery h2, .related-portfolio h2 { font-size: 1.25rem; margin: 0 0 16px; }
.portfolio-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.portfolio-gallery-item { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border, #e7ecf3); aspect-ratio: 4/3; }
.portfolio-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portfolio-gallery-item:hover img { transform: scale(1.06); }

/* ------------------------------------------------------ classified ads UI */
.ads-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.ads-filters { margin: 0 0 22px; }
.ads-filters__row { display: grid; grid-template-columns: 2fr 1fr 1fr .8fr .8fr 1fr auto; gap: 8px; align-items: center; }
.ads-filters__row input, .ads-filters__row select { width: 100%; padding: 9px 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--surface, #fff); font: inherit; }
@media (max-width: 1200px) {
  .ads-filters__row { grid-template-columns: 1fr 1fr; }
  .ads-filters__row input[type="search"] { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ads-filters__row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ads-filters__row input[type="search"] { grid-column: 1 / -1; }
}
.ad-packages { border: 0; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.ad-packages legend { font-weight: 800; margin-bottom: 6px; }
.ad-package-card { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; border: 1px solid var(--border-color, #e5e7eb); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--surface, #fff); transition: border-color .15s, box-shadow .15s; }
.ad-package-card:hover { border-color: var(--color-primary, #2563eb); box-shadow: 0 6px 18px rgba(15,23,42,.06); }
.ad-package-card input { grid-row: span 3; }
.ad-package-name { font-weight: 700; }
.ad-package-price { color: var(--color-primary, #2563eb); font-weight: 800; }
.ad-package-desc { grid-column: 2 / -1; color: var(--text-muted, #64748b); font-size: .84rem; }
.ad-package-days { grid-column: 2 / -1; color: var(--text-muted, #64748b); font-size: .78rem; }
.ads-table-wrap { overflow-x: auto; }
.ads-table { width: 100%; border-collapse: collapse; background: var(--surface, #fff); border: 1px solid var(--border-color, #e5e7eb); border-radius: 12px; overflow: hidden; }
.ads-table th, .ads-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--border-color, #eef2f7); font-size: .88rem; }
.ads-table th { background: var(--bg-muted, #f8fafc); font-weight: 700; }
.ads-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ads-actions form { margin: 0; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge-published { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-expired { background: #e2e8f0; color: #475569; }
.badge-draft, .badge-trash { background: #f1f5f9; color: #64748b; }
.listing-expiry { color: var(--text-muted, #64748b); font-size: .82rem; margin: 4px 0 0; }
/* ---------------------------------------------------------- wallet UI */
.wallet-balance { display: flex; flex-direction: column; gap: 4px; background: linear-gradient(135deg, var(--color-primary, #2563eb), #1e40af); color: #fff; border-radius: 16px; padding: 22px; margin-bottom: 14px; }
.wallet-balance__label { font-size: .85rem; opacity: .85; }
.wallet-balance__value { font-size: 1.9rem; font-weight: 800; }
.wallet-note { margin-bottom: 18px; }
.wallet-topup { margin-bottom: 24px; }
.wallet-ledger-title { font-size: 1.15rem; margin: 22px 0 12px; }
.wallet-plus { color: #166534; font-weight: 700; }
.wallet-minus { color: #991b1b; font-weight: 700; }
.acc-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* ---------------------------------------------------- subscriptions / renewal */
.sub-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.sub-card { border: 1px solid var(--border, #e2e8f0); border-radius: 16px; padding: 16px; background: var(--surface, #fff); }
.sub-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.sub-card__head > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-card__title { font-size: 1.05rem; font-weight: 800; }
.sub-card__end { color: var(--text-muted, #64748b); font-size: .85rem; }
.sub-card__meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-muted, #64748b); font-size: .85rem; margin-top: 8px; }
.sub-renew { margin-top: 12px; }
.sub-renew__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sub-renew__amount { font-size: .9rem; }
.sub-renew__amount strong { color: var(--color-primary, #2563eb); }
.sub-renew select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border, #e2e8f0); background: var(--surface, #fff); }

/* --------------------------------------------------------- customer profile */
.acc-hero__avatar { overflow: hidden; }
.acc-hero__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.profile-form { display: grid; gap: 18px; margin-top: 22px; }
.profile-card { background: var(--bg-card, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 16px; padding: 20px 22px; }
.profile-card .section-title { margin-top: 0; }
.profile-avatar-row { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-primary, #2563eb), var(--color-accent, #7c3aed)); color: #fff; font-size: 2rem; font-weight: 700; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-actions { display: flex; flex-direction: column; gap: 8px; }
.profile-avatar-actions .btn { cursor: pointer; }
.profile-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.profile-form .form-result.is-ok { color: var(--color-success, #16a34a); }
.profile-form .form-result.is-error { color: var(--color-danger, #dc2626); }
@media (max-width: 560px) {
  .profile-card { padding: 16px; }
  .profile-avatar-row { gap: 12px; }
  .profile-avatar { width: 76px; height: 76px; font-size: 1.6rem; }
}

/* ------------------------------------------------- product card v2 */
.blk-products .product-media { aspect-ratio: var(--p-ratio, 1 / 1); position: relative; }
.blk-products .product-media img { object-fit: var(--p-fit, cover); }
.blk-products .product-badge {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  background: #dc2626; color: #fff; font-size: .78rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; line-height: 1.6;
}
.blk-products .card-body h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blk-products .product-excerpt { display: none; }
.blk-products .product-add-form { margin: 0; }
.blk-products .product-add-form .btn { width: 100%; }
.blk-products .products-carousel { overflow: hidden; }
.blk-products .products-carousel .carousel-item { flex: 0 0 calc((100% - (var(--cols, 4) - 1) * 16px) / var(--cols, 4)); min-width: 0; }
.blk-products .products-carousel .product-card { height: 100%; }
@media (max-width: 1200px) {
  .blk-products .products-carousel .carousel-item { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 560px) {
  .blk-products .products-carousel .carousel-item { flex-basis: 78%; }
}

/* product card: brand, rating, stock/ship flags, colour swatches */
.blk-products .product-brand {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--color-muted, #64748b);
  font-size: .74rem;
  font-weight: 600;
}
.blk-products .product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 2px 0 6px;
  color: var(--color-muted, #64748b);
  font-size: .74rem;
}
.blk-products .product-star { display: inline-flex; color: #cbd5e1; }
.blk-products .product-star.is-on { color: #f59e0b; }
.blk-products .product-star svg { fill: currentColor; }
.blk-products .product-rating b {
  margin-inline-start: 4px;
  color: var(--color-text, #0f172a);
  font-size: .76rem;
  font-weight: 700;
}
.blk-products .product-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0;
}
.blk-products .product-flag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.7;
}
.blk-products .product-flag.is-free { background: #ecfdf5; color: #047857; }
.blk-products .product-flag.is-instant { background: #eff6ff; color: #1d4ed8; }
.blk-products .product-flag.is-low { background: #fff7ed; color: #c2410c; }
.blk-products .product-flag.is-out { background: #fef2f2; color: #b91c1c; }
.blk-products .product-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0;
  flex-wrap: wrap;
}
.blk-products .product-swatch {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--sw, #e2e8f0);
  border: 1px solid rgba(15, 23, 42, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.blk-products .product-swatch.is-text {
  width: auto;
  height: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .68rem;
  font-weight: 600;
}
.blk-products .product-swatch.is-more {
  width: auto;
  height: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: .68rem;
  font-weight: 700;
}
.blk-products .btn.is-disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
}

/* density pass: match Iranian marketplace cards (Digikala/TechnoLife) */
.blk-products .blk-grid { gap: var(--pc-gap, 10px); }
.blk-products .product-card {
  padding: var(--pc-pad, 10px);
  border-radius: var(--pc-radius, 8px);
  border: 1px solid #e5e7eb;
  box-shadow: none;
}
.blk-products .product-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.blk-products .product-card .product-media {
  border-radius: 8px;
  background: #fff;
}
.blk-products .product-card h3 {
  margin: 0;
  font-size: var(--pc-title, 13px);
  font-weight: 500;
  line-height: 1.9;
  min-height: 3.8em;
}
.blk-products .product-card h3 a {
  font-size: inherit;
  font-weight: inherit;
  color: #424242;
}
.blk-products .product-card .product-brand { font-size: 11px; margin: 0; }
.blk-products .product-card .product-rating { font-size: 11px; margin: 0; gap: 2px; }
.blk-products .product-card .product-rating b { font-size: 11px; }
.blk-products .product-card .product-star svg { width: 11px; height: 11px; }
.blk-products .product-card .product-flags { margin: 0; gap: 4px; }
.blk-products .product-card .product-flag { font-size: 10px; padding: 1px 6px; }
.blk-products .product-card .product-swatches { margin: 0; gap: 4px; }
.blk-products .product-card .product-swatch { width: 13px; height: 13px; }
.blk-products .product-card .product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin-top: auto;
}
.blk-products .product-card .product-price del {
  font-size: 11px;
  color: #c0c2c5;
  line-height: 1.5;
}
.blk-products .product-card .product-price strong {
  font-size: var(--pc-price, 17px);
  font-weight: 800;
  color: #23254e;
  line-height: 1.5;
}
.blk-products .product-card .product-badge {
  top: 6px;
  inset-inline-start: 6px;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
}
.blk-products .product-card .product-add-form .btn {
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
}
.blk-products .product-card .btn.is-disabled { height: 32px; font-size: 12px; border-radius: 8px; }

/* product card design variants */
.blk-products .product-card .product-media { border-radius: var(--pc-img-radius, 8px); }
.blk-products .pc-style-flat .product-card { border: 0; background: #fff; box-shadow: none; }
.blk-products .pc-style-outline .product-card { border: 1px solid #e5e7eb; box-shadow: none; }
.blk-products .pc-style-elevated .product-card { border: 1px solid #eef0f3; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.blk-products .pc-style-soft .product-card { border: 0; background: #f8fafc; box-shadow: none; }
.blk-products .pc-hover-lift .product-card { transition: transform .25s ease, box-shadow .25s ease; }
.blk-products .pc-hover-lift .product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 23, 42, .12); }
.blk-products .pc-hover-zoom .product-card { transition: box-shadow .25s ease; }
.blk-products .pc-hover-zoom .product-card:hover { transform: none; box-shadow: 0 8px 22px rgba(15, 23, 42, .1); }
.blk-products .pc-hover-zoom .product-card .product-media img { transition: transform .35s ease; }
.blk-products .pc-hover-zoom .product-card:hover .product-media img { transform: scale(1.06); }
.blk-products .pc-hover-none .product-card:hover { transform: none; box-shadow: none; }
.blk-products .pc-hover-none .product-card .product-media img { transition: none; }
.blk-products .products-carousel .product-card { height: 100%; }
.blk-products .products-carousel .product-card .card-body { height: 100%; }
/* category carousel (Digikala-style rail) */
.cat-carousel .carousel-track { align-items: stretch; }
.cat-carousel .cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; background: #fff; border: 1px solid #eef0f3; text-decoration: none; color: #334155; height: 100%; transition: box-shadow .2s ease, transform .2s ease; }
.cat-carousel .cat-tile:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, .1); transform: translateY(-3px); }
.cat-carousel .cat-media { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f1f5f9; color: #0e7490; flex: 0 0 auto; }
.cat-carousel .cat-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-carousel .cat-media.is-icon { background: #e0f2fe; }
.cat-carousel .cat-name { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.7; }
.cat-carousel .cat-count { font-size: 11px; color: #94a3b8; }
.cat-carousel.cat-style-card .cat-tile { align-items: flex-start; text-align: right; padding: 10px; }
.cat-carousel.cat-style-card .cat-media { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.cat-carousel.cat-style-card .cat-name { text-align: right; }
.cat-carousel.cat-style-icon .cat-tile { padding: 10px 6px; }
.cat-carousel.cat-style-icon .cat-media { width: 48px; height: 48px; }
@media (max-width: 560px) {
  .cat-carousel .cat-media { width: 60px; height: 60px; }
  .cat-carousel .cat-name { font-size: 12px; }
}
@media (max-width: 560px) { .cat-carousel[data-carousel] { --cols: 3 !important; } }
@media (min-width: 561px) and (max-width: 900px) { .cat-carousel[data-carousel] { --cols: 4 !important; } }
@media (min-width: 901px) and (max-width: 1200px) { .cat-carousel[data-carousel] { --cols: 5 !important; } }
/* ------------------------------------------------- archive filter widget */
.af-bar { background: var(--af-bg, #fff); border: 1px solid var(--border-color, #e5e7eb); border-radius: 12px; padding: 10px 12px; margin: 0 0 18px; }
.af-title { font-weight: 800; font-size: .9rem; margin: 0 0 8px; }
.af-row { display: flex; flex-direction: column; gap: 8px; }
.af-form { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.af-form::-webkit-scrollbar { display: none; }
.af-input, .af-select { height: 38px; padding: 0 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: #fff; font: inherit; font-size: .85rem; color: inherit; flex: 0 0 auto; }
.af-select { max-width: 140px; }
.af-search { flex: 1 1 200px; min-width: 150px; }
.af-num { width: 96px; }
.af-check { display: inline-flex; align-items: center; gap: 6px; height: 38px; font-size: .8rem; white-space: nowrap; padding: 0 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 999px; background: #fff; cursor: pointer; flex: 0 0 auto; }
.af-check input { accent-color: var(--color-primary, #e11d48); }
.af-submit { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--color-primary, #e11d48); color: #fff; font: inherit; font-weight: 700; cursor: pointer; flex: 0 0 auto; }
.af-chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 8px; }
.af-chips::-webkit-scrollbar { display: none; }
.af-chip { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: var(--bg-muted, #f1f5f9); color: #475569; font-size: .84rem; text-decoration: none; white-space: nowrap; }
.af-chip:hover { background: var(--color-primary, #e11d48); color: #fff; }
.af-bar.is-sticky { position: sticky; top: 12px; z-index: 20; }
.af-bar.is-sidebar .af-form { display: grid; grid-template-columns: 1fr; gap: 8px; overflow: visible; }
.af-bar.is-sidebar .af-input, .af-bar.is-sidebar .af-select, .af-bar.is-sidebar .af-submit, .af-bar.is-sidebar .af-num { width: 100%; max-width: none; }
.af-bar.is-sidebar .af-check { justify-content: flex-start; }
@media (max-width: 1200px) {
  .af-form { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 8px; overflow: visible; }
  .af-search, .af-submit { grid-column: 1 / -1; }
  .af-input, .af-select, .af-num { width: 100%; max-width: none; }
  .af-check { justify-content: center; }
}
/* Product widget live filter bar (theme-agnostic base) */
.sh-filterbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 10px 12px; margin: 0 0 18px; background: var(--bg-soft, #f8fafc); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.sh-filterbar::-webkit-scrollbar { display: none; }
.sh-fb-title { flex: 0 0 auto; font-weight: 800; font-size: .9rem; margin: 0 6px 0 0; white-space: nowrap; }
.sh-fb { display: flex; flex-direction: row; align-items: center; gap: 0; flex: 0 0 auto; min-width: 0; }
.sh-fb > span { display: none; }
.sh-fb select, .sh-fb input { height: 38px; padding: 0 12px; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: #0f172a; min-width: 0; width: auto; }
.sh-fb select { max-width: 125px; }
.sh-fb input[type="number"] { width: 96px; }
.sh-fb--search { flex: 1 1 200px; }
.sh-fb--search input { width: 100%; }
.sh-fb-check { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; font-size: 13px; color: #334155; cursor: pointer; flex: 0 0 auto; white-space: nowrap; }
.sh-filterbar.is-sidebar { display: grid; grid-template-columns: 1fr; align-items: stretch; overflow: visible; }
.sh-filterbar.is-sidebar .sh-fb { flex-direction: column; align-items: stretch; }
.sh-filterbar.is-sidebar .sh-fb > span { display: block; font-size: 12px; color: var(--text-muted, #64748b); margin-bottom: 4px; }
.sh-filterbar.is-sidebar .sh-fb select, .sh-filterbar.is-sidebar .sh-fb input { width: 100%; max-width: none; }
.sh-filterbar.is-sidebar .sh-fb-check { justify-content: flex-start; }
.sh-filterbar.is-sticky { position: sticky; top: 12px; z-index: 20; }
@media (max-width: 1200px) {
  .sh-filterbar:not(.is-sidebar) { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 8px; overflow: visible; }
  .sh-filterbar:not(.is-sidebar) .sh-fb { flex-direction: column; align-items: stretch; }
  .sh-filterbar:not(.is-sidebar) .sh-fb > span { display: block; font-size: 12px; color: var(--text-muted, #64748b); margin-bottom: 4px; }
  .sh-filterbar:not(.is-sidebar) .sh-fb--search { grid-column: 1 / -1; }
  .sh-filterbar:not(.is-sidebar) .sh-fb select,
  .sh-filterbar:not(.is-sidebar) .sh-fb input { width: 100%; max-width: none; }
}

/* =========================================================
   Normalization layer — vertical rhythm + wrapper fixes.
   The renderer wraps every block in `<div class="blk blk-<type>">`
   and some renderers (hero, slider) print their own inner element
   with the same `blk-<type>` class. Without this layer the wrapper
   inherited the inner frame's flex/max-width rules, which squeezed
   hero content to ~64% width and glued consecutive sections together.
   ========================================================= */

/* Consistent vertical rhythm between stacked blocks. Inline spacing
   set by the builder still wins because it is applied on the element. */
.blk { padding-block: 32px; }
.blk-spacer,
.blk-divider { padding-block: 0; }

/* The wrapper must never be the visual frame. */
.blk.blk-hero {
  display: block;
  min-height: 0;
  max-width: 100%;
  background: none;
  border-radius: 0;
  overflow: visible;
  padding-block: 24px;
}
.blk.blk-slider { padding-block: 24px; }

/* Inner hero/slider frame spans the full content width and aligns with
   every other block instead of being capped at --container-width again. */
.blk > .blk-hero,
.blk > .blk-slider[data-slider] { max-width: 100%; width: 100%; }
.blk > .blk-hero > .container { width: 100%; max-width: none; }

/* A full-bleed block keeps its own padding but must not be constrained. */
.blk.blk-full { max-width: none; }

@media (max-width: 760px) {
  .blk { padding-block: 22px; }
  .blk.blk-hero,
  .blk.blk-slider { padding-block: 14px; }
}

/* Product grids: equal card heights and an add-to-cart action pinned to the
   bottom edge so a row never looks ragged. */
.blk-products .products-grid { align-items: stretch; }
.blk-products .products-grid .product-card { height: 100%; }
.blk-products .products-grid .product-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blk-products .products-grid .product-card .card-body > *:last-child { margin-top: auto; }
.blk-products .products-grid .product-card .product-add-form { width: 100%; }
.blk-products .products-grid .product-card .product-add-form .btn { width: 100%; }
