:root {
  --bg: #edf1f5;
  --panel: #f7f8fb;
  --panel-dark: #0e243a;
  --panel-dark-2: #0c1f33;
  --card: #ffffff;
  --card-soft: #f3f6fb;
  --text: #121b2a;
  --text-soft: #5f6e82;
  --text-light: #e7edf8;
  --line: rgba(18, 27, 42, 0.08);
  --line-light: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 22px rgba(15, 31, 51, 0.08);
  --green: #67d8b3;
  --green-soft: rgba(103, 216, 179, 0.15);
  --blue: #3f7ef5;
  --blue-soft: rgba(63, 126, 245, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 34px));
  margin: 0 auto;
}

.topbar {
  background: #f0f3f7;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

.site-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.category-page {
  flex: 1;
}

.category-hero {
  padding: 36px 0 40px;
  color: var(--text-light);
  background:
    radial-gradient(circle at 12% 12%, rgba(103, 216, 179, 0.2), transparent 25%),
    linear-gradient(110deg, #0e243a, #123955);
}

.offers-heading {
  margin: 0 auto 18px;
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.offers-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  width: min(980px, 100%);
  min-height: 156px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(4, 18, 31, 0.24);
}

.offer-carousel-nav {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
}

.offer-carousel-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.offer-carousel-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.offer-carousel-card img,
.offer-carousel-image-placeholder {
  width: 116px;
  height: 116px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.offer-carousel-copy {
  min-width: 0;
}

.offer-carousel-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: rgba(231, 237, 248, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer-carousel-title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.offer-carousel-price {
  display: block;
  margin-top: 5px;
  color: #b8f5dc;
  font-size: 1rem;
  font-weight: 700;
}

.offer-carousel-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 8px 10px;
  border: 1px solid rgba(103, 216, 179, 0.3);
  border-radius: 999px;
  background: rgba(103, 216, 179, 0.16);
  color: #b8f5dc;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.offers-carousel:empty {
  display: none;
}

.category-title-section {
  padding-top: 42px;
}

.category-title-section h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.category-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(231, 237, 248, 0.8);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.category-hero--compact {
  padding-bottom: 64px;
}

.back-link {
  color: rgba(231, 237, 248, 0.8);
}

.back-link a:hover {
  color: #fff;
}

.category-section {
  padding-top: 34px;
  padding-bottom: 64px;
}

.supplier-category-section {
  padding: 30px 0 72px;
}

.supplier-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.supplier-category-heading h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.055em;
}

.supplier-category-heading p {
  max-width: 380px;
  margin: 0;
  color: var(--text-soft);
}

.section-eyebrow {
  color: #177b5a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.supplier-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.supplier-category-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  color: var(--text-soft);
  border: 1px dashed rgba(18, 27, 42, 0.2);
  border-radius: 16px;
}

.site-footer {
  margin-top: auto;
  padding: 12px 0;
  background: var(--panel-dark);
  color: var(--text-light);
  text-align: left;
  font-size: 0.78rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.site-footer small {
  color: inherit;
  font-size: inherit;
}

.site-footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
}

.whatsapp-icon path:first-child {
  fill: #25d366;
}

.whatsapp-icon path:last-child {
  fill: #fff;
}

.dynamic-catalog-hero h1 {
  overflow-wrap: anywhere;
}

.dynamic-catalog-breadcrumb {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dynamic-catalog-breadcrumb:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.supplier-stock-note {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 31, 51, 0.15);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card::after {
  position: absolute;
  inset: 35% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(5, 17, 29, 0.9));
}

.category-card span:last-child {
  position: relative;
  z-index: 1;
  padding: 22px;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
}

.category-card--soon {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(145deg, #fff, #e6edf5);
}

.category-card--soon::after {
  display: none;
}

.category-card--soon span:last-child {
  padding: 0;
  color: var(--text);
}

.category-icon {
  color: var(--blue);
  font-size: 3.2rem;
  font-weight: 800;
}

.supplier-category-card .category-icon {
  position: relative;
  z-index: 1;
  margin: auto;
  color: #fff;
}

.speaker-placeholder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding-top: 42px;
  padding-bottom: 80px;
}

.speaker-placeholder img {
  width: 100%;
  max-height: 440px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.speaker-placeholder h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.speaker-placeholder p {
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .category-grid,
  .speaker-placeholder {
    grid-template-columns: 1fr;
  }

  .supplier-category-grid {
    grid-template-columns: 1fr;
  }

  .supplier-category-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-card {
    min-height: 190px;
  }
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f293f, #112941);
  color: #f4f7fb;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.search-wrap {
  margin-left: 0;
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 20px;
  background: rgba(20, 31, 47, 0.04);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.search-submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 9px 14px;
  background: #111b27;
  color: #f5f8ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.search-submit:hover {
  background: #223951;
}

.search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1.03rem;
}

.search-wrap input::placeholder {
  color: rgba(31, 42, 55, 0.55);
}

.search-icon {
  font-size: 1.5rem;
  color: rgba(31, 42, 55, 0.72);
  line-height: 1;
}

.page-shell {
  flex: 1;
}

.hero {
  background:
    radial-gradient(circle at 15% 10%, rgba(99, 233, 190, 0.18), transparent 20%),
    linear-gradient(90deg, rgba(7, 29, 45, 0.94), rgba(8, 39, 59, 0.9));
  padding: 48px 0 24px;
}

.hero-inner {
  padding: 10px 0 42px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--text-light);
  font-size: 0.96rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.status-pill[hidden] {
  display: none;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(103, 216, 179, 0.8);
}

.hero h1 {
  margin: 1.2rem 0 0.7rem;
  max-width: 1120px;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  color: #f3f7fb;
}

.hero p {
  margin: 0;
  max-width: 980px;
  color: rgba(228, 236, 248, 0.8);
  font-size: clamp(1.2rem, 2vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.catalog-panel {
  background: var(--bg);
  padding-top: 18px;
}

.controls {
  padding-bottom: 18px;
}

.payment-group,
.currency-group,
.filter-row,
.toolbar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.payment-group {
  margin-bottom: 14px;
}

.field-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(18, 27, 42, 0.7);
  font-weight: 700;
  margin-right: 8px;
}

.payment-btn,
.currency-btn,
.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  border-radius: 16px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.payment-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 52px;
  padding: 0 1.2rem;
  min-width: 146px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
}

.payment-btn.active,
.payment-btn--promo {
  background: #111b27;
  color: var(--text-light);
  border-color: rgba(17, 27, 39, 0.9);
}

.payment-btn--promo {
  min-width: 220px;
  position: relative;
}

.promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 24px;
  padding: 0 0.45rem;
  border-radius: 8px;
  background: rgba(103, 216, 179, 0.9);
  color: #0d1d2a;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: lowercase;
}

.currency-group {
  margin-bottom: 18px;
}

.currency-btn {
  height: 48px;
  min-width: 126px;
  padding: 0 1.15rem;
  background: rgba(255, 255, 255, 0.68);
}

.currency-btn.active {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 27, 39, 0.14);
}

.filter-row {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 12px 0;
  margin-bottom: 18px;
}

.filter-btn {
  height: 42px;
  padding: 0 1.1rem;
  background: rgba(255, 255, 255, 0.55);
}

.filter-btn.active {
  background: #111b27;
  border-color: rgba(17, 27, 39, 0.9);
  color: #f2f7ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.toolbar-row {
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 5px;
}

#resultCount {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(18, 27, 42, 0.9);
  font-weight: 600;
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sort-wrap select {
  min-width: 210px;
  height: 52px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 1rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #53657b 50%), linear-gradient(135deg, #53657b 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.catalog {
  padding: 0 0 54px;
}

.catalog-shell {
  position: relative;
}

.brand-badge {
  position: absolute;
  right: 0;
  top: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 44px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-image img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  padding: 12px;
  background: #f6f9fd;
}

.product-content {
  padding: 1.1rem 1.1rem 1.3rem;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.7rem;
  min-height: 28px;
}

.product-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(18, 27, 42, 0.78);
}

.product-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(63, 126, 245, 0.08);
  color: rgba(18, 27, 42, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-content h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  letter-spacing: -0.06em;
  color: var(--text);
}

.price-block {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.7rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  border-radius: 10px;
}

.price-line strong {
  color: var(--text);
  font-weight: 700;
}

.price-line--base {
  padding: 0.45rem 0.7rem;
  background: rgba(17, 27, 39, 0.03);
  border: 1px solid rgba(17, 27, 39, 0.08);
  font-size: 0.96rem;
}

.price-line--base strong {
  color: rgba(18, 27, 42, 0.8);
  font-size: 1.02rem;
}

.price-line--cash {
  padding: 0.45rem 0.7rem;
  background: rgba(17, 27, 39, 0.03);
  border: 1px solid rgba(17, 27, 39, 0.08);
  opacity: 0.9;
}

.price-line--cash strong {
  color: #1c5c44;
}

.price-line--transfer {
  padding: 0.5rem 0.7rem;
  background: linear-gradient(135deg, rgba(103, 216, 179, 0.18), rgba(63, 126, 245, 0.1));
  border: 1px solid rgba(34, 203, 136, 0.34);
  box-shadow: 0 0 0 1px rgba(34, 203, 136, 0.12), 0 0 18px rgba(34, 203, 136, 0.2);
  animation: pulseOffer 1.7s infinite ease-in-out;
}

.price-line--transfer strong {
  color: #0d7a61;
  font-size: 1.08rem;
}

@keyframes pulseOffer {
  0% { box-shadow: 0 0 0 1px rgba(34, 203, 136, 0.18), 0 0 8px rgba(34, 203, 136, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(34, 203, 136, 0.22), 0 0 18px rgba(34, 203, 136, 0.42); }
  100% { box-shadow: 0 0 0 1px rgba(34, 203, 136, 0.18), 0 0 8px rgba(34, 203, 136, 0.12); }
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #dffaf1;
  border: 1px solid rgba(23, 123, 90, 0.18);
  color: #0d7a61;
  font-size: 0.74rem;
  font-weight: 800;
  margin-left: 0.25rem;
}

.discount-badge--alt {
  background: #ecfff6;
  border-color: rgba(34, 203, 136, 0.25);
  color: #0e8f69;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0;
}

.product-specs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(18, 27, 42, 0.8);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.35rem;
}

#modalProductActions[hidden] {
  display: none;
}

.secondary-btn-card {
  flex: 1;
  border: 1px solid var(--line);
  background: rgba(17, 27, 39, 0.04);
  color: var(--text);
  border-radius: 14px;
  height: 44px;
  font-weight: 700;
}

.buy-btn {
  border: none;
  background: #111b27;
  color: #f5f8ff;
  border-radius: 14px;
  height: 44px;
  min-width: 110px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(12, 19, 28, 0.72);
  backdrop-filter: blur(6px);
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(900px, 100%);
  max-height: 88vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 26px;
  border: 1px solid rgba(18, 27, 42, 0.08);
  box-shadow: 0 25px 60px rgba(8, 17, 26, 0.25);
}

.modal-media {
  position: relative;
  background: #edf3fb;
  min-height: 0;
  height: min(52vh, 500px);
  flex: 0 0 auto;
}

.modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 20px 56px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 27, 39, 0.7);
  color: #f5f8ff;
  font-size: 2rem;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
}

.gallery-nav--prev {
  left: 14px;
}

.gallery-nav--next {
  right: 14px;
}

.modal-body {
  padding: 1.35rem 1.5rem 1.6rem;
}

.modal-brand {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 27, 42, 0.7);
}

.modal-sku {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: rgba(18, 27, 42, 0.58);
}

.modal-body h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.modal-description {
  margin: 0 0 1.2rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(18, 27, 42, 0.78);
  white-space: normal;
  overflow-wrap: anywhere;
}

.modal-description p {
  margin: 0 0 0.75rem;
}

.modal-description p:last-child {
  margin-bottom: 0;
}

.modal-purchase-notice {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(63, 126, 245, 0.18);
  border-radius: 14px;
  background: rgba(63, 126, 245, 0.07);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.modal-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.modal-highlights li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(63, 126, 245, 0.08);
  border: 1px solid rgba(63, 126, 245, 0.12);
  color: rgba(18, 27, 42, 0.8);
  font-size: 0.8rem;
  font-weight: 700;
}

.modal-prices {
  display: grid;
  gap: 0.6rem;
}

.modal-prices[hidden] {
  display: none;
}

.modal-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(17, 27, 39, 0.03);
  border: 1px solid rgba(17, 27, 39, 0.08);
  color: var(--text-soft);
}

.modal-price-box strong {
  color: var(--text);
  font-size: 1.04rem;
  text-align: right;
}

.modal-price-box--cash {
  background: rgba(17, 27, 39, 0.03);
}

.modal-price-box--transfer {
  background: linear-gradient(135deg, rgba(103, 216, 179, 0.2), rgba(63, 126, 245, 0.09));
  border-color: rgba(34, 203, 136, 0.28);
  box-shadow: 0 0 0 1px rgba(34, 203, 136, 0.12), 0 0 16px rgba(34, 203, 136, 0.16);
}

.modal-price-box--transfer strong {
  color: #0d7a61;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(18, 27, 42, 0.1);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-row {
    padding-bottom: 12px;
  }
}

@media (max-width: 700px) {
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .category-hero {
    padding: 28px 0;
  }

  .offers-heading {
    margin-bottom: 12px;
  }

  .offers-carousel {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 5px;
    min-height: 120px;
    padding: 8px 6px;
  }

  .offer-carousel-nav {
    width: 32px;
    height: 32px;
  }

  .offer-carousel-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 9px;
  }

  .offer-carousel-card img,
  .offer-carousel-image-placeholder {
    width: 72px;
    height: 72px;
  }

  .offer-carousel-title {
    font-size: 0.92rem;
  }

  .offer-carousel-price {
    font-size: 0.76rem;
  }

  .offer-carousel-discount {
    grid-column: 2;
    justify-self: start;
    padding: 4px 8px;
    font-size: 0.78rem;
  }

  .category-title-section {
    padding-top: 32px;
  }

  .supplier-category-section {
    padding-top: 22px;
  }

  .modal-media {
    height: min(48vh, 360px);
  }

  .modal-media img {
    min-height: 0;
    height: 100%;
    padding: 14px 48px;
  }
  .topbar-inner {
    gap: 12px;
  }

  .search-wrap {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .topbar-inner > .search-wrap {
    flex-basis: 100%;
  }

  .search-wrap input {
    width: 0;
    min-width: 0;
  }

  .search-wrap:not(.has-query) .search-submit {
    display: none;
  }

  .topbar-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .payment-group,
  .currency-group,
  .filter-row,
  .toolbar-row {
    gap: 10px;
  }

  .payment-btn,
  .currency-btn,
  .filter-btn,
  .sort-wrap select {
    width: 100%;
  }

  .toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .brand-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 16px;
  }
}
