:root {
  --ink: #1a1a2e;
  --muted: #636676;
  --line: #dedfe4;
  --paper: #ffffff;
  --soft: #f8f9fa;
  --red: #F2722C;
  --red-dark: #d95d1c;
  --purple: #7457A3;
  --gold: #f4b63f;
  --green: #138a59;
  --shadow: 0 18px 48px rgba(26, 26, 46, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--ink);
}

.brand img {
  width: auto;
  height: 50px;
}

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

.brand strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.9rem;
}

.shop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.cart-toggle,
.order-box button,
.product-actions button,
.summary-line button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--purple));
  padding: 0 16px;
  font-weight: 800;
}

.cart-toggle span {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  margin-left: 8px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px clamp(14px, 4vw, 48px) 56px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: end;
  padding: 54px 0 36px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 12px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.6rem, 6vw, 6.3rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

#shopIntro {
  max-width: 880px;
  color: #3d3f45;
  font-size: 1.12rem;
  line-height: 1.65;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-link {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--purple));
}

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

.deadline {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: 8px;
}

.deadline span,
.deadline small {
  display: block;
  color: var(--muted);
}

.deadline strong {
  display: block;
  margin: 4px 0 8px;
  font-family: "Oswald", sans-serif;
  font-size: 1.85rem;
  line-height: 1.05;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.process-strip div {
  min-height: 118px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-strip strong,
.process-strip span {
  display: block;
}

.process-strip strong {
  margin-bottom: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.process-strip span {
  color: var(--muted);
  font-size: 0.95rem;
}

.controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd1d8;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(201, 20, 40, 0.22);
  outline-offset: 2px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.summary-line button {
  color: var(--red);
  background: transparent;
  border: 1px solid var(--red);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 448px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card figure {
  display: grid;
  height: 230px;
  margin: 0;
  place-items: center;
  background: #eef0f4;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

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

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  border-radius: 999px;
  background: #eef0f4;
  color: #4b4d54;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.product-price {
  margin-top: auto;
  color: var(--ink);
  font-family: "Oswald", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-actions button:first-child {
  color: var(--red);
  background: transparent;
  border: 1px solid var(--red);
}

.cart-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2,
.cart-head button {
  margin: 0;
}

.cart-head button,
.dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 80px;
  padding: 14px;
}

.cart-empty {
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #eef0f4;
  border-radius: 8px;
}

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

.cart-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-item button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.custom-options,
.order-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.custom-options label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.custom-options input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.order-box div {
  display: flex;
  justify-content: space-between;
}

.order-box button {
  width: 100%;
}

dialog {
  width: min(980px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(23, 23, 26, 0.56);
}

.dialog-card {
  margin: 0;
  padding: 18px;
}

.dialog-close {
  float: right;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 22px;
  clear: both;
}

.dialog-body img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #eef0f4;
  border-radius: 8px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.size-grid label {
  padding: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.size-grid input {
  margin-top: 6px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: 360px;
  transform: translateY(18px);
  opacity: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  padding: 12px 14px;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .intro,
  .shop-layout,
  .dialog-body,
  .process-strip {
    grid-template-columns: 1fr;
  }

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

  .cart-panel {
    position: fixed;
    inset: 72px 12px 12px;
    z-index: 15;
    display: none;
    max-height: none;
  }

  .cart-panel.open {
    display: block;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-nav {
    width: 100%;
    gap: 10px;
  }

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

  .summary-line {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-line button,
  .cart-toggle {
    width: 100%;
  }
}
