/** Shopify CDN: Minification failed

Line 44:10 Unexpected "{"
Line 44:19 Expected ":"
Line 49:10 Unexpected "{"
Line 49:19 Expected ":"
Line 53:10 Unexpected "{"
Line 53:19 Expected ":"
Line 57:10 Unexpected "{"
Line 57:19 Expected ":"
Line 61:10 Unexpected "{"
Line 61:19 Expected ":"
... and 42 more hidden warnings

**/
/* SDS Product Grid - Enhanced Swatches CSS */

/* Base product tile styles */
.sds-product-tile {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sds-product-info {
  text-align: center;
  word-break: break-words;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Product image container - Fixed aspect ratio */
.sds-product-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

/* Default square aspect ratio */
#section-{{ section.id }} .sds-product-image-container {
  aspect-ratio: 1 / 1;
}

/* Dynamic aspect ratios based on section settings */
#section-{{ section.id }}[data-image-ratio="square"] .sds-product-image-container {
  aspect-ratio: 1 / 1;
}

#section-{{ section.id }}[data-image-ratio="portrait"] .sds-product-image-container {
  aspect-ratio: 4 / 5;
}

#section-{{ section.id }}[data-image-ratio="portrait_tall"] .sds-product-image-container {
  aspect-ratio: 3 / 4;
}

#section-{{ section.id }}[data-image-ratio="landscape"] .sds-product-image-container {
  aspect-ratio: 5 / 4;
}

#section-{{ section.id }}[data-image-ratio="wide"] .sds-product-image-container {
  aspect-ratio: 3 / 2;
}

.sds-product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sds-product-image-container:hover img {
  transform: scale(1.02);
}

/* Ensure consistent tile heights in grid */
.sds-product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px; /* Minimum height for consistency */
}

/* Product card styling - ensures equal heights */
.sds-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

/* Product image container - Fixed aspect ratio and consistent sizing */
.sds-product-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0; /* Prevents image container from shrinking */
}

/* Force consistent image dimensions across all tiles */
.sds-product-image-container {
  aspect-ratio: 1 / 1; /* Default square */
  height: auto;
}

/* Dynamic aspect ratios based on section settings */
[data-image-ratio="square"] .sds-product-image-container {
  aspect-ratio: 1 / 1;
}

[data-image-ratio="portrait"] .sds-product-image-container {
  aspect-ratio: 4 / 5;
}

[data-image-ratio="portrait_tall"] .sds-product-image-container {
  aspect-ratio: 3 / 4;
}

[data-image-ratio="landscape"] .sds-product-image-container {
  aspect-ratio: 5 / 4;
}

[data-image-ratio="wide"] .sds-product-image-container {
  aspect-ratio: 3 / 2;
}

.sds-product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}

.sds-product-image-container:hover img {
  transform: scale(1.02);
}

/* Product info area - flexible height but consistent structure */
.sds-product-info {
  text-align: center;
  word-break: break-words;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 12px;
  min-height: 120px; /* Minimum content height */
}

/* Force grid equal heights - override theme defaults */
#section-{{ section.id }} .grid {
  display: grid !important;
  align-items: stretch !important;
}

/* #section-{{ section.id }} .grid li {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
} */

#section-{{ section.id }} .sds-product-tile {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

#section-{{ section.id }} .sds-product-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Ensure grid items are equal height */
.grid {
  display: grid;
  align-items: stretch; /* This is crucial for equal heights */
}

/* .grid li {
  display: flex;
  flex-direction: column;
  height: 100%;
} */

/* Force card containers to fill full height */
.card-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-container .sds-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-container .sds-product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Fixed content area heights for consistency */
.sds-product-title {
  min-height: 2.5em; /* Ensures 2 lines minimum for title consistency */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  margin-bottom: 8px;
}

.sds-product-price {
  min-height: 1.5em; /* Consistent price area height */
  margin-top: auto; /* Pushes price to bottom */
  margin-bottom: 8px;
}

.sds-product-options {
  min-height: 40px; /* Consistent swatch area height */
  align-items: flex-start;
  margin-bottom: 8px;
}

/* Reviews area consistent height */
.sds-product-reviews {
  min-height: 24px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Vendor area */
.sds-product-vendor {
  min-height: 1.2em;
  margin-bottom: 4px;
}

/* Quick buy area */
.sds-quick-buy {
  margin-top: auto;
  padding-top: 8px;
}

/* CRITICAL: Force equal heights and perfect alignment */
#section-{{ section.id }} ul.grid {
  display: grid !important;
  grid-template-rows: repeat(auto-fit, 1fr) !important;
  grid-auto-rows: 1fr !important;
  align-items: start !important; /* Changed from stretch to start */
  justify-items: stretch !important;
  gap: var(--grid-gap, 1rem) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force grid items to align perfectly */
#section-{{ section.id }} ul.grid li {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  align-self: start !important; /* Force all items to start at same position */
  justify-self: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

/* Remove any transforms or positioning that might offset cards */
#section-{{ section.id }} .sds-product-tile {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 500px !important;
  max-height: none !important;
  align-items: stretch !important;
  transform: none !important; /* Remove any transforms */
  top: 0 !important; /* Reset any positioning */
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Override any theme scatter effects or transforms */
#section-{{ section.id }} .sds-product-tile.max-lg\\:-translate-y-4,
#section-{{ section.id }} .sds-product-tile.max-lg\\:translate-y-4,
#section-{{ section.id }} .sds-product-tile.lg\\:translate-y-4,
#section-{{ section.id }} .sds-product-tile.lg\\:-translate-y-4 {
  transform: none !important;
}

/* Remove any translate classes that might be causing offset */
#section-{{ section.id }} [class*="translate-y"] {
  transform: none !important;
}

/* Force consistent baseline alignment */
#section-{{ section.id }} .sds-product-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: var(--card-padding-mobile, 16px) !important;
  box-sizing: border-box !important;
}

/* Force consistent image container heights - CRITICAL FOR ALIGNMENT */
#section-{{ section.id }} .sds-product-image-container {
  width: 100% !important;
  /* height: 280px !important; Fixed height for all images */
  overflow: hidden !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important; /* Prevents shrinking */
  position: relative !important;
}

/* Force all images to be exactly the same size */
#section-{{ section.id }} .sds-product-image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

/* Remove aspect ratio for consistent fixed heights */
/* #section-{{ section.id }} .sds-product-image-container {
  aspect-ratio: unset !important;
} */

/* Responsive image heights */
@media (max-width: 640px) {
  #section-{{ section.id }} .sds-product-image-container {
    /* height: 200px !important; */
  }
  
  #section-{{ section.id }} .sds-product-tile {
    min-height: 380px !important;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  #section-{{ section.id }} .sds-product-image-container {
    /* height: 240px !important; */
  }
  
  #section-{{ section.id }} .sds-product-tile {
    min-height: 450px !important;
  }
}

@media (min-width: 1024px) {
  #section-{{ section.id }} .sds-product-image-container {
    /* height: 300px !important; */
  }
  
  #section-{{ section.id }} .sds-product-tile {
    min-height: 550px !important;
  }
}

/* Swatches and options container */
.sds-product-options {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  pointer-events: auto;
  margin-top: 8px;
  margin-bottom: 4px;
}

.sds-color-swatches,
.sds-size-options {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Color swatches - Round circles like reference design */
.sds-color-swatch {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: inline-block;
  border-radius: 50% !important;
}

.sds-color-swatch:hover {
  transform: scale(1.05);
  z-index: 10;
}

.sds-color-swatch:focus {
  outline: none;
  transform: scale(1.05);
  z-index: 10;
}

/* Size options - Small text buttons */
.sds-size-option {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  border-radius: 4px;
  font-size: 11px;
  padding: 4px 8px;
  min-width: 28px;
}

.sds-size-option:hover {
  transform: scale(1.02);
}

.sds-size-option:focus {
  outline: none;
  transform: scale(1.02);
}

/* Swatch tooltips */
.sds-color-swatch[title]:hover::after,
.sds-size-option[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 30;
  pointer-events: none;
  animation: tooltipIn 0.2s ease-in-out;
}

@keyframes tooltipIn {
  from { 
    opacity: 0; 
    transform: translateX(-50%) translateY(2px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(-50%) translateY(0); 
  }
}

/* Price styles */
.sds-product-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.sds-current-price {
  font-weight: inherit;
}

.sds-compare-price {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Reviews section */
.sds-product-reviews {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Vendor styles */
.sds-product-vendor {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Availability status */
.sds-availability {
  font-weight: 500;
  color: #ef4444;
}

/* Badges positioning */
.sds-sale-badge,
.sds-sold-out-badge {
  position: absolute;
  top: 12px;
  z-index: 15;
}

.sds-sale-badge {
  right: 12px;
}

.sds-sold-out-badge {
  left: 12px;
}

/* Link overlay */
.sds-product-tile a {
  z-index: 1;
}

.sds-product-swatches,
.sds-product-swatches button,
.sds-quick-buy {
  z-index: 20;
  position: relative;
}

/* Responsive breakpoints */
@media (max-width: 640px) {
  .sds-product-swatches {
    margin-top: 8px;
  }
  
  .sds-color-swatches,
  .sds-size-swatches {
    gap: 6px;
  }
  
  .sds-sale-badge,
  .sds-sold-out-badge {
    top: 8px;
  }
  
  .sds-sale-badge {
    right: 8px;
  }
  
  .sds-sold-out-badge {
    left: 8px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .sds-color-swatches,
  .sds-size-swatches {
    gap: 8px;
  }
}

@media (min-width: 1024px) {
  .sds-color-swatches,
  .sds-size-swatches {
    gap: 10px;
  }
}

/* Animation states */
.sds-product-tile:hover .sds-product-image-container img:first-child {
  transform: scale(1.02);
}

/* Loading states */
.sds-product-tile[data-loading="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.sds-product-tile[data-loading="true"] .sds-product-swatches {
  filter: grayscale(1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .sds-color-swatch {
    border-width: 3px !important;
  }
  
  .sds-size-swatch {
    border-width: 2px !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .sds-color-swatch,
  .sds-size-swatch,
  .sds-product-image-container img {
    transition: none;
  }
  
  .sds-color-swatch:hover,
  .sds-size-swatch:hover {
    transform: none;
  }
}

/* Focus styles for accessibility */
.sds-color-swatch:focus-visible,
.sds-size-swatch:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Error states */
.sds-product-tile[data-error="true"] .sds-product-swatches {
  opacity: 0.5;
  pointer-events: none;
}

/* More colors indicator */
.sds-more-colors {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 6px;
  align-self: center;
  white-space: nowrap;
}

/* Custom badges */
.sds-sale-badge,
.sds-sold-out-badge,
.sds-new-badge {
  pointer-events: none;
}

.sds-sale-badge div,
.sds-sold-out-badge div,
.sds-new-badge div {
  animation: badgeIn 0.3s ease-out;
}

@keyframes badgeIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Responsive spacing adjustments */
@media (max-width: 640px) {
  .sds-product-options {
    margin-top: 6px;
    margin-bottom: 6px;
  }
  
  .sds-color-swatches,
  .sds-size-options {
    gap: 4px;
  }
  
  .sds-size-option {
    font-size: 10px;
    padding: 3px 6px;
    min-width: 24px;
  }
}

/* Card specific styles */
.card-container .sds-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-container .sds-product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Sold out overlay */
.sds-product-tile[data-sold-out="true"] {
  position: relative;
}

.sds-product-tile[data-sold-out="true"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 5;
  pointer-events: none;
}

/* Special color handling for light colors */
.sds-color-swatch[data-light-color="true"] {
  border-color: #d1d5db !important;
}

.sds-color-swatch[data-light-color="true"]:hover {
  border-color: #9ca3af !important;
}

.sds-color-swatch[data-light-color="true"][aria-selected="true"] {
  border-color: #374151 !important;
}