/* ===========================================================
   Прейскурант — стили
   Префикс .wc- чтобы не конфликтовать с другими стилями сайта
   =========================================================== */

:root {
  --wc-bg: #ffffff;
  --wc-foreground: #1a1a1a;
  --wc-muted: #6b7280;
  --wc-muted-bg: #f3f4f6;
  --wc-border: #e5e7eb;
  --wc-card: #ffffff;
  --wc-secondary: #f8fafc;

  --wc-primary: #c2185b;          /* акцент розовый */
  --wc-primary-soft: #fce4ec;
  --wc-accent-teal: #0d9488;
  --wc-accent-teal-soft: #ccfbf1;

  --wc-radius: 16px;
  --wc-radius-sm: 10px;
  --wc-shadow-soft: 0 2px 12px rgba(15, 23, 42, 0.05);
  --wc-shadow-elegant: 0 12px 32px rgba(15, 23, 42, 0.10);

  --wc-font-display: 'Playfair Display', Georgia, serif;
  --wc-font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wc-prices,
.wc-prices * {
  box-sizing: border-box;
}

.wc-prices {
  font-family: var(--wc-font-body);
  color: var(--wc-foreground);
  background: var(--wc-bg);
  line-height: 1.5;
}

.wc-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.wc-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--wc-border);
  background:
    radial-gradient(60% 60% at 20% 0%, rgba(194, 24, 91, 0.08), transparent 70%),
    radial-gradient(50% 50% at 80% 30%, rgba(13, 148, 136, 0.08), transparent 70%),
    linear-gradient(135deg, var(--wc-primary-soft) 0%, var(--wc-bg) 50%, var(--wc-accent-teal-soft) 100%);
  padding: 56px 0 64px;
}

@media (min-width: 640px) {
  .wc-hero { padding: 80px 0 88px; }
}

.wc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
  border: 1px solid rgba(194, 24, 91, 0.15);
}

.wc-title {
  font-family: var(--wc-font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 16px 0 0;
}

.wc-subtitle {
  margin: 16px 0 0;
  text-align: center;
  font-size: 16px;
  color: var(--wc-muted);
}

@media (min-width: 640px) {
  .wc-subtitle { font-size: 18px; }
}

header.entry-header {
  margin: 0;
}

/* ---------- Search ---------- */
.wc-search-wrap {
  margin-top: 32px;
}

.wc-search {
  position: relative;
}

.wc-search input[type="text"] {
  width: 100%;
  height: 56px;
  padding: 0 48px 0 48px;
  border-radius: var(--wc-radius);
  border: 1px solid var(--wc-border);
  background: var(--wc-card);
  font-size: 16px;
  color: var(--wc-foreground);
  font-family: inherit;
  outline: none;
  box-shadow: var(--wc-shadow-soft);
  transition: border-color .2s, box-shadow .2s;
}

.wc-search input[type="text"]:focus {
  border-color: var(--wc-primary);
  box-shadow: var(--wc-shadow-elegant);
}

.wc-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--wc-muted);
  pointer-events: none;
}

.wc-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: var(--wc-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}



.wc-search-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.wc-status { color: var(--wc-muted); }
.wc-status strong { color: var(--wc-foreground); font-weight: 500; }

.wc-toggle-buttons { display: flex; gap: 8px; }

.wc-pill {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--wc-border);
  background: var(--wc-card);
  color: var(--wc-foreground);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.wc-pill:hover { background: var(--wc-muted-bg); }

/* ---------- Categories ---------- */
.wc-categories { padding: 48px 0; }
@media (min-width: 640px) { .wc-categories { padding: 64px 0; } }

.wc-categories-list { display: flex; flex-direction: column; gap: 16px; }

.wc-category {
  border-radius: var(--wc-radius);
  border: 1px solid var(--wc-border);
  background: var(--wc-card);
  overflow: hidden;
  box-shadow: var(--wc-shadow-soft);
  transition: box-shadow .2s;
}
.wc-category:hover { box-shadow: var(--wc-shadow-elegant); }

.wc-category-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background .15s;
}
.wc-category-header:hover { background: rgba(248, 250, 252, 0.6); }

.wc-category-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wc-category-icon svg { width: 20px; height: 20px; }

.wc-category-titles { flex: 1; min-width: 0; }
.wc-category-title {
  font-family: var(--wc-font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  line-height: 1.2;
}
@media (min-width: 640px) { .wc-category-title { font-size: 20px; } }

.wc-category-count { margin: 2px 0 0; font-size: 13px; color: var(--wc-muted); }

.wc-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--wc-muted);
  transition: transform .25s;
}
.wc-category[data-open="true"] .wc-chevron { transform: rotate(180deg); }

.wc-category-body { display: none; border-top: 1px solid var(--wc-border); }
.wc-category[data-open="true"] .wc-category-body { display: block; }

/* ---------- Table (desktop) ---------- */
.wc-table-wrap { display: none; overflow-x: auto; }
@media (min-width: 768px) { .wc-table-wrap { display: block; } }

.wc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wc-table thead tr { background: rgba(248, 250, 252, 0.7); color: var(--wc-muted); }
.wc-table th {
  text-align: left;
  font-weight: 500;
  padding: 12px 16px;
}
.wc-table th.wc-col-code { width: 170px; padding-left: 24px; }
.wc-table th.wc-col-unit { width: 170px; }
.wc-table th.wc-col-price { width: 160px; text-align: right; padding-right: 24px; }

.wc-table tbody tr { border-top: 1px solid rgba(229, 231, 235, 0.7); transition: background .15s; }
.wc-table tbody tr:hover { background: rgba(252, 228, 236, 0.2); }
.wc-table td { padding: 14px 16px; vertical-align: top; line-height: 1.4; }
.wc-table td.wc-cell-code { padding-left: 24px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--wc-muted); }
.wc-table td.wc-cell-unit { color: var(--wc-muted); }
.wc-table td.wc-cell-price { padding-right: 24px; text-align: right; white-space: nowrap; font-weight: 600; }

/* ---------- Cards (mobile) ---------- */
.wc-cards { display: block; }
@media (min-width: 768px) { .wc-cards { display: none; } }

.wc-card {
  padding: 16px;
  border-top: 1px solid rgba(229, 231, 235, 0.7);
  transition: background .15s;
}
.wc-card:first-child { border-top: 0; }
.wc-card:hover { background: rgba(252, 228, 236, 0.2); }

.wc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wc-card-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--wc-muted);
  background: rgba(243, 244, 246, 0.7);
  padding: 2px 8px;
  border-radius: 6px;
}
.wc-card-price { font-weight: 600; white-space: nowrap; }
.wc-card-name { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.wc-card-unit { margin: 4px 0 0; font-size: 12px; color: var(--wc-muted); }

/* ---------- Highlight ---------- */
.wc-mark {
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
  border-radius: 3px;
  padding: 0 2px;
}

/* ---------- Empty ---------- */
.wc-empty { text-align: center; padding: 64px 0; }
.wc-empty-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--wc-muted-bg);
  color: var(--wc-muted);
  align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.wc-empty-icon svg { width: 24px; height: 24px; }
.wc-empty h3 { font-family: var(--wc-font-display); font-size: 20px; font-weight: 600; margin: 0; }
.wc-empty p { margin: 8px 0 0; color: var(--wc-muted); }

.wc-link { background: 0; border: 0; color: var(--wc-primary); font: inherit; cursor: pointer; padding: 0; font-weight: 500; }
.wc-link:hover { text-decoration: underline; }

/* ---------- Info block ---------- */
.wc-info-wrap { padding-bottom: 64px; }
.wc-info {
  border-radius: var(--wc-radius);
  border: 1px solid rgba(13, 148, 136, 0.3);
  background: rgba(204, 251, 241, 0.4);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
@media (min-width: 640px) { .wc-info { padding: 32px; } }
.wc-info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--wc-accent-teal-soft);
  color: var(--wc-accent-teal);
  display: inline-flex;
  align-items: center; justify-content: center;
}
.wc-info-icon svg { width: 20px; height: 20px; }
.wc-info h3 { font-family: var(--wc-font-display); font-weight: 600; font-size: 18px; margin: 0; }
.wc-info p { margin: 6px 0 0; color: var(--wc-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .wc-category { animation: wc-fade-up .35s ease both; }
}
@keyframes wc-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
