/* =========================================
   SlimKozijn SHOP FILTER SYSTEM STYLES
   Mobile-first, accessible filter UI
   ========================================= */

/* =========================================
   TYPOGRAPHY SCALE (imported from main.css)
   Using CSS variables for consistent sizing
   ========================================= */
/* 
  These values inherit from main.css:
  --text-xs: 0.75rem    (12px) - labels, badges, captions
  --text-sm: 0.875rem   (14px) - small text, metadata, buttons
  --text-base: 1rem     (16px) - body text, default
  --text-lg: 1.125rem   (18px) - lead text, emphasis
  --text-xl: 1.25rem    (20px) - section titles, card titles
  --text-2xl: 1.5rem    (24px) - large headings
*/

/* =========================================
   SHARED UTILITIES
   ========================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   FILTER CHIPS - Professional E-commerce Style
   Inspired by Amazon, Coolblue, Zalando
   ========================================= */

.filter-chips-container {
  margin-bottom: var(--space-md);
  padding: 0 var(--space-sm);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--card) 0%, color-mix(in srgb, var(--soft) 60%, var(--card)) 100%);
  border: 1px solid var(--stroke);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.filter-chip::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: linear-gradient(135deg, var(--cta) 0%, color-mix(in srgb, var(--cta) 80%, var(--link)) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.filter-chip:hover {
  background: var(--card);
  border-color: var(--cta);
  color: var(--cta);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--cta) 15%, transparent);
}

.filter-chip:active {
  transform: scale(0.97);
}

.filter-chip:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.filter-chip__label {
  position: relative;
  z-index: var(--z-base);
}

.filter-chip svg {
  position: relative;
  z-index: var(--z-base);
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.filter-chip:hover svg {
  opacity: 1;
  color: var(--cta);
  transform: scale(1.1);
}

.filter-chip--clear {
  background: transparent;
  border-color: transparent;
  color: var(--cta);
  font-weight: 700;
  font-size: var(--text-xs);
  white-space: nowrap;
  box-shadow: none;
  padding: 8px 12px;
}

.filter-chip--clear:hover {
  background: color-mix(in srgb, var(--cta) 12%, transparent);
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.filter-chip--clear svg {
  opacity: 0.7;
}

/* =========================================
   FILTER GROUP STYLES - Professional Design
   Inspired by Amazon/Coolblue sidebars
   ========================================= */

.filter-group {
  border-bottom: 1px solid color-mix(in srgb, var(--stroke) 60%, transparent);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-sm) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  min-height: 48px;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: var(--radius-sm);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.filter-group__header:hover {
  background: color-mix(in srgb, var(--soft) 50%, transparent);
}

.filter-group__header:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.filter-group__title {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--heading);
  letter-spacing: -0.01em;
}

.filter-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: color-mix(in srgb, var(--cta) 12%, transparent);
  color: var(--cta);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

.filter-group__icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.filter-group__header[aria-expanded="false"] .filter-group__icon {
  transform: rotate(-90deg);
}

.filter-group__header[aria-expanded="true"] .filter-group__icon {
  transform: rotate(0deg);
}

.filter-group__content {
  padding-top: var(--space-sm);
  animation: filterGroupExpand 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes filterGroupExpand {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   FILTER OPTIONS (Checkboxes/Radios)
   Professional checkbox styling like major retailers
   ========================================= */

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
  user-select: none;
  position: relative;
}

.filter-option:hover {
  background: color-mix(in srgb, var(--soft) 70%, transparent);
}

.filter-option:active {
  background: var(--soft);
}

.filter-option--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.filter-option--disabled:hover {
  background: transparent;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-option__checkmark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid var(--stroke-strong);
  border-radius: 6px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
}

.filter-option:hover .filter-option__checkmark {
  border-color: var(--cta);
}

.filter-option input[type="radio"] + .filter-option__checkmark {
  border-radius: 50%;
}

.filter-option input:checked + .filter-option__checkmark {
  background: var(--cta);
  border-color: var(--cta);
  transform: scale(1);
  animation: checkmarkPop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkmarkPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.filter-option input:checked + .filter-option__checkmark::after {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: checkIconFade 0.2s ease;
}

@keyframes checkIconFade {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.filter-option input[type="radio"]:checked + .filter-option__checkmark::after {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

.filter-option input:focus-visible + .filter-option__checkmark {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cta) 20%, transparent);
}

.filter-option__label {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.filter-option:hover .filter-option__label {
  color: var(--heading);
}

.filter-option input:checked ~ .filter-option__label {
  color: var(--heading);
  font-weight: 500;
}

.filter-option__count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--soft);
  padding: 3px 10px;
  border-radius: 12px;
  min-width: 30px;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-option:hover .filter-option__count {
  background: color-mix(in srgb, var(--cta) 10%, var(--soft));
  color: var(--cta);
}

/* =========================================
   COLOR SWATCHES - Professional Design
   Inspired by fashion/furniture e-commerce
   ========================================= */

.filter-swatches {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-swatches--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: var(--space-sm);
}

.filter-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--space-sm);
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
}

.filter-swatch:hover {
  background: color-mix(in srgb, var(--soft) 70%, transparent);
  transform: translateY(-2px);
}

.filter-swatch--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.filter-swatch--disabled:hover {
  background: transparent;
  transform: none;
}

.filter-swatch__color {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
}

.filter-swatch:hover .filter-swatch__color {
  border-color: var(--cta);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.3);
}

.filter-swatch--selected .filter-swatch__color {
  border-color: var(--cta);
  border-width: 3px;
  transform: scale(1.1);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--cta) 30%, transparent), inset 0 1px 0 rgba(255,255,255,0.3);
}

.filter-swatch__color svg {
  filter: drop-shadow(0 1px 2px color-mix(in oklab, var(--heading) 30%, transparent));
}

.filter-swatch__label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-swatch__count {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Mobile: Show labels in row */
@media (max-width: 1024px) {
  .filter-swatches:not(.filter-swatches--grid) .filter-swatch {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-md);
    padding: 10px 12px;
    margin: 0 -12px;
    min-height: 52px;
  }

  .filter-swatches:not(.filter-swatches--grid) .filter-swatch__color {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .filter-swatches:not(.filter-swatches--grid) .filter-swatch__label {
    flex: 1;
    text-align: left;
    font-size: var(--text-sm);
    color: var(--text-primary);
  }

  .filter-swatches:not(.filter-swatches--grid) .filter-swatch__count {
    font-size: var(--text-xs);
    background: var(--soft);
    padding: 2px 8px;
    border-radius: 10px;
  }
}

/* Desktop grid swatches */
.filter-swatches--grid .filter-swatch__label,
.filter-swatches--grid .filter-swatch__count {
  display: none;
}

/* =========================================
   ACCORDION (More filters)
   ========================================= */

.filter-accordion {
  margin-top: var(--space-md);
  border-top: 1px solid var(--stroke);
  padding-top: var(--space-md);
}

.filter-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md);
  background: var(--soft);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: opacity var(--t-fast), transform var(--t-fast), color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 52px;
}

.filter-accordion__trigger:hover {
  background: var(--card);
  border-color: var(--stroke-strong);
}

.filter-accordion__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filter-accordion__trigger svg {
  transition: transform var(--t-fast);
  color: var(--text-secondary);
}

.filter-accordion__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.filter-accordion__content {
  padding-top: var(--space-lg);
}

/* =========================================
   MOBILE BOTTOM SHEET - iOS/Android Style
   Professional modal UX patterns
   ========================================= */

/* Overlay */
.filter-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-banner);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.filter-overlay--visible {
  opacity: 1;
  visibility: visible;
}

/* Bottom Sheet */
.filter-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92vh;
  height: 92dvh;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  z-index: var(--z-banner);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
}

.filter-sheet--open {
  transform: translateY(0);
}

/* Drag handle indicator */
.filter-sheet::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  background: var(--stroke-strong);
  border-radius: 3px;
  opacity: 0.5;
}

/* Header */
.filter-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: var(--z-base);
}

.filter-sheet__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--heading);
  margin: 0;
  letter-spacing: -0.02em;
}

.filter-sheet__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-sheet__close:hover {
  background: var(--stroke);
  color: var(--heading);
}

.filter-sheet__close:active {
  transform: scale(0.92);
}

.filter-sheet__close:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

/* Body */
.filter-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Footer */
.filter-sheet__footer {
  display: flex;
  gap: var(--space-md);
  padding: 16px 20px;
  /* Extra padding to clear chat widget icon (approx 70px) + safe area */
  padding-bottom: calc(20px + 70px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--stroke);
  background: var(--bg);
  margin-top: auto;
  flex-shrink: 0;
}

.filter-sheet__reset {
  padding: 14px 20px;
  background: transparent;
  border: 2px solid var(--stroke);
  border-radius: var(--radius-lg);
  font: inherit;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.filter-sheet__reset:hover {
  background: var(--soft);
  border-color: var(--stroke-strong);
  color: var(--heading);
}

.filter-sheet__reset:active {
  transform: scale(0.97);
}

.filter-sheet__apply {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--radius-lg);
  background: var(--cta);
  color: var(--cta-text, #fff);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--cta) 30%, transparent);
}

.filter-sheet__apply:hover {
  background: var(--cta-hover, color-mix(in srgb, var(--cta) 90%, black));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--cta) 40%, transparent);
}

.filter-sheet__apply:active {
  transform: scale(0.98);
}

.filter-sheet__apply-count {
  opacity: 0.85;
  font-weight: 600;
}

/* Body scroll lock */
body.filter-sheet-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* =========================================
   2026 MOBILE SORT MODAL
   iOS/Android style selection modal
   ========================================= */

.sort-modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-nav);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.sort-modal-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.sort-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  z-index: var(--z-nav-above);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Drag handle */
.sort-modal::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  background: var(--stroke-strong);
  border-radius: 3px;
  opacity: 0.5;
}

.sort-modal--open {
  transform: translateY(0);
}

.sort-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--stroke);
  flex-shrink: 0;
}

.sort-modal__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--heading);
  margin: 0;
  letter-spacing: -0.02em;
}

.sort-modal__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.sort-modal__close:hover {
  background: var(--stroke);
  color: var(--heading);
}

.sort-modal__close:active {
  transform: scale(0.92);
}

.sort-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  min-height: 56px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.sort-option::before {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--stroke) 50%, transparent);
}

.sort-option:last-child::before {
  display: none;
}

.sort-option:hover,
.sort-option:active {
  background: var(--soft);
}

.sort-option--active {
  color: var(--cta);
  font-weight: 700;
  background: color-mix(in srgb, var(--cta) 6%, transparent);
}

.sort-option__check {
  width: 24px;
  height: 24px;
  color: var(--cta);
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.8);
}

.sort-option--active .sort-option__check {
  opacity: 1;
  transform: scale(1);
}

/* Mobile sort trigger button */
.mobile-sort-trigger {
  display: none;
}

@media (max-width: 640px) {
  .shop-toolbar__sort select {
    display: none;
  }
  
  .mobile-sort-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    min-height: 42px;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  
  .mobile-sort-trigger:hover {
    border-color: var(--cta);
    color: var(--cta);
  }
  
  .mobile-sort-trigger:active {
    background: var(--soft);
    transform: scale(0.98);
  }
  
  .mobile-sort-trigger svg {
    width: 18px;
    height: 18px;
    color: var(--cta);
  }
  
  .shop-toolbar__sort label {
    display: none;
  }
}

/* =========================================
   ENHANCED FILTER SHEET DRAG HANDLE
   ========================================= */

.filter-sheet__drag-handle {
  width: 40px;
  height: 4px;
  background: var(--stroke-strong);
  border-radius: 2px;
  margin: 0 auto var(--space-sm);
  position: absolute;
  top: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
}

/* Filter sheet swipe indicator */
.filter-sheet::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--stroke-strong);
  border-radius: 2px;
}

/* =========================================
   IMPROVED MOBILE FILTER OPTIONS
   ========================================= */

@media (max-width: 1024px) {
  /* Smaller touch targets */
  .filter-option {
    min-height: 44px;
    padding: var(--space-xs) var(--space-md);
    margin: 0 calc(-1 * var(--space-md));
  }
  
  .filter-option__checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }
  
  .filter-option__label {
    font-size: var(--text-sm);
  }
  
  /* Filter group improvements */
  .filter-group {
    padding: var(--space-xs) 0;
    margin-bottom: 0;
  }
  
  .filter-group__header {
    min-height: 40px;
    padding: var(--space-xs) 0;
  }
  
  .filter-group__title {
    font-size: var(--text-sm);
    font-weight: 600;
  }
  
  /* Price range mobile styling */
  .price-range {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .price-range__inputs {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
  }
  
  .price-range input {
    min-height: 40px;
    padding: var(--space-sm);
    font-size: var(--text-sm);
  }
  
  .price-range__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--soft);
    border-radius: 3px;
    margin: var(--space-md) 0;
  }
  
  .price-range__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--focus);
  }
}

/* =========================================
   FILTER CHIPS MOBILE SCROLL
   ========================================= */

@media (max-width: 1024px) {
  .filter-chips-container {
    margin: var(--space-xs) auto var(--space-xs);
    padding: 0 var(--space-md);
    max-width: 100%;
    text-align: center;
  }
  
  .filter-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0;
  }
  
  .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 36px;
    padding: 8px 14px;
    font-size: var(--text-xs);
    font-weight: 500;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 100px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity var(--t-fast), transform var(--t-fast), color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  }
  
  .filter-chip:active {
    transform: scale(0.96);
  }
  
  .filter-chip__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
  }
  
  .filter-chip svg {
    flex-shrink: 0;
    opacity: 0.5;
  }
  
  .filter-chip--clear {
    flex-shrink: 0;
    font-size: var(--text-xs);
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--accent);
    font-weight: 600;
    padding: 8px 12px;
    min-height: 36px;
  }
  
  .filter-chip--clear:active {
    opacity: 0.7;
  }
}

/* =========================================
   DESKTOP SIDEBAR STYLES
   Professional filter panel like Coolblue/Amazon
   ========================================= */

@media (min-width: 1025px) {
  .filter-sheet,
  .filter-overlay {
    display: none !important;
  }

  .shop-filters {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 0;
    position: sticky;
    top: calc(var(--header-height, 80px) + var(--space-md));
    max-height: calc(100vh - var(--header-height, 80px) - var(--space-xl));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }

  .shop-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--stroke);
    background: linear-gradient(180deg, var(--card) 0%, color-mix(in srgb, var(--soft) 30%, var(--card)) 100%);
    flex-shrink: 0;
  }

  .shop-filters__title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--heading);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    letter-spacing: -0.02em;
  }

  .shop-filters__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: linear-gradient(135deg, var(--cta) 0%, color-mix(in srgb, var(--cta) 80%, var(--link)) 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--cta) 30%, transparent);
  }

  .shop-filters__clear {
    font-size: var(--text-sm);
    color: var(--cta);
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .shop-filters__clear:hover {
    background: color-mix(in srgb, var(--cta) 10%, transparent);
    color: var(--cta-hover, color-mix(in srgb, var(--cta) 80%, black));
  }
  
  .shop-filters__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) var(--space-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--stroke) transparent;
  }
  
  .shop-filters__body::-webkit-scrollbar {
    width: 6px;
  }
  
  .shop-filters__body::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .shop-filters__body::-webkit-scrollbar-thumb {
    background: var(--stroke);
    border-radius: 3px;
  }
  
  .shop-filters__body::-webkit-scrollbar-thumb:hover {
    background: var(--stroke-strong);
  }

  /* Desktop filter options - smaller touch targets ok */
  .filter-option {
    min-height: 40px;
    padding: 10px 12px;
    margin: 0 -12px;
  }

  .filter-swatch__color {
    width: 36px;
    height: 36px;
  }
}

/* =========================================
   MOBILE FILTER TOGGLE
   Professional tap button styling
   ========================================= */

.mobile-filter-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .shop-filters {
    display: none !important;
  }

  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    font: inherit;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text);
    cursor: pointer;
    min-height: 42px;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    -webkit-tap-highlight-color: transparent;
  }
  
  .mobile-filter-toggle:hover {
    border-color: var(--cta);
    color: var(--cta);
  }
  
  .mobile-filter-toggle:active {
    background: var(--soft);
    transform: scale(0.98);
  }

  .mobile-filter-toggle:focus-visible {
    outline: 2px solid var(--cta);
    outline-offset: 2px;
  }

  .mobile-filter-toggle svg {
    color: var(--cta);
    width: 18px;
    height: 18px;
  }

  .mobile-filter-toggle__count {
    background: linear-gradient(135deg, var(--cta) 0%, color-mix(in srgb, var(--cta) 80%, var(--link)) 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 2px;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--cta) 30%, transparent);
  }
}

/* Mobile filter toggle styling on smaller screens */
@media (max-width: 768px) {
  /* Keep filter toggle visible on mobile - it's needed for accessing filters */
  .mobile-filter-toggle {
    font-size: var(--text-sm);
  }

  .filter-chips-container {
    margin-top: 0;
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    position: relative;
    z-index: var(--z-base);
  }
  
  .filter-chips {
    gap: 8px;
  }
}

/* =========================================
   PRODUCTS EMPTY STATE
   Professional no-results messaging
   ========================================= */

.products-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(180deg, var(--card) 0%, color-mix(in srgb, var(--soft) 50%, var(--card)) 100%);
  border: 2px dashed var(--stroke);
  border-radius: var(--radius-lg);
}

.products-empty__icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--soft) 0%, color-mix(in srgb, var(--cta) 8%, var(--soft)) 100%);
  border-radius: 50%;
  margin-bottom: var(--space-lg);
  color: var(--cta);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--cta) 10%, transparent);
}

.products-empty__icon svg {
  width: 40px;
  height: 40px;
}

.products-empty__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.products-empty__text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 320px;
  line-height: 1.6;
  font-size: var(--text-sm);
}

.products-empty__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cta);
  color: var(--cta-text, #fff);
  border: none;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--cta) 30%, transparent);
}

.products-empty__action:hover {
  background: var(--cta-hover, color-mix(in srgb, var(--cta) 90%, black));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--cta) 40%, transparent);
}

.products-empty__action:active {
  transform: scale(0.98);
}

/* =========================================
   PRODUCT CARD ENHANCEMENTS
   ========================================= */

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-sm);
}

.product-card__category {
  font-size: 10px;
  margin-bottom: 4px;
}

.product-card__title {
  font-size: var(--text-sm);
  line-height: 1.3;
  margin-bottom: 4px;
}

.product-card__desc {
  flex: 1;
  font-size: var(--text-xs);
  line-height: 1.4;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__stock {
  margin-bottom: var(--space-xs);
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: var(--space-xs);
}

.product-card__price-original {
  order: 1;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__price-current {
  order: 2;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--heading);
}

/* Sale price highlight when there's a discount */
.product-card__price-original + .product-card__price-current {
  color: var(--error);
}

/* Discount percentage badge */
.product-card__price-discount {
  background: var(--error);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  order: 3;
}

.product-card__price-from {
  order: 4;
  width: 100%;
  margin-top: 2px;
  font-size: var(--text-xs);
}

/* Actions: keep add button + settings icon aligned across the grid */
.product-card__actions {
  display: flex;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-xs);
}

.product-card__actions .btn {
  flex: 1;
  justify-content: center;
  padding: 8px 12px;
  font-size: var(--text-xs);
  min-height: 36px;
}

/* Pivotdeur cards: keep primary CTA aligned with other cards (desktop)
   by reserving the 2nd button slot without showing it. */
.product-card__actions--single .btn--ghost--placeholder {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 640px) {
  /* Compact card layouts for mobile 2-column grid */
  .product-card {
    border-radius: var(--radius-sm);
  }
  
  .product-card__body {
    padding: var(--space-xs);
  }
  
  .product-card__category {
    font-size: 9px;
    margin-bottom: 2px;
  }
  
  .product-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--text-xs);
    line-height: 1.25;
    min-height: calc(2 * 1.25em);
    margin-bottom: var(--space-xs);
  }

  .product-card__desc {
    display: none; /* Hide description on mobile to save space */
  }

  .product-card__price {
    min-height: 28px;
    margin-bottom: var(--space-xs);
  }
  
  .product-card__price-current {
    font-size: var(--text-sm);
  }
  
  .product-card__price-original {
    font-size: var(--text-xs);
  }
  
  .product-card__price-discount {
    font-size: 9px;
    padding: 1px 4px;
  }
  
  .product-card__price-from {
    font-size: 9px;
  }

  .product-card__actions {
    flex-direction: column;
    gap: 4px;
    padding-top: var(--space-xs);
  }

  /* Pivotdeur: keep placeholder visible (but invisible) to reserve same height as 2-button cards */
  .product-card__actions--single .btn--ghost--placeholder {
    visibility: hidden;
    pointer-events: none;
    height: 36px;
    min-height: 36px;
  }

  .product-card__actions .btn {
    height: 36px;
    min-height: 36px;
    padding: 8px 10px;
    font-size: var(--text-xs);
    white-space: nowrap;
  }
  
  .product-card__image {
    aspect-ratio: 1;
  }
  
  .product-card__badge {
    font-size: 8px;
    padding: 2px 6px;
  }
}

.product-card__title a {
  color: var(--dark);
  text-decoration: none;
  text-underline-offset: 3px;
}

.product-card__title a:visited {
  color: var(--dark);
}

.product-card__title a:hover {
  text-decoration: underline;
}

.product-card__title a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Webshop-specific overrides: make product names neutral grey (keep categories accented) */
.is-webshop .product-card__title,
.is-webshop .product-card__title a,
.is-webshop .product-card__title a:visited,
.is-webshop .product-card__title a:hover,
.is-webshop .product-card__price-from,
.is-webshop .product-overview__title {
  color: var(--text-primary);
}

/* Compact webshop card styling */
.is-webshop .product-card__body,
.is-webshop .product-card__content {
  padding: var(--space-sm);
}

.is-webshop .product-card__category {
  font-size: 10px;
  margin-bottom: 4px;
}

.is-webshop .product-card__title {
  font-size: var(--text-sm);
  margin-bottom: 4px;
}

/* Preserve discount styling in webshop - original price muted with strikethrough */
.is-webshop .product-card__price-original {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Sale price stays red when there's a discount */
.is-webshop .product-card__price-original + .product-card__price-current {
  color: var(--error);
}

/* Regular price (no discount) stays neutral */
.is-webshop .product-card__price-current:first-child {
  color: var(--heading);
}

.is-webshop .product-card__title a:hover {
  text-decoration: underline;
}

/* Add to cart animation */
.btn-add-cart {
  position: relative;
  overflow: hidden;
}

.btn-add-cart.added {
  background: var(--success) !important;
  border-color: var(--success) !important;
  pointer-events: none;
}

.btn-add-cart.added::before {
  content: '✓ Toegevoegd';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: inherit;
}

.btn-add-cart.added svg,
.btn-add-cart.added span:not(.btn-add-cart::before) {
  visibility: hidden;
}

/* =========================================
   RESPONSIVE SHOP LAYOUT
   ========================================= */

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
}

@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
    padding: var(--space-xl) 0;
  }
}

/* =========================================
   SORT & TOOLBAR
   ========================================= */

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.shop-toolbar__count {
  color: var(--text-secondary);
  font-size: var(--text-xs);
}

.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.shop-toolbar__sort label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.shop-toolbar__sort select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--text-xs);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a2e35'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E") right 8px center/16px no-repeat;
  cursor: pointer;
  min-height: 36px;
  -webkit-appearance: none;
  appearance: none;
}

.shop-toolbar__sort select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .shop-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    text-align: center;
  }
  
  .shop-toolbar__count {
    font-size: 11px;
  }

  .shop-toolbar__sort {
    margin-left: auto;
  }

  .shop-toolbar__sort select {
    min-height: 32px;
    padding: 6px 28px 6px 10px;
    font-size: 11px;
  }
  
  .shop-toolbar__sort label {
    display: none;
  }
}

/* =========================================
   PRODUCTS GRID
   ========================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   ANIMATION UTILITIES
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  .filter-sheet,
  .filter-overlay,
  .filter-option,
  .filter-swatch,
  .filter-chip,
  .btn-add-cart {
    transition: none;
  }
}

/* =========================================
   2026 WEBSHOP UX ENHANCEMENTS
   Advanced micro-interactions & visual feedback
   ========================================= */

/* Product Card Premium Hover Effects */
.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: 
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--link), var(--cta));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: var(--z-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 24px color-mix(in srgb, var(--heading) 10%, transparent),
    0 4px 8px color-mix(in srgb, var(--cta) 6%, transparent);
  border-color: transparent;
}

.product-card:hover::before {
  opacity: 1;
}

/* Image zoom on hover */
.product-card__image {
  position: relative;
  aspect-ratio: 1;
  background: white;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: white;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

/* Image overlay with quick actions */
.product-card__image-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: linear-gradient(to top, 
    color-mix(in srgb, var(--heading) 60%, transparent) 0%,
    transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-md);
  pointer-events: none;
}

.product-card:hover .product-card__image-overlay {
  opacity: 1;
  pointer-events: auto;
}

.product-card__quick-view {
  padding: 10px 20px;
  background: var(--card);
  border: none;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-card:hover .product-card__quick-view {
  transform: translateY(0);
  opacity: 1;
}

.product-card__quick-view:hover {
  background: var(--cta);
  color: var(--cta-text);
}

.product-card__quick-view svg {
  width: 16px;
  height: 16px;
}

/* Badge improvements */
.product-card__badge {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  z-index: var(--z-base);
  box-shadow: 0 2px 8px color-mix(in srgb, currentColor 30%, transparent);
}

.product-card__badge--sale {
  background: linear-gradient(135deg, var(--error), color-mix(in srgb, var(--error) 80%, var(--cta)));
  color: white;
}

.product-card__badge--new {
  background: linear-gradient(135deg, var(--success), color-mix(in srgb, var(--success) 78%, var(--heading)));
  color: white;
}

.product-card__badge--popular {
  background: linear-gradient(135deg, var(--cta), color-mix(in srgb, var(--cta) 80%, var(--link)));
  color: white;
}

/* Enhanced Add to Cart button */
.btn-add-cart {
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-add-cart::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: color-mix(in srgb, white 20%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn-add-cart:active::after {
  width: 200%;
  height: 200%;
}

.btn-add-cart.adding {
  pointer-events: none;
}

.btn-add-cart.adding svg {
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-add-cart.added {
  background: var(--success) !important;
  border-color: var(--success) !important;
}

@keyframes checkPop {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.btn-add-cart.added .btn-add-cart__check {
  animation: checkPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Product card skeleton loading */
.product-card--skeleton {
  pointer-events: none;
}

.product-card--skeleton .product-card__image,
.product-card--skeleton .product-card__category,
.product-card--skeleton .product-card__title,
.product-card--skeleton .product-card__price,
.product-card--skeleton .product-card__actions .btn {
  background: linear-gradient(90deg, var(--soft) 25%, var(--bg) 50%, var(--soft) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
}

.product-card--skeleton .product-card__image {
  background: linear-gradient(90deg, var(--soft) 25%, color-mix(in srgb, var(--soft) 50%, var(--bg)) 50%, var(--soft) 75%);
  background-size: 200% 100%;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Stock indicator */
.product-card__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  margin-top: var(--space-xs);
}

.product-card__stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.product-card__stock--in-stock .product-card__stock-dot {
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent);
}

.product-card__stock--low-stock .product-card__stock-dot {
  background: var(--warning);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 20%, transparent);
  animation: pulse 2s infinite;
}

.product-card__stock--out-of-stock .product-card__stock-dot {
  background: var(--error);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.product-card__stock-text {
  color: var(--text-muted);
}

.product-card__stock--in-stock .product-card__stock-text {
  color: var(--success);
}

.product-card__stock--low-stock .product-card__stock-text {
  color: var(--warning);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .product-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }
  
  .product-card:hover::before {
    opacity: 0;
  }
  
  .product-card:hover .product-card__image img {
    transform: none;
  }
  
  .product-card__image-overlay,
  .product-card__quick-view {
    display: none;
  }
}

/* Shop Hero trust badges animation */
.shop-hero__badges {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.shop-hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--text);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.shop-hero__badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--heading) 10%, transparent);
  border-color: var(--cta);
}

.shop-hero__badge svg {
  width: 20px;
  height: 20px;
  color: var(--cta);
}

/* Floating cart indicator */
.floating-cart {
  position: fixed;
  bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px) + 70px);
  right: var(--space-lg);
  background: var(--cta);
  color: var(--cta-text);
  padding: 14px;
  border-radius: 50%;
  font-weight: 600;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--cta) 40%, transparent);
  z-index: var(--z-header);
  transform: translateY(100px) scale(0.8);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  pointer-events: none;
}

.floating-cart.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.floating-cart:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--cta) 50%, transparent);
}

.floating-cart:active {
  transform: scale(0.95);
}

.floating-cart svg {
  width: 24px;
  height: 24px;
}

.floating-cart__count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--card);
  color: var(--cta);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .floating-cart {
    right: var(--space-md);
    bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px) + 80px);
    padding: 12px;
  }
  
  .floating-cart svg {
    width: 22px;
    height: 22px;
  }
}

/* Category cards improvements */
.category-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--link) 5%, transparent),
    color-mix(in srgb, var(--cta) 5%, transparent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--heading) 12%, transparent);
  border-color: color-mix(in srgb, var(--cta) 30%, var(--stroke));
}

.category-card:hover::before {
  opacity: 1;
}

.category-card__icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--link) 10%, var(--soft)),
    color-mix(in srgb, var(--cta) 10%, var(--soft)));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover .category-card__icon {
  transform: scale(1.1) rotate(3deg);
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--link) 15%, var(--soft)),
    color-mix(in srgb, var(--cta) 15%, var(--soft)));
}

.category-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--cta);
  transition: transform 0.3s ease;
}

.category-card:hover .category-card__icon svg {
  transform: scale(1.1);
}

.category-card__title {
  position: relative;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--heading);
}

.category-card__count {
  position: relative;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* =========================================
   QUOTE REQUEST MODAL
   ========================================= */

.quote-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.quote-modal__overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.quote-modal__container {
  position: relative;
  background: var(--bg, var(--card));
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: var(--z-base);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.quote-modal.closing .quote-modal__overlay {
  animation: fadeOut 0.3s ease forwards;
}

.quote-modal.closing .quote-modal__container {
  animation: slideDown 0.3s ease forwards;
}

@keyframes fadeOut {
  to { opacity: 0; }
}

@keyframes slideDown {
  to { 
    opacity: 0; 
    transform: translateY(20px); 
  }
}

.quote-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--cta) 5%, var(--surface)),
    var(--surface));
}

.quote-modal__header h2 {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--heading);
}

.quote-modal__close {
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-modal__close:hover {
  background: var(--soft);
  color: var(--heading);
}

.quote-modal__content {
  padding: var(--space-lg);
}

.quote-modal__summary {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.quote-modal__product {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.quote-modal__product-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--soft);
  flex-shrink: 0;
}

.quote-modal__product-info h3 {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-lg);
  color: var(--heading);
}

.quote-modal__product-type {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.quote-modal__product-price {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--cta);
}

.quote-modal__product-detail {
  margin: var(--space-xs) 0 0;
  font-size: var(--text-sm);
  color: var(--text);
}

.quote-modal__form-intro {
  margin: 0 0 var(--space-lg);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.quote-modal__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.quote-modal__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.quote-modal__field--full {
  grid-column: 1 / -1;
}

.quote-modal__field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--heading);
}

.quote-modal__field input,
.quote-modal__field select,
.quote-modal__field textarea {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  background: var(--surface);
  color: var(--text);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-modal__field input:focus,
.quote-modal__field select:focus,
.quote-modal__field textarea:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 20%, transparent);
}

.quote-modal__field input::placeholder,
.quote-modal__field textarea::placeholder {
  color: var(--text-muted);
}

.quote-modal__field textarea {
  resize: vertical;
  min-height: 100px;
}

.quote-modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text);
}

.quote-modal__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cta);
  cursor: pointer;
}

.quote-modal__checkbox a {
  color: var(--link);
  text-decoration: underline;
}

.quote-modal__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.quote-modal__actions .btn {
  min-width: 140px;
}

.quote-modal__actions .btn--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.quote-modal__status {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.quote-modal__status--success {
  background: color-mix(in srgb, #22c55e 10%, var(--surface));
  border: 1px solid #22c55e;
  color: #166534;
}

.quote-modal__status--error {
  background: color-mix(in srgb, var(--error-soft) 10%, var(--surface));
  border: 1px solid var(--error-soft);
  color: #991b1b;
}

.quote-modal__status svg {
  flex-shrink: 0;
}

.quote-modal__status--success svg {
  color: #22c55e;
}

.quote-modal__status--error svg {
  color: var(--error-soft);
}

.quote-modal__status strong {
  display: block;
  margin-bottom: var(--space-xs);
}

.quote-modal__status p {
  margin: 0;
  font-size: var(--text-sm);
}

/* Spinner for loading state */
.quote-modal .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Quote button styling in product cards */
.product-card__actions .btn-request-quote {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card__actions .btn-request-quote:hover {
  background: color-mix(in srgb, var(--cta) 10%, var(--surface));
  border-color: var(--cta);
  color: var(--cta);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .quote-modal {
    padding: var(--space-sm);
  }
  
  .quote-modal__container {
    max-height: 95vh;
  }
  
  .quote-modal__header,
  .quote-modal__content {
    padding: var(--space-md);
  }
  
  .quote-modal__form-grid {
    grid-template-columns: 1fr;
  }
  
  .quote-modal__product {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .quote-modal__product-image {
    width: 80px;
    height: 80px;
  }
  
  .quote-modal__actions {
    flex-direction: column;
  }
  
  .quote-modal__actions .btn {
    width: 100%;
  }
}

/* =========================================
   2026 ENHANCED SHOP/WEBSHOP UX
   Comprehensive Desktop & Mobile Improvements
   ========================================= */

/* ===== IMPROVED PRODUCT GRID LAYOUTS ===== */
.products-grid {
  --grid-min-width: 240px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--grid-min-width), 1fr));
  gap: var(--space-lg);
  padding: var(--space-xs);
}

@media (min-width: 1200px) {
  .products-grid {
    --grid-min-width: 280px;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .products-grid {
    --grid-min-width: 160px;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }
}

/* ===== ENHANCED PRODUCT CARD STYLING ===== */
.product-card {
  --card-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: 
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease;
  height: 100%;
}

/* Gradient border effect on hover */
.product-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--link), var(--cta));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: var(--z-base);
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 
      0 16px 32px color-mix(in srgb, var(--heading) 12%, transparent),
      0 6px 12px color-mix(in srgb, var(--cta) 8%, transparent);
    border-color: transparent;
  }
  
  .product-card:hover::before {
    opacity: 1;
  }
}

/* ===== PRODUCT CARD IMAGE IMPROVEMENTS ===== */
.product-card__image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--stroke);
}

/* Loading placeholder with shimmer animation */
.product-card__image::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.6) 50%, 
    transparent 100%);
  background-size: 200% 100%;
  animation: imageShimmer 1.5s infinite;
  z-index: var(--z-base);
  pointer-events: none;
}

@keyframes imageShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Hide shimmer once image loads */
.product-card__image:has(img.loaded)::before {
  opacity: 0;
  animation: none;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: var(--space-md);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  background: #fff;
  opacity: 0;
}

/* Fade in when loaded */
.product-card__image img.loaded {
  opacity: 1;
}

/* Hide native broken image icon */
.product-card__image img:not([src]),
.product-card__image img[src=""] {
  visibility: hidden;
}

/* Fallback for browsers without :has() - use animation delay */
@supports not selector(:has(*)) {
  .product-card__image img {
    opacity: 1;
  }
  .product-card__image::before {
    animation: imageShimmer 1.5s 3;
  }
}

@media (hover: hover) {
  .product-card:hover .product-card__image img {
    transform: scale(1.06);
  }
}

/* Badge positioning and styling */
.product-card__badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: var(--z-base);
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-card__badge--sale {
  background: linear-gradient(135deg, var(--error-soft), var(--error));
  color: #fff;
}

.product-card__badge--new {
  background: linear-gradient(135deg, var(--success-emphasis), var(--success-dark));
  color: #fff;
}

.product-card__badge--popular {
  background: linear-gradient(135deg, var(--cta), color-mix(in srgb, var(--cta) 80%, var(--heading)));
  color: #fff;
}

/* ===== PRODUCT CARD BODY IMPROVEMENTS ===== */
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-md);
  gap: var(--space-xs);
}

.product-card__category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cta);
  margin-bottom: 2px;
}

.product-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card__title a:hover {
  color: var(--cta);
}

.product-card__desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ===== PRODUCT CARD PRICE SECTION ===== */
.product-card__price-section {
  margin-top: auto;
  padding-top: var(--space-sm);
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs);
}

.product-card__price-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 2px;
}

.product-card__price-current {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
}

.product-card__price-original {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Sale price highlight */
.product-card__price-original + .product-card__price-current {
  color: var(--error);
}

.product-card__price-discount {
  font-size: 9px;
  font-weight: 700;
  background: var(--error);
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 2px;
}

/* ===== PRODUCT CARD ACTIONS ===== */
.product-card__actions {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--stroke);
}

.product-card__actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  min-height: 40px;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card__actions .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Primary action button */
.product-card__actions .btn--cta {
  background: var(--cta);
  color: var(--cta-text, #fff);
  border: none;
}

.product-card__actions .btn--cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

/* Secondary action button */
.product-card__actions .btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--stroke);
}

.product-card__actions .btn--ghost:hover {
  background: var(--soft);
  color: var(--cta);
  border-color: var(--cta);
}

/* ===== MOBILE PRODUCT CARD OPTIMIZATIONS ===== */
@media (max-width: 640px) {
  .product-card {
    --card-radius: var(--radius);
  }
  
  .product-card__image {
    aspect-ratio: 1;
  }
  
  .product-card__image img {
    padding: var(--space-sm);
  }
  
  .product-card__body {
    padding: var(--space-sm);
    gap: 4px;
  }
  
  .product-card__category {
    font-size: 9px;
  }
  
  .product-card__title {
    font-size: var(--text-xs);
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 2.7em;
  }
  
  .product-card__desc {
    display: none;
  }
  
  .product-card__price-current {
    font-size: var(--text-sm);
  }
  
  .product-card__badges {
    top: 6px;
    left: 6px;
  }
  
  .product-card__badge {
    font-size: 8px;
    padding: 3px 5px;
  }
  
  .product-card__actions {
    flex-direction: column;
    gap: 6px;
    padding-top: var(--space-xs);
    border-top: none;
  }
  
  .product-card__actions .btn {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .product-card__body {
    padding: 8px;
  }
  
  .product-card__title {
    font-size: 11px;
  }
  
  .product-card__price-current {
    font-size: 13px;
  }
  
  .product-card__actions .btn {
    min-height: 34px;
    font-size: 10px;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__image img,
  .filter-sheet,
  .sort-modal,
  .filter-chip,
  .btn-add-cart,
  .product-skeleton__image,
  .product-skeleton__line {
    animation: none;
    transition: none;
  }
}

/* Focus visible styles */
.product-card:focus-visible,
.filter-chip:focus-visible,
.filter-option:focus-visible,
.sort-option:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .product-card {
    border-width: 2px;
  }
  
  .product-card__badge {
    border: 1px solid currentColor;
  }
  
  .filter-option__checkmark {
    border-width: 3px;
  }
}
