/* Витрина магазина: сетка карточек 4:5, фильтры по разделу, лайтбокс.
   Отдельный файл, чтобы не раздувать styles.css и не задевать остальные страницы. */

/* ---------- Шапка витрины ---------- */

.as-hero {
  position: relative;
  padding: clamp(28px, 4.5vw, 56px) var(--gutter) clamp(20px, 3vw, 32px);
  background: radial-gradient(120% 92% at 50% 12%, #F4F7F6 0%, var(--bg) 68%);
}

.as-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}

.as-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 10px;
}

.as-lede {
  max-width: 470px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 14px;
}

.as-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.as-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.as-count b {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.as-hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.as-hero-phone {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}

.as-hero-phone:hover { color: var(--accent); }

.as-hero-hours {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Фильтры ---------- */

.as-filters {
  position: sticky;
  top: var(--sticky-offset, 0px);
  z-index: 6;
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  padding: 10px 0;
  background: linear-gradient(180deg, var(--bg) 62%, rgba(233, 237, 236, 0.86) 100%);
}

.as-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.as-filter-row::-webkit-scrollbar { display: none; }

.as-filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.as-filter span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.as-filter:hover { border-color: var(--gold); }

.as-filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.as-filter[aria-pressed="true"] span { color: var(--gold); }

.as-filter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Сетка ---------- */

.as-catalog {
  background: var(--bg);
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
}

.as-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.as-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: #F2F5F4;
  overflow: hidden;
  box-shadow: 0 12px 26px -22px rgba(15, 32, 35, 0.55);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.as-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(166, 136, 76, 0.45);
}

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

.as-shot {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #DDE3E1;
}

.as-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}


.as-caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px 13px;
  border-top: 1px solid var(--hairline);
}

.as-name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.as-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-lt);
  order: -1;
}

.as-price {
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.as-price--ask {
  color: var(--gold);
  font-style: italic;
}

.as-price-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted-lt);
}

.as-empty {
  padding: 40px 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Живая и свежая рыба ---------- */

.as-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}

.as-live-note {
  margin-top: 16px;
  color: var(--muted-lt);
  font-size: 14px;
  line-height: 1.55;
}

.as-live-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.as-live-cta .as-live-link {
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 136, 76, 0.45);
  padding-bottom: 2px;
}

.as-live-cta .as-live-link:hover { color: #C2A268; }

.as-live-cta .as-live-link:hover { border-bottom-color: var(--gold); }

.as-live-cta span { color: var(--muted-lt); font-size: 11.5px; }

.as-live-table { margin-top: 4px; }

.as-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-lt);
}

.as-row:first-child { border-top: 1px solid var(--hairline-lt); }

.as-row-name {
  font-size: 15.5px;
  color: var(--bg);
}

.as-row-name small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-lt);
}

.as-row-price {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  white-space: nowrap;
}

.as-row-price--ask {
  color: var(--muted-lt);
  font-style: italic;
}

/* ---------- Пометки ---------- */

.as-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.as-note {
  padding: 18px 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.as-note-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.as-note h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.as-note p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1000px) {
  .as-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .as-notes { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-live-grid { grid-template-columns: 1fr; }
  .as-hero-inner { flex-direction: column; align-items: flex-start; }
  .as-filters {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .as-caption { padding: 9px 10px 11px; }
  .as-name { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .as-card, .as-shot img { transition: none; }
}
