﻿:root {
  --shop-error: #dc2626;
  --shop-error-bg: #fef2f2;
  --shop-error-border: #fecaca;
  --shop-success: #16a34a;
  --shop-success-bg: #f0fdf4;
  --shop-success-border: #bbf7d0;
  --shop-warning: #d97706;
  --shop-warning-bg: #fffbeb;
  --shop-warning-border: #fde68a;
  --shop-info: #0284c7;
  --shop-info-bg: #f0f9ff;
  --shop-info-border: #bae6fd;
  --shop-accent-text: #111;
  --shop-primary-text: #fff;
  --shop-card-bg: #ffffff;
  --shop-border: color-mix(in srgb, var(--shop-text) 12%, transparent);
  --shop-border-light: color-mix(in srgb, var(--shop-text) 6%, transparent);
  --shop-muted: color-mix(in srgb, var(--shop-text) 60%, transparent);
}

/* Modal dialog - start with reasonable width, JS will adjust */
.pdf-modal-dialog {
  width: 70vw; /* Initial width before PDF loads */
  max-width: 1400px;
  min-width: 500px;
  margin: 1.75rem auto;
  transition: width 0.2s ease-out;
}

/* Modal content wrapper */
.pdf-modal-content {
  width: 100%;
}

/* Container positioning for overlays */
.pdf-viewer-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Scrollable canvas - handles zoom overflow */
.pdf-canvas-container {
  height: 83vh;
  width: 100%;
  overflow: auto;
  position: relative;
  display: block;
  /*justify-content: center;
  align-items: flex-start;*/
  padding: 1rem;
  cursor: grab;
  background: transparent;
  box-sizing: border-box;
}

.pdf-canvas-container:active {
  cursor: grabbing;
}

/* Canvas */
#the-canvas {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  max-width: none;
  flex-shrink: 0;
  display: block;
  margin: 0 auto;
}

/***********************************************************/
/* navigation arrows centered vertically, pinned left/right */
.pdf-nav-left,
.pdf-nav-right {
  position: absolute;
  top: 50%;
  padding: 30px !important;
  z-index: 10;
  color: #333;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pdf-nav-left {
  left: 8px;
}

.pdf-nav-right {
  right: 8px;
}

.pdf-nav-left:hover,
.pdf-nav-right:hover {
  background: rgba(255, 255, 255, 0.95);
  /*transform: translateY(-50%) scale(1.1);*/
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Page indicator when placed in bottom controls */
.pdf-bottom-controls .pdf-page-indicator {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 8px;
}

.pdf-page-indicator {
  color: var(--article-title-text-color);
}

.pdf-bottom-controls .pdf-page-input {
  width: 70px;
  text-align: center;
}

.pdf-page-input {
  width: 70px;
  display: inline-block;
  border-radius: 5px;
  border: none;
  padding: 0px;
  height: 100%;
  background-color: var(--bs-body-bg);
}

/* floating bottom controls centered */
.pdf-bottom-controls {
  position: relative;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: var(--background-article);
  padding: 8px 12px;
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  gap: 8px;
}

.btn-circle {
  background-color: var(--article-buy-button-bgColor);
  color: var(--bs-body-textColor);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  border-color: transparent;
}

.btn-circle.select-mode-active {
  background-color: var(--article-buy-button-hover);
  color: #fff;
}

.btn-circle:hover {
  transform: scale(1.1);
  background-color: #e9ecef;
  color: var(--article-buy-button-hover);
}

.btn-circle:active {
  transform: scale(0.95);
}

/* disabled class used by JS */
.pdf-btnoff {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

#copy-confirmation {
  display: none; /* hidden by default */
  position: absolute;
  bottom: 64px; /* above bottom controls */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 30;
}

/* ================================================
   RESPONSIVE MODAL WIDTHS (ordered largest first)
   ================================================ */
/* 5K / Ultra-wide (5120px+) - default 50vw applies */
/* 4K screens (2560px - 3840px) */
@media (max-width: 3840px) {
  .pdf-modal-dialog {
    width: 60vw !important;
  }
}
@media (max-width: 3440px) {
  .pdf-modal-dialog {
    width: 55vw !important;
  }
}
@media (max-width: 2560px) {
  .pdf-modal-dialog {
    width: 65vw !important;
  }
}
@media (max-width: 1920px) {
  .pdf-modal-dialog {
    width: 75vw !important;
  }
}
@media (max-width: 1440px) {
  .pdf-modal-dialog {
    width: 75vw;
  }
}
@media (max-width: 1200px) {
  .pdf-modal-dialog {
    width: 85vw;
  }
}
@media (max-width: 992px) {
  .pdf-modal-dialog {
    width: 90vw;
  }
}
@media (max-width: 768px) {
  .pdf-modal-dialog {
    width: 98vw;
    min-width: unset;
    margin: 0.5rem auto;
  }
  .pdf-nav-left, .pdf-nav-right {
    width: 44px;
    height: 44px;
  }
  .btn-circle {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 576px) {
  .pdf-modal-dialog {
    width: 100vw;
    margin: auto;
  }
  .pdf-modal-content {
    border-radius: 0;
    padding: 10px;
  }
  .pdf-nav-left, .pdf-nav-right {
    width: 40px;
    height: 40px;
  }
  .btn-circle {
    width: 32px;
    height: 32px;
  }
}
.pdf-selection-overlay {
  position: absolute;
  border: 2px dashed rgba(0, 123, 255, 0.9);
  background-color: rgba(0, 123, 255, 0.15);
  pointer-events: none;
  display: none;
  z-index: 15;
}

.shop-back-to-top[hidden] {
  display: none !important;
}

.shop-index-information {
  background-color: transparent !important;
  margin: 0 0 0.9rem;
}

.shop-index-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 0.8rem;
  position: sticky;
  top: 0.35rem;
  z-index: 12;
  padding: 0.45rem 0.55rem;
  background: rgba(243, 244, 246, 0.9);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.shop-index-filter-trigger,
.shop-index-filter-clear,
.shop-index-filter-close {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.shop-index-filter-trigger:hover,
.shop-index-filter-clear:hover,
.shop-index-filter-close:hover {
  border-color: #94a3b8;
  background: #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.shop-index-filter-trigger:active,
.shop-index-filter-clear:active,
.shop-index-filter-close:active {
  transform: translateY(1px);
}

.variant-previews-hint {
  overflow: visible;
}

.shop-index-filter-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.shop-index-filter-clear-inline {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.shop-index-filter-more {
  border: 1px dashed #94a3b8;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.18s ease;
}
.shop-index-filter-more:hover {
  border-color: #64748b;
  background: #e2e8f0;
}

.shop-index-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
}

.shop-index-filter-clear {
  padding: 0.45rem 0.85rem;
}

.shop-index-filter-panel {
  border: 1px solid var(--shop-border);
  border-radius: 16px;
  background: #f8fafc;
  padding: 0.9rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.shop-index-filter-panel.is-floating {
  position: fixed;
  z-index: 160;
  margin-bottom: 0;
  overflow: auto;
}

.shop-index-filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.shop-index-filter-panel-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--shop-text);
}

.shop-index-filter-close {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.shop-index-filter-groups {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 900px) {
  .shop-index-filter-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shop-index-filter-groups .shop-index-filter-group:first-child,
  .shop-index-filter-groups .shop-index-filter-group:nth-child(2) {
    grid-column: 1/-1;
  }
}

.shop-index-filter-group h4 {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: var(--shop-muted);
}

.shop-index-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 112px;
  overflow: auto;
  padding-right: 0.2rem;
  scrollbar-width: thin;
}
.shop-index-filter-options.is-expanded {
  max-height: none;
  overflow: visible;
}

.shop-index-filter-price-slider {
  position: relative;
  height: 2.2rem;
  display: flex;
  align-items: center;
  --price-min-pct: 0%;
  --price-max-pct: 100%;
}
.shop-index-filter-price-slider input[type=range] {
  position: absolute;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.shop-index-filter-price-slider input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: color-mix(in srgb, var(--shop-text) 28%, #fff);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--shop-text) 20%, transparent);
}
.shop-index-filter-price-slider input[type=range]::-webkit-slider-thumb:active {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--shop-text) 14%, transparent);
}
.shop-index-filter-price-slider input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, color-mix(in srgb, var(--shop-text) 16%, transparent) 0%, color-mix(in srgb, var(--shop-text) 16%, transparent) var(--price-min-pct), color-mix(in srgb, var(--shop-text) 42%, transparent) var(--price-min-pct), color-mix(in srgb, var(--shop-text) 42%, transparent) var(--price-max-pct), color-mix(in srgb, var(--shop-text) 16%, transparent) var(--price-max-pct), color-mix(in srgb, var(--shop-text) 16%, transparent) 100%);
  transition: background 0.12s ease;
}
.shop-index-filter-price-slider input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: color-mix(in srgb, var(--shop-text) 28%, #fff);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--shop-text) 20%, transparent);
}
.shop-index-filter-price-slider input[type=range]::-moz-range-thumb:active {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--shop-text) 14%, transparent);
}
.shop-index-filter-price-slider input[type=range]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, color-mix(in srgb, var(--shop-text) 16%, transparent) 0%, color-mix(in srgb, var(--shop-text) 16%, transparent) var(--price-min-pct), color-mix(in srgb, var(--shop-text) 42%, transparent) var(--price-min-pct), color-mix(in srgb, var(--shop-text) 42%, transparent) var(--price-max-pct), color-mix(in srgb, var(--shop-text) 16%, transparent) var(--price-max-pct), color-mix(in srgb, var(--shop-text) 16%, transparent) 100%);
  transition: background 0.12s ease;
}
.shop-index-filter-price-slider #index-filter-price-min {
  z-index: 2;
}
.shop-index-filter-price-slider #index-filter-price-max {
  z-index: 3;
}
.shop-index-filter-price-slider #index-filter-price-max::-webkit-slider-runnable-track {
  background: transparent;
}
.shop-index-filter-price-slider #index-filter-price-max::-moz-range-track {
  background: transparent;
}
.shop-index-filter-price-slider #index-filter-price-min:active,
.shop-index-filter-price-slider #index-filter-price-max:active {
  z-index: 4;
}

.shop-index-filter-price-values {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--shop-muted);
}
.shop-index-filter-price-values #index-filter-price-min-value,
.shop-index-filter-price-values #index-filter-price-max-value {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shop-text) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--shop-text) 20%, transparent);
  color: var(--shop-text);
}
.shop-index-filter-price-values span:not(#index-filter-price-min-value):not(#index-filter-price-max-value) {
  padding: 0;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--shop-text) 50%, transparent);
}

.shop-index-filter-chip {
  border: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
  border-radius: 999px;
  padding: 0.33rem 0.65rem;
  background: #fff;
  color: var(--shop-text);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.18s ease;
}
.shop-index-filter-chip:hover {
  border-color: color-mix(in srgb, var(--shop-primary) 40%, transparent);
  transform: translateY(-1px);
}
.shop-index-filter-chip.active {
  border-color: color-mix(in srgb, var(--shop-text) 20%, transparent);
  background: color-mix(in srgb, var(--shop-text) 8%, #fff);
  color: var(--shop-text);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--shop-text) 12%, transparent);
}

.shop-quick-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow: hidden;
  padding: 0.25rem 0.1rem 0.5rem;
  margin-top: 0.15rem;
  margin-bottom: 0.35rem;
  row-gap: 0.5rem;
  transition: max-height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: max-height;
}

.shop-quick-filters-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.shop-quick-filters-wrap.is-collapsible.is-collapsed .shop-quick-filters {
  max-height: var(--shop-quick-filters-collapsed-height, 2.5rem);
}

.shop-quick-filters-wrap.is-collapsible.is-expanded .shop-quick-filters {
  max-height: var(--shop-quick-filters-expanded-height, 1000px);
}

.shop-quick-filters-toggle {
  margin: 0.1rem 0 0.45rem;
  border: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
  background: #fff;
  color: var(--shop-text);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shop-quick-filters-toggle .bi {
  transition: transform 0.2s ease;
}
.shop-quick-filters-toggle[aria-expanded=true] .bi {
  transform: rotate(180deg);
}
.shop-quick-filters-toggle:hover {
  border-color: color-mix(in srgb, var(--shop-primary) 40%, transparent);
  color: var(--shop-primary);
}

.shop-quick-filters-toggle[hidden] {
  display: none !important;
}

.shop-quick-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
  background: #fff;
  color: var(--shop-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.shop-quick-filter-chip:hover {
  border-color: color-mix(in srgb, var(--shop-primary) 40%, transparent);
  color: var(--shop-primary);
}
.shop-quick-filter-chip.active {
  border-color: color-mix(in srgb, var(--shop-text) 20%, transparent);
  background: color-mix(in srgb, var(--shop-text) 8%, #fff);
  color: var(--shop-text);
}

.shop-back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, #111827 14%, transparent);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 130;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--shop-text) 16%, transparent);
  transition: transform 0.15s ease, background 0.15s ease;
}
.shop-back-to-top .bi {
  font-size: 20px;
  line-height: 1;
}
.shop-back-to-top:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}
.shop-back-to-top:active {
  transform: translateY(0);
}

body.shop-footer-visible .shop-back-to-top {
  bottom: calc(var(--shop-footer-height) + 16px);
}

@media (max-width: 768px) {
  .shop-back-to-top {
    bottom: 12px;
  }
  body.shop-footer-visible .shop-back-to-top {
    bottom: calc(var(--shop-footer-height) + 12px);
  }
}
.products-loading[hidden],
.products-load-status[hidden] {
  display: none !important;
}

#index-scroll-sentinel,
#products-scroll-sentinel {
  height: 1px;
}

.products-loading {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: color-mix(in srgb, var(--shop-text) 75%, transparent);
  font-size: 14px;
  font-weight: 600;
}

.products-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--shop-text) 20%, transparent);
  border-top-color: var(--shop-primary);
  animation: products-spin 0.8s linear infinite;
}

.products-load-status {
  margin-top: 10px;
  text-align: center;
  color: color-mix(in srgb, var(--shop-text) 70%, transparent);
  font-size: 13px;
  font-weight: 600;
}

#products-scroll-sentinel {
  height: 1px;
}

@keyframes products-spin {
  to {
    transform: rotate(360deg);
  }
}
.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.shop-empty {
  text-align: center;
  padding: 60px 20px;
  color: color-mix(in srgb, var(--shop-text) 60%, transparent);
}
.shop-empty h2 {
  margin: 0 0 8px;
  color: var(--shop-text);
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (min-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.variant-info-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: color-mix(in srgb, var(--shop-text) 85%, transparent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 10;
}

.variant-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: color-mix(in srgb, var(--shop-text) 80%, transparent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
@media (min-width: 768px) {
  .variant-badge {
    font-size: 12px;
    padding: 5px 10px;
  }
}

.variant-previews {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  min-height: 32px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .variant-previews {
    gap: 8px;
    min-height: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

.variant-thumb {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  will-change: transform;
}
@media (max-width: 767px) {
  .variant-thumb:nth-child(n+4) {
    display: none;
  }
}
@media (max-width: 767px) {
  .variant-thumb.variant-more {
    display: flex !important;
  }
}
.variant-thumb.variant-more {
  display: flex !important;
  width: auto;
  min-width: 40px;
  padding: 0 8px;
  border-color: transparent;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
@media (min-width: 768px) {
  .variant-thumb.variant-more {
    min-width: 34px;
    padding: 0 7px;
  }
}
@media (min-width: 768px) {
  .variant-thumb {
    width: 20px;
    height: 20px;
  }
}
.variant-thumb img,
.variant-thumb .variant-thumb-bg,
.variant-thumb .variant-color-swatch {
  width: 100%;
  height: 100%;
  display: block;
}
.variant-thumb img {
  object-fit: cover;
}
.variant-thumb .variant-thumb-bg {
  background-size: cover;
  background-position: center;
}
.variant-thumb .variant-color-swatch {
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--shop-text) 34%, transparent);
  background-color: #fff;
}
.variant-thumb:hover {
  border-color: var(--shop-secondary);
  transform: scale(1.05);
}
.variant-thumb.variant-more:hover {
  border-color: transparent;
  transform: none;
}
.variant-thumb.variant-thumb-active {
  border-color: var(--shop-primary);
}

.variant-previews-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.variant-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--shop-text) 10%, transparent);
}

.variant-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--shop-text) 8%, transparent);
  color: color-mix(in srgb, var(--shop-text) 60%, transparent);
  font-size: 10px;
  font-weight: 600;
}
@media (min-width: 768px) {
  .variant-more {
    font-size: 11px;
  }
}
.variant-more:hover {
  background: color-mix(in srgb, var(--shop-text) 15%, transparent);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  /*box-shadow: 0 1px 3px color-mix(in srgb, var(--shop-text) 8%, transparent);*/
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  .product-card:hover {
    box-shadow: 0 4px 12px color-mix(in srgb, var(--shop-text) 12%, transparent);
    transform: translateY(-2px);
  }
  .product-card:hover .product-body,
  .product-card:hover .product-meta {
    background: color-mix(in srgb, var(--shop-primary) 5%, #fff);
  }
}

.product-card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
  background-color: transparent;
}

.product-card.swapping .product-main-img {
  opacity: 1;
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--shop-text) 5%, transparent);
  border-bottom: 1px solid #e8ebf0;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--shop-text) 5%, transparent), color-mix(in srgb, var(--shop-text) 2%, transparent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--shop-text) 55%, transparent);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.product-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  /*gap: 10px;*/
  flex: 1;
  background: #fff;
  transition: background-color 0.2s ease;
}

.product-meta {
  margin-top: auto;
  padding: 10px 12px 12px;
  border-top: 1px solid color-mix(in srgb, var(--shop-text) 8%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  transition: background-color 0.2s ease;
}

.product-meta .product-price {
  margin-top: 0;
  padding-top: 0;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: var(--shop-text);
  /*min-height: calc(1.3em * 2);*/
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shop-primary) 12%, transparent);
  color: var(--shop-primary);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.product-desc {
  min-height: 4rem;
  margin: 0;
  color: color-mix(in srgb, var(--shop-text) 75%, transparent);
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
}

body.shop-style-clean .product-card {
  box-shadow: 0 1px 4px color-mix(in srgb, var(--shop-text) 10%, transparent);
}
@media (hover: hover) {
  body.shop-style-clean .product-card:hover {
    box-shadow: 0 8px 18px color-mix(in srgb, var(--shop-text) 14%, transparent);
    transform: translateY(-2px);
  }
  body.shop-style-clean .product-card:hover .product-body,
  body.shop-style-clean .product-card:hover .product-meta {
    background: #fff;
  }
}

body.shop-style-brand-soft .product-card {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
}
@media (hover: hover) {
  body.shop-style-brand-soft .product-card:hover {
    box-shadow: 0 4px 12px color-mix(in srgb, var(--shop-text) 12%, transparent);
    transform: translateY(-2px);
  }
  body.shop-style-brand-soft .product-card:hover .product-body,
  body.shop-style-brand-soft .product-card:hover .product-meta {
    background: color-mix(in srgb, var(--shop-primary) 5%, #fff);
  }
}

body.shop-style-image-focus .product-card {
  box-shadow: 0 1px 5px color-mix(in srgb, var(--shop-text) 10%, transparent);
}
@media (hover: hover) {
  body.shop-style-image-focus .product-card:hover {
    box-shadow: 0 10px 22px color-mix(in srgb, var(--shop-text) 16%, transparent);
    transform: translateY(-2px);
  }
  body.shop-style-image-focus .product-card:hover .product-body,
  body.shop-style-image-focus .product-card:hover .product-meta {
    background: #fff;
  }
  body.shop-style-image-focus .product-card:hover .product-main-img {
    transform: scale(1.02);
  }
}
body.shop-style-image-focus .product-main-img {
  transition: transform 0.2s ease;
}

body.shop-style-structured .product-card {
  border: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
  border-radius: 14px;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--shop-text) 8%, transparent);
}
@media (hover: hover) {
  body.shop-style-structured .product-card:hover {
    border-color: color-mix(in srgb, var(--shop-primary) 40%, transparent);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--shop-text) 12%, transparent);
    transform: translateY(-1px);
  }
  body.shop-style-structured .product-card:hover .product-body,
  body.shop-style-structured .product-card:hover .product-meta {
    background: color-mix(in srgb, var(--shop-text) 3%, #fff);
  }
}
body.shop-style-structured .product-meta {
  border-top-color: color-mix(in srgb, var(--shop-text) 14%, transparent);
}

/* ============================================
   Cart Drawer (Side Panel)
   ============================================ */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--shop-text) 50%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 998;
}
.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 90vw);
  height: 100dvh;
  height: 100vh;
  background: var(--shop-card-bg);
  box-shadow: -4px 0 20px var(--shop-shadow);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}
@supports (height: 100dvh) {
  .cart-drawer {
    height: 100dvh;
  }
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--shop-border);
  flex-shrink: 0;
}
.cart-drawer-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--shop-text);
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
  padding: 0.5rem;
  color: var(--shop-text);
}
.cart-drawer-close:hover {
  opacity: 0.7;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  min-height: 0;
}
.cart-drawer-body .cart-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--shop-muted);
}

.cart-drawer-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--shop-border);
  background: var(--shop-card-bg);
  flex-shrink: 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}
.cart-drawer-footer .cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--shop-text);
}
.cart-drawer-footer .cart-total .vat-label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--shop-muted);
}
.cart-drawer-footer .btn-checkout {
  margin: 0;
  padding: 0.75rem 1rem;
  display: block;
  background: var(--shop-btn-primary);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
  color: var(--shop-btn-primary-text);
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.cart-drawer-footer .btn-checkout:hover {
  background: var(--shop-btn-hover);
  opacity: 0.9;
}
.cart-drawer-footer .btn-checkout.disabled {
  background: var(--shop-muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* Cart Drawer Item */
.cart-drawer-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--shop-border-light);
  align-items: center;
}
.cart-drawer-item:last-child {
  border-bottom: none;
}
.cart-drawer-item .cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: color-mix(in srgb, var(--shop-text) 5%, transparent);
}
.cart-drawer-item .cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.cart-drawer-item .cart-item-info .cart-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--shop-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-drawer-item .cart-item-info .cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
}
.cart-drawer-item .cart-item-info .cart-item-meta .cart-item-variant {
  font-size: 0.72rem;
  color: var(--shop-muted);
  line-height: 1.25;
  white-space: nowrap;
}
.cart-drawer-item .cart-item-info .cart-item-price {
  font-size: 0.85rem;
  color: var(--shop-muted);
}
.cart-drawer-item .cart-item-quantity {
  display: flex;
  align-items: center;
}
.cart-drawer-item .cart-item-quantity .qty-btn {
  width: 28px;
  height: 28px;
  font-size: 1rem;
  border: none;
  background: color-mix(in srgb, var(--shop-text) 8%, transparent);
  color: var(--shop-text);
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
.cart-drawer-item .cart-item-quantity .qty-btn:hover:not(:disabled) {
  background: var(--shop-btn-primary);
  color: var(--shop-btn-primary-text);
}
.cart-drawer-item .cart-item-quantity .qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cart-drawer-item .cart-item-quantity span {
  min-width: 24px;
  text-align: center;
  font-weight: 500;
  color: var(--shop-text);
}
.cart-drawer-item .cart-item-remove {
  background: none;
  border: none;
  color: var(--shop-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
  border-radius: 4px;
}
.cart-drawer-item .cart-item-remove:hover {
  background: color-mix(in srgb, var(--shop-text) 8%, transparent);
  color: var(--shop-text);
}

/* Drawer Undo */
.cart-drawer-item-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--shop-warning-bg);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.cart-drawer-item-undo .undo-text {
  font-size: 0.85rem;
  color: var(--shop-warning);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-undo-small {
  padding: 0.35rem 0.75rem;
  background: var(--shop-warning);
  color: var(--shop-card-bg);
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
.btn-undo-small:hover {
  opacity: 0.85;
}

/* ============================================
   Unavailable States
   ============================================ */
.cart-item--unavailable,
.cart-drawer-item--unavailable {
  opacity: 0.6;
}
.cart-item--unavailable .cart-item-image img,
.cart-item--unavailable .cart-item-img,
.cart-drawer-item--unavailable .cart-item-image img,
.cart-drawer-item--unavailable .cart-item-img {
  filter: grayscale(100%);
}

.cart-item-unavailable-msg,
.cart-drawer-unavailable {
  color: var(--shop-error);
  font-size: 0.85rem;
  font-weight: 500;
}

.cart-drawer-unavailable {
  display: block;
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

/* ============================================
   Cart Page Layout
   ============================================ */
.cart-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  padding-bottom: calc(var(--shop-footer-height) + 2rem);
}
@media (max-width: 768px) {
  .cart-page {
    padding-bottom: calc(var(--shop-footer-height) + 5rem);
  }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--shop-border);
}
.cart-header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--shop-text);
}

.continue-shopping {
  color: var(--shop-secondary);
  text-decoration: none;
  font-weight: 500;
}
.continue-shopping:hover {
  color: var(--shop-primary);
  text-decoration: underline;
}

.cart-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .cart-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Cart Items
   ============================================ */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1rem;
  padding: 1rem;
  background: var(--shop-card-bg);
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  transition: box-shadow 0.2s;
}
.cart-item:hover {
  box-shadow: 0 2px 8px var(--shop-shadow);
}
@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  background: color-mix(in srgb, var(--shop-text) 5%, transparent);
  flex-shrink: 0;
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 600px) {
  .cart-item-image {
    width: 80px;
    height: 80px;
  }
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--shop-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cart-item-variant {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  background: color-mix(in srgb, var(--shop-text) 8%, transparent);
  border-radius: 4px;
  color: var(--shop-muted);
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--shop-muted);
  margin-top: auto;
}

/* ============================================
   Quantity Controls
   ============================================ */
.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--shop-card-bg);
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: color-mix(in srgb, var(--shop-text) 3%, transparent);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--shop-text);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover:not(:disabled) {
  background: var(--shop-primary);
  color: var(--shop-primary-text);
}
.qty-btn:active:not(:disabled) {
  transform: scale(0.95);
}
.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-value {
  min-width: 48px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--shop-text);
  background: var(--shop-card-bg);
  border-left: 1px solid var(--shop-border);
  border-right: 1px solid var(--shop-border);
}

/* ============================================
   Cart Item Actions
   ============================================ */
.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}
@media (max-width: 600px) {
  .cart-item-actions {
    grid-column: 1/-1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--shop-border-light);
  }
}

.cart-item-subtotal {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--shop-text);
  text-align: right;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--shop-muted);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
.btn-remove:hover {
  background: color-mix(in srgb, var(--shop-text) 8%, transparent);
  color: var(--shop-text);
  text-decoration: none;
}

/* ============================================
   Cart Summary Sidebar
   ============================================ */
.cart-sidebar {
  position: sticky;
  top: 2rem;
}

.cart-summary-box {
  background: color-mix(in srgb, var(--shop-text) 3%, transparent);
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  padding: 1.5rem;
}
.cart-summary-box h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--shop-text);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--shop-muted);
  border-bottom: 1px solid var(--shop-border);
}
.summary-row.summary-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--shop-text);
  border-bottom: none;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn-checkout {
  display: block;
  padding: 1rem;
  margin-top: 1.5rem;
  background: var(--shop-btn-primary);
  color: var(--shop-btn-primary-text);
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
.btn-checkout:hover {
  background: var(--shop-btn-hover);
  opacity: 0.9;
}
.btn-checkout:active {
  transform: scale(0.98);
}
.btn-checkout.disabled {
  background: var(--shop-muted);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-clear-cart {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.75rem;
  background: transparent;
  color: var(--shop-btn-secondary);
  border: 1px solid var(--shop-border);
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
.btn-clear-cart:hover {
  background: color-mix(in srgb, var(--shop-text) 8%, transparent);
  color: var(--shop-text);
  border-color: var(--shop-border);
}

/* ============================================
   Empty Cart State
   ============================================ */
.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--shop-muted);
  background: color-mix(in srgb, var(--shop-text) 3%, transparent);
  border-radius: 8px;
  border: 1px dashed var(--shop-border);
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cart-empty-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--shop-muted);
}

.cart-empty-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--shop-btn-primary);
  color: var(--shop-btn-primary-text);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
.cart-empty-link:hover {
  background: var(--shop-btn-hover);
  opacity: 0.9;
}

/* ============================================
   Undo Remove
   ============================================ */
.cart-item-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--shop-warning-bg);
  border: 1px solid var(--shop-warning-border);
  border-radius: 8px;
  animation: slideIn 0.3s ease;
  position: relative;
  overflow: hidden;
}

.undo-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.undo-icon {
  font-size: 1.25rem;
}

.undo-text {
  color: var(--shop-warning);
  font-size: 0.95rem;
}

.btn-undo {
  padding: 0.5rem 1rem;
  background: var(--shop-warning);
  color: var(--shop-card-bg);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
.btn-undo:hover {
  opacity: 0.85;
}

.undo-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: color-mix(in srgb, var(--shop-text) 10%, transparent);
}

.undo-timer-bar {
  height: 100%;
  background: var(--shop-warning);
  animation: shrink 5s linear forwards;
}

@keyframes shrink {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ============================================
  Product Card Price
  ============================================ */
.product-price {
  margin-top: auto;
  padding-top: 0.75rem;
}

.price-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--shop-text);
}

.price-original {
  font-size: 0.9rem;
  color: var(--shop-muted);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.price-discount {
  color: var(--shop-error);
}

/* ============================================
   Product Detail Price
   ============================================ */
.product-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--shop-text) 3%, transparent);
  border-radius: 8px;
  border: 1px solid var(--shop-border);
}

.price-label {
  font-size: 0.9rem;
  color: var(--shop-muted);
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--shop-text);
}

.price-per-unit {
  font-size: 0.85rem;
  color: var(--shop-muted);
  margin-left: 0.25rem;
}

/* ============================================
   Status Messages
   ============================================ */
.product-out-of-stock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--shop-error-bg);
  border: 1px solid var(--shop-error-border);
  border-radius: 8px;
  color: var(--shop-error);
  font-weight: 600;
  width: 100%;
}

.cart-added-message {
  background: var(--shop-success-bg);
  border: 1px solid var(--shop-success-border);
  color: var(--shop-success);
  padding: 12px 16px;
  border-radius: 8px;
}

.delivery-notice {
  background: var(--shop-info-bg);
  border: 1px solid var(--shop-info-border);
  color: var(--shop-info);
  padding: 12px 16px;
  border-radius: 8px;
}

.product-detail {
  background: var(--shop-bg);
  min-height: 100vh;
  padding: 24px 0;
}

.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-bottom: calc(var(--shop-footer-height) + 1rem);
}
@media (max-width: 768px) {
  .product-detail-container {
    padding-bottom: calc(var(--shop-footer-height) + 5rem);
  }
}

.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--shop-secondary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
}
.product-back-link:hover {
  color: var(--shop-primary);
  text-decoration: underline;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-gallery-main {
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--shop-text) 5%, transparent);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--shop-shadow);
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px;
}

.product-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--shop-card-bg);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease;
}
.product-thumb.active, .product-thumb:hover {
  border-color: var(--shop-primary);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-info-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-type-badge {
  display: inline-block;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--shop-primary) 12%, transparent);
  color: var(--shop-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.product-detail-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--shop-text);
  line-height: 1.2;
}

.product-item-number {
  margin: 0;
  color: var(--shop-muted);
  font-size: 14px;
}

.product-description h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-muted);
}
.product-description p {
  margin: 0;
  color: var(--shop-text);
  line-height: 1.6;
}

.product-option h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-muted);
}

.product-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-option-list-colors {
  gap: 10px;
}
.product-option-list-colors .product-option-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 6px;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  background: transparent;
}
.product-option-list-colors .product-option-btn.active {
  background: transparent;
  color: var(--shop-text);
}
.product-option-list-colors .product-option-color-swatch {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.product-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--shop-border);
  border-radius: 8px;
  background: var(--shop-card-bg);
  color: var(--shop-text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
.product-option-btn:hover {
  border-color: var(--shop-secondary);
  color: var(--shop-secondary);
}
.product-option-btn.active {
  border-color: var(--shop-primary);
  background: var(--shop-primary);
  color: var(--shop-primary-text);
}

.product-option-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  border-style: dashed;
}
.product-option-btn-disabled .product-option-image,
.product-option-btn-disabled .product-option-color-swatch {
  filter: grayscale(100%);
}

.product-option-color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--shop-text) 20%, transparent);
  flex-shrink: 0;
}

.product-option-image {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid color-mix(in srgb, var(--shop-text) 15%, transparent);
  flex-shrink: 0;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--shop-border);
  margin-top: auto;
}

.product-purchase-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .product-purchase-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.product-price-display {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.price-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-muted);
}

.price-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--shop-text);
}

.product-quantity label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-muted);
  margin-bottom: 8px;
}

.product-quantity-feedback {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--shop-muted);
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--shop-border);
  border-radius: 8px;
  overflow: hidden;
}
.quantity-selector button {
  width: 40px;
  height: 40px;
  border: none;
  background: color-mix(in srgb, var(--shop-text) 5%, transparent);
  color: var(--shop-text);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
.quantity-selector button:hover {
  background: color-mix(in srgb, var(--shop-text) 10%, transparent);
}
.quantity-selector input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--shop-text);
  background: var(--shop-card-bg);
  -moz-appearance: textfield;
}
.quantity-selector input::-webkit-outer-spin-button, .quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.quantity-selector .quantity-select {
  min-width: 92px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--shop-text);
  background: var(--shop-card-bg);
  padding: 0 0.5rem;
  cursor: pointer;
}

.btn-add-to-cart {
  width: 100%;
  padding: 16px 24px;
  background: var(--shop-btn-primary);
  color: var(--shop-btn-primary-text);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
.btn-add-to-cart:hover {
  background: var(--shop-btn-hover);
  opacity: 0.9;
}
.btn-add-to-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-meta-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: color-mix(in srgb, var(--shop-text) 3%, transparent);
  border-radius: 10px;
}

.meta-row {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.meta-label {
  color: var(--shop-muted);
  font-weight: 500;
}

.meta-value {
  color: var(--shop-text);
  font-weight: 600;
}

.related-products {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--shop-border);
}

.related-products-title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  color: var(--shop-text);
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .related-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-product-card {
  background: var(--shop-card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px var(--shop-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shop-text) 10%, transparent);
}

.related-product-image {
  aspect-ratio: 1;
  overflow: hidden;
}
.related-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-product-image .product-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--shop-text) 5%, transparent), color-mix(in srgb, var(--shop-text) 2%, transparent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-muted);
  font-weight: 600;
  font-size: 12px;
}

.related-product-info {
  padding: 12px;
}

.related-product-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-product-type {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--shop-primary);
  font-weight: 600;
}

body.shop-page-index .pdfModalCustom .pdf-modal-dialog {
  width: min(92vw, 980px) !important;
  max-width: 980px !important;
  min-width: 340px;
}
body.shop-page-index .pdfModalCustom .pdf-canvas-container {
  height: 72vh;
  padding: 0.75rem;
}
body.shop-page-index .pdfModalCustom .pdf-bottom-controls {
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
}
body.shop-page-index .pdfModalCustom .btn-circle {
  width: 34px;
  height: 34px;
}
body.shop-page-index .pdfModalCustom .pdf-nav-left,
body.shop-page-index .pdfModalCustom .pdf-nav-right {
  width: 42px;
  height: 42px;
  padding: 18px !important;
}
@media (max-width: 992px) {
  body.shop-page-index .pdfModalCustom .pdf-modal-dialog {
    width: 96vw !important;
    max-width: 96vw !important;
    min-width: 0;
  }
  body.shop-page-index .pdfModalCustom .pdf-canvas-container {
    height: 68vh;
  }
}

:root {
  --shop-header-height: 11rem;
  --shop-footer-height: 8.125rem;
}
@media (min-width: 768px) {
  :root {
    --shop-header-height: 11rem;
    --shop-footer-height: 8.125rem;
  }
}

body {
  background: var(--shop-bg);
  color: var(--shop-text);
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  min-height: 100vh;
}

body.shop-page-index {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.shop-page-index main {
  flex: 1 0 auto;
  min-height: 0;
}
body.shop-page-index .shop-footer {
  position: static;
  width: 100%;
  margin-top: auto;
}
@media (max-width: 768px) {
  body.shop-page-index .shop-container {
    padding-bottom: 5rem;
  }
}

body.shop-footer-visible:not(.shop-page-index) .shop-container,
body.shop-footer-visible:not(.shop-page-index) .shop-policy-page--purchase-terms {
  padding-bottom: calc(var(--shop-footer-height) + 5rem);
}
body.shop-footer-visible:not(.shop-page-index) .shop-policy-content {
  padding-bottom: 3rem;
}
body.shop-footer-visible:not(.shop-page-index) .shop-policy-content .ql-align-center {
  text-align: center;
}
body.shop-footer-visible:not(.shop-page-index) .shop-policy-content .ql-align-right {
  text-align: right;
}
body.shop-footer-visible:not(.shop-page-index) .shop-policy-content .ql-align-justify {
  text-align: justify;
}

.floating-btn-container {
  position: fixed;
  left: 24px;
  bottom: 16px;
  z-index: 120;
}

body.shop-footer-visible .floating-btn-container {
  bottom: calc(var(--shop-footer-height) + 16px);
}

.floating-contact-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  background: var(--shop-btn-primary);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--shop-text) 16%, transparent);
}

.floating-contact-btn:hover {
  background: var(--shop-btn-hover);
}

.contact-support-offcanvas {
  background: #fff;
}
.contact-support-offcanvas .offcanvas-header {
  background: linear-gradient(135deg, color-mix(in srgb, var(--shop-primary) 12%, #fff), #fff);
  border-bottom: 1px solid var(--shop-border);
  padding: 0.9rem 1rem;
}
.contact-support-offcanvas .offcanvas-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--shop-primary);
  font-weight: 700;
}
.contact-support-offcanvas .offcanvas-title::before {
  font-family: "Material Icons";
  content: "support_agent";
  font-size: 1.2rem;
  line-height: 1;
}

.support-form label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.support-form input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--shop-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.7rem;
}
.support-form textarea {
  min-height: 140px;
  resize: vertical;
}
.support-form button {
  width: 100%;
  border: none;
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--shop-btn-primary);
  color: var(--shop-btn-primary-text);
  font-weight: 700;
}
.support-form button:hover {
  background: var(--shop-btn-hover);
}

@media (max-width: 768px) {
  .floating-btn-container {
    left: 16px;
    bottom: 12px;
  }
  body:not(.shop-page-index) .floating-btn-container {
    bottom: calc(var(--shop-footer-height) + 12px);
  }
  body.shop-footer-visible .floating-btn-container {
    bottom: calc(var(--shop-footer-height) + 12px);
  }
  .floating-contact-btn {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
}
main {
  min-height: calc(100vh - 200px);
}

.shop-header {
  background: var(--shop-primary);
  color: var(--shop-primary-text);
  padding: 0 16px;
  height: var(--shop-header-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 40;
  background-size: cover;
  background-position: center;
  overflow: visible;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) {
  .shop-header {
    padding: 20px;
  }
}
.shop-header[style*=background-image]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--shop-text) 15%, transparent);
  z-index: 0;
}
.shop-header[style*=background-image] .shop-header-inner {
  position: relative;
  z-index: 1;
}

.shop-footer {
  background: var(--shop-primary);
  color: var(--shop-primary-text);
  border-top: 1px solid color-mix(in srgb, var(--shop-primary-text) 18%, transparent);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--shop-footer-height);
  z-index: 30;
}

.shop-footer-inner {
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.shop-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.shop-footer-link {
  color: var(--shop-primary-text);
  text-decoration: none;
  opacity: 0.95;
}
.shop-footer-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.shop-footer-copy {
  opacity: 0.9;
}

.shop-header-inner {
  max-width: 1700px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
@media (min-width: 768px) {
  .shop-header-inner {
    justify-content: space-between;
    align-items: center;
    gap: 18px;
  }
}

.shop-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--shop-primary-text);
  text-decoration: none;
  text-shadow: 0 1px 3px color-mix(in srgb, var(--shop-text) 30%, transparent);
  min-width: 0;
  flex: 1 1 auto;
  width: auto;
  max-width: min(62vw, 520px);
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0;
  display: inline-flex;
  align-items: center;
}
@media (min-width: 768px) {
  .shop-logo {
    order: 1;
    font-size: 22px;
    max-width: min(46vw, 640px);
  }
}
@media (min-width: 1024px) {
  .shop-logo {
    font-size: 26px;
  }
}
.shop-logo:hover {
  opacity: 0.9;
}

.shop-logo-img {
  display: block;
  height: 100%;
  width: 100%;
  max-width: 70%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--shop-text) 20%, transparent));
}

.shop-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
}
@media (min-width: 768px) {
  .shop-nav {
    order: 2;
    gap: 12px;
  }
}

.shop-search-form {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 38px;
  height: 38px;
  background-color: white;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--shop-primary-text) 25%, transparent);
  overflow: hidden;
}
.shop-search-form.is-open {
  width: min(68vw, 220px);
  border-radius: 20px;
}
@media (max-width: 767px) {
  .shop-search-form.is-open {
    width: auto;
    flex: 1 1 auto;
    max-width: none;
  }
}
@media (min-width: 768px) {
  .shop-search-form {
    width: 280px;
    height: auto;
    border-radius: 20px;
  }
}

@media (max-width: 767px) {
  .shop-header-inner.search-open .shop-logo {
    display: none;
  }
  .shop-header-inner.search-open .shop-nav {
    flex: 1 1 auto;
  }
  .shop-header-inner.search-open .shop-search-form {
    flex: 1 1 auto;
    max-width: none;
  }
}
.shop-search-close {
  display: none;
  border: none;
  background: transparent;
  color: #111827;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.shop-search-close .bi {
  font-size: 18px;
  line-height: 1;
}
@media (max-width: 767px) {
  .shop-search-form.is-open .shop-search-close {
    display: inline-flex;
  }
}

.shop-search-input {
  width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  border: none;
  background: transparent;
  color: black;
  padding: 0;
  font-size: 14px;
  outline: none;
  transition: width 0.2s ease, opacity 0.15s ease, padding 0.2s ease;
}
.shop-search-form.is-open .shop-search-input {
  width: 100%;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 10px;
}
.shop-search-input::placeholder {
  color: color-mix(in srgb, var(--shop-primary-text) 78%, transparent);
}
@media (min-width: 768px) {
  .shop-search-input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    padding: 8px 10px;
  }
}

.shop-search-btn {
  border: none;
  background: color-mix(in srgb, var(--shop-primary-text) 18%, transparent);
  color: var(--shop-primary-text);
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.shop-search-btn i {
  color: black;
  font-size: 18px;
}

.lang-menu {
  display: none;
  position: relative;
  z-index: 140;
}

.lang-menu-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  border: 1px solid color-mix(in srgb, #111827 14%, transparent);
  cursor: pointer;
}
.lang-menu-trigger::-webkit-details-marker {
  display: none;
}
.lang-menu-trigger:hover {
  background: #f5f5f5;
}
.lang-menu-trigger .bi {
  font-size: 30px;
  line-height: 1;
}

.shop-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.shop-icon-globe {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-menu-dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 8px);
  display: none;
  /*min-width: 64px;*/
  background: #fff;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
  box-shadow: 0 4px 12px var(--shop-shadow);
  padding: 6px;
  overflow: hidden;
  z-index: 120;
  flex-direction: column;
  gap: 4px;
}
.lang-menu-dropdown .lang-btn {
  color: var(--shop-text);
  opacity: 1;
  width: 100%;
  box-sizing: border-box;
}
.lang-menu-dropdown .lang-btn:hover {
  background: color-mix(in srgb, var(--shop-primary) 10%, transparent);
  color: var(--shop-primary);
}
.lang-menu-dropdown .lang-btn.active {
  background: color-mix(in srgb, var(--shop-primary) 16%, transparent);
  color: var(--shop-primary);
}

.lang-menu[open] .lang-menu-dropdown {
  display: flex;
}

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

.shop-nav-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: color-mix(in srgb, var(--shop-primary-text) 15%, transparent);
  color: var(--shop-primary-text);
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
@media (min-width: 768px) {
  .shop-nav-menu-toggle {
    display: none;
  }
}
.shop-nav-menu-toggle:hover {
  background: color-mix(in srgb, var(--shop-primary-text) 25%, transparent);
}
.shop-nav-menu-toggle[aria-expanded=true] {
  background: color-mix(in srgb, var(--shop-primary-text) 30%, transparent);
}

.shop-nav-switchers {
  display: none;
  position: absolute;
  top: 100%;
  right: 16px;
  background: var(--shop-primary);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px var(--shop-shadow);
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.shop-nav-switchers.is-open {
  display: flex;
}
@media (min-width: 768px) {
  .shop-nav-switchers {
    display: contents;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
  }
}

.vat-switcher,
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: color-mix(in srgb, var(--shop-primary-text) 15%, transparent);
  border-radius: 6px;
  padding: 3px;
}

.vat-btn,
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--shop-primary-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
  opacity: 0.75;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .vat-btn,
  .lang-btn {
    padding: 6px 10px;
  }
}
.vat-btn:hover,
.lang-btn:hover {
  background: color-mix(in srgb, var(--shop-primary-text) 20%, transparent);
  opacity: 1;
}
.vat-btn.active,
.lang-btn.active {
  background: var(--shop-card-bg);
  color: var(--shop-primary);
  opacity: 1;
}

.shop-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  border: 1px solid color-mix(in srgb, #111827 14%, transparent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
@media (min-width: 768px) {
  .shop-nav-btn {
    width: 40px;
    height: 40px;
  }
}
.shop-nav-btn:hover {
  background: #f5f5f5;
}
.shop-nav-btn .cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  line-height: 1;
  width: 28px;
  height: 28px;
}
.shop-nav-btn .cart-icon .cart-icon-glyph {
  font-size: 25px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1;
}
.shop-nav-btn .cart-icon .cart-icon-filled {
  opacity: 0;
}
.shop-nav-btn .cart-icon .cart-icon-empty {
  opacity: 1;
}
.shop-nav-btn.has-items .cart-icon-empty {
  opacity: 0;
}
.shop-nav-btn.has-items .cart-icon-filled {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}
.shop-nav-btn .cart-count {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -48%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 2px;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.75);
  letter-spacing: -0.1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 2;
}
.shop-nav-btn.has-items .cart-count {
  opacity: 1;
}

.cart-add-toast {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--shop-card-bg, #fff);
  color: var(--shop-text);
  border: 1px solid color-mix(in srgb, var(--shop-text) 14%, transparent);
  border-radius: 10px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--shop-text) 16%, transparent);
  padding: 10px 12px;
  z-index: 120;
  min-width: 190px;
  max-width: min(88vw, 300px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: auto;
  cursor: pointer;
}

.cart-add-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cart-add-toast-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--shop-primary);
  margin-bottom: 2px;
}

.cart-add-toast-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.cart-add-toast-qty {
  margin-top: 2px;
  font-size: 12px;
  color: color-mix(in srgb, var(--shop-text) 75%, transparent);
}

.shop-btn-transition {
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}

.shop-btn,
.btn-shop-primary {
  background: var(--shop-btn-primary);
  color: var(--shop-btn-primary-text);
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
@media (min-width: 768px) {
  .shop-btn,
  .btn-shop-primary {
    padding: 10px 16px;
    font-size: 16px;
  }
}
.shop-btn:hover,
.btn-shop-primary:hover {
  background: var(--shop-btn-hover);
}
.shop-btn:active,
.btn-shop-primary:active {
  transform: scale(0.98);
}
.shop-btn:disabled,
.btn-shop-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-btn-secondary,
.btn-shop-secondary {
  background: var(--shop-btn-secondary);
  color: var(--shop-btn-secondary-text);
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
@media (min-width: 768px) {
  .shop-btn-secondary,
  .btn-shop-secondary {
    padding: 10px 16px;
    font-size: 16px;
  }
}
.shop-btn-secondary:hover,
.btn-shop-secondary:hover {
  opacity: 0.85;
}
.shop-btn-secondary:active,
.btn-shop-secondary:active {
  transform: scale(0.98);
}
.shop-btn-secondary:disabled,
.btn-shop-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-btn-outline {
  background: transparent;
  color: var(--shop-btn-primary);
  border: 2px solid var(--shop-btn-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}
@media (min-width: 768px) {
  .shop-btn-outline {
    padding: 10px 16px;
    font-size: 16px;
  }
}
.shop-btn-outline:hover {
  background: var(--shop-btn-primary);
  color: var(--shop-btn-primary-text);
}

.shop-btn-sm {
  padding: 6px 10px;
  font-size: 13px;
}
@media (min-width: 768px) {
  .shop-btn-sm {
    padding: 6px 12px;
    font-size: 14px;
  }
}

.shop-btn-block {
  width: 100%;
}

/* ============================================
  Checkout Page
  Mobile-first approach
  ============================================ */
:root {
  --shop-error: #dc2626;
  --shop-error-bg: #fef2f2;
  --shop-error-border: #fecaca;
  --shop-success: #16a34a;
  --shop-success-bg: #f0fdf4;
  --shop-success-border: #bbf7d0;
  --shop-warning: #d97706;
  --shop-warning-bg: #fffbeb;
  --shop-warning-border: #fde68a;
  --shop-info: #0284c7;
  --shop-info-bg: #f0f9ff;
  --shop-info-border: #bae6fd;
  --shop-accent-text: #111;
  --shop-primary-text: #fff;
  --shop-card-bg: #ffffff;
  --shop-border: color-mix(in srgb, var(--shop-text) 12%, transparent);
  --shop-border-light: color-mix(in srgb, var(--shop-text) 6%, transparent);
  --shop-muted: color-mix(in srgb, var(--shop-text) 60%, transparent);
}

.checkout-loader {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--shop-card-bg) 95%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  gap: 1rem;
}
.checkout-loader .loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--shop-border);
  border-top-color: var(--shop-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.checkout-loader .loader-message {
  font-size: 1.125rem;
  color: var(--shop-muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.checkout-error {
  background: var(--shop-error-bg);
  border: 1px solid var(--shop-error-border);
  color: var(--shop-error);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* Loading Overlay */
/*.checkout-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    gap: 1rem;

    .loader-spinner {
        width: 48px;
        height: 48px;
        border: 4px solid #e5e5e5;
        border-top-color: var(--shop-primary, #333);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .loader-message {
        font-size: 1.125rem;
        color: #666;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}*/
/* Error Message */
/*.checkout-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}*/
.checkout-page {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 5rem;
  padding: 1rem;
  padding-bottom: 4.5rem;
  position: relative;
}
@media (min-width: 768px) {
  .checkout-page {
    padding: 2rem 1rem;
    padding-bottom: 6.5rem;
  }
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--shop-border);
}
.checkout-header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--shop-text);
}
@media (min-width: 768px) {
  .checkout-header h1 {
    font-size: 1.75rem;
  }
}
.checkout-header .back-link {
  color: var(--shop-secondary);
  text-decoration: none;
  font-weight: 500;
}
.checkout-header .back-link:hover {
  color: var(--shop-primary);
  text-decoration: underline;
}

.checkout-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .checkout-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
  }
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-section {
  background: var(--shop-card-bg);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px var(--shop-shadow);
}
@media (min-width: 768px) {
  .checkout-section {
    padding: 1.5rem;
  }
}
.checkout-section h2 {
  font-size: 1rem;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--shop-border);
  color: var(--shop-text);
}
@media (min-width: 768px) {
  .checkout-section h2 {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .checkout-sidebar {
    position: sticky;
    top: 1rem;
  }
}

.customer-type-toggle {
  display: flex;
  gap: 0.75rem;
}
.customer-type-toggle .toggle-option {
  flex: 1;
  cursor: pointer;
}
.customer-type-toggle .toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.customer-type-toggle .toggle-option input:checked + .toggle-label {
  background: var(--shop-primary);
  color: var(--shop-primary-text);
  border-color: var(--shop-primary);
}
.customer-type-toggle .toggle-option .toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border: 2px solid var(--shop-border);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}
.customer-type-toggle .toggle-option .toggle-label:hover {
  border-color: var(--shop-primary);
}
.customer-type-toggle .toggle-option .toggle-label .icon {
  flex-shrink: 0;
}

.payment-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.75rem;
  background: color-mix(in srgb, var(--shop-text) 3%, transparent);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--shop-muted);
}
.payment-info .swish-inline-logo {
  height: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.form-grid .form-group-full {
  grid-column: 1/-1;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--shop-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--shop-card-bg);
  color: var(--shop-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--shop-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-primary) 10%, transparent);
}
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: var(--shop-muted);
}
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  background: color-mix(in srgb, var(--shop-text) 5%, transparent);
  cursor: not-allowed;
}
.form-group .error-message {
  color: var(--shop-error);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.checkout-info-content p {
  margin: 0 0 0.5rem;
}
.checkout-info-content p:last-child {
  margin-bottom: 0;
}
.checkout-info-content .ql-align-center {
  text-align: center;
}
.checkout-info-content .ql-align-right {
  text-align: right;
}
.checkout-info-content .ql-align-justify {
  text-align: justify;
}

/*// Add a subtle animation/highlight when delivery step unlocks*/
.checkout-step.unlocked .delivery-options {
  animation: highlightDelivery 0.5s ease;
}

@keyframes highlightDelivery {
  0% {
    background: transparent;
  }
  50% {
    background: color-mix(in srgb, var(--shop-primary) 10%, transparent);
  }
  100% {
    background: transparent;
  }
}
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.delivery-option {
  cursor: pointer;
}
.delivery-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.delivery-option input:checked + .delivery-option-content {
  border-color: var(--shop-primary);
  background: color-mix(in srgb, var(--shop-primary) 5%, transparent);
}
.delivery-option .delivery-option-content {
  padding: 1rem;
  border: 2px solid var(--shop-border);
  border-radius: 8px;
  transition: all 0.2s;
}
.delivery-option .delivery-option-content:hover {
  border-color: var(--shop-secondary);
}
.delivery-option .delivery-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.delivery-option .delivery-option-title {
  font-weight: 600;
  color: var(--shop-text);
}
.delivery-option .delivery-option-price {
  font-weight: 600;
  color: var(--shop-primary);
}
.delivery-option .delivery-option-desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--shop-muted);
}

.pickup-address {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--shop-success-bg);
  border-radius: 6px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--shop-success);
  border: 1px solid var(--shop-success-border);
}
.pickup-address .icon {
  flex-shrink: 0;
  color: var(--shop-success);
}

.delivery-option input:checked ~ .delivery-option-content .pickup-address {
  background: color-mix(in srgb, var(--shop-success) 15%, transparent);
  border-color: var(--shop-success);
}

.service-points-container {
  margin-top: 1rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--shop-text) 3%, transparent);
  border-radius: 8px;
}
.service-points-container h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--shop-text);
}

#servicePointsList {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.service-point-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--shop-card-bg);
  border: 1px solid var(--shop-border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.service-point-option:hover {
  border-color: var(--shop-secondary);
}
.service-point-option:has(input:checked) {
  border-color: var(--shop-primary);
  background: color-mix(in srgb, var(--shop-primary) 5%, transparent);
}
.service-point-option input[type=radio] {
  margin-top: 0.25rem;
  accent-color: var(--shop-primary);
}

.service-point-info {
  flex: 1;
}

.service-point-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.service-point-name {
  font-weight: 600;
  color: var(--shop-text);
}

.service-point-distance {
  font-size: 0.85rem;
  color: var(--shop-muted);
  background: color-mix(in srgb, var(--shop-text) 8%, transparent);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.service-point-address {
  font-size: 0.9rem;
  color: var(--shop-muted);
}

.loading-service-points,
.no-service-points {
  padding: 1rem;
  text-align: center;
  color: var(--shop-muted);
}

.error-service-points {
  padding: 1rem;
  text-align: center;
  color: var(--shop-error);
}

.delivery-estimate-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--shop-success-bg);
  border: 1px solid var(--shop-success-border);
  border-radius: 6px;
  margin-bottom: 1rem;
  color: var(--shop-success);
  font-size: 0.9rem;
}
.delivery-estimate-banner .icon {
  flex-shrink: 0;
}

/*.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.delivery-option {
    cursor: pointer;

    input {
        position: absolute;
        opacity: 0;
        pointer-events: none;

        &:checked + .delivery-option-content {
            border-color: var(--shop-primary, #333);
            background: #f9fafb;
        }
    }

    .delivery-option-content {
        padding: 1rem;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        transition: all 0.2s;

        &:hover {
            border-color: #ccc;
        }
    }

    .delivery-option-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .delivery-option-title {
        font-weight: 600;
        color: var(--shop-text);
    }

    .delivery-option-price {
        font-weight: 600;
        color: var(--shop-primary, #333);
    }

    .delivery-option-desc {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.875rem;
        color: #666;
    }
}

// Pickup address styling
.pickup-address {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 6px;
    font-style: normal;
    font-size: 0.85rem;
    color: #166534;
    border: 1px solid #bbf7d0;

    .icon {
        flex-shrink: 0;
        color: #16a34a;
    }
}

// When option is selected, highlight the address
.delivery-option input:checked ~ .delivery-option-content .pickup-address {
    background: #dcfce7;
    border-color: #86efac;
}

 Service Points 
.service-points-container {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light, #f8f9fa);
    border-radius: 8px;
}

    .service-points-container h4 {
        margin: 0 0 1rem 0;
        font-size: 1rem;
    }

#servicePointsList {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.service-point-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

    .service-point-option:hover {
        border-color: var(--primary-color, #007bff);
    }

    .service-point-option:has(input:checked) {
        border-color: var(--primary-color, #007bff);
        background: #f0f7ff;
    }

    .service-point-option input[type="radio"] {
        margin-top: 0.25rem;
    }

.service-point-info {
    flex: 1;
}

.service-point-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.service-point-name {
    font-weight: 600;
}

.service-point-distance {
    font-size: 0.85rem;
    color: #666;
    background: #e9ecef;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}

.service-point-address {
    font-size: 0.9rem;
    color: #555;
}

.loading-service-points,
.no-service-points,
.error-service-points {
    padding: 1rem;
    text-align: center;
    color: #666;
}

.error-service-points {
    color: #dc3545;
}

.delivery-estimate-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    margin-bottom: 1rem;
    color: #2e7d32;
    font-size: 0.9rem;

    .icon {
        flex-shrink: 0;
    }
}*/
.order-summary-box {
  background: var(--shop-card-bg);
  border: 1px solid var(--shop-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--shop-text) 8%, transparent);
}
@media (min-width: 768px) {
  .order-summary-box {
    padding: 1.25rem;
  }
}
.order-summary-box h2 {
  margin: 0 0 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--shop-border);
  font-size: 1rem;
  font-weight: 800;
  color: var(--shop-text);
}

.order-items {
  max-height: 180px;
  overflow-y: auto;
  background: color-mix(in srgb, var(--shop-text) 2%, transparent);
  border: 1px solid var(--shop-border-light);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
}
.order-items .order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--shop-border-light);
}
.order-items .order-item:last-child {
  border-bottom: none;
}
.order-items .order-item .item-name {
  color: var(--shop-muted);
  flex: 1;
  padding-right: 0.5rem;
}
.order-items .order-item .item-qty {
  color: var(--shop-muted);
  margin-right: 0.5rem;
}
.order-items .order-item .item-price {
  font-weight: 500;
  color: var(--shop-text);
  white-space: nowrap;
}

.checkout-input-clear-btn {
  min-width: 2.4rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
.checkout-input-clear-btn i {
  font-size: 0.8rem;
}

.summary-divider {
  height: 1px;
  background: var(--shop-border);
  margin: 1rem 0;
}

.discount-code-box {
  border: 1px solid var(--shop-border-light);
  border-radius: 0.65rem;
  padding: 0.7rem;
  background: #fff;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.discount-code-box.is-applied {
  border-color: color-mix(in srgb, var(--shop-primary) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-primary) 14%, transparent);
}

.checkout-discount-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--shop-text);
  font-weight: 700;
}
.checkout-discount-toggle i {
  transition: transform 0.2s ease;
}
.checkout-discount-toggle.is-expanded i {
  transform: rotate(180deg);
}

.checkout-discount-panel {
  margin-top: 0.6rem;
}

.checkout-discount-input {
  text-transform: uppercase;
}
.checkout-discount-input.is-applied {
  font-weight: 700;
  color: var(--shop-primary);
}

.checkout-discount-btn {
  min-width: 5.75rem;
  font-weight: 600;
}
.checkout-discount-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.checkout-discount-btn[aria-busy=true] {
  opacity: 0.75;
}

.checkout-discount-status {
  min-height: 1.25rem;
}
.checkout-discount-status[data-state=error] {
  color: #b91c1c;
}
.checkout-discount-status[data-state=success] {
  color: #166534;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--shop-text);
}
.summary-row.summary-total {
  font-size: 1.125rem;
  font-weight: 700;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--shop-border);
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--shop-border-light);
  font-size: 0.875rem;
  gap: 0.5rem;
}
.order-item-row:last-child {
  border-bottom: none;
}
.order-item-row .order-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.order-item-row .order-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--shop-text);
}
.order-item-row .order-item-meta {
  font-size: 0.72rem;
  color: var(--shop-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-item-row .order-item-qty {
  color: var(--shop-muted);
  white-space: nowrap;
}
.order-item-row .order-item-price {
  font-weight: 500;
  color: var(--shop-text);
  white-space: nowrap;
}

.payment-badge {
  background: color-mix(in srgb, var(--shop-text) 3%, transparent);
  border-radius: 8px;
  padding: 0.75rem;
  margin: 1rem 0;
  text-align: center;
}
.payment-badge .payment-swish img {
  height: 28px;
}
.payment-badge .payment-invoice {
  font-weight: 500;
  color: var(--shop-muted);
}

.btn-place-order {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--shop-btn-primary);
  color: var(--shop-btn-primary-text);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-place-order:hover {
  background: var(--shop-btn-hover);
}
.btn-place-order:hover:not(:disabled) {
  opacity: 0.9;
}
.btn-place-order:disabled {
  background: var(--shop-muted);
  cursor: not-allowed;
}

.checkout-terms {
  font-size: 0.75rem;
  color: var(--shop-muted);
  text-align: center;
  margin: 1rem 0 0;
  line-height: 1.4;
}
.checkout-terms a {
  color: var(--shop-secondary);
}
.checkout-terms a:hover {
  color: var(--shop-primary);
}

.swish-waiting {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--shop-card-bg);
  border-radius: 12px;
}
.swish-waiting .swish-logo {
  width: 120px;
  margin-bottom: 1.5rem;
}
.swish-waiting h2 {
  margin: 0 0 0.5rem;
  color: var(--shop-text);
}
.swish-waiting p {
  color: var(--shop-muted);
  margin: 0 0 1rem;
}
.swish-waiting .swish-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--shop-border);
  border-top-color: #59BB47;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1.5rem auto;
}
.swish-waiting .swish-reference {
  font-size: 0.875rem;
  color: var(--shop-muted);
}
.swish-waiting .btn-secondary {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--shop-card-bg);
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  color: var(--shop-text);
  cursor: pointer;
}
.swish-waiting .btn-secondary:hover {
  background: color-mix(in srgb, var(--shop-text) 5%, transparent);
}

.checkout-step {
  transition: opacity 0.3s ease;
}
.checkout-step.locked .step-content {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.5);
}
.checkout-step.locked .step-status {
  display: flex;
  color: var(--shop-muted);
}
.checkout-step.unlocked .step-status {
  display: none;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.step-indicator .step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--shop-primary);
  color: var(--shop-primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.step-indicator h2 {
  margin: 0;
  color: var(--shop-text);
}

.step-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--shop-muted);
}
.step-status .lock-icon {
  opacity: 0.7;
}

.checkout-step.unlocked .step-number {
  background: var(--shop-success);
  color: var(--shop-card-bg);
}

/*// Step-based checkout
.checkout-step {
    transition: opacity 0.3s ease;

    &.locked {
        .step-content {
            opacity: 0.4;
            pointer-events: none;
            filter: grayscale(0.5);
        }

        .step-status {
            display: flex;
            color: var(--text-muted);
        }
    }

    &.unlocked {
        .step-status {
            display: none;
        }
    }
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    .step-number {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.9rem;
    }

    h2 {
        margin: 0;
    }
}

.step-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);

    .lock-icon {
        opacity: 0.7;
    }
}

.checkout-step.unlocked .step-number {
    background: var(--success-color);
}
*/
.confirmation-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.confirmation-box {
  text-align: center;
  max-width: 860px;
  width: 100%;
  background: var(--shop-card-bg);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--shop-shadow);
}

.confirmation-icon {
  margin-bottom: 1.5rem;
  color: var(--shop-success);
}

.confirmation-box h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--shop-text);
}

.order-reference {
  background: color-mix(in srgb, var(--shop-text) 5%, transparent);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  color: var(--shop-text);
  font-weight: 500;
}
.order-reference .btn {
  vertical-align: middle;
}

.confirmation-customization-details {
  text-align: left;
}
.confirmation-customization-details summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.confirmation-customization-details summary::-webkit-details-marker {
  display: none;
}

.confirmation-customization-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.confirmation-customization-image-link {
  display: inline-flex;
  border: 1px solid var(--shop-border, rgba(17, 24, 39, 0.12));
  border-radius: 8px;
  overflow: hidden;
}

.confirmation-customization-thumb {
  display: block;
  width: 100%;
  max-width: 220px;
  max-height: 220px;
  object-fit: cover;
  background: color-mix(in srgb, var(--shop-text) 4%, transparent);
}

@media (min-width: 768px) {
  .confirmation-customization-image-wrap {
    flex-direction: row;
    align-items: center;
  }
}
.confirmation-text {
  color: var(--shop-muted);
  margin-bottom: 2rem;
}

.btn-continue {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--shop-btn-primary);
  color: var(--shop-btn-primary-text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn-continue:hover {
  background: var(--shop-btn-hover);
  opacity: 0.9;
}
