/* ---- Buttons ---- */
.btn-primary { display: inline-flex; align-items: center; padding: 14px 32px; background: var(--red); color: #fff; border: 2px solid var(--red); border-radius: var(--r); font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.12s; }
.btn-primary:hover { background: var(--red-dk); border-color: var(--red-dk); }

/* ---- Products ---- */
.products { padding: 32px 0 80px; }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.prod {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.25s;
}
.prod:hover { border-color: #D1D5DB; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.prod-tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 4px; z-index: 2; text-transform: uppercase; letter-spacing: 0.04em;
}
.tag-best { background: var(--black); color: #fff; }
.tag-deal { background: var(--red); color: #fff; }

.prod-img {
  display: flex; align-items: center; justify-content: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: 12px 12px 0 0;
  position: relative;
  min-height: 200px;
}
.prod-img svg { width: 80px; height: 80px; opacity: 0.35; }

.prod-body { padding: 16px 20px 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.prod-brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.prod-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; transition: color 0.12s; flex: 1; }
.prod-name:hover { color: var(--red); }
.prod-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.prod-price { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.prod-price-deal { color: var(--red); }
.prod-was { font-size: 14px; color: var(--text-3); text-decoration: line-through; }
.prod-vat { font-size: 11px; color: var(--text-3); }
.prod-stock { font-size: 12px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.stock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 2s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.prod-footer { padding: 14px 20px 20px; display: flex; gap: 8px; align-items: center; }
.qty-wrap { display: flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.qty-btn { width: 34px; height: 38px; border: none; background: var(--bg); font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.12s; color: var(--text); }
.qty-btn:hover { background: #ddd; }
.qty-input { width: 40px; height: 38px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 14px; font-weight: 700; outline: none; background: #fff; -moz-appearance: textfield; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.add-btn { flex: 1; height: 38px; background: var(--red); color: #fff; border: none; border-radius: var(--r); font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.12s, transform 0.12s; }
.add-btn:hover { background: var(--red-dk); transform: translateY(-1px); }
.add-btn.added { background: var(--green); }

.prod-inc { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---- Breadcrumb ---- */
.breadcrumb { padding: 20px 0 0; }
.breadcrumb .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.breadcrumb a { color: var(--text-2); transition: color 0.12s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb svg { flex-shrink: 0; color: var(--text-3); opacity: 0.5; }
.breadcrumb span { color: var(--text); font-weight: 600; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.12s;
}
.page-num:hover { background: var(--bg); color: var(--text); }
.page-num.active { background: var(--red); color: #fff; }
.page-dots { padding: 0 4px; font-size: 14px; color: var(--text-3); letter-spacing: 2px; }
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  color: var(--text-2);
  transition: all 0.12s;
}
.page-btn:hover { background: var(--bg); color: var(--text); }
.page-btn.disabled { opacity: 0.3; pointer-events: none; }
