/* IVO Namaleniq Deals — scoped under .ivo-nd so nothing here can leak into Flatsome. */
.ivo-nd { --nd-fg: #1c1e21; --nd-muted: #6b7280; --nd-line: #e5e7eb; --nd-bg: #fff;
  --nd-accent: #d81b3c; --nd-accent-ink: #fff; --nd-radius: 12px; --nd-tile: #f3f4f6;
  color: var(--nd-fg); }

@media (prefers-color-scheme: dark) {
  .ivo-nd { --nd-fg: #e8eaed; --nd-muted: #9aa0a6; --nd-line: #33363b; --nd-bg: #1f2125;
    --nd-tile: #2a2d31; }
}

.ivo-nd * { box-sizing: border-box; }

.ivo-nd-count { color: var(--nd-muted); font-size: .9rem; margin: 0 0 1rem; }
.ivo-nd-empty, .ivo-nd-empty-box { color: var(--nd-muted); background: var(--nd-bg);
  border: 1px dashed var(--nd-line); border-radius: var(--nd-radius); padding: 1.25rem; }
.ivo-nd-empty-box p { margin: 0 0 .6rem; }
.ivo-nd-empty-box p:last-child { margin-bottom: 0; }

/* Filters */
.ivo-nd-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.1rem; }
.ivo-nd-chip { display: inline-block; padding: .34rem .8rem; border: 1px solid var(--nd-line);
  border-radius: 999px; font-size: .85rem; line-height: 1.4; text-decoration: none;
  color: var(--nd-fg); background: var(--nd-bg); }
.ivo-nd-chip:hover { border-color: var(--nd-accent); color: var(--nd-accent); }
.ivo-nd-chip.is-active { background: var(--nd-accent); border-color: var(--nd-accent);
  color: var(--nd-accent-ink); }

/* Grid */
.ivo-nd-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ivo-nd-grid-products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.ivo-nd-card { border: 1px solid var(--nd-line); border-radius: var(--nd-radius);
  background: var(--nd-bg); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.ivo-nd-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.ivo-nd-card-link { display: block; text-decoration: none; color: inherit; position: relative; }

.ivo-nd-banner { display: block; background: var(--nd-tile); line-height: 0; }
.ivo-nd-banner img { width: 100%; height: auto; display: block; }
.ivo-nd-banner-text { line-height: 1.4; padding: 2.2rem 1rem; text-align: center;
  font-weight: 700; color: var(--nd-muted); }

.ivo-nd-thumb { display: block; line-height: 0; background: var(--nd-tile); }
.ivo-nd-thumb img { width: 100%; height: auto; display: block; }

.ivo-nd-body { display: block; padding: .85rem .9rem 1rem; }
.ivo-nd-shop { display: block; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--nd-muted); margin-bottom: .3rem; }
.ivo-nd-title { display: block; font-weight: 600; line-height: 1.35; margin-bottom: .5rem; }
.ivo-nd-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.ivo-nd-days, .ivo-nd-cat { display: inline-block; font-size: .76rem; padding: .18rem .5rem;
  border-radius: 6px; background: var(--nd-tile); color: var(--nd-muted); }
.ivo-nd-days.is-urgent { background: #fdecef; color: var(--nd-accent); font-weight: 600; }
.ivo-nd-cta { display: inline-block; font-weight: 600; color: var(--nd-accent); font-size: .9rem; }
.ivo-nd-cta::after { content: " \2192"; }

.ivo-nd-badge { position: absolute; top: .55rem; left: .55rem; z-index: 2;
  background: var(--nd-accent); color: var(--nd-accent-ink); font-weight: 700;
  font-size: .8rem; padding: .2rem .45rem; border-radius: 6px; }

.ivo-nd-prices { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .55rem; }
.ivo-nd-now { font-weight: 700; font-size: 1.05rem; }
.ivo-nd-now .woocommerce-Price-amount { color: var(--nd-accent); }
.ivo-nd-was { text-decoration: line-through; color: var(--nd-muted); font-size: .85rem; }

/* Discount percent appended to the WooCommerce price */
.ivo-nd-pct { display: inline-block; margin-left: .35rem; font-weight: 700; font-size: .82em;
  color: #fff; background: #d81b3c; padding: .08em .38em; border-radius: 5px; vertical-align: middle; }

/* Homepage strip */
.ivo-nd-strip { margin: 2rem 0; }
.ivo-nd-strip-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.ivo-nd-strip-head h2 { margin: 0; font-size: 1.25rem; }
.ivo-nd-strip-head a { font-size: .9rem; text-decoration: none; color: var(--nd-accent); }
.ivo-nd-strip-items { display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ivo-nd-strip-item { display: block; padding: .8rem .9rem; border: 1px solid var(--nd-line);
  border-radius: var(--nd-radius); text-decoration: none; color: inherit; background: var(--nd-bg); }
.ivo-nd-strip-item:hover { border-color: var(--nd-accent); }
.ivo-nd-strip-item .ivo-nd-title { font-size: .93rem; margin-bottom: .4rem; }

/* Coupons */
.ivo-nd-coupon-list { display: grid; gap: .8rem; }
.ivo-nd-coupon { display: grid; grid-template-columns: 110px 1fr auto; gap: 1rem; align-items: center;
  border: 1px solid var(--nd-line); border-radius: var(--nd-radius); padding: 1rem;
  background: var(--nd-bg); }
.ivo-nd-coupon-left { text-align: center; }
.ivo-nd-coupon-discount { display: inline-block; font-weight: 800; font-size: 1.15rem;
  color: var(--nd-accent); line-height: 1.2; }
.ivo-nd-coupon-main h3 { margin: .15rem 0 .35rem; font-size: 1.02rem; }
.ivo-nd-coupon-main p { margin: 0 0 .3rem; font-size: .88rem; color: var(--nd-muted); }
.ivo-nd-coupon-terms { display: flex; flex-wrap: wrap; gap: .4rem; }
.ivo-nd-reveal { border: 2px dashed var(--nd-accent); background: transparent; color: var(--nd-accent);
  font-weight: 700; padding: .6rem 1.1rem; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.ivo-nd-reveal:hover { background: var(--nd-accent); color: var(--nd-accent-ink); }
.ivo-nd-reveal[disabled] { opacity: .6; cursor: default; }
.ivo-nd-code { display: block; margin-top: .45rem; font-size: 1rem; font-weight: 700;
  letter-spacing: .06em; text-align: center; cursor: pointer; }

@media (max-width: 640px) {
  .ivo-nd-coupon { grid-template-columns: 1fr; text-align: left; gap: .6rem; }
  .ivo-nd-coupon-left { text-align: left; }
  .ivo-nd-reveal { width: 100%; }
}

.ivo-nd-disclosure { margin-top: 1.4rem; font-size: .8rem; color: var(--nd-muted); line-height: 1.5; }

/* Shown instead of a price we have not verified against the merchant feed. */
.ivo-nd-noprice { display: inline-block; font-size: .9em; font-weight: 600; color: #6b7280; }

/* Affiliate disclosure shown above any post that contains paid links. */
.ivo-nd-affil-note { margin: 0 0 1.4rem; padding: .85rem 1rem; border-left: 4px solid #d81b3c;
  background: #fbf5f6; border-radius: 0 8px 8px 0; font-size: .88rem; line-height: 1.55; color: #4b5058; }
.ivo-nd-affil-note strong { color: #1c1e21; }
@media (prefers-color-scheme: dark) {
  .ivo-nd-affil-note { background: #2a2225; color: #c9ccd1; }
  .ivo-nd-affil-note strong { color: #e8eaed; }
}

/* --------------------------------------------------------------------------
   "Оферти по темата" — the block that finally connects 1829 articles to the
   1589 products. Before this, no article linked to a single one of them.
   -------------------------------------------------------------------------- */
.ivo-nd-rel { margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 2px solid var(--nd-line); }
.ivo-nd-rel__h { margin: 0 0 1rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.ivo-nd-rel__grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .ivo-nd-rel__grid { grid-template-columns: repeat(4, 1fr); } }

.ivo-nd-rel__card { display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--nd-line); border-radius: var(--nd-radius); background: var(--nd-bg);
  overflow: hidden; transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.ivo-nd-rel__card:hover { transform: translateY(-2px); border-color: var(--nd-accent);
  box-shadow: 0 8px 22px -14px rgba(0,0,0,.45); }

.ivo-nd-rel__thumb { position: relative; display: block; background: #fff; line-height: 0; }
.ivo-nd-rel__thumb img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: contain;
  padding: 8px; display: block; }
.ivo-nd-rel__badge { position: absolute; top: 6px; left: 6px; z-index: 2; background: var(--nd-accent);
  color: #fff; font-size: .72rem; font-weight: 700; padding: .12em .4em; border-radius: 5px; }

.ivo-nd-rel__body { display: flex; flex-direction: column; flex: 1; padding: 9px 11px 11px; }
.ivo-nd-rel__title { font-size: .84rem; font-weight: 600; line-height: 1.34; margin-bottom: .4rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ivo-nd-rel__price { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap;
  margin-bottom: .55rem; }
.ivo-nd-rel__was { color: var(--nd-muted); font-size: .78rem; text-decoration: line-through; }
.ivo-nd-rel__was .woocommerce-Price-amount { text-decoration: line-through; }
.ivo-nd-rel__now { font-weight: 700; font-size: 1rem; }
.ivo-nd-rel__now.is-sale .woocommerce-Price-amount { color: var(--nd-accent); }
.ivo-nd-rel__ask { font-size: .8rem; color: var(--nd-muted); font-weight: 500; }
.ivo-nd-rel__cta { margin-top: auto; display: flex; align-items: center; justify-content: center;
  min-height: 40px; border-radius: 8px; background: var(--nd-accent); color: #fff;
  font-weight: 600; font-size: .86rem; }
.ivo-nd-rel__card:hover .ivo-nd-rel__cta { background: #ab1130; }
.ivo-nd-rel__note { margin: .9rem 0 0; font-size: .78rem; color: var(--nd-muted); }
