:root {
  --site-chrome-bronze: var(--bronze2, #e0ac72);
  --site-chrome-line: var(--line, rgba(224, 172, 114, .34));
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.site-sale-banner {
  position: relative;
  z-index: 8;
  border-top: 1px solid rgba(224, 172, 114, .46);
  border-bottom: 1px solid rgba(224, 172, 114, .46);
  color: #f7eee5;
  background: radial-gradient(circle at 18% 20%, rgba(224, 172, 114, .2), transparent 42%), linear-gradient(110deg, #251910, #0e0b09 62%, #20150f);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
}

.site-sale-banner-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 108px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-inline: auto;
  padding: 18px 0;
}

.site-sale-banner-copy {
  min-width: 0;
}

.site-sale-banner-copy small,
.site-sale-banner-copy strong {
  display: block;
}

.site-sale-banner-copy small {
  margin-bottom: 5px;
  color: var(--site-chrome-bronze);
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-sale-banner-copy strong {
  color: #fff;
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.site-sale-banner-copy p {
  max-width: 780px;
  margin: 0;
  margin-top: 7px;
  color: #cfc1b4;
  font-size: clamp(.68rem, 1vw, .79rem);
  line-height: 1.55;
}

.site-sale-banner-button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--site-chrome-bronze);
  color: #17100b;
  background: var(--site-chrome-bronze);
  font-size: .63rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-sale-banner-button:hover,
.site-sale-banner-button:focus-visible {
  color: #fff;
  background: transparent;
}

.site-header .nav {
  width: min(1440px, calc(100% - 24px));
  max-width: none;
  min-width: 0;
  margin-inline: auto;
  gap: clamp(9px, 1.15vw, 18px);
  white-space: nowrap;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-right: auto;
  text-decoration: none;
  min-width: 0;
  flex: 0 0 auto;
}

/* v159: explicit wordmark line boxes prevent page-specific brand styles leaking in. */
.site-header .brand-copy {
  display: block;
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-header .brand-copy > small {
  display: block;
  margin: 0;
  margin-top: 7px;
  padding: 0;
  color: var(--site-chrome-bronze);
  font-size: .57rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .27em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header .site-nav-desktop {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(9px, 1.05vw, 17px);
  margin-left: auto;
}

.site-header .site-nav-desktop a {
  flex: 0 0 auto;
  padding: 8px 0;
  color: #d2c6b8;
  font-size: clamp(.57rem, .66vw, .7rem);
  font-weight: 900;
  letter-spacing: clamp(.055em, .09vw, .13em);
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header .site-nav-desktop a:hover,
.site-header .site-nav-desktop a:focus-visible {
  color: var(--site-chrome-bronze);
}

.site-header .site-account-link,
.site-header .site-shop-line {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 6px clamp(9px, 1vw, 15px);
  font-size: clamp(.55rem, .62vw, .66rem);
  letter-spacing: .1em;
  line-height: 1.05;
  text-align: center;
}

.site-header .site-shop-line {
  min-width: 82px;
  flex-direction: column;
  gap: 2px;
}

.site-header .site-shop-line span {
  display: block;
}

.site-header .site-nav-mobile,
.site-header .mobile-cart-shortcut {
  display: none;
}

.site-copyright {
  margin: 0;
  color: #9e9488;
  font-size: .7rem;
  letter-spacing: .04em;
}

.footer-grid {
  flex-wrap: wrap;
}

.site-footer-links {
  min-width: min(100%, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex: 1 1 520px;
  flex-wrap: wrap;
}

.site-footer-links a,
.site-footer-email {
  color: #c8bbae;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-decoration: underline;
  text-decoration-color: rgba(224, 172, 114, .42);
  text-underline-offset: 4px;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible,
.site-footer-email:hover,
.site-footer-email:focus-visible {
  color: var(--site-chrome-bronze);
  text-decoration-color: currentColor;
}

.site-footer-meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--site-chrome-bronze);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-social-link:hover,
.site-social-link:focus-visible {
  color: #f1c18d;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-social-icon .site-social-dot {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 1279px) and (min-width: 981px) {
  .site-header .nav {
    width: calc(100% - 16px);
    gap: 9px;
  }

  .site-header .brand-copy {
    display: none;
  }

  .site-header .nav-emblem {
    width: 44px;
    flex-basis: 44px;
  }

  .site-header .nav-emblem.emblem span {
    font-size: 2rem;
  }

  .site-header .site-nav-desktop {
    gap: clamp(7px, .8vw, 11px);
  }

  .site-header .site-nav-desktop a {
    font-size: clamp(.54rem, .68vw, .62rem);
    letter-spacing: .045em;
  }

  .site-header .site-account-link,
  .site-header .site-shop-line {
    min-height: 38px;
    padding-inline: 9px;
    font-size: .54rem;
    letter-spacing: .06em;
  }
}

@media (max-width: 980px) {
  .site-header .nav {
    width: calc(100% - clamp(16px, 4vw, 28px));
    min-height: 68px;
    gap: 8px;
    overflow: visible;
  }

  .site-header .brand {
    margin-right: auto;
    gap: 9px;
  }

  .site-header .brand-copy {
    display: block;
    max-width: clamp(88px, 28vw, 132px);
    overflow: hidden;
    font-size: clamp(.66rem, 2.8vw, .76rem);
    text-overflow: ellipsis;
  }

  .site-header .brand-copy small {
    margin-top: 5px;
    font-size: clamp(.42rem, 1.6vw, .49rem);
    letter-spacing: .15em;
  }

  .site-header .nav-emblem.emblem {
    width: clamp(28px, 7.7vw, 30px) !important;
    flex-basis: clamp(28px, 7.7vw, 30px) !important;
    box-sizing: border-box !important;
    border-width: 2px !important;
    box-shadow:
      0 0 0 2px rgba(184, 115, 66, .12),
      0 0 0 4px rgba(0, 0, 0, .62),
      inset 0 0 7px rgba(255, 255, 255, .08) !important;
  }

  .site-header .nav-emblem.emblem span {
    font-size: clamp(1.28rem, 4vw, 1.38rem) !important;
  }

  .site-header .nav-emblem.emblem:before {
    inset: -3px !important;
    border-width: 2px !important;
    filter: drop-shadow(0 1px 1px #000) !important;
  }

  .site-header .nav-emblem.emblem:after {
    inset: 5px !important;
  }

  .site-header .nav > .nav-links,
  .site-header .site-nav-desktop,
  .site-header .site-account-link,
  .site-header .site-shop-line,
  .site-header .back-link {
    display: none !important;
  }

  .site-header .site-nav-mobile {
    position: relative;
    display: block !important;
    flex: 0 0 auto;
    margin: 0;
  }

  .site-header .site-nav-mobile summary,
  .site-header .mobile-cart-shortcut {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid rgba(224, 172, 114, .38);
    background: rgba(20, 16, 13, .78);
    color: var(--site-chrome-bronze);
    font-size: .61rem;
    font-weight: 950;
    letter-spacing: .07em;
    line-height: 1;
    list-style: none;
    text-decoration: none;
    text-transform: uppercase;
    touch-action: manipulation;
  }

  .site-header .site-nav-mobile summary {
    cursor: pointer;
  }

  .site-header .site-nav-mobile summary::-webkit-details-marker {
    display: none;
  }

  .site-header .mobile-cart-shortcut {
    flex: 0 0 auto;
    gap: 6px;
    margin: 0;
  }

  .site-header .mobile-cart-shortcut[hidden] {
    display: none !important;
  }

  .site-header .site-nav-mobile .mobile-links {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 24px));
    max-height: calc(100dvh - 92px);
    display: grid;
    gap: 2px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--site-chrome-line);
    background: #17130f;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .68);
  }

  .site-header .site-nav-mobile .mobile-links a {
    min-height: 43px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #e7ddd1;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .site-header .site-nav-mobile .mobile-links a:hover,
  .site-header .site-nav-mobile .mobile-links a:focus-visible {
    background: rgba(224, 172, 114, .1);
    color: var(--site-chrome-bronze);
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-footer-links {
    min-width: 0;
    flex: 0 1 auto;
    align-content: flex-start;
    justify-content: flex-start;
  }

  .site-footer-meta {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 650px) {
  .site-sale-banner-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 16px 0;
  }

  .site-sale-banner-button {
    width: 100%;
  }

  body[data-seo-page="home"] .hero .emblem-wrap {
    top: 21px;
    right: 24px;
  }

  body[data-seo-page="home"] .hero .emblem-wrap .emblem {
    width: 102px;
  }

  body[data-seo-page="home"] .hero .emblem-wrap .emblem:before {
    inset: -11px;
    border-width: 8px;
  }

  body[data-seo-page="home"] .hero .emblem-wrap .emblem:after {
    inset: 17px;
  }

  body[data-seo-page="home"] .hero .emblem-wrap .emblem span {
    font-size: 4.4rem;
  }
}

@media (max-width: 390px) {
  .site-header .brand-copy {
    max-width: 91px;
  }

  .site-header .brand-copy small {
    display: none;
  }

  .site-header .site-nav-mobile summary,
  .site-header .mobile-cart-shortcut {
    padding-inline: 8px;
    font-size: .57rem;
  }
}

/* Product cards use normal document behavior; their explicit links remain clickable. */
.product {
  cursor: default;
}

.product a,
.product button {
  cursor: pointer;
}

/* v159: one emblem design for the navigation header and Support dialog. */
.site-header .nav-emblem.emblem,
.support-dialog .support-emblem {
  position: relative;
  width: 54px;
  height: auto;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  aspect-ratio: 1;
  padding: 0;
  border: 5px solid #b97843;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, rgba(255,223,180,.18), transparent 15%), radial-gradient(circle, #17120f 0 43%, #050505 44%);
  box-shadow: 0 0 0 6px rgba(184,115,66,.13), 0 0 0 12px rgba(0,0,0,.65), inset 0 0 28px rgba(255,255,255,.09);
  text-indent: 0;
  letter-spacing: 0;
}
.site-header .nav-emblem.emblem > span,
.support-dialog .support-emblem > span {
  display: block;
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  z-index: 2;
  color: #c48750;
  margin: 0;
  padding: 0;
  font-family: Georgia, serif;
  font-size: 2.45rem;
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(184,115,66,.42);
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  word-spacing: 0;
  text-indent: 0;
  text-align: center;
  transform: none;
}
@media (min-width: 981px) {
  .site-header .nav-emblem.emblem {
    width: 54px;
    flex-basis: 54px;
  }
  .site-header .nav-emblem.emblem > span { font-size: 2.45rem; }
}

.site-header .nav-emblem.emblem::before,
.support-dialog .support-emblem::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 5px dashed rgba(184,115,66,.92);
  border-radius: 50%;
  filter: drop-shadow(0 4px 4px #000);
}
.site-header .nav-emblem.emblem::after,
.support-dialog .support-emblem::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
/* Support keeps the full 54px emblem; the navigation retains its compact mobile size. */
.support-dialog .support-emblem { justify-self: start; }
.support-dialog .support-heading > div { min-width: 0; overflow-wrap: anywhere; }

/* v158: two mobile columns with vertically stacked, fully contained controls. */
@media (max-width: 980px) {
  body[data-seo-page="home"] .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body[data-seo-page="home"] .product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    grid-column: auto;
  }
  body[data-seo-page="home"] .product-core {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }
  body[data-seo-page="home"] .product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  body[data-seo-page="home"] .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  body[data-seo-page="home"] .product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: clamp(10px, 2vw, 17px);
    overflow-wrap: anywhere;
  }
  body[data-seo-page="home"] .product-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  body[data-seo-page="home"] .product h3 {
    font-size: clamp(.94rem, 2.6vw, 1.3rem);
    line-height: 1.15;
  }
  body[data-seo-page="home"] .product .description {
    font-size: .8125rem;
    line-height: 1.5;
  }
  body[data-seo-page="home"] .product .price {
    max-width: 100%;
    margin: 0;
    font-size: 1rem;
  }
  body[data-seo-page="home"] .product-type,
  body[data-seo-page="home"] .product-open-hint {
    font-size: .625rem;
    letter-spacing: .04em;
    white-space: normal;
  }
  body[data-seo-page="home"] .product-card-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    margin-top: auto;
  }
  body[data-seo-page="home"] .product-card-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 5px;
    font-size: .625rem;
    line-height: 1.35;
    letter-spacing: .04em;
    white-space: normal;
    text-align: center;
  }
  body[data-seo-page="home"] .add-to-cart-purchase {
    flex-direction: column;
    min-width: 0;
    gap: 8px;
  }
  body[data-seo-page="home"] .add-quantity-control {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(28px, 1fr) minmax(0, 1.3fr) minmax(28px, 1fr);
  }
  body[data-seo-page="home"] .add-quantity-input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }
  body[data-seo-page="home"] .add-quantity-step,
  body[data-seo-page="home"] .add-quantity-input { min-height: 44px; }
  body[data-seo-page="home"] .smoke-panel { display: none; }
}
@media (max-width: 900px) {
  body[data-seo-page="collection"] .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body[data-seo-page="collection"] .catalog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  body[data-seo-page="collection"] .catalog-card > img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1;
    object-fit: contain;
  }
  body[data-seo-page="collection"] .catalog-card-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: clamp(10px, 2vw, 20px);
    overflow-wrap: anywhere;
  }
  body[data-seo-page="collection"] .catalog-card h2 {
    font-size: clamp(.94rem, 2.6vw, 1.3rem);
    line-height: 1.15;
  }
  body[data-seo-page="collection"] .catalog-card p { font-size: .8125rem; }
  body[data-seo-page="collection"] .catalog-card .eyebrow,
  body[data-seo-page="collection"] .catalog-card .card-link {
    font-size: .625rem;
    letter-spacing: .04em;
  }
  body[data-seo-page="collection"] .catalog-card .card-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: auto;
  }
  body[data-seo-page="collection"] .catalog-grid > .guide-card { grid-column: 1 / -1; }
}

/* Recovery and keyboard controls use normal flow and readable touch targets. */
.inventory-recovery { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 16px auto; padding: 14px; max-width: calc(100% - 24px); color: #f4ede2; background: #211d18; border: 1px solid #b87342; }
.inventory-recovery[hidden] { display: none; }
.inventory-recovery button { min-height: 44px; padding: 8px 14px; color: #15120f; background: #e0ac72; border: 1px solid #e0ac72; font: inherit; cursor: pointer; }
.storefront-skip-link { position: fixed; left: 12px; top: -100px; z-index: 200; padding: 12px 16px; color: #15120f; background: #e0ac72; font-weight: 800; }
.storefront-skip-link:focus { top: 12px; }

/* v183: "Powered by Cross Machine & Tool" accent beside the Plan B brand. */
.site-header .brand-powered {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-width: 0;
  margin-right: auto;
  margin-left: -6px;
  padding-left: 14px;
  border-left: 1px solid rgba(224, 172, 114, .28);
  color: #c7beb2;
  text-decoration: none;
  opacity: .88;
  transition: opacity .2s ease;
}
.site-header .brand-powered:hover,
.site-header .brand-powered:focus-visible {
  opacity: 1;
  color: var(--site-chrome-bronze, #e0ac72);
}
/* The accent, not the brand, now carries the auto margin that pushes navigation right. */
.site-header .nav > .brand { margin-right: 0; }
.site-header .brand-powered-emblem {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5));
}
.site-header .brand-powered-copy {
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-header .brand-powered-copy small {
  display: block;
  margin-bottom: 4px;
  font-size: .46rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: #8f8479;
}
.site-header .brand-powered-short { display: none; }
@media (max-width: 1279px) {
  /* Tablets and phones: "Powered by / CMT" beside the emblem instead of the full name. */
  .site-header .brand-powered-long { display: none; }
  .site-header .brand-powered-short { display: block; }
  .site-header .brand-powered { gap: 7px; margin-left: -2px; padding-left: 10px; }
  .site-header .brand-powered-emblem { width: 32px; height: 32px; }
}
@media (max-width: 980px) {
  .site-header .brand-powered { padding-left: 8px; margin-left: 0; border-left-color: rgba(224, 172, 114, .2); }
  .site-header .brand-powered-copy { font-size: .55rem; letter-spacing: .12em; }
  .site-header .brand-powered-copy small { font-size: .42rem; letter-spacing: .16em; margin-bottom: 3px; }
}
@media (max-width: 390px) {
  /* Stay visible: this element carries the auto margin that keeps Menu and Cart on the right. */
  .site-header .brand-powered { gap: 6px; padding-left: 6px; }
  .site-header .brand-powered-emblem { width: 30px; height: 30px; }
}
/* Accent stays visually small but gets a full-height tap target on touch screens. */
.site-header .brand-powered { min-height: 44px; }
