* {
  box-sizing: border-box;
}

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

:root {
  --accent: #ffbd17;
  --black: #111;
  --bg: #f7f3ea;
  --card: #fff;
  --muted: #666;
  --border: #eee;
  --radius: 24px;
  --shadow: 0 14px 40px rgba(0,0,0,.08);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--black);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #222 0 54%, var(--accent) 55% 62%, #111 63% 100%);
  box-shadow: inset 0 0 0 3px #242424;
  flex: 0 0 auto;
}

.brand__name {
  font-weight: 800;
  font-size: 18px;
}

.brand__tagline {
  font-size: 12px;
  color: #666;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shipping-note {
  font-size: 13px;
  color: #555;
}

.select,
input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
}

.cart-button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.cart-button {
  background: #111;
  color: #fff;
}

.primary-button {
  width: 100%;
  background: var(--accent);
  color: #111;
  font-size: 16px;
}

.secondary-button {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff;
  color: #111;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 10px;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 36px;
  align-items: center;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
  margin: 0 0 18px;
}

.hero p {
  font-size: 20px;
  color: #444;
  max-width: 620px;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.benefits li {
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.hero__image {
  display: grid;
  place-items: center;
}

.hero-ugc {
  width: min(100%, 460px);
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 35%, rgba(255,189,23,.9) 0 9%, transparent 10%),
    radial-gradient(circle at 28% 62%, #151515 0 18%, #2a2a2a 19% 28%, transparent 29%),
    linear-gradient(135deg, #ece7db 0%, #f9f6ef 48%, #c9c0ae 100%);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.hero-ugc__photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(24deg, transparent 0 40%, rgba(17,17,17,.12) 41% 45%, transparent 46%),
    radial-gradient(circle at 28% 62%, #111 0 17%, #222 18% 25%, #0f0f0f 26% 30%, transparent 31%),
    linear-gradient(160deg, rgba(0,0,0,.08), transparent 42%);
}

.hero-ugc__badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
}

.hero-cap {
  width: 88px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, #191919 0 57%, #252525 58% 70%, #101010 71% 100%);
  box-shadow: 0 12px 28px rgba(0,0,0,.22), inset 0 0 0 4px #202020;
  display: grid;
  place-items: center;
  position: relative;
  text-align: center;
}

.hero-cap__ring {
  position: absolute;
  inset: 18%;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.hero-cap strong {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 21px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 380px;
  gap: 20px;
  align-items: start;
}

.config-card,
.preview-card,
.checkout-card {
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

h3 {
  margin: 24px 0 12px;
  font-size: 18px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.field-note {
  display: block;
  margin-top: 7px;
  color: #666;
  font-size: 12px;
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: var(--c);
  cursor: pointer;
}

.color.active {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.stepper-row {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.stepper {
  width: 34px;
  height: 34px;
  border: 1px solid #eee;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.stepper-row output {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.label-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f3ea;
  border-radius: 24px;
  padding: 24px;
}

.label-preview svg {
  width: min(100%, 320px);
  height: auto;
}

.note {
  font-size: 13px;
  color: #666;
  text-align: center;
}

.quantity-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.preview-order {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 20px;
  background: #fff;
}

.preview-order__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #333;
}

.quantity-help {
  margin: -2px 0 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #4d3b12;
  font-size: 12px;
  line-height: 1.35;
}

.preview-order .primary-button {
  min-height: 48px;
  border-radius: 16px;
}

.quantity-option {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  min-height: 78px;
  position: relative;
  background: #fff;
}

.quantity-option:has(input:checked) {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.quantity-option input {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto;
  margin: 0;
}

.quantity-option__label {
  display: grid;
  gap: 3px;
  padding-right: 20px;
}

.quantity-option__label strong {
  font-size: 15px;
}

.quantity-option__price {
  display: block;
  align-self: end;
  font-size: 13px;
}

.quantity-option__badge {
  width: max-content;
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  background: #ff9f00;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
}

.order-empty-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7e6;
  color: #4d3b12;
  font-size: 13px;
  line-height: 1.35;
}

.summary-row.total {
  font-size: 20px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.delivery-form {
  margin-top: 22px;
}

.delivery-form input,
.delivery-form select {
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: #fff;
  z-index: 50;
  padding: 24px;
  box-shadow: -20px 0 50px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-panel__header button {
  border: 0;
  background: #f1f1f1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 12px;
}

.cart-item__preview {
  width: 76px;
  height: 76px;
}

.cart-item__preview svg {
  display: block;
  width: 76px;
  height: 76px;
}

.mini-preview {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #111;
  border: 4px solid var(--label-color);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 9px;
  padding: 8px;
}

.mini-preview strong {
  font-size: 10px;
}

.cart-item__info {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.cart-item__info button {
  border: 0;
  background: transparent;
  color: #888;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .hero,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    order: 3;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .shipping-note {
    width: 100%;
  }

  .page {
    padding: 20px 12px 70px;
  }

  .config-card,
  .preview-card,
  .checkout-card {
    border-radius: 22px;
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .preview-order {
    grid-template-columns: 1fr;
  }

  .quantity-options {
    grid-template-columns: 1fr;
  }

  .hero__image {
    order: -1;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
  }

  .cart-item > strong {
    grid-column: 2;
  }
}

.mode-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.mode-switch label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7f3ea;
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mode-switch input {
  width: auto;
}

[hidden] {
  display: none !important;
}

#mainTextTwoWrap:not([hidden]) {
  display: grid;
}

.tier-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #666;
}

.cart-discount-info {
  background: #fff7e6;
  border: 1px solid #ff9f00;
  border-radius: 16px;
  padding: 12px 14px;
  margin: 12px 0 18px;
  display: grid;
  gap: 4px;
}

.cart-discount-info strong {
  font-size: 18px;
}

.cart-discount-info span {
  font-size: 13px;
  color: #666;
}


.cart-remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #111;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.cart-remove:hover {
  background: #ffe1e1;
}

.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  font-size: 13px;
  color: #444;
}

.terms-check input {
  width: auto;
  margin-top: 2px;
}

.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 36px;
  display: flex;
  gap: 18px;
  color: #666;
  font-size: 13px;
}

.site-footer a {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
