/** Shopify CDN: Minification failed

Line 484:18 Expected identifier but found whitespace
Line 484:20 Unexpected "{"
Line 484:29 Expected ":"
Line 485:29 Expected identifier but found whitespace
Line 485:31 Unexpected "{"
Line 485:40 Expected ":"
Line 486:25 Expected identifier but found whitespace
Line 486:27 Unexpected "{"
Line 486:36 Expected ":"
Line 487:18 Expected identifier but found whitespace
... and 11 more hidden warnings

**/
/* ============================================
   HOT PRODUCT MOSAIC — Shopify Section Styles
   Inspired by LEGO.com mosaic grid
   ============================================ */

/* ---------- Section Container ---------- */
.hot-mosaic-section {
  background-color: var(--hot-mosaic-bg, #ffffff);
  padding-top: var(--hot-mosaic-pt, 60px);
  padding-bottom: var(--hot-mosaic-pb, 60px);
}

.hot-mosaic-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.hot-mosaic-header {
  text-align: center;
  margin-bottom: 32px;
}

.hot-mosaic-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--hot-mosaic-heading-color, #2C2C2C);
  line-height: 1.2;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.hot-mosaic-subtitle {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  color: #555555;
  margin: 0;
  line-height: 1.5;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Grid Layout ---------- */
.hot-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--hot-mosaic-gap, 16px);
}

/* Card 1 — Hero (large, spans 2 cols & 2 rows) */
.hot-mosaic-card--1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* Cards 2-5 — 1x1 cells */
.hot-mosaic-card--2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.hot-mosaic-card--3 {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.hot-mosaic-card--4 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.hot-mosaic-card--5 {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

/* ---------- Card Styles ---------- */
.hot-mosaic-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.hot-mosaic-card__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.hot-mosaic-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hot-mosaic-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Hover zoom effect */
.hot-mosaic-card:hover .hot-mosaic-card__image {
  transform: scale(1.05);
}

/* Placeholder */
.hot-mosaic-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
}

.hot-mosaic-card__placeholder-svg {
  width: 60%;
  height: auto;
  opacity: 0.4;
}

/* ---------- Hotspot / Add to Cart Button ---------- */
.hot-mosaic-hotspot {
  position: absolute;
  left: var(--hotspot-x, 8%);
  top: var(--hotspot-y, 90%);
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  border: 2.5px solid #ffffff;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    transform 0.25s ease,
    box-shadow 0.35s ease;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.hot-mosaic-hotspot:hover {
  background-color: #ffffff;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

.hot-mosaic-hotspot:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* --- Icon states --- */
.hot-mosaic-hotspot__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* Plus icon — default visible */
.hot-mosaic-hotspot__icon--plus {
  color: #2C2C2C;
  opacity: 1;
  transform: scale(1);
}

.hot-mosaic-hotspot:hover .hot-mosaic-hotspot__icon--plus {
  transform: rotate(90deg);
}

/* Checkmark icon — hidden by default */
.hot-mosaic-hotspot__icon--check {
  color: #ffffff;
  opacity: 0;
  transform: scale(0.3);
}

/* Loading spinner — hidden by default */
.hot-mosaic-hotspot__icon--loading {
  color: var(--hot-mosaic-atc-color, #2196F3);
  opacity: 0;
  transform: scale(0.3);
}

/* ============================================
   BUTTON STATE: LOADING
   ============================================ */
.hot-mosaic-hotspot.is-loading {
  pointer-events: none;
}

.hot-mosaic-hotspot.is-loading .hot-mosaic-hotspot__icon--plus {
  opacity: 0;
  transform: scale(0.3);
}

.hot-mosaic-hotspot.is-loading .hot-mosaic-hotspot__icon--loading {
  opacity: 1;
  transform: scale(1);
  animation: hotMosaicSpin 0.8s linear infinite;
}

@keyframes hotMosaicSpin {
  to { transform: rotate(360deg); }
}

/* ============================================
   BUTTON STATE: ADDED (blue background)
   ============================================ */
.hot-mosaic-hotspot.is-added {
  background-color: var(--hot-mosaic-atc-color, #2196F3);
  border-color: var(--hot-mosaic-atc-color, #2196F3);
  box-shadow:
    0 2px 10px rgba(33, 150, 243, 0.4),
    0 1px 4px rgba(33, 150, 243, 0.2);
  animation: hotMosaicPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hot-mosaic-hotspot.is-added:hover {
  background-color: var(--hot-mosaic-atc-color, #2196F3);
  box-shadow:
    0 4px 16px rgba(33, 150, 243, 0.5),
    0 2px 6px rgba(33, 150, 243, 0.3);
}

.hot-mosaic-hotspot.is-added .hot-mosaic-hotspot__icon--plus {
  opacity: 0;
  transform: scale(0.3);
}

.hot-mosaic-hotspot.is-added .hot-mosaic-hotspot__icon--loading {
  opacity: 0;
  transform: scale(0.3);
}

.hot-mosaic-hotspot.is-added .hot-mosaic-hotspot__icon--check {
  opacity: 1;
  transform: scale(1);
}

@keyframes hotMosaicPop {
  0% { transform: translate(-50%, -50%) scale(0.8); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ============================================
   BUTTON STATE: ERROR (red flash)
   ============================================ */
.hot-mosaic-hotspot.is-error {
  background-color: #ef4444;
  border-color: #ef4444;
  animation: hotMosaicShake 0.4s ease;
}

.hot-mosaic-hotspot.is-error .hot-mosaic-hotspot__icon--plus {
  color: #ffffff;
}

@keyframes hotMosaicShake {
  0%, 100% { transform: translate(-50%, -50%) translateX(0); }
  20% { transform: translate(-50%, -50%) translateX(-4px); }
  40% { transform: translate(-50%, -50%) translateX(4px); }
  60% { transform: translate(-50%, -50%) translateX(-3px); }
  80% { transform: translate(-50%, -50%) translateX(3px); }
}

/* ---------- Product Info Overlay ---------- */
.hot-mosaic-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.hot-mosaic-card:hover .hot-mosaic-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.hot-mosaic-card__product-name {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hot-mosaic-card__product-price {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Grid — Maintain Aspect Ratio ---------- */
.hot-mosaic-card--1 .hot-mosaic-card__image-wrapper {
  aspect-ratio: 1 / 1;
}

.hot-mosaic-card:not(.hot-mosaic-card--1) .hot-mosaic-card__image-wrapper {
  aspect-ratio: 1 / 1;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  .hot-mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .hot-mosaic-card--1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .hot-mosaic-card--1 .hot-mosaic-card__image-wrapper {
    aspect-ratio: 2 / 1;
  }

  .hot-mosaic-card--2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .hot-mosaic-card--3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .hot-mosaic-card--4 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .hot-mosaic-card--5 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .hot-mosaic-title {
    font-size: 1.5rem;
  }

  .hot-mosaic-header {
    margin-bottom: 24px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hot-mosaic-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hot-mosaic-container {
    padding: 0 12px;
  }

  .hot-mosaic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hot-mosaic-card--1 {
    grid-column: 1 / 3;
  }

  .hot-mosaic-card--1 .hot-mosaic-card__image-wrapper {
    aspect-ratio: 4 / 3;
  }

  .hot-mosaic-hotspot {
    width: 30px;
    height: 30px;
  }

  .hot-mosaic-hotspot__icon svg {
    width: 11px;
    height: 11px;
  }

  .hot-mosaic-card__overlay {
    padding: 10px;
  }

  .hot-mosaic-card__product-name {
    font-size: 0.75rem;
  }

  .hot-mosaic-card__product-price {
    font-size: 0.7rem;
  }
}

/* ============================================
   FADE-IN ANIMATION ON SCROLL
   ============================================ */
.hot-mosaic-card {
  opacity: 0;
  transform: translateY(24px);
  animation: hotMosaicFadeIn 0.6s ease forwards;
}

.hot-mosaic-card--1 { animation-delay: 0.05s; }
.hot-mosaic-card--2 { animation-delay: 0.15s; }
.hot-mosaic-card--3 { animation-delay: 0.25s; }
.hot-mosaic-card--4 { animation-delay: 0.35s; }
.hot-mosaic-card--5 { animation-delay: 0.45s; }

@keyframes hotMosaicFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CUSTOM PROPERTIES VIA SECTION SETTINGS
   ============================================ */
.section-hot-mosaic {
  --hot-mosaic-bg: {{ section.settings.bg_color }};
  --hot-mosaic-heading-color: {{ section.settings.heading_color }};
  --hot-mosaic-atc-color: {{ section.settings.atc_color }};
  --hot-mosaic-pt: {{ section.settings.section_padding_top }}px;
  --hot-mosaic-pb: {{ section.settings.section_padding_bottom }}px;
  --hot-mosaic-gap: {{ section.settings.grid_gap }}px;
}
