/* Zarkood Core 5.0 — matches theme Industrial Botanical palette */
.zk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.zk-card {
  border: 1px solid #D4DFD2;
  border-radius: 22px;
  background: #FFFFFF;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}

.zk-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(11, 31, 26, 0.14);
  border-color: #B0C4A8;
}

.zk-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #F0F4EE 0%, #E2EAD8 100%);
}

.zk-card-image:empty { display: none; }

.zk-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.zk-card:hover img { transform: scale(1.05); }

.zk-card-body { padding: 1.5rem; }

.zk-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0.5rem 0;
  color: #0B1F1A;
}

.zk-card a { text-decoration: none; color: inherit; }
.zk-card a:hover { color: #1A5C3A; }

.zk-card p {
  font-size: 0.95rem;
  color: #6B7F74;
  line-height: 1.8;
}

.zk-card-link {
  display: block;
  border-top: 1px solid #D4DFD2;
  padding-top: 1rem;
  margin-top: 1.5rem;
  font-weight: 700;
  color: #1A5C3A;
  font-size: 0.875rem;
}

.zk-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(200, 245, 74, 0.2);
  color: #1A5C3A;
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-block;
}

.zk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid #D4DFD2;
  border-radius: 22px;
  background: #FFFFFF;
  margin-bottom: 2rem;
}

.zk-filters label {
  flex: 1;
  min-width: 140px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6B7F74;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.zk-filters input,
.zk-filters select,
.zk-contact-form input:not([type=checkbox]),
.zk-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: #0B1F1A;
  background: #FAFCF8;
  border: 1px solid #D4DFD2;
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.zk-filters input:focus,
.zk-filters select:focus,
.zk-contact-form input:focus,
.zk-contact-form textarea:focus {
  border-color: #1A5C3A;
  box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.12);
  outline: none;
}

.zk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #1A5C3A;
  color: #FFFFFF;
  padding: 14px 28px;
  min-height: 48px;
  box-sizing: border-box;
  border: 0;
  border-radius: 99px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.zk-button:hover {
  background: #0B1F1A;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(11, 31, 26, 0.12);
}

.zk-block a:focus-visible,
.zk-block button:focus-visible,
.zk-block summary:focus-visible,
.zk-block input:focus-visible,
.zk-block select:focus-visible,
.zk-block textarea:focus-visible {
  outline: 3px solid #C8F54A;
  outline-offset: 4px;
}

.zk-results,
.zk-filter-summary {
  font-size: 0.875rem;
  color: #6B7F74;
  margin-bottom: 1rem;
}

.zk-empty,
.zk-empty-state {
  padding: 3rem;
  text-align: center;
  border: 2px dashed #D4DFD2;
  border-radius: 22px;
  color: #6B7F74;
  background: #FAFCF8;
}

.zk-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.zk-pagination a,
.zk-pagination button,
.zk-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #D4DFD2;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}

.zk-pagination a:hover,
.zk-pagination button:hover {
  background: #F0F4EE;
  border-color: #B0C4A8;
}

.zk-pagination .current,
.zk-pagination [aria-current="page"] {
  background: #0B1F1A;
  color: #C8F54A;
  border-color: #0B1F1A;
}

.zk-breadcrumb {
  font-size: 0.8125rem;
  color: #6B7F74;
  padding-block: 1rem;
}

.zk-breadcrumb a {
  color: #1A5C3A;
  text-decoration: none;
}

.zk-breadcrumb a:hover { color: #0B1F1A; }

/* Forms */
.zk-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(24px, 3vw, 40px);
  background: #FFFFFF;
  border: 1px solid #D4DFD2;
  border-radius: 32px;
}

.zk-contact-form label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0B1F1A;
}

.zk-contact-form textarea { min-height: 140px; resize: vertical; }

.zk-contact-form .zk-button {
  align-self: flex-start;
  min-height: 54px;
  padding: 16px 32px;
  font-size: 1rem;
}

/* Dialog */
.zk-dialog {
  border: none;
  padding: 0;
  border-radius: 32px;
  background: #FFFFFF;
  color: #0B1F1A;
  width: min(960px, calc(100% - 32px));
  max-height: 88svh;
  overflow: auto;
  box-shadow: 0 40px 120px rgba(11, 31, 26, 0.3);
}

.zk-dialog::backdrop {
  background: rgba(11, 31, 26, 0.6);
  backdrop-filter: blur(6px);
}

.zk-dialog-shell { padding: clamp(20px, 4vw, 44px); }

.zk-dialog-close {
  position: sticky;
  top: 12px;
  display: block;
  margin-inline-start: auto;
  z-index: 3;
  width: 44px;
  height: 44px;
  background: #0B1F1A;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.zk-dialog-close:hover {
  background: #1A5C3A;
  transform: rotate(90deg);
}

.zk-quick-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.zk-quick-layout img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #F0F4EE;
  border-radius: 22px;
}

.zk-quick-layout h2 { font-size: 1.8rem; font-weight: 800; line-height: 1.4; }

/* Specs table */
.zk-specs {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #D4DFD2;
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.9375rem;
}

.zk-specs th,
.zk-specs td {
  padding: 14px 20px;
  text-align: start;
  border-bottom: 1px solid #D4DFD2;
}

.zk-specs th {
  font-weight: 700;
  background: #F0F4EE;
  color: #0B1F1A;
  width: 35%;
}

.zk-specs tr:nth-child(even) td { background: #FAFCF8; }
.zk-specs tr:last-child th,
.zk-specs tr:last-child td { border-bottom: none; }

/* Compare bar */
.zk-compare-bar {
  position: fixed;
  bottom: 20px;
  inset-inline: 20px;
  max-width: 680px;
  margin: auto;
  z-index: 110;
  background: #0B1F1A;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 32px 80px rgba(11, 31, 26, 0.18);
}

.zk-compare-bar[hidden] { display: none; }
.zk-compare-bar span { flex: 1; font-size: 0.875rem; }

.zk-compare-bar button {
  padding: 10px 20px;
  background: #C8F54A;
  color: #0B1F1A;
  border: none;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.zk-compare-bar button:hover {
  background: #FFFFFF;
  transform: scale(1.04);
}

.zk-compare-bar .zk-compare-clear {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  padding: 10px 12px;
}

.zk-compare-table-wrap { overflow: auto; }

.zk-compare-table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
  font-size: 0.9rem;
}

.zk-compare-table th,
.zk-compare-table td {
  padding: 1rem;
  border-bottom: 1px solid #D4DFD2;
  text-align: start;
  vertical-align: top;
}

.zk-compare-table thead th { font-size: 1rem; font-weight: 700; }
.zk-compare-table tbody th { width: 140px; font-weight: 600; color: #6B7F74; }
.zk-compare-table tr:nth-child(even) { background: #F0F4EE; }

/* Notes */
.zk-note {
  font-size: 0.875rem;
  padding: 1rem 1.25rem;
  background: rgba(232, 197, 71, 0.15);
  border-inline-start: 3px solid #E8C547;
  border-radius: 0 14px 14px 0;
  color: #0B1F1A;
}

/* Product actions */
.zk-product-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid #D4DFD2;
  margin-top: auto;
}

.zk-product-actions button {
  flex: 1;
  min-height: 42px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid #D4DFD2;
  border-radius: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.zk-product-actions button:hover {
  background: #F0F4EE;
  border-color: #B0C4A8;
}

.zk-product-actions button[aria-pressed="true"] {
  background: #0B1F1A;
  color: #C8F54A;
  border-color: #0B1F1A;
}

/* Responsive */
@media (max-width: 1024px) {
  .zk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .zk-grid { grid-template-columns: 1fr; }
  .zk-quick-layout { grid-template-columns: 1fr; }
  .zk-quick-layout img { max-height: 240px; }
  .zk-compare-bar { bottom: 10px; inset-inline: 10px; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem; }
  .zk-compare-bar span { font-size: 0.75rem; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .zk-card, .zk-card img, .zk-button { transition: none; }
  .zk-card:hover { transform: none; }
  .zk-card:hover img { transform: none; }
  .zk-button:hover { transform: none; }
}
