:root {
  color-scheme: light;
  --accent: #ff5727;
  --accent-soft: #fff1eb;
  --ink: #080808;
  --muted: #777777;
  --line: #dededc;
  --paper: #fffefc;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #ececec;
  color: var(--ink);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: #ececec;
}

html,
body,
.app-shell {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app-shell::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100%;
  margin: 0;
  background: #ececec;
}

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

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 87, 39, 0.24);
  outline-offset: 2px;
}

svg {
  display: block;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.12);
}

.screen {
  min-height: 100svh;
  padding-bottom: calc(190px + env(safe-area-inset-bottom));
  background: var(--paper);
  animation: screen-in 180ms ease-out;
}

.screen--detail {
  padding-bottom: calc(190px + env(safe-area-inset-bottom));
}

@keyframes screen-in {
  from {
    opacity: 0.35;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  min-height: 112px;
  padding: 14px 19px 13px;
  background: var(--paper);
}

.header-action {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  background: transparent;
}

.header-action .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.1;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 10px;
}

.brand-logo {
  display: grid;
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  box-shadow: 0 9px 21px rgba(255, 87, 39, 0.18);
}

.brand-logo span {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transform: rotate(-7deg);
}

.brand-name {
  max-width: 130px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(27px, 7.8vw, 34px);
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: -1.2px;
  text-transform: uppercase;
}

.home-hero {
  padding-top: 3px;
}

.eyebrow {
  margin: 0 20px 8px;
  color: #626262;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 7px;
  text-transform: uppercase;
}

.home-title {
  display: flex;
  align-items: baseline;
  margin: 0 18px;
  white-space: nowrap;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  line-height: 0.92;
  text-transform: uppercase;
}

.home-title strong {
  font-size: clamp(52px, 15.8vw, 68px);
  font-weight: 700;
  letter-spacing: -3px;
}

.home-title span {
  margin-left: 8px;
  font-size: clamp(44px, 13.5vw, 58px);
  font-weight: 200;
  letter-spacing: -2.5px;
}

.reference-crop {
  position: relative;
  overflow: hidden;
  background: #f6f5f2;
}

.reference-crop img {
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.media-placeholder {
  display: grid;
  position: relative;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 49.5%, rgba(0, 0, 0, 0.035) 50%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, rgba(0, 0, 0, 0.035) 50%, transparent 50.5%),
    #f2f1ed;
  color: #aaa9a4;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.media-placeholder::before {
  position: absolute;
  width: 32px;
  height: 24px;
  margin-top: -34px;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  content: "";
}

.media-placeholder::after {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -43px 0 0 -16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.media-placeholder > span {
  margin-top: 34px;
}

.home-product {
  width: 100%;
  height: clamp(158px, 42vw, 181px);
  margin-top: 36px;
  background: #f2f1ed;
}

.catalog-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: calc(100% - 40px);
  min-height: 62px;
  margin: 40px 20px 0;
  padding: 0 22px 0 28px;
  border-radius: 11px;
  background: #050505;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.catalog-cta .icon {
  width: 29px;
  height: 29px;
  stroke-width: 1.7;
}

.benefits {
  display: grid;
  grid-template-columns: 0.9fr 1.42fr 0.95fr;
  align-items: center;
  min-height: 72px;
  margin: 18px 14px 0;
}

.benefit {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  font-size: 10px;
  line-height: 1.12;
  text-align: center;
}

.benefit + .benefit {
  border-left: 1px solid #e1e1e1;
}

.benefit .icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  stroke-width: 1.7;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  bottom: max(clamp(10px, 3.4svh, 27px), env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  width: min(calc(100% - 36px), 394px);
  min-height: clamp(112px, 18.7svh, 147px);
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 6px 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
}

.nav-item {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 5px 1px;
  background: transparent;
  color: #0c0c0c;
  font-size: clamp(11px, 3.25vw, 14px);
  white-space: nowrap;
}

.nav-item .icon {
  width: 29px;
  height: 29px;
  stroke-width: 1.8;
}

.nav-item.is-active {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(255, 87, 39, 0.4);
}

.nav-item.is-active::before {
  position: absolute;
  z-index: -1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 87, 39, 0.08);
  box-shadow: 0 0 28px rgba(255, 87, 39, 0.24);
  content: "";
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 29px 20px 0;
}

.pill-control {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: transparent;
  font-size: 14px;
  white-space: nowrap;
}

.pill-control .icon {
  width: 20px;
  height: 20px;
}

.sort-control {
  min-width: 160px;
  justify-content: space-between;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 18px;
  padding: 34px 20px 44px;
}

.product-card {
  min-width: 0;
  background: transparent;
}

.product-image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: #f3f2ee;
}

.product-image {
  width: 100%;
  aspect-ratio: 0.892;
}

.product-card-body {
  position: relative;
  min-height: 91px;
  padding-top: 16px;
}

.product-card-title {
  min-height: 43px;
  margin: 0;
  font-size: clamp(16px, 4.5vw, 19px);
  font-weight: 500;
  line-height: 1.12;
}

.product-price {
  margin-top: 11px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.heart-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  background: transparent;
}

.product-card .heart-button {
  position: absolute;
  right: -5px;
  top: 25px;
}

.heart-button .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.75;
}

.heart-button.is-favorite .icon {
  fill: var(--accent);
  stroke: var(--accent);
}

.section-heading {
  margin: 15px 20px 0;
}

.section-heading .eyebrow {
  margin: 0 0 15px;
}

.section-heading h1 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(65px, 21vw, 88px);
  font-weight: 200;
  line-height: 0.96;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.profile-content {
  padding: 30px 20px 24px;
}

.profile-card,
.profile-link {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-card {
  min-height: 176px;
  padding: 22px 18px 20px;
}

.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.profile-card h2,
.profile-link strong {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
}

.profile-arrow {
  color: var(--accent);
}

.profile-arrow .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.65;
}

.order-preview {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 15px;
}

.order-thumb {
  width: 90px;
  aspect-ratio: 1;
}

.order-info h3 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.05;
}

.order-meta {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.15;
}

.order-meta .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.profile-link {
  display: grid;
  min-height: 64px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-top: 14px;
  padding: 0 18px;
  text-align: left;
}

.profile-link > .icon {
  width: 25px;
  height: 25px;
}

.profile-link .profile-arrow {
  justify-self: end;
}

.favorites-empty {
  display: grid;
  min-height: 380px;
  place-items: center;
  padding: 48px 24px;
  text-align: center;
}

.favorites-empty .icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  color: var(--accent);
}

.favorites-empty h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

.favorites-empty p {
  max-width: 270px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.secondary-button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 23px;
  background: #080808;
  color: #fff;
  font-weight: 700;
}

.detail-hero {
  width: 100%;
  height: clamp(171px, 43.6vw, 188px);
  background: #e8e2d9;
}

.detail-content {
  padding: 24px 20px 26px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(22px, 6.1vw, 27px);
  line-height: 0.98;
}

.detail-title-row strong {
  padding-top: 4px;
  font-size: clamp(24px, 6.8vw, 30px);
  white-space: nowrap;
}

.detail-section {
  margin-top: 12px;
}

.detail-section h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.sizes {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.size-button {
  width: 45px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  font-size: 16px;
}

.size-button.is-selected {
  border-color: var(--accent);
  color: var(--accent);
}

.stock {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.detail-label {
  margin: 10px 0 8px;
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
}

.description-box {
  min-height: 50px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #242424;
  font-size: 16px;
}

.detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.outline-action {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px solid #111;
  border-radius: 15px;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.outline-action .icon {
  width: 27px;
  height: 27px;
}

.sticky-cart {
  position: fixed;
  z-index: 28;
  bottom: max(clamp(52px, 11.1svh, 87px), env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100% - 28px), 402px);
  padding: 7px;
  transform: translateX(-50%);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cart-button {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: clamp(18px, 5.2vw, 23px);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cart-separator {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.32);
}

.drawer-backdrop,
.modal-backdrop,
.search-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  animation: fade-in 160ms forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.drawer {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(84%, 340px);
  padding: 25px 22px;
  background: var(--paper);
  box-shadow: 16px 0 42px rgba(0, 0, 0, 0.18);
  animation: drawer-in 200ms ease-out;
}

@keyframes drawer-in {
  from {
    transform: translateX(-100%);
  }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 45px;
}

.drawer-title {
  font-family: "Oswald", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
}

.close-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #f2f2f0;
}

.close-button .icon {
  width: 22px;
  height: 22px;
}

.drawer-nav {
  display: grid;
  gap: 8px;
}

.drawer-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
}

.drawer-link .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.search-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: search-in 180ms ease-out;
}

@keyframes search-in {
  from {
    transform: translateY(-12px);
  }
}

.search-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
}

.search-row > .icon {
  width: 23px;
  height: 23px;
}

.search-input {
  min-width: 0;
  height: 45px;
  border: 0;
  border-radius: 16px;
  background: #f4f4f2;
  padding: 0 15px;
  font-size: 16px;
}

.search-results {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.search-result {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  background: transparent;
  text-align: left;
}

.search-result strong {
  display: block;
  font-size: 14px;
}

.search-result span {
  color: var(--muted);
  font-size: 12px;
}

.modal-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 25px 22px calc(24px + env(safe-area-inset-bottom));
  border-radius: 30px 30px 0 0;
  background: #fff;
  box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.16);
  animation: sheet-in 200ms ease-out;
}

@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 24px;
}

.filter-group {
  margin-top: 22px;
}

.filter-group h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  min-height: 39px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
}

.chip.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.apply-button {
  width: 100%;
  min-height: 52px;
  margin-top: 27px;
  border-radius: 17px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.sort-menu {
  position: absolute;
  z-index: 45;
  top: 161px;
  right: 20px;
  width: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sort-option {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: #fff;
  text-align: left;
}

.sort-option + .sort-option {
  border-top: 1px solid #efefed;
}

.sort-option.is-selected {
  color: var(--accent);
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 90;
  bottom: calc(126px + env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 12px 17px;
  transform: translateX(-50%);
  border-radius: 18px;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  text-align: center;
  animation: toast-in 180ms ease-out;
}

.screen--detail + .toast,
.toast--detail {
  bottom: calc(98px + env(safe-area-inset-bottom));
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

@media (max-width: 365px) {
  .site-header {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .brand-logo {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .brand {
    gap: 7px;
  }

  .benefit {
    padding: 0 4px;
    font-size: 9px;
  }

  .catalog-toolbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .pill-control {
    padding: 0 13px;
    font-size: 12px;
  }

  .sort-control {
    min-width: 145px;
  }

  .catalog-grid {
    gap: 60px 13px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (min-width: 431px) {
  .app-shell {
    min-height: calc(100svh - 32px);
    margin-top: 16px;
    margin-bottom: 16px;
    border-radius: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
