/* AB Security: shop (product tiles, listings, product page, cart). */

/* product tiles: one hairline table instead of floating cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 1px; padding: 1px; }
.grid > .pc { outline: 1px solid var(--line); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc { display: flex; flex-direction: column; background: #fff; }
.pc__img { position: relative; display: block; padding: 14px; }
.pc__img img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .2s; }
.pc:hover .pc__img img { transform: scale(1.04); }
.pc__new { position: absolute; top: 10px; left: 10px; padding: 2px 7px; background: var(--ink); color: #fff; font-size: 11px; }
.pc__b { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 0 14px 14px; }
.pc__brand { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.pc__name { font-size: 14px; line-height: 1.4; font-weight: 500; text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pc__name:hover { color: var(--red); }
.pc__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pc__price { font-size: 16px; font-weight: 500; white-space: nowrap; }
.pc__add { min-height: 36px; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; font-size: 13px; font-weight: 700; transition: background .15s, color .15s; }
.pc__add:hover { background: var(--ink); color: #fff; }
.pc__add.is-in, .btn.is-in { background: var(--ink); border-color: var(--ink); color: #fff; }
.pc__oos { font-size: 12px; color: var(--mut); }
.pc.is-oos .pc__img img { opacity: .55; }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 18px 0 0; font-size: 12px; color: var(--mut); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs i { font-style: normal; opacity: .5; }

/* listing */
.cat { padding-bottom: clamp(48px, 7vw, 90px); background: #fff; }
.cat__h { padding: 22px 0 22px; }
.cat__h h1 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.cat__h p { margin-top: 8px; max-width: 760px; color: var(--mut); }
.cat__tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 2px solid var(--ink); scrollbar-width: none; }
.cat__tabs::-webkit-scrollbar { display: none; }
.cat__tabs a { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--mut); }
.cat__tabs a b { font-size: 11px; font-weight: 400; }
.cat__tabs a:hover { color: var(--text); }
.cat__tabs a[aria-current] { background: var(--ink); color: #fff; }
.cat__body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding-top: 26px; align-items: start; }
.flt { display: grid; gap: 22px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
.flt__search { display: flex; border: 1px solid var(--ink); }
.flt__search input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 0; background: #fff; font-size: 15px; }
.flt__search input:focus { outline: none; }
.flt__search button { width: 46px; border: 0; background: var(--ink); color: #fff; font-size: 18px; }
.flt__g h3 { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--mut); margin-bottom: 8px; }
.flt__links { display: grid; }
.flt__links a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; font-size: 14px; text-decoration: none; line-height: 1.35; }
.flt__links a b { font-size: 11px; font-weight: 400; color: var(--mut); }
.flt__links a:hover { background: var(--paper); }
.flt__links a[aria-current] { background: var(--paper-2); font-weight: 700; }
.flt__brands { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.flt__chk { display: flex; align-items: center; gap: 10px; padding: 5px 2px; font-size: 14px; cursor: pointer; color: var(--text); }
.flt__chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.flt__chk b { margin-left: auto; font: 400 11px var(--mono); color: var(--mut); }
.flt__reset { justify-self: start; padding: 0; border: 0; background: none; font-size: 13px; color: var(--mut); text-decoration: underline; }
.cat__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; color: var(--mut); }
.cat__sort { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cat__sort select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font-size: 14px; color: var(--text); }
.flt-open { display: none; }
.cat__more { display: flex; margin: 26px auto 0; }
.cat__none { grid-column: 1 / -1; padding: 40px 20px; background: #fff; text-align: center; color: var(--mut); }
@media (max-width: 900px) {
  .cat__body { grid-template-columns: 1fr; }
  .flt { position: static; max-height: none; display: none; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
  .flt.is-open { display: grid; }
  .flt-open { display: inline-flex; }
}

/* product */
.prod { padding-bottom: clamp(48px, 7vw, 90px); background: #fff; }
.prod__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: 22px; align-items: start; }
.prod__img { border: 1px solid var(--line); padding: clamp(16px, 3vw, 40px); background: #fff; }
.prod__img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.prod__info { display: grid; gap: 16px; }
.prod__info h1 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; font-weight: 800; }
.prod__meta { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 12px; color: var(--mut); }
.prod__meta div { display: flex; gap: 8px; }
.prod__meta dd { color: var(--text); }
.prod__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.prod__price { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #1f7a45; }
.stock .dot { animation: none; background: #1f9d55; }
.stock--no { color: var(--mut); }
.prod__act { display: flex; gap: 10px; width: 100%; }
.prod__act .btn { flex: 1; }
.qty { display: inline-flex; border: 1px solid var(--ink); }
.qty button { width: 44px; min-height: 46px; border: 0; background: #fff; font-size: 18px; }
.qty button:hover { background: var(--paper); }
.qty input { width: 52px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 15px; background: #fff; }
.prod__note { font-size: 13px; color: var(--mut); }
.prod__install { padding: 18px; background: var(--paper); border-left: 3px solid var(--red); }
.prod__install h2 { font-size: 17px; line-height: 1.3; }
.prod__install p { margin-top: 6px; font-size: 14px; color: var(--mut); }
.prod__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.prod__desc { max-width: 820px; margin-top: clamp(32px, 5vw, 56px); }
.prod__desc h2, .prod__h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; margin-bottom: 14px; }
.prod__desc p + p { margin-top: 12px; }
.prod__h2 { margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 820px) { .prod__grid { grid-template-columns: 1fr; } }

/* cart */
.cart { padding-bottom: clamp(48px, 7vw, 90px); background: #fff; min-height: 60vh; }
.cart h1 { padding: 22px 0; font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; }
.cart__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart__lines { border-top: 2px solid var(--ink); }
.cl { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cl img { width: 76px; height: 76px; object-fit: contain; grid-row: span 2; }
.cl__name { font-size: 15px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.cl__name:hover { color: var(--red); }
.cl__sum { font-size: 16px; font-weight: 500; text-align: right; white-space: nowrap; }
.cl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12px; color: var(--mut); }
.cl .qty button { width: 36px; min-height: 36px; }
.cl .qty input { width: 44px; }
.cl__rm { justify-self: end; padding: 0; border: 0; background: none; font-size: 12px; color: var(--mut); text-decoration: underline; }
.cl__rm:hover { color: var(--red); }
.cart__empty { padding: 40px 0; display: grid; gap: 18px; justify-items: start; color: var(--mut); font-size: 18px; }
.cart__side { position: sticky; top: 84px; padding: 22px; background: var(--paper); }
.cart__side h2 { font-size: 18px; margin: 18px 0 12px; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.cart__total b { font-size: 28px; font-weight: 500; }
.order-text { margin: 10px 0; padding: 12px; max-height: 220px; overflow: auto; background: #fff; border: 1px solid var(--line); font: 12px/1.5 var(--mono); white-space: pre-wrap; }
.order-links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .cart__grid { grid-template-columns: 1fr; } .cart__side { position: static; } }
@media (max-width: 480px) { .cl { grid-template-columns: 60px minmax(0, 1fr); } .cl img { width: 60px; height: 60px; } .cl__sum { grid-column: 2; text-align: left; } .cl__rm { grid-column: 2; justify-self: start; } }

/* delivery and payment: product line, the terms page, the choices in the cart */
.prod__dl { font-size: 14px; color: var(--mut); }
.prod__dl a, .form__note a { color: var(--text); }
.doc { padding-bottom: clamp(48px, 7vw, 90px); background: #fff; }
.doc__body { max-width: 820px; border-top: 2px solid var(--ink); margin-bottom: 32px; }
.doc__body section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.doc__body h2 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; margin-bottom: 10px; }
.doc__body p + p { margin-top: 10px; }
.opts { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; }
.opts legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--mut); }
.form label.opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--text); cursor: pointer; }
.opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.opt small { display: block; margin-top: 2px; font-size: 12px; color: var(--mut); }
.opt:has(input:checked) { border-color: var(--ink); }
.opt:has(input:disabled) { opacity: .5; cursor: default; }
.cart__free { font-size: 13px; color: var(--mut); }
.cart__free.is-ok { color: #1f7a45; }
.setchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--ink); color: #fff; font-size: 13px; text-decoration: none; }
.setchip b { font-weight: 400; opacity: .7; }
.setchip:hover b { opacity: 1; }

/* section covers: tiles on the home page, a banner at the top of a section page */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 44px; background: var(--ink); border: 1px solid var(--ink); }
.tile { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 16, 20, 0) 42%, rgba(13, 16, 20, .9) 100%); }
.tile__b { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; display: grid; gap: 2px; }
.tile__b b { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.tile__b small { font-size: 13px; color: #c3c9d1; }
.tile:hover .tile__b b { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tile { aspect-ratio: 4 / 3; } .tile__b { left: 12px; right: 12px; bottom: 10px; } .tile__b b { font-size: 14px; } .tile__b small { display: none; } }
.cat__h--cover { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(170px, 19vw, 250px); margin: 16px 0 0; padding: clamp(20px, 3vw, 34px); color: #fff;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(13, 16, 20, .92) 36%, rgba(13, 16, 20, 0) 70%), var(--cover) right center / auto 100% no-repeat, var(--ink); }
.cat__h--cover p { color: #c3c9d1; }
.cat__h--cover + .cat__tabs { border-top: 0; }
@media (max-width: 640px) { .cat__h--cover { background: linear-gradient(90deg, var(--ink) 0%, rgba(13, 16, 20, .9) 45%, rgba(13, 16, 20, .35) 100%), var(--cover) right center / auto 100% no-repeat, var(--ink); } }

/* text under a listing and the brand index */
.cat__about { max-width: 860px; margin-top: clamp(40px, 6vw, 72px); padding-top: 26px; border-top: 2px solid var(--ink); }
.cat__about h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; margin-bottom: 12px; }
.cat__about p { color: var(--mut); }
.cat__about p + p { margin-top: 10px; }
.cat__about a { color: var(--text); }
.blinks { display: flex; flex-wrap: wrap; gap: 6px; }
.blinks a { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.blinks a b { font-size: 11px; font-weight: 400; color: var(--mut); }
.blinks a:hover { border-color: var(--ink); }
.blinks a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
a.pc__brand { text-decoration: none; }
a.pc__brand:hover { color: var(--red); }
.shp__brands { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: -22px 0 44px; font-size: 15px; }
.shp__brands span { font-size: 12px; letter-spacing: .08em; color: var(--mut); }
.shp__brands a { font-weight: 700; text-decoration: none; }
.shp__brands a:hover { color: var(--red); }
