/* Self-hosted Poppins — latin + latin-ext (cyrillic via system-ui fallback) */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #00031c;
  --bg-soft: #060b24;
  --surface: #0d1433;
  --surface-2: #151d42;
  --surface-3: #1c2654;
  --accent: #00cea6;
  --accent-hover: #00b894;
  --accent-soft: rgba(0, 206, 166, 0.14);
  --text: #ffffff;
  --text-muted: #9aa3c7;
  --text-soft: #c5cbe0;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.main-wrap { min-height: 100vh; }

.content {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.btn-accent {
  background: var(--accent);
  color: #001a14;
}

.btn-accent:hover { background: var(--accent-hover); color: #001a14; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
}

.section-lead {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 28px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.info-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .content {
  padding-top: 0;
  padding-bottom: 0;
}

/* Crawlable, not shown to sighted users */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.catalog-status {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.catalog-status--error { color: var(--danger); }

@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 3, 28, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}

.header-logo:hover { color: var(--text); }

.logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(200px, 48vw);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.header-nav a {
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  min-width: 0;
}

.header-search-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 12px 0;
  font-size: 14px;
  outline: none;
}

.header-search-input::placeholder { color: var(--text-muted); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-purchases {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.header-purchases:hover { border-color: var(--accent); }

.header-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 960px) {
  .header-nav { display: none; }
  .header-purchases span:last-child { display: none; }
  .header-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}

.header-lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.lang-switcher-btn:hover {
  border-color: var(--accent);
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(0, 8, 32, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.lang-switcher-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.lang-switcher-option:hover,
.lang-switcher-option.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.lang-flag {
  display: block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-caret {
  opacity: 0.7;
  font-size: 11px;
}

html[dir="rtl"] .header-nav {
  margin-left: 0;
  margin-right: 12px;
}

html[dir="rtl"] .header-search-icon {
  order: 1;
}

html[dir="rtl"] .breadcrumbs,
html[dir="rtl"] .product-meta,
html[dir="rtl"] .feature-row {
  direction: rtl;
}

html[dir="rtl"] .lang-switcher-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .header-top {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header-nav a,
html[dir="rtl"] .lang-switcher-option {
  text-align: right;
}

.shop-hero {
  padding: 10px 0 24px;
}

.shop-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 40px);
}

.shop-intro {
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 0 8px;
  font-size: 15px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.shop-sidebar h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.catalog-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-filter-group + .catalog-filter-group {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.catalog-filter-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.catalog-filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-filter-link {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.catalog-filter-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.catalog-filter-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(0, 206, 166, 0.35);
  font-weight: 600;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  min-height: 44px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.tab-btn.active,
.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  min-height: 480px;
}

.product-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.product-card:hover {
  border-color: rgba(0, 206, 166, 0.45);
  transform: translateY(-2px);
}

.product-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}

.product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0, 206, 166, 0.92);
  color: #001a14;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.product-header,
.product-body {
  padding: 14px 16px;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}

.product-sub {
  color: var(--text-muted);
  font-size: 13px;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.price-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.badge-inline {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(0, 206, 166, 0.35);
  border-radius: 999px;
  padding: 4px 8px;
  margin-bottom: 6px;
}

.rating-block {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
}

#catalog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 44px;
  padding: 10px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.load-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.load-more-btn.is-loading,
.load-more-btn[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}

/* legacy numbered pagination (if any SSR leftover) */
.page-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* Image skeleton shimmer — fixed aspect-ratio slots */

@keyframes skeleton-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.9s infinite ease-in-out;
}

/* ── Catalog card ── */

.product-card--skeleton .product-preview {
  position: relative;
}

.product-card--skeleton .product-preview.skeleton-shimmer,
.product-card--skeleton .product-preview--skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.9s infinite ease-in-out;
}

.product-card--skeleton .product-preview img {
  opacity: 0;
  visibility: hidden;
}

.product-card--skeleton .product-preview.is-loaded img {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

/* ── Product cover ── */

.product-cover--skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.9s infinite ease-in-out;
}

.product-cover--skeleton img {
  opacity: 0;
  visibility: hidden;
}

.product-cover.is-loaded img {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

/* ── Gallery thumb ── */

.product-gallery-thumb--skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.9s infinite ease-in-out;
}

.product-gallery-thumb--skeleton img {
  opacity: 0;
  visibility: hidden;
}

.product-gallery-thumb.is-loaded img {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

/* ── Catalog loading placeholders (no img yet) ── */

.product-card--placeholder .product-preview {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.9s infinite ease-in-out;
}

.product-card--placeholder .product-body-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.9s infinite ease-in-out;
}

.product-card--placeholder .product-body-line--short {
  width: 55%;
}

.product-card--placeholder .product-body-line--price {
  width: 40%;
  height: 22px;
  margin-top: 14px;
}

