:root {
  --ink: #121a1f;
  --muted: #627077;
  --paper: #ffffff;
  --mist: #eef4f5;
  --line: #cbd8de;
  --deep: #0d242b;
  --safety: #ffd326;
  --ember: #e95f2a;
}

* {
  box-sizing: border-box;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 0 5vw;
  color: #fff;
  background: rgba(15, 27, 33, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 104px;
        height: 64px;
}

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

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.nav a:hover {
  color: #fff;
}

.cart-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--safety);
  border-radius: 999px;
}

.cart-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #e21717;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.cart-count[hidden] {
  display: none;
}

.product-page {
  padding: 52px 5vw 70px;
}

.inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.breadcrumb {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: 28px;
  align-items: start;
}

.gallery,
.buy-box,
.info-panel {
  border: 1px solid #bacbd2;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(18, 26, 31, 0.1);
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px 6px 0 0;
  background: var(--mist);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
}

.thumb {
  min-height: 78px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbd8de;
  border-radius: 4px;
  background: #f8fbfb;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buy-box {
  padding: 24px;
}

.product-label {
  margin: 0 0 10px;
  color: var(--ember);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.03;
  letter-spacing: 0;
}

.short-copy,
.info-panel p,
.info-panel li {
  color: var(--muted);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price {
  font-size: 30px;
  font-weight: 900;
}

.ship-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.variant-row,
.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-row span,
.option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #b9cbd2;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  background: #f8fbfb;
}

.option {
  cursor: pointer;
}

.option.active {
  border-color: var(--ink);
  background: var(--safety);
}

.option-group {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.option-label {
  color: #34434a;
  font-size: 13px;
  font-weight: 900;
}

.quantity {
  width: 96px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #b9cbd2;
  border-radius: 4px;
  font: inherit;
  font-weight: 900;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 15px;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  background: var(--safety);
  cursor: pointer;
}

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

.cart-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #2f5f37;
  font-size: 13px;
  font-weight: 900;
}

.logo-order-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 5px solid var(--safety);
  border-radius: 4px;
  color: var(--ink);
  background: #f3f8f9;
  font-size: 13px;
}

.logo-order-note strong {
  font-size: 14px;
}

.logo-order-note span {
  color: var(--muted);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.info-panel {
  padding: 20px;
}

.info-panel h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.info-panel ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.size-guide {
  margin-top: 24px;
}

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

.size-card {
  overflow: hidden;
  border: 1px solid #bacbd2;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(18, 26, 31, 0.1);
}

.size-card-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.size-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.size-card p {
  margin: 0;
  color: var(--muted);
}

.size-table-wrap {
  overflow-x: auto;
}

.size-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 13px;
}

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

.size-table th {
  color: #25343b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #f3f8f9;
}

.size-table td:first-child {
  font-weight: 900;
}

.size-note {
  padding: 14px 20px 18px;
  font-size: 13px;
}

footer {
  padding: 30px 5vw;
  color: rgba(255, 255, 255, 0.72);
  background: #111b20;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  font-size: 13px;
}

.missing {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 30px;
}

@media (max-width: 940px) {
  .site-header,
  .product-shell,
  .details-grid,
  .size-guide-grid,
  .footer-inner {
    display: grid;
  }

  .product-shell,
  .details-grid,
  .size-guide-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    gap: 11px;
  }

  h1 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .actions {
    grid-template-columns: 1fr;
  }
}
