/* ============================================================
   VEEBIPOOD (pood/) — kaubakaardid, ostukorv, tellimusvorm
   Kasutab site-modern.css muutujaid (--sm-*).
   ============================================================ */

.shop-section { padding: 36px 0 64px; }
.shop-section .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;
}

/* Ülemine riba */
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 20px;
}
.shop-back { color: var(--sm-accent, #399b15); font-weight: 600; text-decoration: none; }
.shop-back:hover { text-decoration: underline; }
.shop-cart-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--sm-accent, #399b15); color: #fff !important;
  font-weight: 600; text-decoration: none;
  box-shadow: var(--sm-shadow-sm);
  transition: background var(--sm-transition, .2s);
}
.shop-cart-link:hover { background: var(--sm-accent-hover, #236609); }
.shop-cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--sm-accent, #399b15);
  font-size: .8rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Teated */
.shop-alert { padding: 12px 16px; border-radius: var(--sm-radius-sm, 10px); margin-bottom: 18px; font-size: .95rem; }
.shop-alert--success { background: #e8f5e9; color: #1f4d10; border: 1px solid #c8e6c9; }
.shop-alert--error { background: #fdecea; color: #8b0000; border: 1px solid #f5c6cb; }

/* Sissejuhatus */
.shop-intro {
  background: var(--sm-bg-soft, #f7faf6);
  border: 1px solid var(--sm-border, #e8ede4);
  border-left: 4px solid var(--sm-accent, #399b15);
  border-radius: var(--sm-radius-sm, 10px);
  padding: 16px 20px; margin-bottom: 22px; color: var(--sm-text-muted, #5b6660);
}
.shop-intro p { margin: 0 0 6px; }
.shop-intro p:last-child { margin-bottom: 0; }
.shop-delivery { color: var(--sm-text-muted, #5b6660); font-size: .95rem; }
.shop-delivery i { color: var(--sm-accent, #399b15); margin-right: 4px; }

/* Filtrid */
.shop-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.shop-search { position: relative; flex: 1 1 280px; margin: 0; }
.shop-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa39d; }
.shop-search input, .shop-filters select {
  width: 100%; padding: 11px 14px; border: 1px solid #d9e0d5; border-radius: 10px;
  font-size: .95rem; font-family: inherit; background: #fff;
}
.shop-search input { padding-left: 38px; }
.shop-filters select { width: auto; min-width: 180px; }
.shop-search input:focus, .shop-filters select:focus {
  outline: none; border-color: #7eb855; box-shadow: 0 0 0 3px rgba(126,184,85,.18);
}
.shop-reset { color: var(--sm-text-muted, #5b6660); font-size: .9rem; }

/* Plokid */
.shop-block { margin-bottom: 34px; }
.shop-block-title {
  font-size: 1.35rem; margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
}
.shop-block-title .fa-star { color: #e0a800; }
.shop-count {
  font-size: .8rem; font-weight: 600; color: var(--sm-text-muted, #5b6660);
  background: var(--sm-bg-soft, #f7faf6); border: 1px solid var(--sm-border, #e8ede4);
  border-radius: 999px; padding: 2px 10px;
}

/* Kaardid */
.shop-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.shop-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--sm-border, #e8ede4);
  border-radius: var(--sm-radius, 14px); overflow: hidden;
  box-shadow: var(--sm-shadow-sm);
  transition: transform var(--sm-transition, .2s), box-shadow var(--sm-transition, .2s);
}
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--sm-shadow-md); }
.shop-grid--featured .shop-card { border-color: #f0dca0; }
.shop-card-img {
  display: block; aspect-ratio: 4 / 3; background: var(--sm-bg-soft, #f7faf6);
  overflow: hidden;
}
.shop-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.shop-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #b9c9ae; font-size: 2.6rem;
  background: linear-gradient(135deg, #f3f8ee, #e6efdc);
}
.shop-img-placeholder--big { font-size: 5rem; min-height: 300px; }
.shop-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.shop-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop-sku { font-size: .78rem; color: var(--sm-text-soft, #7a857e); }
.shop-card-title { font-size: 1rem; line-height: 1.35; margin: 0; font-weight: 700; }
.shop-card-title a { color: var(--sm-text, #1f2421); text-decoration: none; }
.shop-card-title a:hover { color: var(--sm-accent, #399b15); }

.shop-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.shop-badge--stock { background: #399b15; color: #fff; }   /* laos (Karjatnurme) – kohe saadaval */
.shop-badge--order { background: #fff3d6; color: #8a5a0b; }
.shop-stock-line { margin: 10px 0; padding: 9px 12px; background: #e8f5e1; border: 1px solid #b9dca5; border-radius: 8px; color: #24561a; font-size: .95rem; }
.shop-stock-line i { color: #399b15; margin-right: 4px; }

.shop-price { margin-top: auto; }
.shop-price strong { font-size: 1.25rem; color: var(--sm-text, #1f2421); }
.shop-unit { color: var(--sm-text-muted, #5b6660); font-size: .9rem; }
.shop-price-net { font-size: .8rem; color: var(--sm-text-soft, #7a857e); }
.shop-price--big strong { font-size: 1.9rem; }

/* Ostukorvi lisamine */
.shop-add { display: flex; gap: 8px; align-items: stretch; margin: 0; }
.shop-qty { margin: 0; flex: 0 0 72px; }
.shop-qty input {
  width: 100%; height: 100%; min-height: 40px; padding: 6px 8px; text-align: center;
  border: 1px solid #d9e0d5; border-radius: 8px; font-size: .95rem; font-family: inherit;
}
.shop-add-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.shop-add--big { max-width: 420px; margin: 18px 0; }
.shop-add--big .shop-qty { flex-basis: 90px; }
.shop-add--big .shop-add-btn { font-size: 1rem; padding: 12px 18px; }

/* Lehekülgede valik */
.shop-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.shop-pagination a, .shop-pagination span {
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--sm-border, #e8ede4); background: #fff;
  color: var(--sm-text, #1f2421); text-decoration: none; font-weight: 600;
}
.shop-pagination a:hover { border-color: #7eb855; color: var(--sm-accent, #399b15); }
.shop-pagination .current { background: var(--sm-accent, #399b15); border-color: var(--sm-accent, #399b15); color: #fff; }
.shop-pagination .shop-pg-gap { border: 0; background: transparent; min-width: 20px; }

.shop-note { color: var(--sm-text-soft, #7a857e); font-size: .88rem; text-align: center; margin-top: 10px; }

/* Tühi olek / tänuleht */
.shop-empty { text-align: center; padding: 50px 20px; color: var(--sm-text-muted, #5b6660); }
.shop-empty > i { font-size: 3rem; color: #b9c9ae; margin-bottom: 14px; display: block; }
.shop-empty h2 { margin: 0 0 8px; }
.shop-empty--small { padding: 30px 20px; }
.shop-thanks > i { color: var(--sm-accent, #399b15); }
.shop-order-nr { font-size: 1.2rem; color: var(--sm-accent, #399b15); }

/* Tootevaade */
.shop-product { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.shop-product-img {
  background: #fff; border: 1px solid var(--sm-border, #e8ede4); border-radius: var(--sm-radius, 14px);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.shop-product-img img { width: 100%; max-height: 520px; object-fit: contain; display: block; }
.shop-product-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 10px 0 14px; line-height: 1.2; }
.shop-desc h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.shop-desc p { color: var(--sm-text-muted, #5b6660); line-height: 1.7; }

/* Ostukorvi tabel */
.shop-cart-table-wrap {
  background: #fff; border: 1px solid var(--sm-border, #e8ede4); border-radius: var(--sm-radius, 14px);
  overflow: hidden; box-shadow: var(--sm-shadow-sm);
}
.shop-cart-table { width: 100%; border-collapse: collapse; }
.shop-cart-table th, .shop-cart-table td { padding: 12px 14px; border-bottom: 1px solid var(--sm-border-soft, #eef2ec); vertical-align: middle; }
.shop-cart-table th { background: var(--sm-bg-soft, #f7faf6); text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; color: var(--sm-text-muted, #5b6660); }
.shop-cart-table tr:last-child td { border-bottom: 0; }
.shop-cart-table .num { text-align: right; white-space: nowrap; }
.shop-cart-table td a { color: var(--sm-text, #1f2421); font-weight: 600; text-decoration: none; }
.shop-cart-table td a:hover { color: var(--sm-accent, #399b15); }
.shop-cart-table input[type="number"] {
  width: 80px; padding: 7px 8px; text-align: center; border: 1px solid #d9e0d5; border-radius: 8px; font-family: inherit;
}
.shop-remove-cell { width: 44px; text-align: center; }
.shop-remove {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #f0d0cc; background: #fff;
  color: #b23b2e; cursor: pointer;
}
.shop-remove:hover { background: #fdecea; }

.shop-cart-actions {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-top: 16px;
}
.shop-btn-light { background: #fff !important; color: var(--sm-text, #1f2421) !important; border: 1px solid #d9e0d5 !important; }
.shop-totals { min-width: 280px; margin-left: auto; }
.shop-totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; color: var(--sm-text-muted, #5b6660); }
.shop-totals-grand { border-top: 2px solid var(--sm-border, #e8ede4); margin-top: 4px; padding-top: 10px !important; font-size: 1.2rem; color: var(--sm-text, #1f2421) !important; }

/* Tellimuse vorm */
.shop-checkout {
  margin-top: 36px; background: #fff; border: 1px solid var(--sm-border, #e8ede4);
  border-radius: var(--sm-radius, 14px); padding: 28px; box-shadow: var(--sm-shadow-sm);
  max-width: 820px;
}
.shop-checkout h2 { margin: 0 0 6px; }
.shop-checkout-lead { color: var(--sm-text-muted, #5b6660); margin: 0 0 8px; }
.shop-checkout-form { margin-top: 18px; position: relative; }
.shop-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shop-form-group { margin-bottom: 16px; }
.shop-form-group label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: #333; }
.shop-form-group .req { color: #c0392b; }
.shop-form-group input[type="text"], .shop-form-group input[type="email"],
.shop-form-group input[type="tel"], .shop-form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 8px;
  font-size: .95rem; font-family: inherit; background: #fafafa;
}
.shop-form-group input:focus, .shop-form-group textarea:focus {
  outline: none; border-color: #7eb855; background: #fff; box-shadow: 0 0 0 3px rgba(126,184,85,.15);
}
.shop-form-group.has-error input, .shop-form-group.has-error textarea { border-color: #d9534f; background: #fff8f7; }
.shop-field-error { display: block; color: #b23b2e; font-size: .84rem; margin-top: 4px; }
.shop-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.shop-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: #4d8b2a; flex-shrink: 0; }
.shop-submit {
  width: 100%; padding: 14px 20px; font-size: 1.02rem; font-weight: 600; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}

/* Murupuru */
.shop-breadcrumbs { margin: -6px 0 18px; font-size: .9rem; }
.shop-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.shop-breadcrumbs li { display: inline-flex; align-items: center; color: var(--sm-text-muted, #5b6660); }
.shop-breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: #a7b0aa; }
.shop-breadcrumbs a { color: var(--sm-accent, #399b15); text-decoration: none; }
.shop-breadcrumbs a:hover { text-decoration: underline; }
.shop-breadcrumbs [aria-current] { color: var(--sm-text, #1f2421); font-weight: 600; }

/* Kaubagruppide paigutus: külgriba + sisu */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.shop-main { min-width: 0; }
.shop-sidebar { position: sticky; top: 90px; }
.shop-cat-menu {
  background: #fff; border: 1px solid var(--sm-border, #e8ede4);
  border-radius: var(--sm-radius, 14px); box-shadow: var(--sm-shadow-sm); overflow: hidden;
}
.shop-cat-menu summary {
  list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700;
  background: var(--sm-bg-soft, #f7faf6); border-bottom: 1px solid var(--sm-border, #e8ede4);
}
.shop-cat-menu summary::-webkit-details-marker { display: none; }
.shop-cat-menu summary i { color: var(--sm-accent, #399b15); margin-right: 6px; }
.shop-cat-menu summary small { display: none; font-weight: 600; color: var(--sm-text-muted, #5b6660); }
.shop-cat-list, .shop-cat-list ul { list-style: none; margin: 0; padding: 0; }
.shop-cat-list { padding: 6px 0; }
.shop-cat-list a {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  color: var(--sm-text, #1f2421); text-decoration: none; font-size: .93rem; line-height: 1.3;
}
.shop-cat-list a i { width: 18px; text-align: center; color: var(--sm-accent, #399b15); flex: 0 0 18px; }
.shop-cat-list a span { flex: 1; }
.shop-cat-list a em { font-style: normal; font-size: .78rem; color: var(--sm-text-soft, #7a857e); }
.shop-cat-list a:hover { background: var(--sm-bg-soft, #f7faf6); color: var(--sm-accent, #399b15); }
.shop-cat-list a.is-active { background: #e8f3df; color: var(--sm-accent, #399b15); font-weight: 700; }
.shop-cat-list ul a { padding: 6px 16px 6px 42px; font-size: .88rem; }
.shop-cat-list li.is-open > a { font-weight: 700; }
.shop-cat-empty { padding: 12px 16px; margin: 0; color: var(--sm-text-muted, #5b6660); }
.shop-cat-desc { color: var(--sm-text-muted, #5b6660); margin: -6px 0 18px; }

/* Grupiplaadid */
.shop-cat-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.shop-cat-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 20px 12px 16px; background: #fff; border: 1px solid var(--sm-border, #e8ede4);
  border-radius: var(--sm-radius, 14px); box-shadow: var(--sm-shadow-sm);
  color: var(--sm-text, #1f2421); text-decoration: none;
  transition: transform var(--sm-transition, .2s), box-shadow var(--sm-transition, .2s), border-color var(--sm-transition, .2s);
}
.shop-cat-tile:hover { transform: translateY(-3px); box-shadow: var(--sm-shadow-md); border-color: #b9d9a0; color: var(--sm-accent, #399b15); }
.shop-cat-tile-icon {
  width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #e8f3df; color: var(--sm-accent, #399b15); font-size: 1.5rem;
}
.shop-cat-tile-name { font-weight: 700; line-height: 1.3; }
.shop-cat-tile-count { font-size: .8rem; color: var(--sm-text-soft, #7a857e); }
.shop-cat-tiles--small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shop-cat-tiles--small .shop-cat-tile { padding: 14px 10px 12px; }
.shop-cat-tiles--small .shop-cat-tile-icon { width: 42px; height: 42px; font-size: 1.1rem; }
.shop-cat-tiles--small .shop-cat-tile-name { font-size: .9rem; }

/* Mobiil */
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .shop-sidebar { position: static; }
  .shop-cat-menu summary small { display: inline; }
  .shop-cat-menu summary::after { content: "\25BE"; float: right; color: var(--sm-text-soft, #7a857e); }
  .shop-cat-menu[open] summary::after { content: "\25B4"; }
  .shop-cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-cat-tile { padding: 14px 8px 12px; }
  .shop-cat-tile-icon { width: 44px; height: 44px; font-size: 1.15rem; }
  .shop-cat-tile-name { font-size: .9rem; }
  .shop-product { grid-template-columns: 1fr; gap: 20px; }
  .shop-img-placeholder--big { min-height: 220px; }
}
@media (max-width: 640px) {
  .shop-section { padding: 22px 0 44px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-card-body { padding: 10px 10px 12px; }
  .shop-card-title { font-size: .92rem; }
  .shop-price strong { font-size: 1.08rem; }
  .shop-add { flex-direction: column; }
  .shop-qty { flex: 0 0 auto; }
  .shop-qty input { min-height: 38px; height: auto; }
  /* Tootelehel jäävad kogus ja nupp kõrvuti */
  .shop-add--big { flex-direction: row; }
  .shop-add--big .shop-qty { flex: 0 0 80px; }
  .shop-add--big .shop-qty input { height: 100%; }
  .shop-filters select, .shop-filters .btn { flex: 1 1 auto; }
  .shop-form-row { grid-template-columns: 1fr; gap: 0; }
  .shop-checkout { padding: 20px 16px; }

  /* Ostukorvi tabel kaartidena */
  .shop-cart-table thead { display: none; }
  .shop-cart-table, .shop-cart-table tbody, .shop-cart-table tr, .shop-cart-table td { display: block; width: 100%; }
  .shop-cart-table tr { position: relative; padding: 10px 0; border-bottom: 1px solid var(--sm-border-soft, #eef2ec); }
  .shop-cart-table td { border: 0; padding: 4px 56px 4px 14px; }
  .shop-cart-table td.num { text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .shop-cart-table td.num::before { content: attr(data-label); color: var(--sm-text-soft, #7a857e); font-size: .85rem; }
  .shop-remove-cell { position: absolute; top: 10px; right: 8px; width: auto; padding: 0 !important; }
  .shop-totals { min-width: 0; width: 100%; }
  .shop-cart-actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ---- PATURA: märgid, variandid, galerii, andmed (2026-10-24) ---- */
.shop-badge--freight { background: #e9f0fb; color: #1f4f8f; }
.shop-badge--new { background: #fde8d4; color: #9a4a06; }
.shop-card-img { position: relative; }
.shop-card-ribbon {
  position: absolute; top: 10px; left: 10px; background: #e07a1f; color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.shop-from { font-size: .82rem; color: var(--sm-text-muted, #5b6660); }
.shop-choose-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; text-decoration: none; }

.shop-freight-notice {
  display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 16px; padding: 10px 14px;
  background: #eef4fc; border: 1px solid #cfe0f5; border-radius: var(--sm-radius-sm, 10px);
  color: #1f4f8f; font-size: .93rem; line-height: 1.45;
}
.shop-freight-notice i { margin-top: 3px; }
.shop-freight-notice--small { margin: 6px 0 0; padding: 6px 10px; font-size: .82rem; }

.shop-variants { margin: 4px 0 16px; max-width: 520px; }
.shop-variants label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.shop-variants label small { font-weight: 500; color: var(--sm-text-soft, #7a857e); }
/* Ifor Williams: mõõtude selgitus (valiku all) ja kaardi mõõtude kokkuvõte */
.shop-variant-size-hint { margin: 8px 0 0; font-size: .82rem; line-height: 1.45; color: var(--sm-text-soft, #5f6a63); }
.shop-variant-size-hint i { color: var(--sm-accent, #399b15); margin-right: 2px; }
.shop-card-sizes { margin: -2px 0 0; font-size: .8rem; line-height: 1.4; color: var(--sm-text-soft, #5f6a63); }
.shop-variants-row { display: flex; gap: 8px; }
.shop-variants select {
  flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid #cfd8ca; border-radius: 8px;
  font-family: inherit; font-size: .95rem; background: #fff;
}
.shop-variants select:focus { outline: none; border-color: #7eb855; box-shadow: 0 0 0 3px rgba(126,184,85,.15); }

.shop-gallery { min-width: 0; }
.shop-gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  background: #fff; border: 1px solid var(--sm-border, #e8ede4); border-radius: var(--sm-radius, 14px);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.shop-gallery-track::-webkit-scrollbar { display: none; }
.shop-gallery-slide {
  flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 0; margin: 0; background: #fff;
  cursor: zoom-in; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
}
.shop-gallery-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.shop-gallery-thumb {
  flex: 0 0 68px; height: 68px; padding: 3px; border: 2px solid var(--sm-border, #e8ede4);
  border-radius: 8px; background: #fff; cursor: pointer;
}
.shop-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-gallery-thumb.is-active, .shop-gallery-thumb:hover { border-color: var(--sm-accent, #399b15); }
.shop-lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible;
  position: fixed; inset: 0; margin: auto; /* keskele, ka kui globaalne reset nullib dialogi margini */
}
.shop-lightbox::backdrop { background: rgba(10, 14, 12, .86); }
.shop-lightbox img { display: block; max-width: 96vw; max-height: 90vh; object-fit: contain; background: #fff; border-radius: 8px; }
.shop-lightbox button {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: #1f2421; cursor: pointer; font-size: 1.05rem; z-index: 2;
}
.shop-lightbox-close { top: 8px; right: 8px; }
.shop-lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.shop-lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

.shop-features { list-style: none; margin: 12px 0 0; padding: 0; }
.shop-features li { display: flex; gap: 8px; padding: 4px 0; color: var(--sm-text-muted, #5b6660); line-height: 1.5; }
.shop-features li i { color: var(--sm-accent, #399b15); margin-top: 4px; font-size: .8rem; }
.shop-specs h2, .shop-docs h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.shop-specs table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.shop-specs th, .shop-specs td { padding: 7px 10px; border-bottom: 1px solid var(--sm-border-soft, #eef2ec); text-align: left; vertical-align: top; }
.shop-specs th { width: 45%; font-weight: 600; color: var(--sm-text, #1f2421); background: var(--sm-bg-soft, #f7faf6); }
.shop-specs td { color: var(--sm-text-muted, #5b6660); }
.shop-docs ul { list-style: none; margin: 0; padding: 0; }
.shop-docs li { padding: 4px 0; }
.shop-docs a { color: var(--sm-accent, #399b15); text-decoration: none; font-weight: 600; }
.shop-docs a:hover { text-decoration: underline; }
.shop-docs a i { color: #c0392b; margin-right: 4px; }
.shop-docs small { font-weight: 400; color: var(--sm-text-soft, #7a857e); }
.shop-cart-freight-note { margin-top: 16px; }
@media (max-width: 640px) {
  .shop-gallery-thumb { flex-basis: 56px; height: 56px; }
  .shop-specs th { width: 50%; }
}

/* ===================== Filtrid (pood/index.php, pood/_facets_view.php) ===================== */
.shop-sidebar { position: static; }  /* filtripaneel võib olla ekraanist pikem — ei kleebi */
.shop-filter-panel {
  margin-top: 16px; background: #fff; border: 1px solid var(--sm-border, #e8ede4);
  border-radius: var(--sm-radius, 14px); box-shadow: var(--sm-shadow-sm);
}
.shop-filter-head {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  background: var(--sm-bg-soft, #f7faf6); border-bottom: 1px solid var(--sm-border, #e8ede4);
  border-radius: var(--sm-radius, 14px) var(--sm-radius, 14px) 0 0;
}
.shop-filter-head h2 { font-size: 1rem; margin: 0; font-weight: 700; }
.shop-filter-head h2 i { color: var(--sm-accent, #399b15); margin-right: 6px; }
.shop-filter-close { display: none; background: none; border: 0; font-size: 1.25rem; padding: 4px 8px; cursor: pointer; color: var(--sm-text, #1f2421); }
.shop-filter-body { padding: 4px 0; }
.shop-fgroup { border: 0; border-bottom: 1px solid var(--sm-border-soft, #eef2ec); margin: 0; padding: 12px 16px; min-width: 0; }
.shop-fgroup legend, .shop-fgroup > summary {
  font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: 6px; color: var(--sm-text, #1f2421);
}
.shop-fgroup legend { float: left; width: 100%; }
.shop-fgroup legend + * { clear: both; }
.shop-fgroup > summary { cursor: pointer; list-style: none; margin: 0; display: flex; align-items: center; gap: 6px; }
.shop-fgroup > summary::-webkit-details-marker { display: none; }
.shop-fgroup > summary::after { content: "\25BE"; margin-left: auto; color: var(--sm-text-soft, #7a857e); }
.shop-fgroup[open] > summary { margin-bottom: 6px; }
.shop-fgroup[open] > summary::after { content: "\25B4"; }
.shop-fsel { background: var(--sm-accent, #399b15); color: #fff; border-radius: 10px; font-size: .72rem; padding: 0 7px; line-height: 1.5; }
.shop-fopts--scroll { max-height: 236px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.shop-fcheck {
  display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; font-size: .9rem; line-height: 1.3; cursor: pointer; margin: 0;
}
.shop-fcheck input { margin: 2px 0 0; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--sm-accent, #399b15); }
.shop-fcheck-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.shop-fcheck em { font-style: normal; font-size: .78rem; color: var(--sm-text-soft, #7a857e); padding-top: 1px; }
.shop-fcheck.is-empty { opacity: .45; cursor: default; }
.shop-price-range { display: flex; align-items: center; gap: 6px; }
.shop-price-range input {
  width: 100%; min-width: 0; flex: 1 1 0; padding: 7px 8px; border: 1px solid var(--sm-border, #dfe6da);
  border-radius: 8px; font-size: .9rem; background: #fff;
}
.shop-price-range input:focus { outline: 2px solid var(--sm-accent, #399b15); outline-offset: 1px; }
.shop-price-eur { color: var(--sm-text-muted, #5b6660); }
.shop-fhint { display: block; margin-top: 6px; font-size: .78rem; color: var(--sm-text-soft, #7a857e); }
.shop-fhint--block { padding: 10px 16px; margin: 0; }
.shop-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; }
.shop-filter-apply { flex: 1 1 auto; justify-content: center; }
.shop-filter-apply.is-loading { opacity: .7; }

/* Tulemuste riba: Filtrid (mobiil) + järjestus */
.shop-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: -6px 0 14px; }
.shop-filter-toggle { display: none; margin-right: auto; }
.shop-filter-badge { background: var(--sm-accent, #399b15); color: #fff; border-radius: 10px; font-size: .75rem; padding: 0 7px; margin-left: 4px; }
.shop-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--sm-text-muted, #5b6660); margin: 0; }
.shop-sort select { padding: 7px 10px; border: 1px solid var(--sm-border, #dfe6da); border-radius: 8px; background: #fff; font-size: .9rem; max-width: 100%; }

/* Aktiivsed filtrid (kiibid) */
.shop-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: #e8f3df; color: var(--sm-accent, #399b15); font-size: .85rem; font-weight: 600; text-decoration: none;
  border: 1px solid #cfe5bf; max-width: 100%; overflow-wrap: anywhere;
}
.shop-chip:hover { background: #d9ecca; }
.shop-chip i { font-size: .75rem; }
.shop-chip--clear { background: transparent; border-color: transparent; color: var(--sm-text-muted, #5b6660); text-decoration: underline; font-weight: 500; }

/* Loomaliikide riba (PATURA "Produktfinder" moodi, saidi rohelistes toonides) */
.shop-animals {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 12px 14px;
  background: var(--sm-accent-gradient, linear-gradient(135deg, #399b15, #5cb025)); border-radius: var(--sm-radius, 14px);
  color: #fff; box-shadow: var(--sm-shadow-sm);
}
.shop-animals-title { font-weight: 700; white-space: nowrap; font-size: .95rem; }
.shop-animals-list {
  list-style: none; margin: 0; padding: 2px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; flex: 1; min-width: 0;
}
.shop-animal {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 86px; padding: 6px 4px;
  border-radius: 12px; color: #fff; text-decoration: none; text-align: center; scroll-snap-align: start;
  border: 2px solid transparent; transition: background var(--sm-transition, .2s), border-color var(--sm-transition, .2s);
}
.shop-animal:hover, .shop-animal:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; }
.shop-animal.is-selected { background: #fff; color: var(--sm-accent, #399b15); border-color: #fff; }
.shop-animal-img {
  width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .92);
  display: inline-flex; align-items: center; justify-content: center; color: var(--sm-accent, #399b15); font-size: 1.4rem;
}
.shop-animal-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-animal.is-selected .shop-animal-img { box-shadow: 0 0 0 3px var(--sm-accent, #399b15); }
.shop-animal-name { font-size: .78rem; font-weight: 700; line-height: 1.2; }
.shop-animal-count { font-size: .7rem; opacity: .85; }

@media (max-width: 860px) {
  .shop-js .shop-filter-toggle { display: inline-flex; align-items: center; gap: 6px; }
  /* JS olemas: filtrid alt üles avanev leht; ilma JS-ita tavaline plokk külgribas */
  .shop-js .shop-filter-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; margin: 0; max-height: 88vh;
    display: flex; flex-direction: column; border-radius: 18px 18px 0 0; border: 0;
    transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; visibility: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
  }
  .shop-js .shop-filter-panel.is-open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .shop-js .shop-filter-form { display: flex; flex-direction: column; min-height: 0; max-height: 88vh; }
  .shop-js .shop-filter-head { border-radius: 18px 18px 0 0; }
  .shop-js .shop-filter-close { display: inline-block; }
  .shop-js .shop-filter-body { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
  .shop-js .shop-filter-actions { border-top: 1px solid var(--sm-border, #e8ede4); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .shop-filter-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 18, .45); z-index: 1090; }
  .shop-filter-backdrop[hidden] { display: none; }
  .shop-filter-lock, .shop-filter-lock body { overflow: hidden; }
  .shop-results-bar { justify-content: space-between; margin-top: 0; }
  .shop-animals { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; }
  .shop-animal { width: 76px; flex: 0 0 76px; }
}
@media (max-width: 400px) {
  .shop-sort span { display: none; }
}

/* ---- Soodushinnad (2026-10-24) ---- */
.shop-sale-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #d32f2f; color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .2px;
  padding: 3px 9px; border-radius: 999px; line-height: 1.3; white-space: nowrap;
}
.shop-sale-badge--card { position: absolute; top: 10px; right: 10px; font-size: .85rem; padding: 4px 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.shop-price--sale strong { color: #c62828; }
.shop-price-old { color: var(--sm-text-soft, #7a857e); font-size: .9rem; margin-left: 4px; }
.shop-price--big .shop-price-old { font-size: 1.15rem; }
.shop-sale-label { font-size: .8rem; font-weight: 700; color: #c62828; margin-top: 2px; }
.shop-sale-until { font-size: .8rem; color: #8a3b12; margin-top: 2px; }
.shop-cart-sale { font-size: .8rem; color: var(--sm-text-soft, #7a857e); margin-top: 2px; }
.shop-cart-sale .shop-sale-badge { font-size: .7rem; padding: 1px 7px; }
.shop-totals-saving { color: #c62828 !important; font-weight: 700; }
.shop-variant-sale-hint { margin: 6px 0 0; font-size: .85rem; color: #c62828; font-weight: 600; }
.shop-cat-list li.shop-cat-sale > a { color: #c62828; font-weight: 700; }
.shop-cat-list li.shop-cat-sale > a i { color: #c62828; }
.shop-cat-list li.shop-cat-sale > a.is-active { background: #fdecea; }
.shop-fgroup--sale .shop-fcheck-label { color: #c62828; font-weight: 700; }
.shop-sale-tile {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 18px;
  background: linear-gradient(135deg, #fff1ef, #fde3df); border: 1px solid #f5c2bb; border-radius: var(--sm-radius, 14px);
  color: #8e1b1b; text-decoration: none; box-shadow: var(--sm-shadow-sm);
  transition: transform var(--sm-transition, .2s), box-shadow var(--sm-transition, .2s);
}
.shop-sale-tile:hover { transform: translateY(-2px); box-shadow: var(--sm-shadow-md); color: #8e1b1b; }
.shop-sale-tile-icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #d32f2f; color: #fff; font-size: 1.3rem;
}
.shop-sale-tile-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.shop-sale-tile-text strong { font-size: 1.15rem; }
.shop-sale-tile-text small { color: #a33a2e; font-size: .88rem; }
.shop-sale-tile-go { font-weight: 700; white-space: nowrap; }
@media (max-width: 480px) {
  .shop-sale-tile { padding: 12px 14px; gap: 10px; }
  .shop-sale-tile-go { display: none; }
  .shop-price-old { display: inline-block; }
}

/* ============================================================
   Osakonnad (Karjakasvatuskaubad / Farmitehnika) ja hinnapäring (Hustler) — 2026-10-24
   ============================================================ */
.shop-dept-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shop-dept-tile {
  display: flex; align-items: center; gap: 16px; padding: 22px 20px; min-width: 0;
  border-radius: var(--sm-radius, 14px); background: #f3f8ee; border: 2px solid #d6e8c7;
  color: #1f3510 !important; text-decoration: none !important; box-shadow: var(--sm-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.shop-dept-tile:hover, .shop-dept-tile.is-active { transform: translateY(-2px); border-color: var(--sm-accent, #399b15); }
.shop-dept-tile--farmitehnika { background: #eef5ea; border-color: #b9d9a3; }
.shop-dept-tile-icon {
  flex: 0 0 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sm-accent, #399b15); color: #fff; font-size: 1.7rem;
}
.shop-dept-tile-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.shop-dept-tile-text strong { font-size: 1.3rem; line-height: 1.2; }
.shop-dept-tile-text small { color: #55654a; font-size: .88rem; line-height: 1.35; }
.shop-dept-tile-count { flex: 0 0 auto; font-weight: 700; color: var(--sm-accent, #399b15); white-space: nowrap; font-size: .9rem; }
.shop-dept-intro { margin: 0 0 14px; padding: 12px 14px; background: #f3f8ee; border-left: 4px solid var(--sm-accent, #399b15); border-radius: 8px; }
.shop-cat-list .shop-cat-dept > a { margin-top: 8px; font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .03em; color: #5b2f11; }
@media (max-width: 760px) {
  .shop-dept-tiles { grid-template-columns: 1fr; gap: 10px; }
  .shop-dept-tile { padding: 14px; gap: 12px; flex-wrap: wrap; }
  .shop-dept-tile-icon { flex-basis: 48px; height: 48px; font-size: 1.3rem; }
  .shop-dept-tile-text { flex-basis: calc(100% - 64px); }
  .shop-dept-tile-text strong { font-size: 1.1rem; }
  .shop-dept-tile-count { margin-left: 60px; }
}

/* Hind kokkuleppel + päringunupp */
.shop-price--ask strong { color: #5b2f11; }
.shop-ask-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-decoration: none !important; }
.shop-ask-btn--big { width: auto; padding: 12px 22px; font-size: 1.05rem; }
.shop-ask-row { margin: 10px 0 14px; }
.shop-warranty { margin: 10px 0; padding: 10px 12px; background: #eef4fc; border: 1px solid #cfe0f5; border-radius: 8px; color: #1f4f8f; font-size: .92rem; }

/* Sobiv lisavarustus / sobib masinatele */
.shop-related { margin-top: 24px; }
.shop-related h2 { font-size: 1.15rem; margin: 0 0 10px; }
.shop-mini-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.shop-mini-list a { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #e3e9dc; border-radius: 10px; background: #fff; color: inherit; text-decoration: none; min-width: 0; }
.shop-mini-list a:hover { border-color: var(--sm-accent, #399b15); }
.shop-mini-img { flex: 0 0 56px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: #f6f8f3; border-radius: 6px; overflow: hidden; color: #9aa58f; }
.shop-mini-img img { width: 100%; height: 100%; object-fit: contain; }
.shop-mini-text { min-width: 0; display: flex; flex-direction: column; }
.shop-mini-name { font-size: .88rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.shop-mini-text small { color: #7a8570; font-size: .76rem; }

/* Hinnapäringu vorm */
.shop-quote-section { margin-top: 32px; padding: 22px; background: #f8faf5; border: 1px solid #dfe9d5; border-radius: var(--sm-radius, 14px); scroll-margin-top: 90px; }
.shop-quote-section h2 { margin-top: 0; }
.shop-quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; scroll-margin-top: 90px; }
.shop-quote-aside { position: sticky; top: 100px; }
.shop-quote-product { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #e3e9dc; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.shop-quote-product img { width: 100%; height: auto; border-radius: 8px; }
.shop-quote-product small { color: #7a8570; }
.shop-quote-form { max-width: 760px; }
.shop-qf-group { border: 1px solid #e3e9dc; border-radius: 12px; padding: 14px 16px 16px; margin: 0 0 14px; background: #fff; min-width: 0; }
.shop-qf-group legend { font-weight: 700; padding: 0 6px; }
.shop-quote-form label { display: block; font-weight: 600; margin: 8px 0 4px; }
.shop-quote-form input[type=text], .shop-quote-form input[type=email], .shop-quote-form input[type=tel], .shop-quote-form select, .shop-quote-form textarea {
  width: 100%; max-width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #cfd8c6; border-radius: 8px; font: inherit; background: #fff;
}
.shop-qf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.shop-qf-label { font-weight: 600; margin: 12px 0 6px; }
.shop-qf-label small, .shop-qf-hint { font-weight: 400; color: #6b7563; font-size: .84rem; }
.shop-qf-hint { display: block; margin-top: 4px; }
.shop-qf-opts { margin-top: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
.shop-qf-opts .shop-qf-label { grid-column: 1 / -1; }
.shop-quote-form label.shop-qf-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 4px 0; }
.shop-qf-check input { margin-top: 3px; flex: 0 0 auto; }
.shop-qf-check small { color: #7a8570; }
.shop-qf-radios { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.shop-quote-form .shop-qf-radios label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }
.shop-qf-consent { margin: 6px 0 12px !important; }
.shop-qf-submit { padding: 12px 24px; font-size: 1.05rem; }
.shop-quote-thanks i { font-size: 3rem; }
@media (max-width: 860px) {
  .shop-quote-layout { grid-template-columns: 1fr; }
  .shop-quote-aside { position: static; order: -1; }
  .shop-quote-product { flex-direction: row; align-items: center; }
  .shop-quote-product img { width: 90px; }
}
@media (max-width: 600px) {
  .shop-qf-grid, .shop-qf-opts { grid-template-columns: 1fr; }
  .shop-quote-section { padding: 14px; }
  .shop-qf-group { padding: 10px 12px 12px; }
}
.shop-qf-opts > *, .shop-qf-grid > * { min-width: 0; }
.shop-qf-check span { min-width: 0; overflow-wrap: anywhere; }
.shop-quote-layout > *, .shop-related, .shop-quote-section { min-width: 0; }
.shop-quote-form input[type=checkbox], .shop-quote-form input[type=radio] { width: auto; min-width: 0; flex: 0 0 auto; }
.shop-qf-check > span { flex: 1 1 auto; }

/* Hinnapäring: laadurikinnitus (raadionupud) + lisavarustus (märkeruudud) — skoobitud lähtestus saidi vormistiilide vastu */
.quote-groups { margin-top: 10px; display: flex; flex-direction: column; gap: 14px; }
.quote-groups input[type=radio], .quote-groups input[type=checkbox] {
  width: auto !important; height: auto; min-width: 0; margin: .2rem 0 0; padding: 0; flex: 0 0 auto; display: inline-block; position: static; opacity: 1;
}
.quote-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.shop-quote-form label.quote-pill {
  display: flex; align-items: center; gap: .45rem; margin: 0; padding: 7px 10px; border: 1px solid #cfd8c6; border-radius: 999px;
  background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; min-width: 0; line-height: 1.2;
}
.quote-pill input { margin: 0 !important; }
.quote-pill span { min-width: 0; overflow-wrap: anywhere; }
.quote-pill:has(input:checked) { border-color: var(--sm-accent, #399b15); background: #eef6e7; }
.quote-pill:focus-within { outline: 2px solid var(--sm-accent, #399b15); outline-offset: 1px; }
.quote-opts { display: flex; flex-direction: column; gap: 2px; }
.shop-quote-form label.quote-opt {
  display: flex; align-items: flex-start; gap: .55rem; margin: 0; padding: 6px 4px; font-weight: 400; cursor: pointer; border-bottom: 1px solid #f0f2ec;
}
.quote-opt-text { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.quote-opt-name { font-weight: 600; }
.quote-opt-code { color: #8a9380; font-size: .78rem; white-space: nowrap; }
.quote-opt-hint { display: block; color: #6b7563; font-size: .82rem; }
@media (max-width: 760px) { .quote-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .quote-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote-product-card { display: flex; gap: 12px; align-items: center; min-width: 0; }
.quote-product-img { flex: 0 0 110px; height: 80px; display: inline-flex; align-items: center; justify-content: center; background: #f6f8f3; border-radius: 10px; overflow: hidden; color: #9aa58f; font-size: 1.6rem; }
.quote-product-img img { width: 100%; height: 100%; object-fit: contain; }
.quote-product-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quote-product-name { font-weight: 700; font-size: 1.05rem; color: inherit; overflow-wrap: anywhere; }
.quote-product-text small { color: #7a8570; }
.quote-product-change { font-size: .88rem; margin-top: 2px; }
.shop-quote-layout { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
@media (max-width: 480px) { .quote-product-img { flex-basis: 80px; height: 60px; } }

/* ============================================================
   Osakonnakaardid tootja logo ja tootefotodega + fotoga grupiplaadid — 2026-10-24
   ============================================================ */
.shop-dept-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.shop-dept-card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px;
  background: #fff; border: 1px solid var(--sm-border, #e8ede4); border-top: 4px solid var(--sm-accent, #399b15);
  border-radius: var(--sm-radius, 14px); box-shadow: var(--sm-shadow-sm);
}
.shop-dept-card--karjakasvatus { border-top-color: #4caf50; }   /* PATURA leheroheline aktsent */
.shop-dept-card--farmitehnika { border-top-color: #009b3a; }    /* Hustleri roheline aktsent */
.shop-dept-card.is-active { border-color: var(--sm-accent, #399b15); }
.shop-dept-card-head { display: flex; flex-direction: column; gap: 6px; }
.shop-dept-card-brand { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; text-decoration: none !important; align-self: flex-start; }
.shop-dept-card-logo { display: block; height: 44px; width: auto; max-width: 100%; }
.shop-dept-card-brand small {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #4d6b3a;
  background: #eef5ea; border: 1px solid #d6e8c7; border-radius: 999px; padding: 3px 9px;
}
.shop-dept-card-title { margin: 4px 0 0; font-size: 1.35rem; line-height: 1.2; }
.shop-dept-card-title a { color: #1f3510; text-decoration: none; }
.shop-dept-card-title a:hover { color: var(--sm-accent, #399b15); }
.shop-dept-card-sub { margin: 0; color: #55654a; font-size: .9rem; line-height: 1.4; }
.shop-dept-card-hero {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px;
  background: #fff; border: 1px solid #eef1ea;
}
.shop-dept-card-hero img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.shop-dept-card-hero:hover img { transform: scale(1.03); }
.shop-dept-card-hero-cap {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 10px; border-radius: 999px;
  background: rgba(31, 53, 16, .82); color: #fff; font-size: .78rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shop-dept-card-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shop-dept-card-chips a {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; height: 100%;
  padding: 6px 6px 8px; border: 1px solid var(--sm-border, #e8ede4); border-radius: 10px; background: #fafcf8;
  color: #1f3510; text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.shop-dept-card-chips a:hover { border-color: var(--sm-accent, #399b15); transform: translateY(-2px); color: var(--sm-accent, #399b15); }
.shop-dept-chip-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #fff; color: var(--sm-accent, #399b15); font-size: 1.4rem; }
.shop-dept-chip-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-dept-chip-name { font-weight: 700; font-size: .82rem; line-height: 1.25; overflow-wrap: anywhere; }
.shop-dept-card-chips small { color: var(--sm-text-soft, #7a857e); font-size: .74rem; }
.shop-dept-card-foot { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.shop-dept-card-note { flex: 1 1 100%; margin: 0; padding: 8px 12px; border-radius: 8px; background: #fff8ec; border: 1px solid #f1dfba; color: #5b2f11; font-size: .88rem; font-weight: 600; }
.shop-dept-card-count { font-weight: 700; color: var(--sm-accent, #399b15); }
.shop-dept-card-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; }
@media (max-width: 1100px) {
  .shop-dept-card-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shop-dept-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .shop-dept-card { padding: 14px; }
  .shop-dept-card-logo { height: 36px; }
  .shop-dept-card-title { font-size: 1.15rem; }
  .shop-dept-card-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 380px) {
  .shop-dept-card-btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* Osakonna lehe sissejuhatus logoga */
.shop-dept-intro--brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shop-dept-intro--brand .shop-brand-logo { height: 40px; width: auto; flex: 0 0 auto; }
.shop-dept-intro--brand span { flex: 1 1 260px; min-width: 0; }

/* Tootja tootelehel */
.shop-product-maker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #55654a; font-size: .9rem; text-decoration: none; }
.shop-product-maker .shop-brand-logo { height: 26px; width: auto; }

/* Fotoga grupiplaadid (5 reas laial ekraanil, 2 mobiilis) */
@media (min-width: 1100px) {
  .shop-cat-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.shop-cat-tile--photo { padding: 8px 8px 12px; gap: 6px; }
.shop-cat-tile-photo { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #fff; }
.shop-cat-tile-photo img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.shop-cat-tile--photo:hover .shop-cat-tile-photo img { transform: scale(1.04); }
.shop-cat-tiles--small .shop-cat-tile--photo { padding: 6px 6px 10px; }
@media (max-width: 760px) {
  .shop-cat-tile--photo { padding: 6px 6px 10px; }
}

/* ===== Tootekaartide nupud ühesuurused (kasutaja soov 2026-10-24) =====
   Kaardil: üks täislaiuses nupp 44 px (Lisa ostukorvi / Vali variant / Küsi hinnapakkumist).
   Kogus valitakse ostukorvis või tootelehel — kaardil on vaikimisi 1 (peidetud väli saadab väärtuse). */
.shop-card .shop-add { display: block; margin-top: 12px; }
.shop-card .shop-qty { display: none; }
.shop-card .shop-add-btn,
.shop-card a.shop-add-btn,
.shop-card .btn.shop-add-btn {
  display: flex; width: 100%; box-sizing: border-box;
  height: 44px; min-height: 44px; max-height: 44px;
  padding: 0 14px; margin: 0;
  border-radius: 999px; font-size: .95rem; font-weight: 700; line-height: 1;
  align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: none; transform: none !important;
}
.shop-card .shop-add-btn:hover { transform: none !important; }
.shop-card .shop-add-btn i { flex: 0 0 auto; }
/* Hinnaplokk alati samal kõrgusel, nupud ühel joonel kaartide lõpus */
.shop-card-body { display: flex; flex-direction: column; }
.shop-card-body > .shop-add, .shop-card-body > a.shop-add-btn, .shop-card-body > .shop-ask-btn { margin-top: 12px; }

/* ===== Liikmetele soodushind (ainult info, 2026-10-24) ===== */
.shop-badge--member { background: #fff; color: #2d6a10; border: 1px solid #8cc06a; padding: 2px 8px; }
.shop-badge--member i { font-size: .9em; }
.shop-card-meta .shop-badge { max-width: 100%; white-space: normal; line-height: 1.25; }
.shop-member-box {
  display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 16px; padding: 12px 16px;
  background: #f3f9ee; border: 1px solid #cfe6c0; border-radius: var(--sm-radius-sm, 10px);
  color: #24451a; font-size: .93rem; line-height: 1.45; max-width: 560px;
}
.shop-member-box-icon {
  flex: 0 0 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid #b9dba3;
  display: flex; align-items: center; justify-content: center; color: #3f7d1c; font-size: 1.05rem;
}
.shop-member-box-text { min-width: 0; overflow-wrap: anywhere; }
.shop-member-box-text strong { display: block; font-size: 1rem; color: #2d6a10; }
.shop-member-box-text p { margin: 3px 0 6px; }
.shop-member-box-text a { color: #2d6a10; font-weight: 600; }
.shop-member-box-link { display: inline-block; font-weight: 700; text-decoration: none; }
.shop-member-box-link:hover { text-decoration: underline; }
.shop-member-note {
  display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 14px; padding: 8px 12px;
  background: #f3f9ee; border: 1px solid #cfe6c0; border-radius: var(--sm-radius-sm, 10px);
  color: #24451a; font-size: .9rem; line-height: 1.45;
}
.shop-member-note i { margin-top: 3px; color: #3f7d1c; }
.shop-member-check label span strong { color: #2d6a10; }
.shop-qf-member { margin: 0 0 6px !important; }
@media (max-width: 480px) {
  .shop-member-box { padding: 10px 12px; gap: 10px; font-size: .9rem; }
  .shop-member-box-icon { flex-basis: 32px; height: 32px; font-size: .95rem; }
  .shop-badge--member { font-size: .68rem; letter-spacing: .2px; }
}

/* Liikmete soodushinna kast tootelehel — kompaktne üherealine märge (kasutaja soov) */
.shop-member-box { display: inline-flex !important; align-items: center !important; gap: 8px !important; padding: 6px 12px !important; margin: 10px 0 !important; border-radius: 999px !important; width: auto !important; }
.shop-member-box-icon { flex: 0 0 auto !important; width: auto !important; height: auto !important; background: none !important; border: 0 !important; font-size: .9rem !important; color: #3f7d1c; }
.shop-member-box-text strong { font-size: .875rem !important; font-weight: 600 !important; }
/* Eestikeelne tõlgitud juhend (ET-märgis) */
.shop-docs li.shop-doc-et a i { color: var(--sm-accent, #399b15); }
.shop-doc-badge { display: inline-block; font-size: .7rem; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 3px; background: var(--sm-accent, #399b15); color: #fff; vertical-align: 1px; letter-spacing: .03em; }

/* Hinnapäringu korv (2026-11-18) */
.shop-toolbar-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.shop-cart-link--quote { background: #5b2f11; }
.shop-cart-link--quote:hover { background: #432108; }
.shop-cart-link--quote .shop-cart-count { color: #5b2f11; }
.shop-qadd--minor { margin-top: 8px; }
.shop-qadd--minor .shop-add-btn { font-size: .85rem; }
.shop-ask-single { display: inline-block; margin-top: 6px; font-size: .82rem; color: #667; text-decoration: underline; }
.shop-qadd-in { display: block; margin-top: 6px; font-size: .82rem; font-weight: 600; color: #2e7d32; text-decoration: none; }
.shop-qadd-in:hover, .shop-ask-single:hover { color: var(--sm-accent, #399b15); }
.shop-qcart { list-style: none; margin: 0; padding: 0; }
.shop-qcart li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e8ede3; }
.shop-qcart-img { flex: 0 0 64px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: #f6f8f3; border-radius: 6px; overflow: hidden; color: #9aa58f; }
.shop-qcart-img img { width: 100%; height: 100%; object-fit: contain; }
.shop-qcart-name { flex: 1; min-width: 0; }
.shop-qcart-name a { font-weight: 600; color: inherit; text-decoration: none; }
.shop-qcart-name a:hover { text-decoration: underline; }
.shop-qcart-name small { display: block; color: #889; }
.shop-qcart-qty { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.shop-qcart-qty input { width: 76px; min-height: 40px; padding: 6px 8px; text-align: center; border: 1px solid #d9e0d5; border-radius: 8px; font-size: .95rem; font-family: inherit; }
.shop-qcart-rm { border: 0; background: none; color: #b0413e; cursor: pointer; padding: 8px; border-radius: 6px; }
.shop-qcart-rm:hover { background: #fdecea; }
.shop-qcart-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.shop-qcart-actions a { font-weight: 600; color: var(--sm-accent, #399b15); text-decoration: none; }
.shop-qcart-upd { border: 1px solid #cfd8c8; background: #fff; border-radius: 8px; padding: 7px 12px; cursor: pointer; font-family: inherit; font-size: .88rem; }
@media (max-width: 560px) {
  .shop-qcart li { flex-wrap: wrap; }
  .shop-qcart-name { flex-basis: calc(100% - 80px); }
  .shop-qcart-qty { margin-left: 76px; }
}

/* ===== 2026-11-18: pood telefonis kompaktsem ja mugavam (kasutaja soov) ===== */
@media (max-width: 640px) {
  .shop-section { padding: 10px 0 40px !important; }
  /* ülariba: kleepub päise alla, väike „Hinnapäring (n)“ nupp */
  .shop-toolbar { position: sticky; top: calc(var(--ds-header-h, 60px) + var(--elku-ann-h, 0px)); z-index: 20; margin: 0 -16px 10px !important; padding: 8px 16px !important; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); box-shadow: 0 4px 10px rgba(0,0,0,.05); min-height: 0 !important; }
  .shop-toolbar .shop-cart-link { padding: 6px 12px !important; font-size: .86rem !important; gap: 6px !important; }
  .shop-toolbar .shop-cart-count { min-width: 20px; height: 20px; font-size: .75rem; }
  .shop-back { font-size: .9rem; }
  /* kaubagrupid: madalam riba */
  .shop-cat-menu summary { padding: 10px 14px !important; font-size: .95rem; }
  .shop-layout { gap: 10px !important; }
  /* sissejuhatus: 2 rida, tarneinfo ühel real */
  .shop-intro { padding: 10px 12px !important; margin-bottom: 10px !important; font-size: .88rem; line-height: 1.45; border-left-width: 3px !important; }
  .shop-intro p:first-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
  .shop-intro .shop-delivery { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* otsing: väli ja nupp ühes reas */
  .shop-filters { flex-wrap: nowrap !important; gap: 6px !important; margin-bottom: 14px !important; }
  .shop-filters .shop-search { flex: 1 1 auto !important; min-width: 0; }
  .shop-search input { height: 42px !important; min-height: 0 !important; font-size: .95rem !important; }
  .shop-filters .btn { flex: 0 0 auto !important; width: auto !important; padding: 0 14px !important; height: 42px; min-height: 0 !important; }
  .shop-filters .shop-reset { display: none; }
  .shop-block-title { font-size: 1.1rem !important; margin: 4px 0 10px !important; }
  /* kaardid: alati 2 kõrvuti, väiksem pilt ja tekst */
  .shop-grid, .shop-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .shop-card { border-radius: 12px !important; }
  .shop-card-img { aspect-ratio: auto !important; height: 64px !important; padding: 3px; }
  .shop-card-img img { object-fit: contain !important; }
  .shop-card-body { padding: 8px 9px 10px !important; gap: 5px !important; }
  .shop-card-meta { gap: 4px !important; }
  .shop-card-meta .shop-badge { font-size: .66rem !important; padding: 2px 6px !important; }
  .shop-card-title { font-size: .84rem !important; line-height: 1.3 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .shop-price strong { font-size: .98rem !important; }
  .shop-card .shop-price-net, .shop-card .shop-ask-single, .shop-card .shop-sku { display: none !important; }
  /* hinnapäringusse lisamine: kogus peidus (1 tk, kogust saab muuta päringu lehel), nupp väiksem */
  .shop-card .shop-qadd .shop-qty, .shop-card .shop-add:not(.shop-add--big) .shop-qty { display: none !important; }
  .shop-card .shop-add-btn, .shop-card .shop-ask-btn { min-height: 38px !important; padding: 6px 8px !important; font-size: .8rem !important; white-space: normal !important; line-height: 1.15; text-align: center; gap: 5px !important; }
  .shop-card .shop-qadd-in { font-size: .74rem; margin-top: 4px; }
  .shop-card .shop-qadd--minor { margin-top: 6px; }
}
@media (max-width: 380px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ===== 2026-11-18: vaate valik telefonis (ruudustik / nimekiri), pood/index.php .shop-view ===== */
.shop-view { display: none; }
@media (max-width: 900px) {
  .shop-view { display: flex; gap: 6px; justify-content: flex-end; margin: -6px 0 10px; }
  .shop-view button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid #d9e0d5; border-radius: 999px; background: #fff; color: #4b5a45; font: 600 .82rem/1 inherit; font-family: inherit; cursor: pointer; }
  .shop-view button[aria-pressed="true"] { background: #399b15; border-color: #399b15; color: #fff; }
  /* nimekirjavaade: üks toode reas — väike pilt vasakul, nimi ja nupp paremal */
  .shop-list .shop-grid, .shop-list .shop-grid--featured { grid-template-columns: 1fr !important; gap: 8px !important; }
  .shop-list .shop-card { display: grid !important; grid-template-columns: 58px minmax(0, 1fr); align-items: stretch; }
  .shop-list .shop-card-img { aspect-ratio: auto !important; width: 100% !important; min-width: 0; height: 100% !important; min-height: 58px; max-height: 96px; align-self: center; padding: 4px; border-right: 1px solid #f0efe6; border-bottom: 0 !important; }
  .shop-list .shop-card-img img { width: 100% !important; height: 100% !important; max-height: 88px; object-fit: contain !important; }
  .shop-list .shop-card .shop-qty, .shop-list .shop-card .shop-price-net, .shop-list .shop-card .shop-ask-single, .shop-list .shop-card .shop-sku { display: none !important; }
  .shop-list .shop-card-body { min-width: 0; }
  .shop-list .shop-card-body { padding: 8px 10px !important; gap: 3px !important; }
  .shop-list .shop-card-meta { display: none !important; }
  .shop-list .shop-card-title { -webkit-line-clamp: 2 !important; font-size: .86rem !important; }
  .shop-list .shop-price { margin-top: 0 !important; }
  .shop-list .shop-price strong { font-size: .86rem !important; }
  .shop-list .shop-card .shop-add, .shop-list .shop-card > .shop-card-body > a.shop-add-btn, .shop-list .shop-card .shop-ask-btn { margin-top: 4px !important; }
  .shop-list .shop-card .shop-add-btn, .shop-list .shop-card .shop-ask-btn { min-height: 32px !important; width: auto !important; align-self: flex-start; padding: 4px 12px !important; font-size: .78rem !important; white-space: nowrap !important; }
  .shop-list .shop-card .shop-add { flex-direction: row !important; align-self: flex-start; }
  .shop-list .shop-card-ribbon { display: none; }
}
