/* =============================================================================
   Forging Shop — Global components
   Visual language from root index.html (top bar, header, mega, cards, footer…)
   ============================================================================= */

/* ---------- TOP / ANNOUNCEMENT ---------- */
.top {
  background: var(--black);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 70;
}

.top .w {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  gap: 10px;
  text-align: center;
  position: relative;
}

.top.is-paused .rot div {
  animation-play-state: paused;
}

.top:hover .rot div,
.top:focus-within .rot div {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .top .rot div {
    animation: none;
  }
}

.top i {
  color: var(--red-l);
  font-size: 11px;
}

.top b {
  font-weight: 600;
}

.rot {
  height: 18px;
  overflow: hidden;
}

.rot div {
  animation: rot 13s infinite;
}

.rot span {
  display: block;
  height: 18px;
  line-height: 18px;
  white-space: nowrap;
}

@keyframes rot {
  0%,
  29% {
    transform: translateY(0);
  }
  34%,
  62% {
    transform: translateY(-18px);
  }
  67%,
  95% {
    transform: translateY(-36px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ---------- WHOLESALE SESSION BAR ---------- */
body.is-wholesale .top {
  display: none;
}

.ws-banner {
  position: relative;
  z-index: 70;
  background: var(--wash);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--red);
  font-size: 13.5px;
  line-height: 1.35;
}

.ws-banner .hbar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}

.ws-banner__msg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  min-width: 0;
}

.ws-banner__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  background: var(--red);
  color: #fff;
  font-family: var(--d);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ws-banner__text {
  color: var(--ink-2);
  font-weight: 500;
}

.ws-banner__text b,
.ws-banner b {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- HEADER ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: var(--t2);
}

.hdr.solid {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.hdr .bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  height: 92px;
  transition: var(--t2);
}

.hdr.solid .bar {
  height: 72px;
}

.logo {
  flex-shrink: 0;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.logo img,
.logo svg {
  display: block;
  height: 60px;
  width: auto;
  transition: height var(--t2);
}

.hdr.solid .logo img,
.hdr.solid .logo svg {
  height: 36px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: #fff;
  border-radius: 2px;
  font-size: 15px;
  flex-shrink: 0;
}

.logo-txt {
  font-family: var(--d);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  justify-self: center;
}

.nav > li {
  position: static;
  display: flex;
  align-items: center;
}

.nav > li > a,
.nav > li > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--d);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 14px 10px;
  transition: color var(--t);
  position: relative;
}

.nav a:hover,
.nav button:hover,
.nav [aria-expanded="true"] {
  color: var(--red);
}

.nav > li > button i {
  font-size: 9px;
  line-height: 1;
  width: 1em;
  text-align: center;
  opacity: 0.55;
  transition: transform var(--t);
}

.nav > li > button[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.nav .hot {
  color: var(--red);
}

.acts {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: var(--t);
  font-size: 17px;
}

.ic:hover {
  background: var(--wash);
  color: var(--red);
}

.bdg {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--d);
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* display:grid above beats the UA [hidden] rule — keep empty cart badge invisible */
.bdg[hidden] {
  display: none !important;
}

.bg {
  display: none;
}

/* mega */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: 0 28px 64px rgba(17, 18, 20, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--t2);
  pointer-events: none;
}

/* Prefer .on (JS) over hover-only so keyboard users control disclosure */
.nav > li:hover .mega:not([hidden]),
.mega.on {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.mega[hidden] {
  display: none !important;
}

/* Beat .nav a chrome (display:flex / uppercase / padding) inside megas */
.nav .mega a {
  display: block;
  align-items: unset;
  gap: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  position: static;
}

.mgi {
  max-width: var(--w);
  margin: 0 auto;
  padding: 40px var(--gutter) 44px;
  width: 100%;
  box-sizing: border-box;
}

.mgi--showcase {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(220px, 1fr) minmax(280px, 1.2fr);
  gap: 28px 40px;
  align-items: stretch;
}

.mgi--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px 48px;
  align-items: start;
}

.mg-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.mg-cols:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 320px;
}

.mgc .nav-h,
.mg-mid .nav-h,
.mg-right .nav-h,
.mg-aside .nav-h,
.mgc h4 {
  font-family: var(--d);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
  font-weight: 700;
}

.nav .mega .mgc a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(17, 18, 20, 0.06);
  font-family: var(--d);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
  transition: color var(--t);
}

.nav .mega .mgc a:last-child {
  border-bottom: 0;
}

.nav .mega .mgc a .lbl {
  display: block;
  line-height: 1.25;
}

.nav .mega .mgc a .dsc {
  display: block;
  font-family: var(--b);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
  line-height: 1.35;
  text-transform: none;
}

.nav .mega .mgc a:hover,
.nav .mega .mgc a:focus-visible {
  color: var(--red);
}

.nav .mega .mgc a:hover .dsc,
.nav .mega .mgc a:focus-visible .dsc {
  color: var(--ink-2);
}

.nav .mega .mg-all,
.nav .mega a.mg-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  font-family: var(--d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--t);
}

.nav .mega .mg-all:hover,
.nav .mega .mg-all:focus-visible,
.nav .mega a.mg-all:hover,
.nav .mega a.mg-all:focus-visible {
  color: var(--red);
}

.nav .mega .mgc a.mg-all {
  flex-direction: row;
  border-bottom: 0;
  padding-top: 16px;
}

/* By-use image tiles */
.mg-tiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav .mega a.mg-tile {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 68px;
  aspect-ratio: 16 / 4.6;
  background: var(--wash);
  color: #fff;
  text-decoration: none;
}

.nav .mega a.mg-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
  transition: filter 0.55s ease;
}

.mg-tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(11, 11, 12, 0.78);
  font-family: var(--d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  transition: background 0.4s ease;
}

.mg-tile__cap i {
  font-size: 10px;
  opacity: 0.65;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.nav .mega a.mg-tile:hover img,
.nav .mega a.mg-tile:focus-visible img {
  filter: brightness(1.06);
}

.nav .mega a.mg-tile:hover .mg-tile__cap,
.nav .mega a.mg-tile:focus-visible .mg-tile__cap {
  background: rgba(11, 11, 12, 0.9);
}

.nav .mega a.mg-tile:hover .mg-tile__cap i,
.nav .mega a.mg-tile:focus-visible .mg-tile__cap i {
  opacity: 1;
  color: #fff;
}

.nav .mega a.mg-tile:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Featured product rows */
.mg-models {
  display: flex;
  flex-direction: column;
}

.nav .mega a.mg-model {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(17, 18, 20, 0.08);
  color: var(--ink);
  text-decoration: none;
  text-transform: none;
  transition: color var(--t);
}

.nav .mega a.mg-model:last-child {
  border-bottom: 0;
}

.mg-model__img {
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  background: var(--wash);
  border: 1px solid var(--line);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.mg-model__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
  transition: filter 0.45s ease;
}

.mg-model__name {
  display: block;
  font-family: var(--d);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.mg-model__sub {
  display: block;
  margin-top: 4px;
  font-family: var(--b);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.nav .mega a.mg-model:hover,
.nav .mega a.mg-model:focus-visible {
  color: var(--red);
}

.nav .mega a.mg-model:hover .mg-model__img,
.nav .mega a.mg-model:focus-visible .mg-model__img {
  border-color: rgba(200, 50, 30, 0.45);
  box-shadow: 0 8px 18px rgba(17, 18, 20, 0.1);
}

.nav .mega a.mg-model:hover .mg-model__img img,
.nav .mega a.mg-model:focus-visible .mg-model__img img {
  filter: brightness(1.06);
}

.nav .mega a.mg-model:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Overlay feature panels */
.mg-promo {
  min-width: 0;
  height: 100%;
}

.mg-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.mg-aside--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.nav .mega a.mg-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 280px;
  overflow: hidden;
  background: var(--black);
  color: #fff;
  text-decoration: none;
  text-transform: none;
}

.nav .mega a.mg-panel--tall {
  min-height: 360px;
  height: 100%;
}

.nav .mega a.mg-panel--wide {
  min-height: 300px;
  aspect-ratio: 16 / 9;
}

/* Damascus duo: match 720×900 masters (4:5) — stop landscape squash/crop */
.nav .mega .mg-aside--duo a.mg-panel {
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 5;
}

.nav .mega a.mg-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.94) saturate(0.96);
  transition: filter 0.55s ease;
}

.nav .mega a.mg-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 12, 0.12) 0%,
    rgba(11, 11, 12, 0.38) 42%,
    rgba(11, 11, 12, 0.9) 100%
  );
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.mg-panel__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 20px 24px;
}

.mg-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-family: var(--d);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.mg-panel__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(200, 50, 30, 0.28);
}

.mg-panel__kicker {
  font-family: var(--d);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.mg-panel__title {
  font-family: var(--d);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  max-width: 16ch;
  color: #fff;
}

.mg-panel__cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 4px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--d);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.nav .mega a.mg-panel:hover > img,
.nav .mega a.mg-panel:focus-visible > img {
  filter: brightness(1.08) saturate(1.04);
}

.nav .mega a.mg-panel:hover::after,
.nav .mega a.mg-panel:focus-visible::after {
  opacity: 0.78;
}

.nav .mega a.mg-panel:hover .mg-panel__cta,
.nav .mega a.mg-panel:focus-visible .mg-panel__cta {
  background: var(--red);
  border-color: var(--red);
}

.nav .mega a.mg-panel:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .hdr .bar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    height: 72px;
  }

  .hdr.solid .bar {
    height: 64px;
  }

  .logo img,
  .logo svg {
    height: 40px;
  }

  .hdr.solid .logo img,
  .hdr.solid .logo svg {
    height: 34px;
  }

  .nav {
    display: none;
  }

  .acts {
    gap: 0;
    flex-shrink: 0;
  }

  .acts .ic {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .acts .bdg {
    top: 4px;
    right: 4px;
  }

  .acts .ic-wish,
  .acts .ic-search,
  .acts .ic-account {
    display: none;
  }

  .bg {
    display: grid;
  }
}

@media (max-width: 1280px) {
  .mgi--showcase {
    grid-template-columns: minmax(180px, 0.7fr) minmax(180px, 1fr) minmax(220px, 1.1fr);
    gap: 22px 28px;
  }

  .mg-aside--duo {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav .mega a.mg-tile img,
  .nav .mega a.mg-model .mg-model__img img,
  .nav .mega a.mg-panel > img,
  .nav .mega a.mg-panel::after,
  .nav .mega a.mg-tile .mg-tile__cap,
  .nav .mega a.mg-tile .mg-tile__cap i,
  .nav .mega a.mg-panel .mg-panel__cta,
  .nav .mega a.mg-model .mg-model__img {
    transition: none !important;
  }

  .nav .mega a.mg-tile:hover img,
  .nav .mega a.mg-tile:focus-visible img,
  .nav .mega a.mg-model:hover .mg-model__img img,
  .nav .mega a.mg-model:focus-visible .mg-model__img img,
  .nav .mega a.mg-panel:hover > img,
  .nav .mega a.mg-panel:focus-visible > img {
    filter: none !important;
  }
}

/* ---------- BREADCRUMBS (.crumbs + shared .bc) ---------- */
.crumbs,
.bc {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

.crumbs ol,
.bc ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bc li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--edge);
  opacity: 0.55;
}

.crumbs a,
.bc a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--ink-2);
  transition: color var(--t);
}

.bc li:last-child {
  min-width: 0;
  max-width: 100%;
}

.bc li:last-child [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crumbs a:hover,
.bc a:hover {
  color: var(--red);
}

.crumbs [aria-current="page"],
.bc [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.crumbs .sep,
.bc .sep {
  display: none;
  opacity: 0.45;
  font-size: 10px;
}

/* ---------- PRODUCT CARD ---------- */
.pg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

@media (max-width: 1080px) {
  .pg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 340px) {
  .pg {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

.pc {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition:
    border-color var(--t),
    box-shadow var(--t);
}

.pc:hover {
  border-color: #c9cdd0;
  box-shadow: 0 10px 28px rgba(17, 18, 20, 0.07);
}

.pc .im {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--wash);
  overflow: hidden;
}

.pc .im-link {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--wash);
  overflow: hidden;
}

.pc .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc:hover .im img {
  transform: scale(1.05);
}

.pc .seal {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--black);
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.pc .seal span {
  font-family: var(--d);
  font-weight: 700;
  font-size: 7.2px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  line-height: 1.25;
  padding: 4px;
}

.wl {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0;
  transition:
    opacity var(--t),
    background var(--t),
    color var(--t);
  z-index: 3;
  font-size: 14px;
}

.pc:hover .wl {
  opacity: 1;
}

@media (hover: none) {
  .wl {
    opacity: 1;
  }
}

.wl:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.pc .bd {
  padding: 16px 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}

.pc .body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pn {
  font-family: var(--d);
  font-weight: 800;
  font-size: clamp(15px, 1.35vw, 18px);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--ink);
}

/* Product-title links only — do not target drawer panels (.ms .pn, .cart-drawer .pn) */
.pc .pn a,
h3.pn a {
  color: inherit;
  transition: color var(--t);
}

.pc:hover .pn a,
.pc .pn a:hover,
h3.pn a:hover {
  color: var(--red);
}

.psub {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.pmeta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  align-items: start;
}

.pmeta .col {
  min-width: 0;
  padding: 0 14px;
}

.pmeta .col:first-child {
  padding-left: 0;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.pmeta .col:last-child {
  padding-left: 14px;
  padding-right: 0;
}

.pmeta .lb {
  font-family: var(--d);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a6570; /* >=4.5:1 on white (was #78909C ~3.35:1) */
  margin-bottom: 6px;
  display: block;
}

.pmeta .vl {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}

.pmeta .col:last-child .vl {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 481px) {
  .pmeta .col:last-child .vl {
    white-space: nowrap;
  }
}

.prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pc .prow {
  margin-top: auto;
}

.pc .prow + .atb {
  margin-top: 0;
}

.pr {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--d);
}

.pr .n {
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pr .o {
  font-size: 14px;
  color: var(--ink-3);
  text-decoration: line-through;
  font-weight: 400;
}

.st {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.st i {
  color: var(--gold-ui); /* >=3:1 non-text on white */
  font-size: 11px;
}

.atb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  background: var(--black);
  color: #fff;
  font-family: var(--d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  margin-top: auto;
  transform: translateY(0);
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    box-shadow 0.28s ease,
    color 0.25s ease;
}

.atb:hover,
.atb:focus-visible {
  background: #2a2a2c;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(11, 11, 12, 0.24);
}

.atb:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(11, 11, 12, 0.16);
}

.atb i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.atb:hover i,
.atb:focus-visible i {
  transform: translateX(5px);
}

/* Compact card for two-up phone grids */
@media (max-width: 560px) {
  .pc .seal {
    right: 8px;
    bottom: 8px;
    width: 42px;
    height: 42px;
  }

  .pc .seal span {
    font-size: 6px;
    padding: 2px;
  }

  .pc .wl {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .pc .bd {
    padding: 10px 10px 0;
    gap: 6px;
    min-height: 0;
  }

  .pc .bd .chip {
    letter-spacing: 0.08em;
    padding: 5px 7px;
  }

  .pc .bd .chip.hf {
    display: none;
  }

  .pc .body {
    padding: 10px 10px 12px;
  }

  .pc .pn {
    font-size: 13px;
    letter-spacing: 0.01em;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  .pc .psub {
    display: none;
  }

  .pc .pmeta {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 8px 0;
    margin-bottom: 10px;
  }

  .pc .pmeta .col,
  .pc .pmeta .col:first-child,
  .pc .pmeta .col:last-child {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0;
    border-right: 0;
  }

  .pc .pmeta .lb {
    margin: 0;
    letter-spacing: 0.12em;
    flex-shrink: 0;
  }

  .pc .pmeta .vl {
    min-width: 0;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pc .prow {
    margin-bottom: 10px;
  }

  .pc .pr .n,
  .pc .pr .n .woocommerce-Price-amount {
    font-size: 16px;
  }

  .pc .atb {
    height: 44px;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

/* ---------- MINI CART DRAWER ---------- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: var(--t2);
}

.cart-drawer.on {
  opacity: 1;
  visibility: visible;
}

.cart-drawer .sc {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.cart-drawer .pn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--t2);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cart-drawer.on .pn {
  transform: none;
}

.cart-drawer .mh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer .mh h2 {
  font-size: 18px;
  margin: 0;
}

.cart-drawer .body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.cart-line .th {
  aspect-ratio: 1;
  background: var(--wash);
  overflow: hidden;
}

.cart-line .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line-main {
  min-width: 0;
}

.cart-line .nm {
  font-family: var(--d);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.cart-line .nm a {
  color: inherit;
  text-decoration: none;
}

.cart-line .nm a:hover,
.cart-line .nm a:focus-visible {
  color: var(--red);
}

.cart-line .meta {
  font-size: 12px;
  color: var(--ink-3);
}

.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cart-drawer .qty-sm {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  height: 44px;
  border: 1.5px solid var(--line);
  background: #fff;
}

.cart-drawer .qty-sm button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--ink);
  transition: background var(--t), color var(--t);
}

.cart-drawer .qty-sm button:hover:not(:disabled) {
  background: var(--wash);
  color: var(--red);
}

.cart-drawer .qty-sm button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
  z-index: 1;
}

.cart-drawer .qty-sm button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cart-drawer .qty-sm input {
  width: 44px;
  height: 44px;
  border: 0;
  border-inline: 1px solid var(--line);
  text-align: center;
  font-family: var(--d);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  -moz-appearance: textfield;
}

.cart-drawer .qty-sm input::-webkit-outer-spin-button,
.cart-drawer .qty-sm input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-drawer .qty-sm input:focus {
  outline: none;
}

.cart-drawer .qty-sm input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}

.cart-line-remove {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;
  padding: 8px 4px;
  font-family: var(--d);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--t);
}

.cart-line-remove:hover,
.cart-line-remove:focus-visible {
  color: var(--red);
}

.cart-line-remove:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.cart-line .px {
  font-family: var(--d);
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
  padding-top: 2px;
}

@media (max-width: 380px) {
  .cart-line {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .cart-line .px {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    margin-top: -4px;
    padding-bottom: 2px;
  }
}

.cart-empty {
  text-align: center;
  padding: 48px 12px;
  color: var(--ink-2);
}

.cart-empty p {
  margin: 12px 0 24px;
  font-weight: 300;
}

.cart-foot {
  border-top: 1px solid var(--line);
  padding: 20px 24px 28px;
}

.ship-nudge {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--wash);
  border-left: 3px solid var(--red);
}

.ship-nudge b {
  color: var(--ink);
}

.cart-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-family: var(--d);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.cart-sub .amt {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.cart-trust {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 14px;
}

.cart-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- FOOTER ---------- */
.ft {
  background: var(--black);
  color: #9aa0a6;
}

.ft .top-f {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr;
  align-items: start;
  gap: clamp(28px, 3.6vw, 48px);
  padding: clamp(56px, 6.5vw, 88px) 0 clamp(36px, 4.5vw, 56px);
}

/* Theme footer (brand + shop + help + newsletter) — no Series column */
.ft .top-f:has(> :nth-child(4):last-child) {
  grid-template-columns: 1.7fr 1fr 1.2fr 1.55fr;
}

@media (max-width: 980px) {
  .ft .top-f,
  .ft .top-f:has(> :nth-child(4):last-child) {
    grid-template-columns: 1fr 1fr;
  }
  .ft .fb,
  .ft .fn {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .ft .top-f,
  .ft .top-f:has(> :nth-child(4):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
  .ft .fb,
  .ft .fn,
  .ft .col {
    grid-column: auto;
  }
}

.ft .fb {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 10px;
}

.ft-logo {
  display: inline-flex;
  flex: 1 1 100%;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.ft-logo img,
.ft-logo svg {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}

.ft .fb > p {
  flex: 1 1 100%;
  margin-top: 18px;
  margin-bottom: 0;
}

.ft .fb p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 34ch;
  font-weight: 300;
}

.ft .soc {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  width: 100%;
}

.ft .soc a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  transition: var(--t);
}

.ft .soc a:hover,
.ft .soc a:focus-visible {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}

.ft .nav-h,
.ft h4 {
  font-family: var(--d);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #fff;
  margin: 0 0 18px;
  text-transform: uppercase;
  line-height: 1.2;
}

.ft .col {
  min-width: 0;
}

.ft .col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft .col li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft .col a {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 300;
  transition: color var(--t);
}

.ft .col a:hover,
.ft .col a:focus-visible {
  color: #fff;
}

.ft .fn {
  min-width: 0;
}

.ft .fn > p:not(.nav-h) {
  font-size: 15px;
  font-weight: 300;
  margin: 0 0 16px;
  line-height: 1.6;
}

.ft .fn form {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.ft .fn form .btn {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .ft .fn form {
    flex-wrap: wrap;
  }
  .ft .fn form .btn {
    width: 100%;
  }
}

.ft .fn input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-family: var(--b);
  transition: border-color var(--t);
}

.ft .fn input:focus,
.ft .fn input:focus-visible {
  border-color: var(--red-l);
  outline: none;
}

.ft .fn .btn {
  height: 48px;
  min-height: 48px;
  padding: 0 22px;
  border-width: 2px;
  line-height: 1;
  align-self: stretch;
}

.ft .fn .btn:hover,
.ft .fn .btn:focus-visible {
  transform: none;
  box-shadow: none;
}

.ft-nl-status {
  margin: 12px 0 0;
  min-height: 1.25em;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #d4d8dc;
}

.ft-nl-status.is-error {
  color: #ff8f78;
}

.ft .fn input[aria-invalid="true"] {
  border-color: #ff8f78;
}

.pay {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}
.pay img {
  display: block;
  width: auto;
  height: 28px;
  border-radius: 4px;
  background: #fff;
}

.ft .bot {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}

.ft .bot .lg {
  display: flex;
  gap: 4px 24px;
  flex-wrap: wrap;
}

.ft .bot .lg a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.ft .bot a {
  transition: color var(--t);
}

.ft .bot a:hover,
.ft .bot a:focus-visible {
  color: #fff;
}

.ft .bot .ft-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ft .bot .ft-copy a:hover,
.ft .bot .ft-copy a:focus-visible {
  color: #fff;
}

/* ---------- MOBILE NAV ---------- */
.ms {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: var(--t2);
}

.ms.on {
  opacity: 1;
  visibility: visible;
}

.ms .sc {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.ms .pn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 90vw);
  background: #fff;
  padding: 30px;
  padding-top: max(30px, env(safe-area-inset-top, 0px));
  padding-bottom: max(30px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  transform: translateX(100%);
  transition: var(--t2);
}

.ms.on .pn {
  transform: none;
}

.ms .mh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
}

.ms .mh .logo img {
  height: 36px;
}

.ms .mh .logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ms .mh .logo-mark {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.ms .mh .logo-txt {
  font-size: 15px;
  color: var(--ink);
}

.ms a.ml,
.ms button.ml {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--d);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 17px 0;
  transition: color var(--t);
}

.ms a.ml:hover,
.ms button.ml:hover {
  color: var(--red);
}

.ms a.ml.h {
  color: var(--red);
}

.ms .mc {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .rot div {
    animation: none;
  }
  .pc:hover .im img,
  .mg-tile:hover img,
  .mg-panel:hover > img,
  .mg-model:hover .mg-model__img img,
  .atb:hover i {
    transform: none;
  }
}

/* ---------- SEARCH OVERLAY ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  opacity: 0;
  visibility: hidden;
  transition: var(--t2);
}
.search-overlay.on {
  opacity: 1;
  visibility: visible;
}
.search-overlay .sc {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.search-overlay .pn {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-height: min(88vh, 720px);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateY(-12px);
  transition: var(--t2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.search-overlay.on .pn {
  transform: none;
}
.search-overlay .mh {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.search-overlay .search-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.search-overlay .search-form .input {
  height: 52px;
  border-width: 2px;
  padding-left: 18px;
}
.search-overlay .search-body {
  overflow: auto;
  padding: 8px clamp(16px, 3vw, 32px) 24px;
}
.search-overlay .search-label {
  font-family: var(--d);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 16px 0 10px;
}
.search-overlay .search-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-overlay .search-pills button {
  font-family: var(--b);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--ink);
  transition: border-color var(--t), color var(--t);
}
.search-overlay .search-pills button:hover {
  border-color: var(--red);
  color: var(--red);
}
.search-hit {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background var(--t);
}
.search-hit:hover,
.search-hit:focus-visible {
  background: var(--wash);
  outline: none;
}
.search-hit .th {
  width: 56px;
  height: 56px;
  background: var(--wash);
  overflow: hidden;
}
.search-hit .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-hit .nm {
  font-family: var(--d);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 2px;
}
.search-hit .meta {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 300;
}
.search-hit .px {
  font-family: var(--d);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.search-overlay .search-empty {
  padding: 28px 8px;
  text-align: center;
}
.search-overlay .search-empty p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-weight: 300;
}
.search-overlay .search-foot {
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
}
.search-overlay .search-foot[hidden],
.search-overlay .search-idle[hidden],
.search-overlay .search-suggest[hidden],
.search-overlay .search-empty[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .search-overlay,
  .search-overlay .pn {
    transition: none;
  }
}

.pay .pay-note {
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #9aa0a6;
  max-width: 28ch;
}

/* Hide Woo inline "View cart" — confirmation modal is the UX */
a.added_to_cart,
a.added_to_cart.wc-forward {
  display: none !important;
}

/* ---------- Add-to-bag confirmation ---------- */
.atc-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.atc-modal.on {
  opacity: 1;
  visibility: visible;
}
.atc-modal[hidden] {
  display: none !important;
}
.atc-modal.on[hidden] {
  display: grid !important;
}
.atc-modal .sc {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.62);
}
.atc-modal .pn {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(11, 11, 12, 0.32);
  padding: 28px 24px 24px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.atc-modal .pn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}
.atc-modal.on .pn {
  transform: none;
}
.atc-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  border: 0;
  background: transparent;
  font-size: 18px;
}
.atc-modal__x:hover,
.atc-modal__x:focus-visible {
  color: var(--ink);
  background: var(--wash);
}
.atc-modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 36px;
  margin-bottom: 22px;
}
.atc-modal__ok {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
  box-shadow: 0 0 0 4px rgba(11, 11, 12, 0.06);
}
.atc-modal__eyebrow {
  margin: 0 0 4px;
  font-family: var(--d);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.atc-modal__head h2 {
  margin: 0;
  font-family: var(--d);
  font-size: clamp(20px, 3vw, 24px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
}
.atc-modal__item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--wash);
  border: 1px solid var(--line);
}
.atc-modal__thumb {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.atc-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.atc-modal__name {
  margin: 0 0 6px;
  font-family: var(--d);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}
.atc-modal__sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.atc-modal__sub:empty {
  display: none;
}
.atc-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
}
.atc-modal__qty {
  font-size: 13px;
  color: var(--ink-2);
}
.atc-modal__qty:empty {
  display: none;
}
.atc-modal__price {
  margin: 0;
  font-family: var(--d);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.atc-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.atc-modal__actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 52px;
}
@media (max-width: 480px) {
  .atc-modal .pn {
    padding: 24px 18px 18px;
  }
  .atc-modal__item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .atc-modal__actions .btn-out {
    min-height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atc-modal,
  .atc-modal .pn {
    transition: none;
  }
}
