/* Black Friday shop surfaces: keep native forms, navigation and gallery controls. */
body[data-atnt-bf-page] {
  --atnt-bf-red: #c40812;
  --atnt-bf-deep-red: #990911;
  --atnt-bf-ink: #171718;
  --atnt-bf-line: #dedede;
  --atnt-bf-soft: #f3f3f2;
  --atnt-bf-font: "Neue Haas Unica Pro", Helvetica, Arial, sans-serif;
}

/* The stock header measures itself for stickiness. Keep its observer and grid. */
body[data-atnt-bf-page] .shopify-section--header .header.atnt-sc-header {
  padding-block: 0 !important;
  padding-inline: clamp(20px, 3.45vw, 66px) !important;
  min-height: 76px;
  color: var(--atnt-bf-ink);
  background: #fff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 -1px #ededed;
}
body[data-atnt-bf-page] .atnt-sc-header .header__secondary-nav {
  gap: clamp(6px, 1.4vw, 22px);
  color: var(--atnt-bf-ink);
}
body[data-atnt-bf-page] .atnt-sc-triggers {
  gap: clamp(14px, 1.6vw, 26px);
}
body[data-atnt-bf-page] .atnt-sc-desktop-toggle {
  font: 500 13px/1.2 var(--atnt-bf-font);
  letter-spacing: -.012em;
  white-space: nowrap;
}
body[data-atnt-bf-page] .atnt-sc-triggers .atnt-bf-shop-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--atnt-bf-red) !important;
  font-weight: 700;
}
body[data-atnt-bf-page] .atnt-sc-triggers :is(button, a):hover,
body[data-atnt-bf-page] .atnt-sc-triggers a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Existing native navigation dialog: opaque enough to keep links readable. */
html body[data-atnt-bf-page] .atnt-sc-nav dialog.atnt-sc-dialog {
  background: #fff !important;
  color: var(--atnt-bf-ink);
  border: 0;
  border-inline-end: 1px solid var(--atnt-bf-line);
  box-shadow: 8px 0 40px rgb(0 0 0 / 6%);
  font-family: var(--atnt-bf-font);
}
body[data-atnt-bf-page] .atnt-sc-top { border-color: var(--atnt-bf-line); }
body[data-atnt-bf-page] .atnt-sc-top [data-atnt-tab="blackfriday"],
body[data-atnt-bf-page] .atnt-sc-dialog a[href$="/collections/blackfriday2026"] {
  color: var(--atnt-bf-red) !important;
}
body[data-atnt-bf-page] .atnt-sc-tabs button[aria-selected="true"]::after {
  height: 2px;
  background: var(--atnt-bf-red);
}
body[data-atnt-bf-page] .atnt-sc-panel[data-atnt-panel="blackfriday"] .atnt-sc-all {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
}
body[data-atnt-bf-page] .atnt-sc-product-media { background: var(--atnt-bf-soft); }
body[data-atnt-bf-page] .atnt-sc-nav :is(a, button, summary, input):focus-visible,
body[data-atnt-bf-page] .atnt-sc-header .header__secondary-nav :focus-visible {
  outline: 2px solid var(--atnt-bf-deep-red);
  outline-offset: 3px;
}
@media (max-width: 999px) {
  body[data-atnt-bf-page] .shopify-section--header .header.atnt-sc-header {
    min-height: 59px;
    padding-inline: 14px !important;
  }
  body[data-atnt-bf-page] .atnt-sc-header .header__secondary-nav { gap: 4px; }
  body[data-atnt-bf-page] .atnt-sc-triggers .atnt-bf-shop-link { display: none; }
}
/* Only the campaign collection's plain title panel gets the campaign art direction.
   Other collections retain their native banners, imagery and contrast schemes. */
body[data-atnt-bf-page="collection"] .shopify-section--collection-banner:has(.breadcrumb a[aria-current="page"][href$="/collections/blackfriday2026"]) > .color-scheme:not(.collection-banner) {
  background: #161617;
  --text-color: 255 255 255;
  color: white;
}
body[data-atnt-bf-page="collection"] .shopify-section--collection-banner:has(.breadcrumb a[aria-current="page"][href$="/collections/blackfriday2026"]) .section-spacing {
  padding-block: clamp(50px, 6.4vw, 90px);
}
body[data-atnt-bf-page="collection"] .shopify-section--collection-banner:has(.breadcrumb a[aria-current="page"][href$="/collections/blackfriday2026"]) h1 {
  font-family: var(--atnt-bf-font);
  line-height: .96;
  font-size: clamp(35px, 6.2vw, 92px);
  font-weight: 700;
  letter-spacing: -.065em;
}
body[data-atnt-bf-page="collection"] .collection-toolbar {
  --border-color: 222 222 222;
  background-color: white;
  color: var(--atnt-bf-ink);
}
body[data-atnt-bf-page="collection"] .collection-toolbar__button.is-active {
  color: var(--atnt-bf-red);
}
body[data-atnt-bf-page] :is(.shopify-section--main-collection, .atnt-search-page) .product-card__figure {
  background-color: var(--atnt-bf-soft);
}
body[data-atnt-bf-page] :is(.shopify-section--main-collection, .atnt-search-page) .product-card__info,
body[data-atnt-bf-page] :is(.shopify-section--main-collection, .atnt-search-page) .product-card__info .v-stack {
  justify-items: start;
  text-align: start;
}
body[data-atnt-bf-page] :is(.shopify-section--main-collection, .atnt-search-page) .product-card__info .product-title {
  font: 600 clamp(13px, 1vw, 16px)/1.3 var(--atnt-bf-font);
  text-transform: none;
  letter-spacing: -.015em;
}
body[data-atnt-bf-page] .price-list sale-price.text-on-sale {
  color: var(--atnt-bf-red);
  font-weight: 700;
}
body[data-atnt-bf-page] .price-list compare-at-price {
  color: #656565;
  font-weight: 400;
}
body[data-atnt-bf-page] .badge.atnt-bf-badge {
  background: #fff !important;
  color: var(--atnt-bf-red) !important;
  border: 1px solid #e0c7c8;
  border-radius: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.2;
}
body[data-atnt-bf-page="search"] .atnt-search-page {
  background: #f7f7f6;
}

/* Apply the accent to the selected, available purchase button only.
   The native disabled, accelerated-payment and notification actions remain distinct. */
body[data-atnt-bf-page] .shopify-section--main-product h1.product-title {
  font: 700 clamp(26px, 2.7vw, 46px)/1.05 var(--atnt-bf-font);
  letter-spacing: -.045em;
  text-transform: none;
}
body[data-atnt-bf-page] .atnt-product-savings__percent { color: var(--atnt-bf-red); }
/* Use the same keyline and interaction feedback across merchant actions. */
html body[data-atnt-bf-page] :is(
  .bf26-campaign a.bf26-cta,
  .atnt-sc-panel[data-atnt-panel="blackfriday"] a.atnt-sc-all,
  buy-buttons.buy-buttons > button.button[type="submit"],
  :is(cart-drawer, .shopify-section--main-cart) button.button[name="checkout"],
  .shopify-section--main-cart .empty-state a.button,
  .color-scheme--scheme-1 :is(button.button, a.button):not(.button--outline)
):not(:disabled, [aria-disabled="true"], .shopify-payment-button__button, .shopify-payment-button__button--unbranded) {
  --button-background: 255 255 255 !important;
  --button-text-color: 23 23 24 !important;
  --button-outline-color: 196 8 18 !important;
  color: var(--atnt-bf-ink) !important;
  background: #fff !important;
  border: 1px solid var(--atnt-bf-red) !important;
  border-radius: 0;
  min-height: 44px;
  box-shadow: none;
  transition: transform .16s ease, box-shadow .16s ease;

  @media (hover: hover) and (pointer: fine) {
    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 0 var(--atnt-bf-red);
    }
  }
  &:focus-visible {
    outline: 2px solid var(--atnt-bf-red);
    outline-offset: 3px;
    box-shadow: 0 2px 0 var(--atnt-bf-red);
  }
  &:active {
    transform: translateY(1px);
    box-shadow: none;
  }
  @media (prefers-reduced-motion: reduce) {
    &, &:hover, &:active {
      transition: none;
      transform: none;
    }
  }
}
html body[data-atnt-bf-page] cart-drawer.drawer::part(content) {
  background: #fff !important;
  color: var(--atnt-bf-ink);
  border-color: var(--atnt-bf-line);
}
html body[data-atnt-bf-page] cart-drawer.drawer::part(header),
html body[data-atnt-bf-page] cart-drawer.drawer::part(footer) {
  background: #fff;
  border-color: var(--atnt-bf-line);
}

/* The legacy desktop PDP overlays its header on the gallery. In campaign mode
   the header follows the ribbon in normal flow, like the rest of the store. */
@media (min-width: 1000px) {
  html body[data-atnt-bf-page="product"]:has(#main .product-gallery) .shopify-section--header {
    position: sticky;
    inset-block-start: calc(var(--announcement-bar-is-sticky, 0) * var(--announcement-bar-height, 0px));
    z-index: 4;
  }
  html body[data-atnt-bf-page="product"]:has(#main .product-gallery) .shopify-section--header .header.atnt-sc-header {
    background: #fff !important;
    box-shadow: inset 0 -1px #ededed;
  }
  html body[data-atnt-bf-page="product"] #main .shopify-section--main-product .product-info {
    padding-block-start: 36px;
  }
  html body[data-atnt-bf-page="product"] #main .shopify-section--main-product .product-gallery {
    --atnt-photo-top: 18px;
  }
}

/* The delivery timeline is moved below the buy form after page load. Its
   stable inner ID follows the widget, including mobile product templates. */
body[data-atnt-bf-page="product"] [id^="ss-delivery-body-"] :is([class^="delivery-heading-"] *, [class^="delivery-title-"]) {
  color: var(--atnt-bf-ink);
}
body[data-atnt-bf-page="product"] [id^="ss-delivery-body-"] [class^="delivery-date-"] {
  color: var(--atnt-bf-deep-red);
}
body[data-atnt-bf-page="product"] [id^="ss-delivery-body-"] :is([class^="delivery-top-image-"], [class^="delivery-top-line-"]) {
  background-color: var(--atnt-bf-ink);
}
body[data-atnt-bf-page="product"] [id^="ss-delivery-body-"] [class^="delivery-second-item-"],
body[data-atnt-bf-page="product"] [id^="ss-delivery-body-"] [class^="delivery-second-item-"]::after {
  border-color: var(--atnt-bf-ink);
}

/* The owned, avatar-free rating summary paints its star tiles inside shadow
   DOM. Apply the monochrome treatment only to this configured brand color. */
body[data-atnt-bf-page="product"] section-store--review-summary-block[data-settings*='"stars_bg_color":"#0E51AE"' i][data-settings*='"avatars_position":"none"'] {
  filter: grayscale(1);
}

/* Retain the native footer content and apply the Black Friday inks. */
body[data-atnt-bf-page] .shopify-section--atnt-newsletter .atnt-newsletter-offer {
  background: #000;
  color: #fff;
}
body[data-atnt-bf-page] .shopify-section--atnt-newsletter .atnt-newsletter-offer__submit:hover {
  background: #fff;
  color: #000;
}
body[data-atnt-bf-page] .shopify-section--footer .atnt-footer-wordmark svg,
body[data-atnt-bf-page] .shopify-section--footer .atnt-footer-wordmark text {
  fill: #c40812;
}
body[data-atnt-bf-page] .shopify-section--footer .atnt-footer-wordmark:focus-visible {
  outline-color: #fff;
}
