@font-face {
  font-family: "Angry";
  src: url("../assets/fonts/Angry.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0b0c0a;
  --bg-soft: #15150f;
  --canvas: #0e0f0d;
  --surface: #181813;
  --surface-elevated: #201d17;
  --section-surface: rgba(20, 21, 17, 0.84);
  --ink: #f1eee7;
  --text: #f1eee7;
  --muted: #9d9990;
  --line: #3d3b35;
  --border: #3d3b35;
  --accent: #c7aa82;
  --page-padding: clamp(1.25rem, 5vw, 2.25rem);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(ellipse 68rem 48rem at 88% -8%, rgba(111, 72, 39, 0.38) 0%, transparent 70%),
    radial-gradient(ellipse 58rem 54rem at 4% 54%, rgba(65, 68, 40, 0.28) 0%, transparent 72%),
    radial-gradient(ellipse 52rem 44rem at 92% 96%, rgba(42, 51, 54, 0.2) 0%, transparent 72%),
    linear-gradient(145deg, #070806 0%, #0d0f0c 38%, #19140e 72%, #090a09 100%) fixed;
  font-family: "Angry", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

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

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

.shop-shell {
  width: 100%;
  min-height: 100svh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 34rem 38rem at 108% 2%, rgba(112, 73, 39, 0.34) 0%, transparent 69%),
    radial-gradient(ellipse 36rem 44rem at -16% 40%, rgba(67, 71, 40, 0.25) 0%, transparent 72%),
    radial-gradient(ellipse 32rem 40rem at 110% 78%, rgba(45, 54, 56, 0.18) 0%, transparent 72%),
    radial-gradient(ellipse 30rem 34rem at 4% 98%, rgba(85, 55, 33, 0.18) 0%, transparent 72%),
    linear-gradient(158deg, rgba(23, 24, 19, 0.96) 0%, rgba(10, 11, 10, 0.98) 42%, rgba(31, 22, 15, 0.96) 72%, rgba(10, 12, 10, 0.98) 100%);
}

.site-header {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem var(--page-padding) 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wordmark__mark {
  display: grid;
  width: 2.6rem;
  flex: 0 0 2.6rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 0.56rem;
  letter-spacing: -0.03em;
}

.wordmark__name {
  font-size: 0.6875rem;
  letter-spacing: 0.035em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.main-nav a,
.main-nav span {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.main-nav .cart-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  color: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-rows: auto auto auto;
  min-height: auto;
  align-content: start;
  padding: clamp(2.75rem, 7svh, 4rem) var(--page-padding) 1rem;
}

.eyebrow,
.product-details p,
.section-count,
.hero-product figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1 {
  max-width: 13ch;
  margin: 0.9rem 0 1rem;
  font-size: clamp(2.65rem, 10.8vw, 4.6rem);
  font-weight: 500;
  font-family: "Angry", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.hero-description {
  max-width: 18rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.48;
}

.hero-product {
  display: grid;
  width: 100%;
  margin: clamp(1.25rem, 3.5svh, 2.25rem) 0 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(18, 19, 15, 0.82);
}

.hero-product[hidden] {
  display: none;
}

.hero-product__content {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.1rem;
  border-top: 1px solid var(--line);
}

.hero-product__name {
  display: inline-block;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-transform: none;
}

.hero-product__description {
  display: -webkit-box;
  max-width: 22rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-product__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.hero-product__price {
  color: var(--ink);
  font-size: 0.875rem;
  letter-spacing: -0.025em;
}

.hero-product__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: none;
}

.hero-product__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #13130f;
}

.hero-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.6rem;
  padding: 0 1rem 0 1.15rem;
  color: var(--canvas);
  background: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid var(--ink);
}

.primary-action:hover,
.section-link:hover,
.catalog-card__action:hover {
  border-color: var(--accent);
}

.primary-action:active,
.section-link:active,
.catalog-card__action:active {
  color: var(--accent);
}

.action-mark {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--canvas);
  border-radius: 50%;
  font-size: 0.9rem;
}

.popular {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--line);
  background: var(--section-surface);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--page-padding);
}

h2 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.9rem, 8.5vw, 3.5rem);
  font-weight: 500;
  font-family: "Angry", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.section-count {
  padding-top: 0.15rem;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0 var(--page-padding);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card__media-link {
  display: block;
  flex: 0 0 auto;
}

.product-image {
  aspect-ratio: 4 / 5;
  height: auto;
  margin: 0;
  overflow: hidden;
  background: #151513;
}

.product-image--light {
  background: #151513;
}

.product-image--stone {
  background: #151513;
}

.product-image--clay {
  background: #151513;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card--featured {
  grid-column: 1 / -1;
}

.product-card--featured .product-image {
  height: auto;
}

.product-shell .product-media {
  aspect-ratio: auto;
  height: auto;
  background:
    radial-gradient(circle at 75% 15%, rgba(91, 61, 37, 0.24), transparent 48%),
    linear-gradient(145deg, #171813, #211a14);
}

.product-shell .product-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.cart-shell .cart-item__image {
  overflow: hidden;
  background: #151513;
}

.cart-shell .cart-item__image img {
  object-fit: cover;
  object-position: center;
}

.product-details {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  padding: 0.8rem 0 0.25rem;
}

.product-details p {
  margin-bottom: 0.5rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.product-details h3 a {
  display: inline-block;
}

.product-card__description {
  display: -webkit-box;
  min-height: 4.2em;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.product-card__action {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 0.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.product-card__action:hover,
.product-card__media-link:hover + .product-details h3 a,
.product-details h3 a:hover {
  color: var(--accent);
}

.product-manager-link {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
}

.product-manager-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.product-manager-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.product-price {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.product-status {
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.product-status--out {
  color: #c38f71;
}

.section-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  margin: 2rem var(--page-padding) 0;
  padding: 0 0.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.section-link span {
  font-size: 1rem;
}

.site-footer {
  padding: 0.9rem var(--page-padding) 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(13, 14, 11, 0.72);
}

.site-footer__layout {
  display: block;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer__heading {
  margin-bottom: 0.65rem !important;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__wholesale {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.site-footer__wholesale a,
.catalog-taste-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

.site-footer__wholesale a:focus-visible,
.catalog-taste-note a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-footer__name {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.site-footer__requisites {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.5;
}

.site-footer__address {
  margin-top: 0.55rem;
  font-size: 0.6875rem;
  font-style: normal;
  line-height: 1.5;
}

.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-top: 0.35rem;
}

.site-footer__contacts a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.site-footer__seller-link {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
}

.site-footer__seller-link span {
  color: var(--accent);
}

.site-footer__legal {
  display: grid;
  align-content: start;
}

.site-footer__legal a {
  display: flex;
  min-height: 2.1rem;
  align-items: center;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(61, 59, 53, 0.65);
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.35;
}

.site-footer__legal a[aria-current="page"] {
  color: var(--ink);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer a:focus-visible {
  color: var(--ink);
  outline-color: var(--accent);
}

@media (max-width: 359px) {
  .wordmark {
    gap: 0.4rem;
  }

  .wordmark__mark {
    width: 2.35rem;
    flex-basis: 2.35rem;
  }

  .wordmark__name {
    font-size: 0.625rem;
  }

  .main-nav {
    gap: 0.7rem;
  }

  h1 {
    font-size: 2.5rem;
  }
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (min-width: 700px) {
  .shop-shell {
    max-width: 720px;
    margin: 0 auto;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
  }

  .hero-product {
    grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.65fr);
  }

  .hero-product__media {
    aspect-ratio: 4 / 3;
  }

  .hero-product__content {
    align-content: end;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

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

  .product-card--featured {
    grid-column: auto;
  }

  .product-card--featured .product-image {
    height: auto;
  }

  .site-footer__layout {
    display: block;
  }

  .site-footer__legal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.25rem;
  }

  .site-footer__legal a {
    min-height: 1.9rem;
    border-bottom: 0;
  }
}
