/** Shopify CDN: Minification failed

Line 103:18 Unexpected "/"
Line 103:57 Expected identifier but found "%"
Line 104:16 Unexpected "/"

**/
/*
 * MyPersonalizedItem — Product card polish (theme-wide)
 * ---------------------------------------------------------------------------
 * Loaded globally from layout/theme.liquid, so it applies to product cards in
 * every context: collection grid, search results, "You may also like"
 * (related products) and featured collections.
 *
 * The store's card theme settings are already square (corner radius 0), with no
 * shadow — so this file does NOT rebuild the card system. It layers a light,
 * brand-consistent polish on top: refined type, tidy spacing, square badges and
 * a subtle image zoom on hover. Fonts come from the global theme font settings
 * (Cormorant Garamond headings / Jost body).
 * ------------------------------------------------------------------------- */

:root {
  --mypi-near-black: #1a1a1a;
  --mypi-tan: #c4a882;
}

/* Crisp square edges everywhere (reinforces the card_corner_radius: 0 setting) */
.card-wrapper .card,
.card-wrapper .card__inner,
.card-wrapper .card__media,
.card-wrapper .media {
  border-radius: 0;
}

/* Media: clip the image so the hover zoom stays inside the square frame */
.card-wrapper .card__media,
.card-wrapper .media {
  overflow: hidden;
}

.card-wrapper .media img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.card-wrapper:hover .media img {
  transform: scale(1.04);
}

/* Content: a little more breathing room above the title/price */
.card__content {
  padding-top: 1.2rem;
}

/* Heading: elegant, tight leading, no underline until hover (Dawn handles hover) */
.card__heading {
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.card__heading a {
  text-decoration: none;
}

/* Price: body font, brand foreground, calm weight */
.card-information .price,
.card__information .price {
  font-family: var(--font-body-family);
  color: rgb(var(--color-foreground));
}

/* Sale / sold-out badges: square, uppercase, understated */
.card__badge .badge {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Quick add / secondary buttons on cards: square edges to match the brand */
.card-wrapper .quick-add__submit.button,
.card-wrapper .quick-add__submit.button--secondary {
  border-radius: 0;
}

/* Colour swatches on cards: square to match the product page */
.mypi-card__dot,
.variant-card__swatches .mypi-card__dot,
.card__colours .card__dot {
  border-radius: 0;
}
/* Mobile: colour dots are 12–14px; give each a taller invisible hit area
   (kept narrow so neighbouring dots don't overlap). */
@media (max-width:768px){
  .mypi-card__colours a.mypi-card__dot{position:relative}
  .mypi-card__colours a.mypi-card__dot::after{content:'';position:absolute;inset:-9px -2px}
}


/* ===== MYPI BF 2026 — product-card Black Friday badge =====
   Burgundy pill, Jost, slide-swapping between "Black Friday" and "25% Off".
   Hides existing card labels/badges so the BF badge stands alone.
   TO REMOVE AFTER BLACK FRIDAY: delete this whole /* MYPI BF 2026 */ block,
   delete snippets/mypi-bf-badge.liquid, and remove its {% render %} calls
   from snippets/mypi-product-card.liquid, snippets/variant-card.liquid,
   and snippets/card-product.liquid.
*/
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@600;700&display=swap');

.mypi-card__img, .card__media { position: relative; }

.mypi-bf-badge {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 4 !important;
  display: inline-block !important;
  width: 108px !important;
  height: 24px !important;
  background: rgb(101, 0, 15) !important;
  color: rgb(255, 255, 255) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.mypi-bf-badge__item {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  color: rgb(255, 255, 255) !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mypi-bf-badge__item--a {
  animation: mypiBfA 5s ease-in-out infinite;
}
.mypi-bf-badge__item--b {
  animation: mypiBfB 5s ease-in-out infinite;
}

/* Second state: white pill with black text (overlays burgundy when visible) */
.mypi-bf-badge__item--b {
  background: rgb(255, 255, 255) !important;
  color: rgb(0, 0, 0) !important;
  border-radius: 0 !important;
}

@keyframes mypiBfA {
  0%, 40%   { opacity: 1; transform: translateY(0); }
  50%, 90%  { opacity: 0; transform: translateY(-100%); }
  100%      { opacity: 1; transform: translateY(0); }
}
@keyframes mypiBfB {
  0%, 40%   { opacity: 0; transform: translateY(100%); }
  50%, 90%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .mypi-bf-badge__item--a,
  .mypi-bf-badge__item--b { animation: none !important; opacity: 1 !important; transform: none !important; }
  .mypi-bf-badge__item--b { display: none !important; }
}

@media (max-width: 640px) {
  .mypi-bf-badge { width: 92px !important; height: 22px !important; top: 8px !important; left: 8px !important; }
  .mypi-bf-badge__item { font-size: 9px !important; }
}

/* Hide the theme's existing product-card labels/badges while the BF badge
   is live, so cards don't look cluttered. */
.mypi-card__labels,
.mypi-card__label,
.card__badge { display: none !important; }
/* ===== end MYPI BF 2026 ===== */
