/* Products listing — FINDS-style grid */

img {
  background: transparent;
  background-color: transparent;
}

.page-products {
  position: relative;
  z-index: 4;
  padding-bottom: 4rem;
}

.page-products .nav a.is-active {
  color: var(--accent);
}

.breadcrumbs {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0.35rem;
}

.cat-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cat-tabs::-webkit-scrollbar {
  height: 4px;
}

.cat-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 59, 71, 0.35);
  border-radius: 2px;
}

.cat-tab {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  background: #08080a;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.cat-tab:hover {
  background: rgba(255, 59, 71, 0.12);
}

.cat-tab.is-active {
  background: var(--accent);
  color: #0a0001;
  border-color: var(--accent);
}

.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.products-count-hint {
  flex: 1 0 100%;
  margin: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(150, 151, 161, 0.95);
}

.products-search {
  flex: 1;
  min-width: min(100%, 220px);
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  background: #0a0a0e;
  border: 1px solid var(--accent);
  border-radius: 4px;
  outline: none;
}

.products-search::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.products-search:focus {
  box-shadow: 0 0 0 1px rgba(255, 59, 71, 0.35);
}

.products-sort {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.products-sort label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.products-sort select {
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: #0a0a0e;
  border: 1px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23ff3b47' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 820px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pdp-card {
  background: linear-gradient(180deg, #1c1c22, #121216);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 0.65rem 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.pdp-card[hidden] {
  display: none;
}

.pdp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.pdp-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a3a42, #1a1a1f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.pdp-badge {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
  text-align: right;
  max-width: 72px;
}

.pdp-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin: 0.25rem 0 0.5rem;
  background: transparent;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  text-decoration: none;
}

.pdp-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdp-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
  min-width: 0;
  min-height: 0;
}

.pdp-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f4f4f5;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.pdp-category {
  margin: 0 0 0.65rem;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 59, 71, 0.85);
}

.pdp-price {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f4f4f5;
}

.btn-pdp-primary {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0.45rem;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
  background: var(--accent);
  color: #120003;
  margin-top: auto;
  cursor: pointer;
}

.btn-pdp-primary:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.buy-agent-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.buy-agent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.buy-agent-dialog {
  position: relative;
  width: min(92vw, 420px);
  margin: 11vh auto 0;
  background: linear-gradient(180deg, #1c1c22, #111116);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 0.75rem;
}

.buy-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.buy-agent-head h2 {
  margin: 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.buy-agent-close {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
}

.buy-agent-sub {
  margin: 0.35rem 0 0.7rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.buy-agent-list {
  display: grid;
  gap: 0.45rem;
}

.buy-agent-option {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  padding: 0.5rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.buy-agent-option:hover {
  background: rgba(255, 59, 71, 0.12);
}

.page-products h1.page-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.page-products .page-sub {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
