/* IVSEC brand home (category 361). Markup: catalog/_partials/category-ivsec-home.tpl. Base styles: ift-ivsec-brand.css */

.ivh-hero .ivb-hero__body { padding: 52px 56px 32px; }

/* Shop by category */
.ivh-nav { padding-top: 26px; padding-bottom: 26px; }
.ivh-nav .ivb-head { margin-bottom: 16px; }
.ivh-nav__grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.ivh-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 12px 8px 14px;
  border: 1px solid var(--ivb-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ivb-ink) !important;
  text-align: center;
  text-decoration: none !important;
  transition: border-color .15s ease, background-color .15s ease;
}
.ivh-tile:hover { border-color: var(--ivb-go); background: var(--ivb-go-tint); }
.ivh-tile__img { display: flex; align-items: center; justify-content: center; width: 100%; height: 96px; }
.ivh-tile__img img { width: 96px; height: 96px; object-fit: contain; mix-blend-mode: multiply; clip-path: inset(5% 0 0 0); }
.ivh-tile__img svg { width: 44px; height: 44px; color: var(--ivb-go-text); stroke-width: 1.6; }
.ivh-tile__txt { display: flex; flex-direction: column; margin-top: 8px; }
.ivh-tile__txt strong { font-size: 14px; font-weight: 800; line-height: 1.25; }
.ivh-tile__txt small { margin-top: 2px; color: var(--ivb-muted); font-size: 12.5px; }
.ivh-tile--designer { border-style: dashed; border-color: var(--ivb-go-dk); background: var(--ivb-go-tint); }

/* Series */
.ivh-series__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ivh-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ivb-line);
  border-radius: 12px;
  background: #fff;
}
.ivh-card.is-pick { border: 2px solid var(--ivb-go); }
.ivh-card__img { display: block; background: #f3f4f6; }
.ivh-card__img img { display: block; width: 100%; height: 170px; object-fit: contain; mix-blend-mode: multiply; }
.ivh-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 16px 18px 18px; }
.ivh-card__tag { color: var(--ivb-muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ivh-card__tag.is-pick { color: var(--ivb-go-text); }
.ivh-card__name { margin-top: 4px !important; font-size: 21px; font-weight: 800; }
.ivh-card__name a { color: var(--ivb-ink) !important; }
.ivh-card__sub { margin-top: 6px !important; color: var(--ivb-text); font-size: 14.5px; }
.ivh-card__for { display: flex; gap: 7px; margin-top: 10px !important; color: var(--ivb-muted); font-size: 14px; }
.ivh-card__for svg { margin-top: 3px; color: var(--ivb-go-text); }
.ivh-card__price { min-height: 24px; margin-top: auto !important; padding-top: 14px; color: var(--ivb-muted); font-size: 14px; }
.ivh-card__price strong { color: var(--ivb-ink); font-size: 18px; font-weight: 800; }
.ivh-card__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }

/* System Designer band */
.ivh-designer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--ivb-soft); }
.ivh-designer__for { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.ivh-designer__for a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ivb-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ivb-ink) !important;
  font-size: 14px;
  font-weight: 700;
}
.ivh-designer__for a:hover { border-color: var(--ivb-go); background: var(--ivb-go-tint); }
.ivh-designer__for svg { font-size: 18px; color: var(--ivb-go-text); }
.ivh-designer__cta { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }

@media (max-width: 1365px) {
  .ivh-nav__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ivh-series__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .ivh-designer { grid-template-columns: minmax(0, 1fr); }
  .ivh-designer__cta { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

/* Phones: edge to edge bands, 16px text padding */
@media (max-width: 767px) {
  .ivh > .ivb-hero,
  .ivh > .ivb-sec {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ivh > .ivb-sec { margin-top: 8px; padding: 22px 16px; }
  .ivh-hero .ivb-hero__body { padding: 28px 16px 22px; }
  .ivh .ivb-h2 { font-size: 22px; }
  .ivh-nav__grid {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .ivh-nav__grid::-webkit-scrollbar { display: none; }
  .ivh-nav__grid li { flex: 0 0 116px; scroll-snap-align: start; }
  .ivh-tile { padding: 10px 6px 12px; }
  .ivh-tile__img { height: 76px; }
  .ivh-tile__img img { width: 76px; height: 76px; }
  .ivh-tile__txt strong { font-size: 13px; }
  .ivh-series__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 -16px; padding: 0 8px; }
  .ivh-card { border-radius: 10px; }
  .ivh-card__img img { height: 110px; }
  .ivh-card__body { padding: 12px 12px 14px; }
  .ivh-card__name { font-size: 18px; }
  .ivh-card__sub { font-size: 13.5px; }
  .ivh-card__for { display: none; }
  .ivh-card__price { font-size: 13px; }
  .ivh-card__price strong { font-size: 16px; }
  .ivh-card__cta { flex-direction: column; align-items: stretch; gap: 8px; }
  .ivh-card__cta .ivb-link { text-align: center; }
  .ivh-designer__cta .ivb-btn { flex: 1 1 100%; }
  .ivh .ivb-why__night { margin: 0 -16px; }
  .ivh .ivb-why__night > p { padding: 0 16px; }
  .ivh .ivb-listhead { padding: 0 16px; }
  .page-category.category-id-361 #wrapper { overflow-x: clip; }
}
