:root {
  /* Heledamad taustad */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #fff5eb;
  --bg-light: #fee6ce;
  --bg-medium: #fdd0a2;

  /* Aktsendid */
  --accent-soft: #fdae6b;
  --accent: #fd8d3c;
  --accent-strong: #f16913;

  /* Tekstitoonid */
  --text-primary: #8c2d04;
  --text-secondary: #d94801;
  --border-soft: #f5e1cc;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --max-width: 1280px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  letter-spacing: 0.01em;
}

body.modal-open {
  overflow: hidden;
}

/* ============================================
 PÄIS
 ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-soft);
  padding: var(--space-sm) var(--space-md);
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--accent-strong);
}

/* HERO */
.hero {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-soft);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 300;
}

/* ============================================
 FILTRI SEKTSIOON — uus disain
 ============================================ */
.filter-section {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-soft);
  padding: var(--space-md) var(--space-md) 0;
}

.filter-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Otsinguriba */
.search-wrapper {
  position: relative;
  margin-bottom: var(--space-md);
}

.search-icon {
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 0.875rem var(--space-md) 0.875rem 2.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
}

.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.search-input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(241, 105, 19, 0.08);
}

.search-clear {
  position: absolute;
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.375rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.search-clear:hover {
  color: var(--text-primary);
}

.search-clear.visible {
  display: flex;
}

.search-clear svg {
  width: 14px;
  height: 14px;
}

/* Filtri ridade konteinerid */
.filter-rows {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.filter-group.price-group {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .filter-group.price-group {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .filter-group.price-group {
    grid-column: span 1;
  }
}

.filter-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.filter-label-value {
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

/* Range slider parem disain */
.range-wrapper {
  position: relative;
  padding: 0.5rem 0;
}

.range-track-bg {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--border-soft);
  transform: translateY(-50%);
  pointer-events: none;
}

.range-track-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  background-color: var(--accent-strong);
  transform: translateY(-50%);
  pointer-events: none;
  transition: width 0.1s ease;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  position: relative;
  z-index: 2;
  height: 20px;
  margin: 0;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}

input[type="range"]::-moz-range-track {
  height: 3px;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  background: var(--bg-surface);
  border: 2px solid var(--accent-strong);
  border-radius: 50%;
  margin-top: -9px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(140, 45, 4, 0.12);
  transition: transform var(--transition), border-color var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  border-color: var(--text-primary);
}

input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  background: var(--bg-surface);
  border: 2px solid var(--accent-strong);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(140, 45, 4, 0.12);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* Custom select */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: var(--space-sm);
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
  transition: transform var(--transition);
}

.custom-select {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 0.75rem var(--space-md) 0.75rem var(--space-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
}

.custom-select:focus,
.custom-select:hover {
  border-color: var(--accent-strong);
}

.custom-select:focus {
  box-shadow: 0 0 0 3px rgba(241, 105, 19, 0.08);
}

/* Aktiivsete filtrite rida */
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border-soft);
  min-height: 56px;
}

.results-count {
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

.results-count strong {
  color: var(--text-primary);
  font-weight: 600;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--bg-medium);
  color: var(--text-primary);
  padding: 0.375rem 0.625rem 0.375rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.chip-remove {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: color var(--transition);
}

.chip-remove:hover {
  color: var(--text-primary);
}

.chip-remove svg {
  width: 10px;
  height: 10px;
}

.reset-button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.375rem 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--bg-medium);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.reset-button:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-primary);
}

/* ============================================
 OLEKUD
 ============================================ */
.status-message {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.status-message h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.status-message p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--bg-medium);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  animation: spin 0.8s linear infinite;
}

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

.retry-button {
  margin-top: var(--space-md);
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.retry-button:hover {
  background: var(--text-primary);
  color: var(--bg-page);
}

/* ============================================
 TOODETE RUUDUSTIK
 ============================================ */
.products {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.4s ease forwards;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(140, 45, 4, 0.06);
}

.product-visual {
  aspect-ratio: 4 / 3;
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-sm);
  transition: transform 0.5s ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.04);
}

.product-icon {
  width: 40%;
  height: 40%;
  color: var(--accent-strong);
  transition: transform 0.5s ease, color var(--transition);
}

.product-card:hover .product-icon {
  transform: scale(1.08);
  color: var(--text-primary);
}

.stock-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-soft);
}

.stock-badge.low {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.product-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex-grow: 1;
}

.product-category {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.product-name {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.product-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
}

.product-specs li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}

.product-specs li span:first-child {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
  align-self: center;
  flex-shrink: 0;
}

.product-specs li span:last-child {
  text-align: right;
  font-weight: 400;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-soft);
  letter-spacing: -0.01em;
}

.vat-info {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.details-vat-info {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-left: 0.35rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: var(--text-secondary);
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

/* ============================================
 MODAAL
 ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(140, 45, 4, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-md);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
}

.modal {
  background-color: var(--bg-surface);
  width: 100%;
  max-width: 1100px;
  margin: var(--space-md) auto;
  position: relative;
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 60px rgba(140, 45, 4, 0.12);
  opacity: 0;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  border-color: var(--text-primary);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  min-height: 500px;
}

.gallery {
  background-color: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-soft);
}

.gallery-main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.gallery-main img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.gallery-main .product-icon {
  width: 35%;
  height: 35%;
  color: var(--text-primary);
}

.gallery-counter {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition);
}

.gallery-nav:hover {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  border-color: var(--text-primary);
}

.gallery-nav svg {
  width: 14px;
  height: 14px;
}

.gallery-nav.prev {
  left: var(--space-md);
}

.gallery-nav.next {
  right: var(--space-md);
}

.gallery-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-nav:disabled:hover {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-soft);
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  overflow-x: auto;
  border-top: 1px solid var(--border-soft);
  background-color: var(--bg-surface);
}

.gallery-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: border-color var(--transition);
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.gallery-thumb:hover {
  border-color: var(--accent-strong);
}

.gallery-thumb.active {
  border-color: var(--text-primary);
  border-width: 2px;
}

.details {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
  max-height: 90vh;
  background-color: var(--bg-surface);
}

.details-category {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.details-name {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.details-manufacturer {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.details-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.details-price {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.details-stock {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.details-stock.low {
  color: var(--accent-strong);
}

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

.details-section-title {
  margin: 0;
  font-weight: inherit;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.details-description {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 300;
}

.details-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.details-specs li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9375rem;
}

.details-specs li:last-child {
  border-bottom: none;
}

.details-specs li span:first-child {
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.details-specs li span:last-child {
  color: var(--text-primary);
  font-weight: 400;
  text-align: right;
}

.details-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-soft);
}

.details-meta-item {
  font-size: 0.8125rem;
}

.details-meta-item .label {
  display: block;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.6875rem;
  margin-bottom: 0.25rem;
}

.details-meta-item .value {
  color: var(--text-primary);
  font-weight: 400;
}

/* Jagamise sektsioon detailvaates */
.details-share-box {
  margin-top: var(--space-xs);
  border: 1px solid var(--border-soft);
  background-color: var(--bg-subtle);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.share-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition);
  width: fit-content;
}

.share-toggle-btn:hover {
  color: var(--accent-strong);
}

.share-toggle-btn svg {
  width: 14px;
  height: 14px;
}

.share-email-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-xs);
  animation: fadeIn var(--transition) forwards;
}

.share-email-row {
  display: flex;
  gap: var(--space-xs);
}

.share-email-input {
  flex: 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 0.5rem var(--space-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.share-email-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.share-email-input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(241, 105, 19, 0.08);
}

.share-send-btn {
  background-color: var(--accent-strong);
  color: var(--bg-page);
  border: none;
  padding: 0.5rem var(--space-md);
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.share-send-btn:hover {
  background-color: var(--text-primary);
}

.share-send-btn:disabled {
  background-color: var(--border-soft);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.share-status {
  font-size: 0.8125rem;
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.4;
}

.share-status.success {
  color: #2e7d32;
}

.share-status.error {
  color: var(--accent-strong);
}

/* Ostusoovi sektsioon detailvaates */
.details-order-box {
  margin-top: 1rem;
  border: 1px solid var(--border-soft);
  background-color: var(--bg-subtle);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.order-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  color: var(--bg-page);
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
}

.order-toggle-btn:hover {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
}

.order-toggle-btn svg {
  width: 14px;
  height: 14px;
}

.order-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-sm);
  animation: fadeIn var(--transition) forwards;
  border-top: 1px dashed var(--border-soft);
  padding-top: var(--space-sm);
}

.order-intro-text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-primary);
  background-color: var(--bg-light);
  padding: var(--space-sm);
  border-left: 3px solid var(--accent-strong);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}

.order-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.order-form-grid .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-form-grid .form-group.full-width {
  grid-column: span 2;
}

.order-form-grid label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 600;
}

.order-form-grid input[type="text"],
.order-form-grid input[type="email"],
.order-form-grid textarea {
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 0.5rem var(--space-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.order-form-grid input[type="text"]:focus,
.order-form-grid input[type="email"]:focus,
.order-form-grid textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(241, 105, 19, 0.08);
}

.checkbox-group {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  cursor: pointer;
  padding: 4px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-strong);
  cursor: pointer;
}

.checkbox-group label {
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.8125rem !important;
  color: var(--text-primary) !important;
  font-weight: 400 !important;
}

.order-submit-btn {
  background-color: var(--text-primary);
  color: var(--bg-page);
  border: none;
  padding: 0.75rem var(--space-md);
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-xs);
}

.order-submit-btn:hover {
  background-color: var(--accent-strong);
}

.order-submit-btn:disabled {
  background-color: var(--border-soft);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.order-status {
  font-size: 0.8125rem;
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.4;
  text-align: center;
}

.order-status.success {
  color: #2e7d32;
}

.order-status.error {
  color: var(--accent-strong);
}

/* Honeypot peitmine */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* JALUS */
footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  margin-top: var(--space-xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-text a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-text a:hover {
  color: var(--accent-strong);
}

/* ============================================
   KONTAKT MODAALI KLASSID
   ============================================ */
.contact-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  min-height: 400px;
}

.contact-gallery-content {
  text-align: center;
  color: var(--text-primary);
}

.contact-gallery-icon {
  width: 80px;
  height: 80px;
  color: var(--accent-strong);
  margin-bottom: var(--space-sm);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.contact-gallery-title {
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
  font-size: 1.75rem;
}

.contact-gallery-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.4;
}

.contact-order-box {
  margin-top: 1rem;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.contact-order-panel {
  display: flex !important;
}

/* RESPONSIIVSUS */
@media (max-width: 900px) {
  .filter-rows {
    grid-template-columns: 1fr 1fr;
  }

  .modal-overlay {
    overflow-y: hidden;
  }

  .modal {
    margin: var(--space-md) auto;
    height: calc(100% - calc(var(--space-md) * 2));
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
  }

  .gallery {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
    max-height: 35vh;
    display: flex;
    flex-direction: column;
  }

  .gallery-main {
    min-height: 0;
    height: 180px;
    padding: var(--space-xs);
    flex-grow: 1;
  }

  .gallery-main img {
    max-height: 160px;
  }

  .gallery-thumbs {
    padding: var(--space-xs) var(--space-sm);
  }

  .gallery-thumb {
    width: 45px;
    height: 45px;
    padding: 2px;
  }

  .details {
    padding: var(--space-md);
    flex: 1;
    overflow-y: auto;
    max-height: none;
    -webkit-overflow-scrolling: touch;
  }

  .details-name {
    font-size: 1.5rem;
  }

  .details-price {
    font-size: 1.625rem;
  }

  .contact-gallery {
    min-height: auto;
    padding: var(--space-md);
  }
  
  .contact-gallery-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-xs);
  }
  
  .contact-gallery-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: var(--space-sm);
  }

  nav ul {
    gap: var(--space-sm);
  }

  .hero {
    padding: var(--space-lg) var(--space-md);
  }

  .filter-rows {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .modal-overlay {
    padding: 0;
    overflow-y: hidden;
  }

  .modal {
    margin: 0;
    height: 100vh;
    max-height: 100vh;
    border: none;
    border-radius: 0;
  }

  .details-meta {
    grid-template-columns: 1fr;
  }

  .active-filters {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   KOHANDATUD KERIMISRIBA JA LIIKUMISE SÜSTEEM
   ============================================ */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-strong) var(--bg-subtle);
  scroll-behavior: auto; /* Delegeerime kerimise Lenis raamistikule */
}

/* Chrome, Safari ja Edge tugi */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--border-soft);
  border-radius: 10px;
  border: 2px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft);
}

/* Skrollitud päise stiil */
header.header-scrolled {
  padding: calc(var(--space-sm) * 0.5) var(--space-md);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(140, 45, 4, 0.05);
  border-color: rgba(245, 225, 204, 0.4);
}

/* Tagasi üles nupp ringikujulise progressiga */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(10px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(140, 45, 4, 0.12);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--text-primary);
  color: var(--bg-page);
  box-shadow: 0 6px 20px rgba(140, 45, 4, 0.2);
  transform: translateY(-3px);
}

.scroll-to-top .progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.scroll-to-top .progress-ring__circle-bg {
  stroke: var(--border-soft);
}

.scroll-to-top .progress-ring__circle {
  transition: stroke-dashoffset 0.1s linear;
  stroke-dasharray: 125.66; /* 2 * PI * r (r = 20) = 125.66 */
  stroke-dashoffset: 125.66;
  stroke-linecap: round;
}

.scroll-to-top .arrow-icon {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 2;
  transition: transform var(--transition);
}

.scroll-to-top:hover .arrow-icon {
  transform: translateY(-2px);
}

/* PRIVAATSUSPOLIITIKA MODAAL */
.privacy-details {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.privacy-scroll-container {
  max-height: 420px;
  overflow-y: auto;
  padding-right: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.privacy-scroll-container h4 {
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-size: 1.05rem;
}

.privacy-scroll-container p {
  margin-bottom: var(--space-sm);
}

.privacy-scroll-container ul {
  margin-left: var(--space-md);
  margin-bottom: var(--space-md);
  list-style-type: disc;
}

.privacy-scroll-container li {
  margin-bottom: 0.25rem;
}

.privacy-scroll-container a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color var(--transition);
}

.privacy-scroll-container a:hover {
  text-decoration: underline;
}

/* Feedi uuenduse staatuse riba */
.feed-status-bar {
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: flex-start;
}

.feed-update-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-soft);
  background-color: var(--bg-surface);
}

.feed-update-status.yes {
  background-color: var(--bg-subtle);
  border-color: var(--accent-soft);
  color: var(--text-primary);
}

.feed-update-status.no {
  background-color: #fafafa;
  border-color: #e0e0e0;
  color: #757575;
}

.feed-update-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.feed-update-status.yes .status-dot {
  background-color: var(--accent-strong);
  box-shadow: 0 0 8px var(--accent);
}

.feed-update-status.no .status-dot {
  background-color: #9e9e9e;
}

.status-value-yes {
  color: var(--accent-strong);
  font-weight: 700;
  margin-left: 0.25rem;
}

.status-value-no {
  color: #c62828;
  font-weight: 700;
  margin-left: 0.25rem;
}


