:root {
  --red: #c9161d;
  --red-dark: #7f1016;
  --red-soft: #fff1f2;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --paper: #ffffff;
  --panel: #f8fafc;
  --shadow: 0 24px 70px rgba(15, 23, 42, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(229, 231, 235, .85);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--red), #991b1b);
  box-shadow: 0 14px 30px rgba(201, 22, 29, .24);
}

.btn-dark {
  color: white;
  background: #090d18;
}

.btn-line {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.btn-block {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(125deg, rgba(10, 12, 22, .95) 0%, rgba(82, 10, 16, .96) 52%, rgba(201, 22, 29, .9) 100%),
    url("/products/fallback/kodend-product-08.webp") center / cover;
}

.hero::before,
.hero::after,
.packages-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before,
.packages-band::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .32;
}

.hero::after {
  background: radial-gradient(circle at 84% 18%, rgba(255, 255, 255, .22), transparent 28%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 650px;
  padding: 88px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fecdd3;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 18px;
  color: white;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .95;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.75;
  max-width: 690px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.metric {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}

.metric strong {
  display: block;
  color: white;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
}

.hero-panel {
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
  overflow: hidden;
}

.hero-panel-head {
  padding: 24px;
  background: linear-gradient(135deg, #111827, #3f1015);
  color: white;
}

.hero-panel-head h2 {
  margin: 0;
  color: white;
  font-size: 24px;
}

.hero-panel-head p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.hero-list {
  display: grid;
  gap: 0;
  padding: 8px 24px 24px;
}

.hero-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  font-weight: 800;
}

.hero-list div:last-child {
  border-bottom: 0;
}

.check {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: var(--red);
  background: #fee2e2;
  font-size: 13px;
  font-weight: 1000;
  flex: 0 0 auto;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

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

.feature {
  padding: 24px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.packages-band {
  position: relative;
  overflow: hidden;
  padding: 78px 0 90px;
  color: white;
  background: linear-gradient(135deg, #170709, #3b070b 52%, #7f1016);
}

.packages-band .section-head {
  position: relative;
  z-index: 1;
}

.packages-band .section-kicker {
  color: #fecdd3;
}

.packages-band h2 {
  color: white;
}

.packages-band .section-copy {
  color: rgba(255, 255, 255, .7);
}

.packages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.package-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .24);
}

.package-card.featured {
  transform: translateY(-14px);
  box-shadow: 0 36px 90px rgba(201, 22, 29, .34);
}

.pack-top {
  position: relative;
  min-height: 164px;
  padding: 24px;
  color: white;
  overflow: hidden;
}

.pack-bronze .pack-top {
  background: linear-gradient(135deg, #5b240a, #b45309 55%, #f59e0b);
}

.pack-silver .pack-top {
  background: linear-gradient(135deg, #334155, #94a3b8 60%, #e2e8f0);
}

.pack-gold .pack-top {
  background: linear-gradient(135deg, #7f1d1d, #dc2626 56%, #f59e0b);
}

.pack-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .25;
}

.pack-badge {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .16);
  color: white;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.featured-badge {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  border-radius: 999px;
  padding: 8px 11px;
  background: white;
  color: var(--red);
  font-size: 11px;
  font-weight: 1000;
}

.pack-symbol {
  position: absolute;
  right: 22px;
  bottom: 16px;
  z-index: 1;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .92);
  font-size: 42px;
  font-weight: 1000;
}

.pack-title {
  position: relative;
  margin-top: 18px;
}

.pack-title h3 {
  margin: 0;
  color: white;
  font-size: 31px;
  line-height: 1;
}

.pack-title p {
  margin: 8px 0 0;
  max-width: 230px;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 700;
}

.pack-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 24px 24px;
  flex: 1;
}

.price-panel {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #fee2e2;
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.pack-price {
  font-size: 38px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
}

.price-panel span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pack-features {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pack-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.whatsapp-note {
  margin: -4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.catalog-page {
  background: #f8fafc;
}

.page-hero {
  padding: 62px 0;
  color: white;
  background: linear-gradient(135deg, #170709, #7f1016);
}

.page-hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.7;
}

.catalog-shell {
  padding: 34px 0 70px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px 150px;
  gap: 12px;
  margin-bottom: 18px;
}

.field {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 14px;
  color: var(--ink);
  outline: none;
}

.field:focus {
  border-color: rgba(201, 22, 29, .55);
  box-shadow: 0 0 0 4px rgba(201, 22, 29, .1);
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 22, 29, .28);
  box-shadow: var(--shadow);
}

.product-img {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #f1f5f9;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.04);
}

.stock-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  color: white;
  background: rgba(15, 23, 42, .86);
  font-size: 11px;
  font-weight: 900;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  flex: 1;
}

.product-cat {
  color: var(--red);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-name {
  min-height: 44px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 900;
}

.product-price {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 20px;
  font-weight: 1000;
}

.product-price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 30px;
}

.pager button {
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.pager button.active {
  color: white;
  border-color: var(--red);
  background: var(--red);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.detail-main-img {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  overflow: hidden;
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.thumbs button {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid transparent;
  background: white;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.thumbs button.active {
  border-color: var(--red);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-info {
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, .06);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.detail-price {
  margin: 22px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  color: var(--red);
  font-size: 36px;
  line-height: 1;
  font-weight: 1000;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

.detail-row span:first-child {
  color: var(--muted);
}

.empty {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: white;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.footer {
  background: #090d18;
  color: rgba(255, 255, 255, .72);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.footer img {
  height: 38px;
  filter: brightness(0) invert(1);
}

.footer p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-card {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  padding: 28px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.contact-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.75;
}

.loading {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn {
    flex: 1;
  }

  .hero-inner,
  .detail-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .packages,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .package-card.featured {
    transform: none;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-inner {
    min-height: auto;
    padding: 58px 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .packages-band {
    padding: 54px 0;
  }

  .section-head {
    display: block;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 13px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
