:root {
  --ink: #171717;
  --muted: #66645f;
  --paper: #fbfaf7;
  --line: #ded9cf;
  --accent: #b03a2e;
  --accent-dark: #84271e;
  --olive: #69715c;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(23, 23, 23, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 76px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px);
}

.header-half {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 14px clamp(16px, 4vw, 48px);
  color: var(--ink);
  text-decoration: none;
}

.portal-link {
  gap: 14px;
  border-right: 1px solid rgba(23, 23, 23, 0.12);
}

.brand-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.portal-link small,
.hero p,
.section-head p {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.shop-nav {
  justify-content: flex-end;
  gap: 20px;
}

.shop-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.cart-toggle,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--accent);
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.cart-toggle span {
  display: grid;
  min-width: 24px;
  height: 24px;
  margin-left: 10px;
  place-items: center;
  color: var(--accent);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.82rem;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: flex-end;
  padding: clamp(30px, 6vw, 76px);
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.16)),
    url("../PKmotive/1.jpg") center/cover,
    linear-gradient(135deg, #69715c, #171717);
}

.hero-content {
  width: min(760px, 100%);
  color: var(--white);
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  margin: 8px 0 24px;
  font-size: clamp(2.2rem, 7vw, 5.7rem);
  line-height: 1;
}

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

.secondary-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  padding: 0 18px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.info-strip span {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  background: var(--white);
  font-weight: 700;
}

.shop-section,
.legal-section {
  padding: clamp(34px, 6vw, 78px) clamp(16px, 4vw, 48px);
}

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

.section-head h2,
.legal-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.filters input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 10px 12px;
}

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

.product {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #e8e4dc;
}

.product-body {
  padding: 14px;
}

.product h3 {
  margin: 6px 0 12px;
  font-size: 1.04rem;
}

.product-meta,
.product-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.product-action button,
.qty-button,
.close-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
}

.product-action button {
  min-height: 38px;
  padding: 0 12px;
  font-weight: 800;
}

.legal-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  background: var(--ink);
  color: var(--white);
}

.legal-section article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 20px;
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.legal-section p {
  color: rgba(255, 255, 255, 0.78);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(10, 10, 10, 0.42);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-panel {
  width: min(460px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 16px;
  overflow: auto;
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cart-head,
.cart-row,
.cart-line,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.close-button {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-button {
  width: 30px;
  height: 30px;
}

.totals {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.cart-total {
  font-size: 1.12rem;
}

.checkout-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 10px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 24px clamp(16px, 4vw, 48px);
  color: var(--white);
  background: var(--olive);
}

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

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

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

  .portal-link {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  }

  .shop-nav,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-nav {
    gap: 10px;
  }

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

@media (max-width: 480px) {
  .product-grid,
  .info-strip,
  .form-row {
    grid-template-columns: 1fr;
  }
}
