:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5f6368;
  --line: #e5e7eb;
  --panel: #f8fafc;
  --accent: #d71920;
  --accent-dark: #9f1117;
  --gold: #f5bd18;
  --charcoal: #202124;
  --surface: #ffffff;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(32, 33, 36, 0.96) 0, rgba(32, 33, 36, 0.96) 118px, rgba(159, 17, 23, 0.92) 118px, rgba(159, 17, 23, 0.92) 196px, transparent 196px),
    linear-gradient(180deg, #2a2b2f 0, #f4f5f7 340px),
    #f4f5f7;
}

a {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 3px solid var(--accent);
  background: linear-gradient(90deg, #111111, #252525 62%, #9f1117);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(200, 30, 30, 0.22);
  border-radius: 10px;
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 16px clamp(12px, 4vw, 48px) 56px;
}

.site-footer {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 44px;
  color: var(--muted);
  border-top: 1px solid rgba(143, 17, 17, 0.18);
  background: #ffffff;
}

.site-footer p {
  max-width: 860px;
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.hero {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 225, 0.72)),
    var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-logo {
  width: 100%;
  max-width: 82px;
  justify-self: center;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 13, 10, 0.12);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

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

.secondary-button {
  display: inline-block;
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid rgba(143, 17, 17, 0.28);
  border-radius: 6px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  text-decoration: none;
}

main > p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 28px 0 22px;
}

.trust-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.trust-panel h2 {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 16px;
}

.trust-panel p,
.trust-panel li {
  color: var(--muted);
  font-size: 14px;
}

.policy-page {
  max-width: 860px;
}

.policy-page h2 {
  margin-top: 26px;
  color: var(--accent-dark);
}

.notice {
  padding: 14px 16px;
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: #fff8e1;
  color: var(--muted);
}

.detail-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-table th,
.detail-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.detail-table th {
  width: 150px;
  color: var(--accent-dark);
  background: #fff8e1;
}

.detail-table tr:last-child th,
.detail-table tr:last-child td {
  border-bottom: 0;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 210px) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(32, 33, 36, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #111111, #2b2b2d 55%, #9f1117);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.toolbar label {
  display: grid;
  gap: 5px;
}

.toolbar label span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 17px;
  box-shadow: none;
}

.filter-select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 15px;
}

.search-box:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 201, 40, 0.42);
}

.result-count {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #202124;
  background: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.load-more {
  display: block;
  margin: 22px auto 0;
  border: 0;
  cursor: pointer;
}

.load-more[hidden] {
  display: none;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 30, 30, 0.42);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--panel);
}

.product-card a {
  display: block;
  padding: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.card-link {
  display: block;
  padding: 0 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mini-cart-button {
  width: calc(100% - 24px);
  margin: 0 12px 8px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.cart-table th,
.cart-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.cart-table th {
  background: #202124;
  color: #ffffff;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.qty-input {
  width: 72px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.cart-summary {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 18px 0 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  font-weight: 900;
}

.remove-button {
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.payment-warning {
  padding: 12px;
  border: 1px solid rgba(215, 25, 32, 0.35);
  border-radius: 6px;
  background: #fff1f2;
  color: var(--accent-dark);
  font-weight: 700;
}

.price {
  margin: 0;
  padding: 0 12px 14px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 28px;
  align-items: start;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-detail img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.meta {
  color: var(--muted);
}

.button {
  display: inline-block;
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(143, 17, 17, 0.22);
}

.button:hover {
  background: linear-gradient(135deg, #df2b20, #a81515);
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 74px 1fr;
  }

  .hero-logo {
    max-width: 74px;
  }

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

  .hero .eyebrow,
  .hero-actions {
    display: none;
  }

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

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

  .search-box {
    grid-column: 1 / -1;
  }

  .result-count {
    grid-column: 1 / -1;
  }

  .site-header {
    position: static;
  }
}
