/** Shopify CDN: Minification failed

Line 439:0 Unexpected "}"

**/
/* sancando-cache 2026-09-17T22:00CT ne1000-handles-overflow */
/* Logo hint baked into collection-card photos stays hidden. */
.sancando-logo-placeholder {
  display: none !important;
}

.product-media {
  position: relative;
}

/* Silver wrap "Add Custom Text or Logo Here" on the powder face until customize starts. */
.sancando-placeholder-hint {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.sancando-placeholder-hint__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none;
}

.sancando-placeholder-hint__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sancando-placeholder-hint.is-hidden,
html[data-sancando-customizing="1"] .sancando-placeholder-hint,
html[data-sancando-deco="uv"] .sancando-placeholder-hint,
html[data-sancando-place="1"] .sancando-placeholder-hint,
slideshow-slide[hidden] .sancando-placeholder-hint,
slideshow-slide[aria-hidden="true"] .sancando-placeholder-hint,
.media-gallery__grid .sancando-placeholder-hint,
.dialog-zoomed-gallery .sancando-placeholder-hint {
  display: none !important;
}

/* Customer logo box — hidden until a logo is uploaded. */
.sancando-imprint-preview,
.sancando-imprint-text {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1.5px dashed rgba(255, 255, 255, 0.72);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  background: none;
  background-color: transparent;
  container-type: size;
  user-select: none;
  touch-action: none;
}

.sancando-imprint-text {
  z-index: 4;
}

.sancando-imprint-preview.has-logo,
.sancando-imprint-text.has-text {
  display: flex;
  pointer-events: auto;
  cursor: move;
}

.sancando-imprint-preview__inner,
.sancando-imprint-text__value {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-sizing: border-box;
  padding: 4%;
  background: none !important;
  background-color: transparent !important;
}

.sancando-imprint-preview__logo {
  display: none;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  min-height: 0;
  min-width: 0;
  pointer-events: none;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.sancando-imprint-preview.has-logo .sancando-imprint-preview__logo {
  display: block;
}

.sancando-imprint-text__value {
  color: #b1b1b1;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: keep-all;
  word-wrap: normal;
  hyphens: none;
  white-space: pre-wrap;
  padding: 8%;
  min-width: 0;
  min-height: 0;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Legacy combined-box text (unused once split). */
.sancando-imprint-preview__text {
  display: none;
}

/* Customer resize handles — only while customizing, never in merchant place mode. */
.sancando-box-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid #111;
  box-sizing: border-box;
  z-index: 40;
  pointer-events: auto;
  display: none;
}
.sancando-box-handle::before {
  content: "";
  position: absolute;
  inset: -10px;
}
.sancando-box-handle--nw { top: -9px; left: -9px; cursor: nwse-resize; }
.sancando-box-handle--ne { top: -9px; right: -9px; cursor: nesw-resize; }
.sancando-box-handle--sw { bottom: -9px; left: -9px; cursor: nesw-resize; }
.sancando-box-handle--se { bottom: -9px; right: -9px; cursor: nwse-resize; }

.sancando-imprint-preview.has-logo .sancando-box-handle,
.sancando-imprint-text.has-text .sancando-box-handle,
.sancando-imprint-text.has-text .sancando-rotate-handle {
  display: block;
}

/* Hats leatherette: shopper-resizable patch frame (visible before logo upload). */
.sancando-imprint-preview.is-patch-frame {
  display: flex !important;
  pointer-events: auto !important;
  cursor: move;
  z-index: 30;
  visibility: visible !important;
  opacity: 1;
}
.sancando-imprint-preview.is-patch-frame .sancando-box-handle {
  display: block !important;
  visibility: visible !important;
  opacity: 1;
  pointer-events: auto !important;
  z-index: 40;
}
/* Keep corner slop small so frame body stays grab-to-move. */
.sancando-imprint-preview.is-patch-frame .sancando-box-handle::before {
  inset: -4px;
}
.sancando-imprint-preview.is-patch-frame .sancando-imprint-preview__inner {
  cursor: move;
  pointer-events: auto;
}
.sancando-imprint-preview.is-patch-frame:not(.has-logo) {
  border: 2px dashed rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.18);
  cursor: move;
  touch-action: none;
}
/* Center grab cue — makes "drag the body" obvious before logo upload. */
.sancando-imprint-preview.is-patch-frame:not(.has-logo)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 0 6px rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
  z-index: 5;
}
.sancando-imprint-preview.is-patch-frame.has-logo::after {
  content: none;
  display: none;
}
html[data-sancando-leatherette="1"] .sancando-imprint-preview.is-patch-frame,
html[data-sancando-customizing="1"] .sancando-imprint-preview.is-patch-frame,
html[data-sancando-leatherette="1"] .sancando-imprint-preview.is-patch-frame .sancando-box-handle,
html[data-sancando-customizing="1"] .sancando-imprint-preview.is-patch-frame .sancando-box-handle,
html[data-sancando-leatherette="1"] .sancando-imprint-preview.is-patch-frame .sancando-imprint-preview__inner,
html[data-sancando-customizing="1"] .sancando-imprint-preview.is-patch-frame .sancando-imprint-preview__inner {
  pointer-events: auto !important;
}

.sancando-rotate-handle {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  cursor: grab;
  z-index: 7;
  pointer-events: auto;
  display: none;
}

.sancando-rotate-handle:active {
  cursor: grabbing;
}


/* Multi-stamp gift sets: only primary (first imprint_areas entry) is interactive.
   Mirror clones show the same logo/text content with no handles / no drag. */
.sancando-imprint-preview--mirror,
.sancando-imprint-text--mirror {
  pointer-events: none !important;
  cursor: default !important;
  border: none !important;
  box-shadow: none !important;
}

.sancando-imprint-preview--mirror.has-logo,
.sancando-imprint-text--mirror.has-text,
html[data-sancando-customizing="1"] .sancando-imprint-preview--mirror.has-logo,
html[data-sancando-customizing="1"] .sancando-imprint-text--mirror.has-text {
  pointer-events: none !important;
  cursor: default !important;
  border: none !important;
  box-shadow: none !important;
}

.sancando-imprint-preview--mirror .sancando-box-handle,
.sancando-imprint-text--mirror .sancando-box-handle,
.sancando-imprint-text--mirror .sancando-rotate-handle,
.sancando-imprint-preview--mirror.has-logo .sancando-box-handle,
.sancando-imprint-text--mirror.has-text .sancando-box-handle,
.sancando-imprint-text--mirror.has-text .sancando-rotate-handle,
html[data-sancando-customizing="1"] .sancando-imprint-preview--mirror .sancando-box-handle,
html[data-sancando-customizing="1"] .sancando-imprint-text--mirror .sancando-box-handle,
html[data-sancando-customizing="1"] .sancando-imprint-text--mirror .sancando-rotate-handle {
  display: none !important;
  pointer-events: none !important;
}

/* Hide empty mirror chrome so only the primary face shows empty/customizing UI. */
.sancando-imprint-text--mirror:not(.has-text),
.sancando-imprint-preview--mirror:not(.has-logo) {
  opacity: 0;
  visibility: hidden;
}

.sancando-imprint-text--mirror.has-text,
.sancando-imprint-preview--mirror.has-logo {
  opacity: 1;
  visibility: visible;
}

html[data-sancando-place="1"] .sancando-box-handle,
html[data-sancando-place="1"] .sancando-rotate-handle {
  display: none !important;
}

/* Merchant place mode: keep the family box visible even when empty. */
html[data-sancando-place="1"] .sancando-imprint-preview {
  display: flex !important;
  pointer-events: auto;
}

/* Logo preview: hide on [hidden] slides, grid extras, zoom only.
   Do NOT use aria-hidden — Horizon sometimes marks the visible slide
   aria-hidden, which would hide the logo on the cup the customer sees.
   Do NOT hide the logo box on UV (full-color uploads must show). */
slideshow-slide[hidden] .sancando-imprint-preview,
.media-gallery__grid .sancando-imprint-preview,
.dialog-zoomed-gallery .sancando-imprint-preview {
  display: none !important;
}
/* Apparel: keep logo stamp visible on the active tee (grid class can wrap carousel on mobile). */
.sancando-apparel-gallery .media-gallery__grid slideshow-slide:not([hidden]) .sancando-imprint-preview.has-logo,
.sancando-apparel-gallery slideshow-slide:not([hidden]) .sancando-imprint-preview.has-logo,
.product-media--apparel .sancando-imprint-preview.has-logo {
  display: flex !important;
}

/* Engraving text stays laser-only. Keep UV + existing hide rules. */
slideshow-slide[hidden] .sancando-imprint-text,
slideshow-slide[aria-hidden="true"] .sancando-imprint-text,
.media-gallery__grid .sancando-imprint-text,
.dialog-zoomed-gallery .sancando-imprint-text,
html[data-sancando-deco="uv"] .sancando-imprint-text {
  display: none !important;
}

/* Locked PDP media size. Masters stay square; this is the on-page frame. */
:root {
  --sancando-media: 680px;
  --sancando-hat-media: 640px;
}

/* Drinkware enlarge is DESKTOP only. Mobile keeps 680 and a tighter frame so the
   full cup fits under the header + category circles (2026-08-20). */
@media screen and (min-width: 750px) {
  .sancando-pdp--drinkware,
  .sancando-drinkware-gallery,
  .product-media--drinkware {
    --sancando-media: 920px;
  }
  .sancando-pdp--hats,
  .sancando-hats-gallery,
  .product-media--hats {
    --sancando-hat-media: 680px;
  }
}

.sancando-pdp--drinkware,
.sancando-pdp--hats,
.sancando-pdp--apparel,
.sancando-pdp--journals,
.sancando-drinkware-gallery,
.sancando-hats-gallery,
.sancando-apparel-gallery,
.sancando-journals-gallery {
  --gallery-aspect-ratio: unset;
  --product-media-fit: contain;
}

/* Slides stay 100% wide so the carousel shows ONE photo. Size the image inside. */
.sancando-drinkware-gallery .product-media-container,
.sancando-hats-gallery .product-media-container,
.sancando-apparel-gallery .product-media-container,
.sancando-journals-gallery .product-media-container {
  --slide-width: 100%;
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  overflow: hidden;
  --product-media-fit: contain;
}

/* Drinkware: full product in frame. Cap to viewport so lid/base stay visible. */
.sancando-drinkware-gallery .product-media,
.product-media--drinkware {
  height: auto;
  max-height: min(var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 3.5rem));
  width: auto;
  max-width: min(100%, var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 3.5rem));
  margin-inline: auto;
  aspect-ratio: var(--ratio, var(--media-preview-ratio, auto));
  --product-media-fit: contain;
  overflow: hidden;
  transform: none;
}

.sancando-drinkware-gallery .product-media-container.constrain-height {
  --constrained-min-height: 0px;
  --viewport-offset: calc(var(--header-group-height, var(--header-height, 96px)) + 3.5rem);
  --constrained-height: min(var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 3.5rem));
  max-height: min(var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 3.5rem));
  height: auto;
}

/* Hats: cropped fronts already fill the square. No scale. Stay below the header.
   Mobile: never set fixed height + independent max-height — that made the frame
   portrait (~380×533) and stretched every % leatherette plate. Keep 1:1 via
   width + aspect-ratio; let max-height shrink width too. */
.sancando-hats-gallery .product-media,
.product-media--hats {
  width: min(100%, var(--sancando-hat-media));
  height: auto;
  max-width: min(100%, var(--sancando-hat-media));
  max-height: min(var(--sancando-hat-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 7rem));
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  --product-media-fit: contain;
  overflow: hidden;
}

.sancando-hats-gallery .product-media-container.constrain-height {
  max-height: min(var(--sancando-hat-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 7rem));
  height: auto;
}

}


.sancando-drinkware-gallery .product-media,
.sancando-hats-gallery .product-media,
.sancando-apparel-gallery .product-media,
.sancando-journals-gallery .product-media,
.product-media--drinkware,
.product-media--hats,
.product-media--apparel,
.product-media--journals {
  position: relative;
}

/* Zoom stays full-viewport; do not apply the PDP hero cap. */
.sancando-drinkware-gallery .dialog-zoomed-gallery .product-media-container,
.sancando-hats-gallery .dialog-zoomed-gallery .product-media-container,
.sancando-apparel-gallery .dialog-zoomed-gallery .product-media-container,
.sancando-journals-gallery .dialog-zoomed-gallery .product-media-container,
.sancando-drinkware-gallery .dialog-zoomed-gallery .product-media,
.sancando-hats-gallery .dialog-zoomed-gallery .product-media,
.sancando-apparel-gallery .dialog-zoomed-gallery .product-media,
.sancando-journals-gallery .dialog-zoomed-gallery .product-media,
.dialog-zoomed-gallery .product-media--drinkware,
.dialog-zoomed-gallery .product-media--hats,
.dialog-zoomed-gallery .product-media--apparel,
.dialog-zoomed-gallery .product-media--journals {
  max-height: none;
  width: 100%;
  flex: 1 1 auto;
}

.sancando-drinkware-gallery .product-media__image,
.sancando-hats-gallery .product-media__image,
.sancando-apparel-gallery .product-media__image,
.sancando-journals-gallery .product-media__image,
.sancando-drinkware-gallery .product-media img:not(.sancando-placeholder-hint__img):not(.sancando-imprint-preview__logo),
.sancando-hats-gallery .product-media img:not(.sancando-placeholder-hint__img):not(.sancando-imprint-preview__logo),
.sancando-apparel-gallery .product-media img:not(.sancando-placeholder-hint__img):not(.sancando-imprint-preview__logo),
.sancando-journals-gallery .product-media img:not(.sancando-placeholder-hint__img):not(.sancando-imprint-preview__logo),
.product-media--drinkware .product-media__image,
.product-media--hats .product-media__image,
.product-media--apparel .product-media__image,
.product-media--journals .product-media__image {
  object-fit: contain !important;
  object-position: center center;
  width: 100%;
  height: 100%;
}

.sancando-drinkware-gallery.media-gallery--hint :not(.dialog-zoomed-gallery) > .product-media-container:not(:only-child) .product-media img,
.sancando-hats-gallery.media-gallery--hint :not(.dialog-zoomed-gallery) > .product-media-container:not(:only-child) .product-media img,
.sancando-apparel-gallery.media-gallery--hint :not(.dialog-zoomed-gallery) > .product-media-container:not(:only-child) .product-media img,
.sancando-journals-gallery.media-gallery--hint :not(.dialog-zoomed-gallery) > .product-media-container:not(:only-child) .product-media img {
  object-fit: contain !important;
}

.sancando-hats-gallery .product-media__image,
.sancando-hats-gallery .product-media img:not(.sancando-placeholder-hint__img):not(.sancando-imprint-preview__logo),
.product-media--hats .product-media__image {
  object-fit: contain !important;
  object-position: center center;
  transform: none;
}

.sancando-placeholder-hint__img,
.sancando-imprint-preview__logo {
  transform: none !important;
}


/* Hats: header-clear on desktop only. On mobile that padding stacks on the
   in-flow sticky header and pushes the hat below the fold ("hat isn't in view"). */
@media screen and (min-width: 750px) {
  .sancando-pdp--hats.product-information,
  .sancando-pdp--hats {
    padding-top: calc(var(--header-group-height, var(--header-height, 96px)) + 1.75rem) !important;
  }
}
@media screen and (max-width: 749px) {
  .sancando-pdp--hats.product-information,
  .sancando-pdp--hats {
    padding-top: 0.35rem !important;
  }
  .sancando-pdp--hats .product-information__media {
    padding-top: 0.25rem;
  }
  /* Let the full square hat show — don't clip the crown with gallery max-height.
     Also: never size hats off --header-group-height on mobile — when that var
     is huge (announcement + sticky + category pills), max-height collapses to
     ~0 and Safari shows a blank white gallery with only dots. */
  .sancando-hats-gallery {
    max-height: none !important;
    overflow: visible;
    width: 100%;
  }
  .sancando-hats-gallery .product-media-container.constrain-height,
  .sancando-hats-gallery .product-media,
  .product-media--hats {
    --sancando-hat-media: 100%;
    --constrained-height: auto;
    --viewport-offset: 0px;
    --constrained-min-height: 0px;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }
  .sancando-hats-gallery .product-media__image,
  .sancando-hats-gallery .product-media img:not(.sancando-placeholder-hint__img):not(.sancando-imprint-preview__logo),
  .product-media--hats .product-media__image {
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: contain !important;
  }
}

.sancando-pdp--hats .product-information__media {
  align-self: start;
  /* visible so Color swatches under the gallery are not clipped.
     Sticky on the gallery is disabled below so swatches cannot scroll over the hat. */
  overflow: visible;
  padding-top: 0.75rem;
}

.sancando-hats-gallery {
  overflow: hidden;
  padding-top: 0;
  max-height: min(var(--sancando-hat-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 6rem));
}

.sancando-hats-gallery .product-media,
.product-media--hats {
  overflow: hidden;
}

/* Drinkware: header-clear on desktop only. On mobile that padding stacks on the
   in-flow header + category circles and leaves a giant white gap above the cup. */
@media screen and (min-width: 750px) {
  .sancando-pdp--drinkware.product-information,
  .sancando-pdp--drinkware {
    padding-top: calc(var(--header-group-height, var(--header-height, 96px)) + 1.75rem) !important;
  }
}
@media screen and (max-width: 749px) {
  .sancando-pdp--drinkware.product-information,
  .sancando-pdp--drinkware {
    padding-top: 0.25rem !important;
  }
  .sancando-pdp--drinkware .product-information__media {
    padding-top: 0;
  }
  .sancando-drinkware-gallery,
  .sancando-drinkware-gallery .product-media,
  .sancando-drinkware-gallery .product-media-container.constrain-height,
  .product-media--drinkware {
    --sancando-media: 420px;
    max-height: min(52vh, 420px);
    max-width: min(100%, 420px);
  }
  .sancando-drinkware-gallery .product-media-container.constrain-height {
    --constrained-height: min(52vh, 420px);
    --viewport-offset: 0px;
  }
}

.sancando-pdp--drinkware .product-information__media {
  align-self: start;
  overflow: hidden;
  padding-top: 0.75rem;
}

.sancando-drinkware-gallery {
  overflow: hidden;
  padding-top: 0;
  max-height: min(var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 2.5rem));
}

.sancando-drinkware-gallery .product-media,
.product-media--drinkware {
  overflow: hidden;
}

.sancando-drinkware-gallery .product-media__image,
.sancando-drinkware-gallery .product-media img:not(.sancando-placeholder-hint__img):not(.sancando-imprint-preview__logo),
.product-media--drinkware .product-media__image {
  object-fit: contain !important;
  object-position: center center;
  transform: none;
}

/* 20oz handled only: 680 box stays 680 / contain / object-position center.
   Media column stays align-self start (do not stretch to the tall form — that
   parks the mug below the fold). On desktop, grow the column to the first
   viewport below the sticky header (section already has header-clear padding)
   and vertically center the 680 gallery so the mug sits mid-viewport, not
   glued to the header with a white void below. No hat 1.55x scale. */

@media screen and (min-width: 750px) {
  .sancando-pdp--drinkware .product-information__grid:not(.product-information--media-none).product-information--media-left {
    grid-template-columns: minmax(0, 1.35fr) min(38vw, 26rem);
  }
}
@media screen and (min-width: 750px) {
  .sancando-pdp--drinkware .product-information__media,
  .sancando-pdp--20oz-handled .product-information__media {
    align-self: start;
    min-height: calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 1.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  }
}

.sancando-pdp--20oz-handled .sancando-drinkware-gallery .product-media,
.sancando-pdp--20oz-handled .product-media--drinkware {
  max-height: min(var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 3.5rem));
}

.sancando-pdp--20oz-handled .sancando-drinkware-gallery .product-media__image,
.sancando-pdp--20oz-handled .product-media--drinkware .product-media__image {
  object-fit: contain !important;
  object-position: center center;
  transform: none;
}





/* 30oz Road Trip: no CSS scale. Scale was clipping straw/base. Full product, contain. */
@media screen and (min-width: 750px) {
  .sancando-pdp--30oz-road-trip {
    --sancando-media: min(920px, calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 3rem));
  }
  .sancando-pdp--30oz-road-trip .product-information__grid:not(.product-information--media-none).product-information--media-left {
    grid-template-columns: minmax(0, 1.5fr) min(36vw, 24rem);
  }
  .sancando-pdp--30oz-road-trip .product-information__media {
    justify-content: flex-start;
    min-height: 0;
    padding-top: 0;
    overflow: visible;
  }
  .sancando-pdp--30oz-road-trip .sancando-drinkware-gallery,
  .sancando-pdp--30oz-road-trip .sancando-drinkware-gallery .product-media-container,
  .sancando-pdp--30oz-road-trip .sancando-drinkware-gallery .product-media,
  .sancando-pdp--30oz-road-trip .product-media--drinkware {
    overflow: visible;
    transform: none;
    max-height: min(var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 3rem));
  }
}
/* Apparel + Journals: same header-clear + one-slide + contain as hats/drinkware. */
.sancando-apparel-gallery .product-media,
.sancando-journals-gallery .product-media,
.product-media--apparel,
.product-media--journals {
  height: auto;
  max-height: min(var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 7rem));
  width: auto;
  max-width: min(100%, var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 7rem));
  margin-inline: auto;
  aspect-ratio: var(--ratio, var(--media-preview-ratio, auto));
  --product-media-fit: contain;
  overflow: hidden;
  transform: none;
}

.sancando-apparel-gallery .product-media-container.constrain-height,
.sancando-journals-gallery .product-media-container.constrain-height {
  --constrained-min-height: 0px;
  --viewport-offset: calc(var(--header-group-height, var(--header-height, 96px)) + 7rem);
  --constrained-height: min(var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 7rem));
  max-height: min(var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 7rem));
  height: auto;
}

.sancando-pdp--apparel.product-information,
.sancando-pdp--apparel,
.sancando-pdp--journals.product-information,
.sancando-pdp--journals {
  padding-top: calc(var(--header-group-height, var(--header-height, 96px)) + 1.75rem) !important;
}

.sancando-pdp--apparel .product-information__media,
.sancando-pdp--journals .product-information__media {
  align-self: start;
  overflow: hidden;
  padding-top: 0.75rem;
}

.sancando-apparel-gallery,
.sancando-journals-gallery {
  overflow: hidden;
  padding-top: 0;
  max-height: min(var(--sancando-media), calc(100vh - var(--header-group-height, var(--header-height, 96px)) - 6rem));
}

.sancando-apparel-gallery .product-media__image,
.sancando-journals-gallery .product-media__image,
.sancando-apparel-gallery .product-media img:not(.sancando-placeholder-hint__img):not(.sancando-imprint-preview__logo),
.sancando-journals-gallery .product-media img:not(.sancando-placeholder-hint__img):not(.sancando-imprint-preview__logo),
.product-media--apparel .product-media__image,
.product-media--journals .product-media__image {
  object-fit: contain !important;
  object-position: center center;
  transform: none;
}

/* Beat Horizon hint peek (90% + next slide). One photo only. */
.sancando-drinkware-gallery.media-gallery--hint :not(.dialog-zoomed-gallery) > .product-media-container:not(:only-child),
.sancando-hats-gallery.media-gallery--hint :not(.dialog-zoomed-gallery) > .product-media-container:not(:only-child),
.sancando-apparel-gallery.media-gallery--hint :not(.dialog-zoomed-gallery) > .product-media-container:not(:only-child),
.sancando-journals-gallery.media-gallery--hint :not(.dialog-zoomed-gallery) > .product-media-container:not(:only-child) {
  --slide-width: 100%;
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}



/* Merchant placement mode (?sancando_place=1). Never shown to customers. */
html[data-sancando-place="1"] .sancando-imprint-preview--place {
  pointer-events: auto;
  cursor: move;
  z-index: 20;
  border: 2px dashed #111;
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0,0,0,.35);
}

.sancando-place-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #111;
  border: 2px solid #fff;
  box-sizing: border-box;
  z-index: 21;
}
.sancando-place-handle--nw { top: -6px; left: -6px; cursor: nwse-resize; }
.sancando-place-handle--ne { top: -6px; right: -6px; cursor: nesw-resize; }
.sancando-place-handle--sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.sancando-place-handle--se { bottom: -6px; right: -6px; cursor: nwse-resize; }

.sancando-place-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 64px;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font: 13px/1.3 system-ui, sans-serif;
  border-radius: 8px;
}
.sancando-place-bar__json { font-family: ui-monospace, monospace; opacity: .9; }
.sancando-place-bar__copy {
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 600;
}
.sancando-place-bar__hint { opacity: .75; }

/* Drinkware live logo: laser Polar silver #b1b1b1 (match typed imprint text).
   Non-keyed (white plate may remain): multiply + mild grayscale lift so a
   leftover white card cannot paint. NEVER invert(1). NEVER screen.
   Keyed alpha plate: contrast(0)+brightness(177/128) flattens opaque RGB to
   exact Polar silver #b1b1b1 / rgb(177,177,177). No drop-shadows on keyed
   silver — fringe + glow became a gray lap. Empty hint: filter:none. */
.sancando-imprint-preview--deep-etch.has-logo .sancando-imprint-preview__logo,
.product-media--drinkware .sancando-imprint-preview.has-logo .sancando-imprint-preview__logo,
.sancando-drinkware-gallery .sancando-imprint-preview.has-logo .sancando-imprint-preview__logo {
  filter:
    grayscale(1)
    contrast(1.25)
    brightness(1.7)
    drop-shadow(0 0.5px 0 rgba(255, 255, 255, 0.7))
    drop-shadow(0 1.2px 0 rgba(177, 177, 177, 0.45))
    drop-shadow(0 2px 1.1px rgba(40, 28, 12, 0.32));
  mix-blend-mode: multiply;
  opacity: 0.94;
}

/* Keyed laser logos: force mark pixels to Polar silver #b1b1b1 (same as
   .sancando-imprint-text__value). Drinkware-scoped so hats customizer is
   untouched. UV rule below wins when deco=uv. */
.sancando-imprint-preview--deep-etch.sancando-logo-keyed.has-logo .sancando-imprint-preview__logo,
.product-media--drinkware .sancando-imprint-preview.sancando-logo-keyed.has-logo .sancando-imprint-preview__logo,
.sancando-drinkware-gallery .sancando-imprint-preview.sancando-logo-keyed.has-logo .sancando-imprint-preview__logo {
  filter:
    grayscale(1)
    contrast(0)
    brightness(1.3828125);
  mix-blend-mode: normal;
  opacity: 1;
}

/* Full Color (UV): real logo, not laser frost. Must beat keyed Polar-silver
   drinkware rules (5 classes) — include drinkware + keyed + sample scopes. */
html[data-sancando-deco="uv"] .sancando-imprint-preview.has-logo .sancando-imprint-preview__logo,
html[data-sancando-deco="uv"] .sancando-imprint-preview.sancando-logo-keyed.has-logo .sancando-imprint-preview__logo,
html[data-sancando-deco="uv"] .sancando-imprint-preview--deep-etch.has-logo .sancando-imprint-preview__logo,
html[data-sancando-deco="uv"] .sancando-imprint-preview--deep-etch.sancando-logo-keyed.has-logo .sancando-imprint-preview__logo,
html[data-sancando-deco="uv"] .product-media--drinkware .sancando-imprint-preview.has-logo .sancando-imprint-preview__logo,
html[data-sancando-deco="uv"] .product-media--drinkware .sancando-imprint-preview.sancando-logo-keyed.has-logo .sancando-imprint-preview__logo,
html[data-sancando-deco="uv"] .sancando-drinkware-gallery .sancando-imprint-preview.has-logo .sancando-imprint-preview__logo,
html[data-sancando-deco="uv"] .sancando-drinkware-gallery .sancando-imprint-preview.sancando-logo-keyed.has-logo .sancando-imprint-preview__logo,
html[data-sancando-deco="uv"] .sancando-imprint-preview--sample.has-logo .sancando-imprint-preview__logo {
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.sancando-placeholder-hint,
.sancando-placeholder-hint__img {
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.sancando-imprint-preview--sample.has-logo .sancando-imprint-preview__logo {
  /* Sample laser logos: same Polar silver #b1b1b1 as keyed customer marks. */
  filter:
    grayscale(1)
    contrast(0)
    brightness(1.3828125);
  mix-blend-mode: normal;
  opacity: 1;
  object-fit: contain;
  background: none !important;
  background-color: transparent !important;
}

/* Knockout succeeded: real alpha plate. Normal blend so light-colored
   marks are not multiplied away. Silver filter lives in drinkware keyed
   rule above; still no screen. */
.sancando-imprint-preview.sancando-logo-keyed.has-logo .sancando-imprint-preview__logo {
  mix-blend-mode: normal;
}


/* Customizing: kill slideshow chrome + Horizon media-zoom so the imprint box can drag. */
html[data-sancando-customizing="1"] slideshow-arrows,
html[data-sancando-customizing="1"] slideshow-arrows .slideshow-control,
html[data-sancando-customizing="1"] slideshow-controls,
html[data-sancando-customizing="1"] .slideshow-control,
html[data-sancando-customizing="1"] slideshow-component[disabled="true"] slideshow-arrows,
html[data-sancando-customizing="1"] .product-media-gallery .slideshow-control,
html[data-sancando-customizing="1"] slideshow-dots,
html[data-sancando-customizing="1"] .slideshow-dots,
html[data-sancando-customizing="1"] .slideshow-controls,
html[data-sancando-customizing="1"] .product-media-container__zoom-button,
html[data-sancando-customizing="1"] zoom-dialog,
html[data-sancando-customizing="1"] .dialog-zoomed-gallery,
html[data-sancando-customizing="1"] .product-media-container--zoomable .product-media__image,
html[data-sancando-customizing="1"] .product-media-gallery .product-media img:not(.sancando-imprint-preview__logo):not(.sancando-placeholder-hint__img) {
  pointer-events: none !important;
}

.sancando-imprint-preview.has-logo,
.sancando-imprint-text.has-text {
  z-index: 30;
  pointer-events: auto !important;
  cursor: move;
}

html[data-sancando-customizing="1"] .sancando-imprint-preview.has-logo,
html[data-sancando-customizing="1"] .sancando-imprint-text.has-text,
html[data-sancando-customizing="1"] .sancando-imprint-preview.has-logo .sancando-box-handle,
html[data-sancando-customizing="1"] .sancando-imprint-text.has-text .sancando-box-handle,
html[data-sancando-customizing="1"] .sancando-imprint-text.has-text .sancando-rotate-handle,
html[data-sancando-customizing="1"] .sancando-imprint-text.has-text .sancando-imprint-text__value,
html[data-sancando-customizing="1"] .sancando-imprint-preview.has-logo .sancando-imprint-preview__inner {
  pointer-events: auto !important;
}

.sancando-imprint-text.has-text .sancando-imprint-text__value,
.sancando-imprint-preview.has-logo .sancando-imprint-preview__inner {
  pointer-events: auto;
  cursor: move;
}


/* 16oz stemless only: static two-line UV caption in the white under the cup. */
.sancando-uv-caption {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.35rem;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  pointer-events: none;
  user-select: none;
}
.sancando-uv-caption span {
  display: block;
}

html[data-sancando-deco="uv"] .sancando-pdp--16oz-stemless .sancando-gallery--16oz-stemless {
  position: relative;
}
html[data-sancando-deco="uv"] .sancando-pdp--16oz-stemless .sancando-uv-caption {
  display: block;
}
html[data-sancando-deco="uv"] .sancando-pdp--16oz-stemless .sancando-gallery--16oz-stemless slideshow-controls[controls-on-media] {
  bottom: 2.55rem;
}

.media-gallery__grid .sancando-uv-caption,
.dialog-zoomed-gallery .sancando-uv-caption {
  display: none !important;
}

/* sancando-cache 2026-08-16T17:10Z header-bulk-pricing-flames */
.sancando-bulk-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}
.sancando-bulk-title .sancando-bulk-text {
  display: inline-block;
  line-height: 1.2;
}
.sancando-flame {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-block;
  vertical-align: middle;
  overflow: visible;
}
.sancando-flame--left {
  animation: sancando-flame-pulse 1s ease-in-out infinite;
}
.sancando-flame--right {
  animation: sancando-flame-pulse 1s ease-in-out infinite;
  animation-delay: 0.45s;
}
@keyframes sancando-flame-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.28; transform: scale(0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .sancando-flame--left,
  .sancando-flame--right {
    animation: none;
  }
}
@media (max-width: 749px) {
  .sancando-flame {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .sancando-bulk-title {
    gap: 0.3rem;
    white-space: normal;
  }
}


/* Hats layout: Color (variant-picker) sits under the product image (left column).
   Right column keeps title/price + customization + ATC. Hats + apparel via .sancando-pdp--hats / --apparel.

   Horizon's media-gallery.sticky-content pins the hat while the under-media
   swatches keep scrolling in .page-wrapper — with overflow:visible they bleed
   up over the hat image. Disable that sticky so gallery + colors scroll as one
   column. Keep colors under the image; do not move them back to the right. */
.sancando-pdp--hats .product-information__media,
.sancando-pdp--apparel .product-information__media {
  overflow: visible;
  position: relative;
  z-index: 0;
}

.sancando-pdp--hats media-gallery.sticky-content,
.sancando-pdp--hats .sancando-hats-gallery.sticky-content,
.sancando-pdp--apparel media-gallery.sticky-content,
.sancando-pdp--apparel .sancando-apparel-gallery.sticky-content {
  position: relative;
  top: auto;
  z-index: 1;
}

.sancando-pdp--hats .sancando-hats-gallery,
.sancando-pdp--apparel .sancando-apparel-gallery {
  background-color: var(--color-background, #fff);
}

.sancando-hats-under-media {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: min(100%, var(--sancando-hat-media, 680px));
  margin: 1rem auto 0;
  padding-block-start: 0.25rem;
  box-sizing: border-box;
  background-color: var(--color-background, #fff);
}

.sancando-hats-under-media variant-picker.variant-picker {
  display: block;
  width: 100%;
}

/* Avoid a flash of the giant color wall in the right column before the mover runs.
   Hats + apparel: whole picker moves under gallery (Cap 112 pattern). */
.sancando-pdp--hats:not(.sancando-hats-colors-placed) .product-details variant-picker,
.sancando-pdp--apparel:not(.sancando-hats-colors-placed) .product-details variant-picker {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media screen and (max-width: 749px) {
  .sancando-hats-under-media {
    max-width: 100%;
    margin-top: 0.75rem;
    padding-inline: 0;
  }
}


/* ===== Hats compact color chips mock (Cap 112 design review) =====
   Hats-only via .sancando-pdp--hats / .sancando-hats-under-media.
   Keeps Horizon variant-picker inputs; restyles Color fieldset only.
   Size fieldset stays default Horizon buttons.
   Always-expanded full chip grid (no toggle/collapse, no max-height /
   inner scroll); non-interactive selected-color label; muted initials. */
.sancando-hats-under-media .sancando-hats-color-fieldset {
  position: relative;
  border: 0;
  margin: 0;
  padding: 0.15rem 0.1rem 0.35rem;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.4rem, 1fr));
  gap: 0.55rem 0.5rem;
  align-items: start;
  max-height: none;
  overflow: visible;
}

.sancando-hats-under-media .sancando-hats-color-fieldset > legend {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sancando-hats-color-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  grid-column: 1 / -1;
  margin: 0 0 0.35rem;
  padding: 0.35rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: default;
  text-align: left;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
}

.sancando-hats-color-toggle:hover {
  border-color: transparent;
}

.sancando-hats-color-toggle:focus-visible {
  outline: none;
}

.sancando-hats-color-toggle__chip,
.sancando-hats-swatch {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  background: #e8e8e8;
  background-repeat: no-repeat;
  background-size: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.48rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #6b6b6b;
  overflow: hidden;
  text-transform: uppercase;
}

.sancando-hats-color-toggle__chip.is-light,
.sancando-hats-swatch.is-light {
  border-color: rgba(0, 0, 0, 0.3);
}

.sancando-hats-color-toggle__chip.is-fallback,
.sancando-hats-swatch.is-fallback {
  background: #e8e8e8 !important;
  color: #6b6b6b;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
  font-size: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sancando-hats-color-toggle__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sancando-hats-color-toggle__text strong {
  font-weight: 650;
}

.sancando-hats-color-toggle__chev {
  display: none !important;
}

/* Chips always visible — ignore legacy collapse class if present */
.sancando-hats-under-media .sancando-hats-color-fieldset.is-collapsed > label.sancando-hats-chip-label,
.sancando-hats-under-media .sancando-hats-color-fieldset.is-expanded > label.sancando-hats-chip-label,
.sancando-hats-under-media .sancando-hats-color-fieldset > label.sancando-hats-chip-label {
  display: inline-flex !important;
}

.sancando-hats-under-media .sancando-hats-color-fieldset.is-expanded,
.sancando-hats-under-media .sancando-hats-color-fieldset.is-collapsed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.4rem, 1fr));
  gap: 0.55rem 0.5rem;
  align-items: start;
  max-height: none;
  overflow: visible;
  padding: 0.15rem 0.1rem 0.35rem;
}

.sancando-hats-under-media .sancando-hats-color-fieldset > .sancando-hats-color-toggle {
  grid-column: 1 / -1;
  margin-bottom: 0.35rem;
}

.sancando-hats-under-media label.sancando-hats-chip-label {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.4rem !important;
  min-width: 2.4rem !important;
  max-width: 2.4rem !important;
  height: 2.4rem !important;
  min-height: 2.4rem !important;
  max-height: 2.4rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  line-height: 0 !important;
  cursor: pointer;
  flex: 0 0 2.4rem !important;
}

.sancando-hats-under-media label.sancando-hats-chip-label .variant-option__button-label__pill,
.sancando-hats-under-media label.sancando-hats-chip-label .variant-option__button-label__text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  font-size: 0 !important;
  opacity: 0 !important;
}

.sancando-hats-under-media label.sancando-hats-chip-label .sancando-hats-swatch {
  width: 2.05rem;
  height: 2.05rem;
  pointer-events: none;
}

/* Clearer selected ring */
.sancando-hats-under-media label.sancando-hats-chip-label:has(input:checked) .sancando-hats-swatch,
.sancando-hats-under-media label.sancando-hats-chip-label:has(input[data-current-checked="true"]) .sancando-hats-swatch {
  box-shadow:
    0 0 0 2.5px #fff,
    0 0 0 4.5px #111;
}

.sancando-hats-under-media label.sancando-hats-chip-label:focus-within .sancando-hats-swatch {
  box-shadow:
    0 0 0 2.5px #fff,
    0 0 0 4.5px #2563eb;
}

.sancando-hats-under-media label.sancando-hats-chip-label input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}

/* Size stays Horizon text buttons under the color block */
.sancando-hats-under-media fieldset.variant-option:not(.sancando-hats-color-fieldset) {
  margin-top: 0.9rem;
}

@media screen and (max-width: 749px) {
  .sancando-hats-under-media .sancando-hats-color-fieldset,
  .sancando-hats-under-media .sancando-hats-color-fieldset.is-expanded,
  .sancando-hats-under-media .sancando-hats-color-fieldset.is-collapsed {
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(auto-fill, minmax(2.25rem, 1fr));
    gap: 0.5rem 0.45rem;
  }

  .sancando-hats-under-media label.sancando-hats-chip-label {
    width: 2.25rem !important;
    min-width: 2.25rem !important;
    max-width: 2.25rem !important;
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    max-height: 2.25rem !important;
    flex: 0 0 2.25rem !important;
  }

  .sancando-hats-under-media label.sancando-hats-chip-label .sancando-hats-swatch {
    width: 1.9rem;
    height: 1.9rem;
  }
}

@media screen and (min-width: 750px) {
  .sancando-hats-under-media .sancando-hats-color-fieldset,
  .sancando-hats-under-media .sancando-hats-color-fieldset.is-expanded,
  .sancando-hats-under-media .sancando-hats-color-fieldset.is-collapsed {
    max-height: none;
    overflow: visible;
  }
}



/* Hats leatherette: keep corner handles outside imprint box unclipped (Safari). */
html[data-sancando-leatherette="1"] .sancando-hats-gallery .product-media,
html[data-sancando-leatherette="1"] .product-media--hats,
html[data-sancando-customizing="1"] .sancando-hats-gallery .product-media.product-media--hats,
html[data-sancando-leatherette="1"] .sancando-hats-gallery .product-media-container,
html[data-sancando-leatherette="1"] .sancando-hats-gallery {
  overflow: visible !important;
}

/* Hats leatherette patch plate — below logo imprint box. */
.sancando-leatherette-plate {
  position: absolute;
  z-index: 2;
  /* Never steal drag — events go to imprint box / handles only. */
  pointer-events: none !important;
  box-sizing: border-box;
  background-color: #c4a070;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.28), inset 0 0 0 1px rgba(60,35,12,.22);
}
.sancando-leatherette-plate[data-shape="rounded-rect"] {
  border-radius: 22%;
}
.sancando-leatherette-plate[data-shape="rectangle"] {
  border-radius: 8%;
}
.sancando-leatherette-plate[data-shape="square"] {
  border-radius: 12%;
}
.sancando-leatherette-plate[data-shape="round"] {
  border-radius: 50%;
}
.sancando-leatherette-plate[data-shape="oval"] {
  border-radius: 50%;
}
.sancando-leatherette-plate[data-shape="hex"] {
  border-radius: 0;
  clip-path: polygon(50% 4%, 94% 27%, 94% 73%, 50% 96%, 6% 73%, 6% 27%);
}
.sancando-leatherette-plate[data-shape="capsule"] {
  border-radius: 999px;
}
slideshow-slide[hidden] .sancando-leatherette-plate,
.media-gallery__grid .sancando-leatherette-plate,
.dialog-zoomed-gallery .sancando-leatherette-plate {
  display: none !important;
}

/* Collection mobile: sticky header is already in-flow — do NOT add header-height
   padding (that shoved HATS + the hat card below the fold). Compress the heading
   section so title + Cap 112 card fit on the first screen. */
@media screen and (max-width: 749px) {
  #MainContent > .shopify-section:first-child {
    padding-top: 0.35rem !important;
    padding-bottom: 0.25rem !important;
  }
  #MainContent > .shopify-section:first-child .section,
  #MainContent > .shopify-section:first-child .spacing-style {
    padding-block-start: 0.35rem !important;
    padding-block-end: 0.35rem !important;
  }
  #MainContent > .shopify-section:first-child h1,
  #MainContent > .shopify-section:first-child .h2 {
    margin: 0 !important;
    line-height: 1.1 !important;
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }
  /* Vendor/brand circle row (if present between header and products) — keep compact */
  #MainContent > .shopify-section:nth-child(2) {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }
  /* Full hat in collection cards */
  .product-grid product-card img,
  .product-grid .product-card img,
  .main-collection-grid product-card img,
  .main-collection-grid .product-card img,
  .product-grid .card-gallery img,
  .main-collection-grid .card-gallery img {
    object-fit: contain !important;
    object-position: center center;
  }
  /* Main collection grid — less top gap so hat card enters first screen */
  #MainContent .shopify-section:has(.main-collection-grid),
  #MainContent .shopify-section:has(collection-component) {
    padding-top: 0 !important;
  }
}



/* Apparel / fabric Shopify swatches inside Cap 112–style chip labels */
.sancando-hats-under-media label.sancando-hats-chip-label .swatch,
.sancando-hats-under-media label.sancando-hats-chip-label .sancando-hats-swatch.swatch {
  width: 2.05rem !important;
  height: 2.05rem !important;
  min-width: 2.05rem !important;
  min-height: 2.05rem !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: block !important;
  pointer-events: none;
}
.sancando-hats-under-media label.sancando-hats-chip-label .swatch img,
.sancando-hats-under-media label.sancando-hats-chip-label .swatch__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* Gift-set: view group photo while customizing (keep logo/text state) */
.sancando-set-view-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0.5rem 0 0.65rem;
}
.sancando-set-view-toggle[hidden] {
  display: none !important;
}
.sancando-set-view-toggle__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.sancando-set-view-toggle__btn:hover {
  border-color: rgba(0, 0, 0, 0.4);
  background: #f7f7f7;
}
.sancando-set-view-toggle__btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.sancando-set-view-toggle__btn[hidden] {
  display: none !important;
}

/* Gift-set same-art caveat under customization header */
.sancando-gift-set-caveat {
  margin: 0.45rem 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f6f4ef;
  color: #222;
  font-size: 0.875rem;
  line-height: 1.35;
}
.sancando-gift-set-caveat a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* Hats collection grid: uniform card media (collection pages).
   Prefer .collection-wrapper--hats so drinkware/apparel grids stay untouched.
   Also duplicated in snippets/collection-wrapper-styles.liquid because this file
   is typically PDP-only via product-information-content. */
.collection-wrapper--hats .card-gallery {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: #fff;
  --gallery-aspect-ratio: 1;
}
.collection-wrapper--hats .card-gallery slideshow-component,
.collection-wrapper--hats .card-gallery slideshow-container,
.collection-wrapper--hats .card-gallery slideshow-slides,
.collection-wrapper--hats .card-gallery slideshow-slide.product-media-container,
.collection-wrapper--hats .card-gallery .product-media {
  width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
}
.collection-wrapper--hats .card-gallery .product-media,
.collection-wrapper--hats .card-gallery .product-media--hats {
  --product-media-fit: contain;
  --ratio: 1;
}
.collection-wrapper--hats .card-gallery .product-media__image,
.collection-wrapper--hats .card-gallery img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center;
  transform: scale(1.14);
  transform-origin: center center;
}

/* Jefe 2026-09-18: apparel uploads keep original colors — bg strip only, never gray/silver. */
.product-media--apparel .sancando-imprint-preview.has-logo .sancando-imprint-preview__logo,
.sancando-apparel-gallery .sancando-imprint-preview.has-logo .sancando-imprint-preview__logo,
.product-media--apparel .sancando-imprint-preview.sancando-logo-keyed.has-logo .sancando-imprint-preview__logo,
.sancando-apparel-gallery .sancando-imprint-preview.sancando-logo-keyed.has-logo .sancando-imprint-preview__logo,
html[data-sancando-deco="laser"] .product-media--apparel .sancando-imprint-preview.has-logo .sancando-imprint-preview__logo,
html[data-sancando-deco="laser"] .sancando-apparel-gallery .sancando-imprint-preview.has-logo .sancando-imprint-preview__logo {
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}
