/* P-Monro storefront */
:root {
  --boutique-black: #101010;
  --boutique-rule: #353535;
  --boutique-paper: #fff;
  --boutique-red: #ef003d;
}
body { --color-primary: #b80031; position: relative; isolation: isolate; }
body:has(.boutique-intro, .boutique-home-banner), body:has(.product-detail), body:has(.catalogue-page) {
  background: var(--boutique-black);
  color: var(--boutique-paper);
}
body:has(.boutique-intro, .boutique-home-banner)::before, body:has(.product-detail)::before, body:has(.catalogue-page)::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #101010 url('/storefront/images/p-monro-background-ribbons.webp') center / cover no-repeat;
  animation: pMonroPatternDrift 24s ease-in-out infinite alternate;
}
@keyframes pMonroPatternDrift {
  to { background-position: 56% 54%; }
}
@media (max-width: 640px) {
  body:has(.boutique-intro, .boutique-home-banner)::before, body:has(.product-detail)::before, body:has(.catalogue-page)::before {
    background-position: 90% 50%;
    animation-name: pMonroBackgroundMobile;
    animation-duration: 30s;
  }
}
@keyframes pMonroBackgroundMobile {
  to { background-position: 96% 54%; }
}
@media (prefers-reduced-motion: reduce) {
  body:has(.boutique-intro, .boutique-home-banner)::before, body:has(.product-detail)::before, body:has(.catalogue-page)::before {
    animation: none;
  }
}
.utility-bar { display: none; }
.site-header, .site-footer { background: var(--boutique-black); color: white; border-color: var(--boutique-rule); }
.brand-name, .boutique-signature {
  color: white; font-size: 32px; font-weight: 800; letter-spacing: -.07em; line-height: 1;
}
.site-header .brand-name small, .site-footer .brand-name small { display: none; }
.site-header :is(.nav-link, .header-icon-link, .cart-link) { color: white; background: var(--boutique-black); border-color: var(--boutique-rule); }
.site-header .brand-name { white-space: nowrap; max-width: none; }
.header-icon-link { border-color: var(--boutique-rule); }
.site-header a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-search input, .header-search button {
  background: #191919; border-color: #484848; color: white;
}
.header-search input::placeholder { color: #bdbdbd; }
.header-search button:hover { background: #292929; }
.cart-count { background: white; color: var(--boutique-black); }
.site-footer { border-top: 1px solid var(--boutique-rule); }
.home-promo-banner.boutique-home-banner > img { display: block; width: 100%; height: auto; }
.boutique-intro {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch;
  padding-block: clamp(32px, 5vw, 72px);
}
.boutique-intro-copy { align-self: center; padding-right: clamp(32px, 5vw, 72px); }
.boutique-intro h1 {
  margin: 0; color: white; font-size: clamp(50px, 5.7vw, 84px); font-weight: 700;
  line-height: .99; letter-spacing: -.07em;
}
.boutique-intro-copy p {
  max-width: 38ch; margin: 24px 0 32px; color: #cdcdcd;
  font-size: 17px; line-height: 1.55;
}
.boutique-intro > img { display: block; width: 100%; height: 100%; aspect-ratio: 1.42; object-fit: cover; }
.boutique-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 22px; border: 0; border-radius: 4px; background: white;
  color: var(--boutique-black); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.boutique-action:hover { background: #ddd; }
.boutique-collections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px 24px; padding-top: 32px; }
.boutique-collections-heading { grid-column: 1 / -1; display: grid; gap: 8px; padding: 0 0 20px; border-bottom: 1px solid var(--boutique-rule); }
.boutique-collections-heading > p { grid-column: 1 / -1; margin: 0; color: #ed7890; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.boutique-collections-heading h2 { margin: 0; color: white; font-size: clamp(30px,4vw,52px); line-height: 1.02; font-weight: 650; letter-spacing: -.055em; }
.boutique-collection { min-width: 0; }
.boutique-collection-primary { grid-column: 1 / -1; }
.boutique-collection:focus-visible { outline: 2px solid white; outline-offset: 5px; }
.boutique-feature { padding-top: clamp(32px, 4vw, 56px); }
.boutique-feature-link { display: block; color: var(--boutique-paper); }
.boutique-feature-image { display: block; width: 100%; height: clamp(240px, 30vw, 440px); object-fit: cover; }
.boutique-feature-caption { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-block: 22px 28px; border-bottom: 1px solid var(--boutique-rule); }
.boutique-feature-caption p { margin: 0 0 8px; font-size: 10px; font-weight: 700; letter-spacing: .15em; color: #ed7890; }
.boutique-feature-caption h2 { margin: 0; font-size: clamp(30px, 3.5vw, 48px); font-weight: 650; line-height: 1.04; letter-spacing: -.055em; }
.boutique-feature-caption > span { font-size: 14px; font-weight: 600; }
.boutique-collection:not(.boutique-collection-primary) .boutique-feature-image { height: clamp(110px, 17vw, 220px); }
.boutique-collection:not(.boutique-collection-primary) .boutique-feature-caption { flex-wrap: wrap; gap: 10px; overflow-wrap: anywhere; }
.boutique-collection:not(.boutique-collection-primary) .boutique-feature-caption h2 { font-size: clamp(17px, 2.3vw, 34px); }
.boutique-feature-link:is(:hover,:focus-visible) .boutique-feature-caption > span { text-decoration: underline; text-underline-offset: 4px; }
.boutique-selection { padding-block: clamp(48px, 6vw, 88px); }
.boutique-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.boutique-heading h2 { margin: 0; color: white; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.055em; }
.boutique-heading a, .boutique-prompt > a { text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.boutique-selection ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.boutique-product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--boutique-rule); border-radius: 6px; background: #191919; }
.boutique-product-image { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; background: white; }
.boutique-product-image img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.boutique-image-placeholder { color: #666; font-size: 13px; }
.boutique-product-info { display: grid; gap: 8px; padding: 20px; }
.boutique-product-info small { color: #bdbdbd; font-size: 12px; }
.boutique-product-info h3 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -.025em; color: white; }
.boutique-product-stock { color: #bdbdbd; font-size: 12px; }
.boutique-price { margin-top: 4px; white-space: nowrap; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.boutique-product-action { display: flex; gap: 8px; margin-top: auto; padding: 0 20px 20px; }
.boutique-product-action form { flex: 0 0 44px; margin: 0; }
.boutique-view-button { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--boutique-rule); border-radius: 4px; padding: 10px 8px; color: white; font-size: 14px; font-weight: 650; }
.boutique-view-button:hover { background: #292929; }
.boutique-cart-button { display: flex; justify-content: center; align-items: center; width: 44px; min-height: 44px; border: 0; border-radius: 4px; padding: 10px; background: var(--boutique-red); color: white; font: inherit; cursor: pointer; }
.boutique-cart-button svg { width: 22px; height: 22px; }
.boutique-cart-button:hover { background: #b80031; }
.boutique-cart-button:disabled { opacity: .6; cursor: not-allowed; }
.boutique-product-action > .boutique-cart-button { flex: 0 0 44px; }
.boutique-product-card a:focus-visible, .boutique-cart-button:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.boutique-product-info a:hover, .boutique-categories a:hover { text-decoration: underline; text-underline-offset: 4px; }

.catalogue-section, .product-detail { --color-ink: #fff; --color-muted: #c2c2c2; --color-line: var(--boutique-rule); }
.product-description, .catalogue-section label, .product-detail label { color: #cdcdcd; }
.product-price, .detail-price, .catalogue-section .eyebrow, .product-detail .eyebrow,
.pagination-position strong { color: white; }
.cart-drawer-panel, .cookie-banner, .pagination-arrow, .product-document {
  --color-ink: #171717; --color-muted: #555; color: #171717;
}
.product-detail-copy, .product-description-panel, .product-technical-panel, .product-card {
  background: var(--boutique-black); color: white;
}
.product-detail :is(.product-detail-copy, .product-description-panel, .product-technical-panel) {
  min-width: 0;
  padding: clamp(16px, 3vw, 32px);
  overflow-wrap: anywhere;
}
.product-detail .detail-kicker { flex-wrap: wrap; }
.catalogue-section :is(input,select,.catalogue-select-trigger,.catalogue-select-menu,.catalogue-quantity-stepper),
.product-detail :is(input,select,.quantity-stepper) {
  --color-ink: #171717; --color-muted: #555; color: #171717;
}
body:has(.product-detail) .back-link, .catalogue-reset-link, .product-detail .text-link { color: white; text-decoration: underline; }
body:has(> #pm-age-gate[open]) { background: var(--boutique-black); overflow: hidden; }
body:has(> #pm-age-gate[open]) > :not(#pm-age-gate) { visibility: hidden; }
#pm-age-gate[open] {
  position: fixed; inset: 0; z-index: 2147483647; width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto;
  border: 1px solid #424242; background: #181818; color: white; border-radius: 6px;
}
#pm-age-gate::backdrop { background: var(--boutique-black); }
.boutique-prompt { display: grid; justify-items: start; padding: clamp(24px, 5vw, 40px); }
.boutique-signature { margin-bottom: 44px; }
.boutique-prompt h2 { margin: 0; color: white; font-size: 32px; line-height: 1.1; letter-spacing: -.055em; }
.boutique-prompt p { margin: 12px 0 24px; color: #cecece; }
.boutique-prompt .boutique-action { width: 100%; }
.boutique-prompt > a { justify-self: center; padding: 16px 8px 4px; color: white; }
.boutique-prompt noscript { font-size: 13px; margin-top: 12px; }
@media (max-width: 767px) {
  .boutique-intro { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 24px; }
  .boutique-intro-copy { padding: 0; }
  .boutique-intro h1 { font-size: clamp(44px, 10vw, 64px); }
  .boutique-intro-copy p { margin: 16px 0 20px; font-size: 16px; }
  .boutique-intro > img { aspect-ratio: 1.75; height: auto; }
  .boutique-collections { gap: 26px 10px; padding-top: 20px; }
  .boutique-collections-heading { padding-bottom: 16px; }
  .boutique-collections-heading h2 { font-size: 34px; }
  .boutique-feature-image { height: clamp(180px, 47vw, 280px); }
  .boutique-collection:not(.boutique-collection-primary) .boutique-feature-image { height: clamp(76px, 20vw, 150px); }
  .boutique-collection:not(.boutique-collection-primary) .boutique-feature-caption > span { font-size: 12px; }
  .boutique-feature-caption { flex-wrap: wrap; gap: 12px; align-items: baseline; padding-block: 16px 20px; }
  .boutique-selection ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .boutique-product-info { padding: 12px; }
  .boutique-product-info h3 { font-size: 15px; }
  .boutique-product-action { padding: 0 12px 12px; }
  .boutique-product-image img { padding: 12px; }
  .boutique-price { font-size: 19px; }
}
@media (max-width: 480px) {
  .site-header .header-content { padding-inline: 16px; column-gap: 12px; }
  .site-header .brand-name { font-size: 24px; }
  .site-header .site-nav { gap: 4px; }
  .site-header .nav-link { width: 42px; justify-content: center; padding: 0; }
  .site-header .nav-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .cart-link { padding-inline: 5px; gap: 4px; }
  .site-header .cart-count { min-width: 20px; }
}
