:root {
  --main: #ed1617;
  --main-dark: #bd1012;
  --secondary: #0a2d68;
  --secondary-soft: #103e83;
  --base: #f5f5f0;
  --ink: #101828;
  --muted: #667085;
  --line: #dedbd1;
  --surface: #fffefa;
  --surface-strong: #ffffff;
  --shadow: 0 18px 50px rgba(10, 45, 104, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--base);
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(245, 245, 240, 0.94);
  border-bottom: 1px solid rgba(10, 45, 104, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-mark {
  display: block;
  overflow: hidden;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(10, 45, 104, 0.12);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  line-height: 1.15;
}

.brand-copy small {
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: #26364f;
  font-weight: 800;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
}

.site-nav a:hover {
  background: rgba(237, 22, 23, 0.09);
  color: var(--main);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(10, 45, 104, 0.18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font-weight: 900;
}

.cart-pill strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  font-size: 12px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 360px);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
  min-height: min(600px, calc(100svh - 76px));
  padding: clamp(42px, 5vw, 68px) clamp(18px, 4vw, 56px) clamp(30px, 4vw, 48px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 45, 104, 0.92), rgba(10, 45, 104, 0.64) 48%, rgba(237, 22, 23, 0.58)),
    url("images/toko.png?v=20260523-6");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 92px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 910px;
}

.hero-logo-wrap {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: min(32vw, 340px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
}

.hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero h1,
.section-heading h2,
.panel-heading h2,
.checkout-form h2,
.about h2,
.contact h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(46px, 7vw, 96px);
  font-weight: 900;
}

.hero-lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--main);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #fff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn.small {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 14px;
}

.btn.primary {
  background: var(--main);
  color: #fff;
}

.btn.primary:hover {
  background: var(--main-dark);
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.btn.light {
  background: #fff;
  color: var(--secondary);
}

.btn.full {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 10px;
  max-width: 560px;
  margin-top: 22px;
}

.hero-metrics div {
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 26px;
  line-height: 1;
}

.hero-metrics span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.section-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

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

.section-heading h2,
.checkout-form h2,
.about h2,
.contact h2 {
  font-size: clamp(30px, 4.5vw, 54px);
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.product-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--secondary);
  box-shadow: var(--shadow);
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: block;
  position: relative;
}

.carousel-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  height: clamp(390px, 40vw, 470px);
  color: #fff;
  background: var(--secondary);
}

.carousel-slide.active {
  display: grid;
  animation: carouselFade 0.28s ease;
}

.carousel-slide:not(.active) {
  pointer-events: none;
}

@keyframes carouselFade {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-media {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #182947;
}

.carousel-media img,
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 54%, rgba(10, 45, 104, 0.45));
}

.carousel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(28px, 5vw, 58px);
}

.carousel-tag {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(237, 22, 23, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.carousel-copy h3 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.carousel-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.carousel-price {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.carousel-copy .btn {
  width: fit-content;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  color: var(--main);
}

.carousel-btn.prev {
  left: 18px;
}

.carousel-btn.next {
  right: 18px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(10, 45, 104, 0.24);
  cursor: pointer;
  transition: width 0.18s ease, background 0.18s ease;
}

.carousel-dot.active {
  width: 32px;
  background: var(--main);
}

.products {
  background:
    linear-gradient(180deg, rgba(10, 45, 104, 0.05), transparent 260px),
    var(--base);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.catalog-tools,
.cart-panel,
.checkout-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(10, 45, 104, 0.08);
}

.catalog-tools {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
  padding: 18px;
}

.toolbar,
.form-row {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.toolbar input,
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}

.toolbar input:focus,
.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(237, 22, 23, 0.15);
  border-color: var(--main);
}

.tool-label {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font-weight: 900;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--main);
  background: var(--main);
  color: #fff;
}

.stock-note {
  display: grid;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stock-note strong {
  color: var(--secondary);
  font-size: 22px;
  line-height: 1;
}

.stock-note span,
.product-card p,
.cart-item span,
.form-note,
.about-grid p,
.contact p {
  color: var(--muted);
}

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

.catalog-help {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.catalog-help .btn {
  max-width: 100%;
  text-align: center;
  line-height: 1.25;
}

.product-card {
  display: grid;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9d8d0;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 45, 104, 0.55));
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
}

.product-card p {
  margin: 0;
}

.product-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--secondary);
  color: #fff;
  font-weight: 900;
}

.product-category {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(237, 22, 23, 0.09);
  color: var(--main);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  color: var(--secondary);
  font-size: 24px;
  font-weight: 900;
}

.qty-control {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
}

.qty-control button,
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--secondary);
  font-weight: 900;
  cursor: pointer;
}

.qty-control button:hover,
.icon-btn:hover {
  border-color: var(--main);
  color: var(--main);
}

.qty-control output {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: var(--radius);
  background: var(--base);
  color: var(--secondary);
  font-weight: 900;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  gap: 20px;
  align-items: start;
}

.cart-panel,
.checkout-form {
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.cart-list {
  display: grid;
  gap: 12px;
  min-height: 130px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--base);
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item strong:last-child {
  color: var(--secondary);
  white-space: nowrap;
}

.cart-item-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.cart-item-price {
  color: var(--secondary);
  white-space: nowrap;
}

.cart-remove {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(237, 22, 23, 0.24);
  border-radius: var(--radius);
  background: #fff;
  color: var(--main);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.cart-remove:hover {
  border-color: var(--main);
  background: rgba(237, 22, 23, 0.08);
}

.cart-empty {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 20px;
  border: 1px dashed rgba(10, 45, 104, 0.25);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.product-grid > .cart-empty {
  grid-column: 1 / -1;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 24px;
  font-weight: 900;
}

.checkout-form {
  position: sticky;
  top: 92px;
}

.form-row {
  margin: 16px 0;
}

.form-note {
  margin: 12px 0 0;
  font-size: 13px;
}

.about {
  background: var(--secondary);
  color: #fff;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
}

.about .eyebrow,
.about-grid span {
  color: #ffb2b2;
}

.about-grid {
  display: grid;
  gap: 14px;
}

.about-grid article {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.about-grid span {
  font-size: 12px;
  font-weight: 900;
}

.about-grid h3 {
  margin: 0;
}

.about-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.contact {
  background: var(--main);
  color: #fff;
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.contact-inner div {
  max-width: 720px;
}

.contact p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  padding: 24px;
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  transform: translateX(-50%) translateY(24px);
  min-width: min(380px, calc(100% - 32px));
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--secondary);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  text-align: center;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .catalog-layout,
  .checkout,
  .about-inner {
    grid-template-columns: 1fr;
  }

  .catalog-tools,
  .checkout-form {
    position: static;
  }

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

@media (max-width: 760px) {
  .brand {
    min-width: 0;
  }

  .brand-copy small,
  .cart-pill span {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 92px);
  }

  .hero-logo-wrap {
    order: -1;
    justify-self: start;
    width: min(46vw, 190px);
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .hero-actions,
  .hero-actions .btn,
  .catalog-help .btn,
  .contact .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section-wrap {
    width: min(100% - 28px, 1180px);
    padding: 56px 0;
  }

  .section-heading,
  .contact-inner,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
    height: auto;
  }

  .carousel-media {
    height: 260px;
  }

  .carousel-copy {
    padding: 26px;
  }

  .carousel-copy .btn {
    width: 100%;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

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

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-actions {
    justify-items: start;
    text-align: left;
  }

  .cart-total {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .carousel-track,
  .carousel-dot,
  .product-card,
  .toast {
    transition: none;
  }
}
