:root {
  --bg: #0b0b10;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #bfa99a;
  --accent-2: #e6d4c8;
  --danger: #ff5b6a;
  --success: #2fd07b;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1200px;
  --gap: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 15% -20%, rgba(191, 169, 154, 0.25), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(230, 212, 200, 0.14), transparent 60%),
    radial-gradient(900px 500px at 30% 110%, rgba(191, 169, 154, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
}

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

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

.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;
}

.header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.2fr;
  gap: 14px;
  align-items: center;
}

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

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.brand__text {
  min-width: 0;
}

.brand__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

.brand__tagline {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__search {
  display: flex;
  justify-content: center;
}

.header__nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.nav__link {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.nav__link:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.nav__link.is-active {
  color: var(--text);
  border-color: rgba(191, 169, 154, 0.35);
  background: rgba(191, 169, 154, 0.09);
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 26px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--gap);
}

.filters {
  position: sticky;
  top: 10px;
  align-self: start;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px;
}

.filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.filters__section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.filters__title {
  font-weight: 650;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.checks {
  display: grid;
  gap: 10px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  user-select: none;
}

.check__input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.check__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

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

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.chip.is-active {
  border-color: rgba(191, 169, 154, 0.55);
  background: rgba(191, 169, 154, 0.13);
  color: rgba(255, 255, 255, 0.95);
}

.content {
  min-width: 0;
}

.content__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.content__filtersBtn {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: 150px 1fr;
}

.card__media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(500px 200px at 30% 40%, rgba(191, 169, 154, 0.35), transparent 60%),
    radial-gradient(500px 200px at 80% 80%, rgba(230, 212, 200, 0.25), transparent 55%),
    rgba(255, 255, 255, 0.04);
}

.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28)),
    radial-gradient(500px 200px at 30% 40%, rgba(191, 169, 154, 0.22), transparent 60%),
    radial-gradient(500px 200px at 80% 80%, rgba(230, 212, 200, 0.18), transparent 55%);
  pointer-events: none;
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.card__body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.card__title {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.2px;
  line-height: 1.2;
  margin: 0;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 750;
}

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

.sizeTag {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.btnRow {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--primary {
  border-color: rgba(191, 169, 154, 0.55);
  background: rgba(191, 169, 154, 0.15);
}

.btn--primary:hover {
  background: rgba(191, 169, 154, 0.22);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.78);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.btn--block {
  width: 100%;
}

.iconBtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  cursor: pointer;
}

.iconBtn:hover {
  background: rgba(255, 255, 255, 0.07);
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.92);
  padding: 11px 12px;
  outline: none;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(191, 169, 154, 0.55);
  box-shadow: 0 0 0 4px rgba(191, 169, 154, 0.14);
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
}

.row {
  display: grid;
  gap: 12px;
}

.row--2 {
  grid-template-columns: 1fr 1fr;
}

.h2 {
  font-size: 16px;
  margin: 0;
  letter-spacing: 0.2px;
}

.empty {
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.18);
  padding: 22px;
  margin-top: 12px;
}

.empty__title {
  font-weight: 800;
  margin-bottom: 6px;
}

.empty__text {
  color: var(--muted);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.modal__panel {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  max-height: min(84vh, 860px);
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(15, 15, 20, 0.94), rgba(10, 10, 14, 0.92));
  box-shadow: var(--shadow);
}

.modal__panel--right {
  width: min(460px, calc(100vw - 24px));
  height: calc(100vh - 24px);
  max-height: none;
  border-radius: var(--radius);
  justify-self: end;
  margin-right: 12px;
}

.modal__head {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal__titleWrap {
  display: grid;
  gap: 4px;
}

.cart {
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.cartItem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.cartItem__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 14px;
  line-height: 1.2;
}

.cartItem__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.qty__btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-weight: 900;
}

.qty__btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.qty__val {
  min-width: 20px;
  text-align: center;
  font-weight: 850;
}

.cartItem__actions {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: end;
}

.linkDanger {
  color: rgba(255, 91, 106, 0.95);
  border: 1px solid rgba(255, 91, 106, 0.35);
  background: rgba(255, 91, 106, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}

.linkDanger:hover {
  background: rgba(255, 91, 106, 0.16);
}

.cart__footer {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 12px;
}

.cart__totals {
  display: grid;
  gap: 8px;
}

.cart__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cart__row--total {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.form {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.summary {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.summary__title {
  font-weight: 900;
  margin-bottom: 8px;
}

.summary__body {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.summaryRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.summary__total {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.success {
  border-radius: var(--radius);
  border: 1px solid rgba(47, 208, 123, 0.35);
  background: rgba(47, 208, 123, 0.08);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.success__title {
  font-weight: 950;
  color: rgba(255, 255, 255, 0.96);
}

.success__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 80;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 750;
  max-width: calc(100vw - 24px);
  text-align: center;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: end center;
}

.sheet[hidden] {
  display: none;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.sheet__panel {
  position: relative;
  width: calc(100vw - 16px);
  max-width: 720px;
  max-height: min(86vh, 860px);
  overflow: auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(15, 15, 20, 0.96), rgba(10, 10, 14, 0.94));
  box-shadow: var(--shadow);
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sheet__body {
  padding: 14px;
}

.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 28px;
}

.legal__card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
  padding: 18px;
}

.legal h1 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.legal p,
.legal li {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.legal h2 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.legal__muted {
  color: var(--muted);
  margin: 0 0 14px;
}

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

  .header__search {
    justify-content: stretch;
  }

  .header__nav {
    justify-content: space-between;
  }

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

  .filters {
    display: none;
  }

  .content__filtersBtn {
    display: inline-flex;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .row--2 {
    grid-template-columns: 1fr;
  }

  .modal__panel--right {
    width: calc(100vw - 24px);
    margin-right: 0;
  }
}