@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --paper: #f4f0e7;
  --paper-deep: #ead8c7;
  --card: #f8efe4;
  --ink: #171717;
  --muted: #6d665d;
  --line: #cfc5b4;
  --brick: #862c2a;
  --moss: #58634b;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #2d3029;
  color: var(--ink);
  font-family: var(--sans);
}

a {
  color: inherit;
}

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

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow:
    0 0 0 1px #2d2b27,
    0 22px 80px #0009;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 34px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 4px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 0.9;
}

.brand-copy strong {
  font-weight: 400;
}

.brand-copy small {
  color: var(--brick);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-align: center;
}

.menu-btn {
  display: grid;
  width: 28px;
  gap: 5px;
  padding: 5px 0;
  text-decoration: none;
}

.menu-btn i {
  display: block;
  height: 1px;
  background: var(--ink);
}

.catalog {
  position: relative;
  padding: 31px 20px 48px;
}

.side-label {
  position: absolute;
  top: 72px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.left-label {
  left: 7px;
  transform: rotate(180deg);
}

.right-label {
  right: 7px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--brick);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.eyebrow,
.category {
  color: var(--brick);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog h1 {
  max-width: 250px;
  margin: 11px 0 4px;
  font-family: var(--serif);
  font-size: clamp(42px, 11vw, 58px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.result-count {
  margin: 0 0 22px;
  color: var(--moss);
  font-size: 11px;
}

.hero {
  position: relative;
  height: 178px;
  margin: 0 0 24px;
  overflow: hidden;
  background: var(--paper-deep);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.35) sepia(0.15) saturate(1.2) contrast(1.1);
  mix-blend-mode: multiply;
  opacity: 0.78;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, #58634b55, transparent 55%, #9d303044);
}

.hero-stamp {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 12px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 0.85;
  text-align: right;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid #d2c4b3;
  border-radius: 5px;
  background: var(--card);
  transition: border-color 0.2s ease;
}

.product-card:hover {
  border-color: var(--brick);
}

.product-image-wrap {
  height: 142px;
  overflow: hidden;
  background: var(--paper-deep);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) sepia(0.14) saturate(1.2) contrast(1.12);
  mix-blend-mode: multiply;
}

.product-info {
  min-height: 108px;
  padding: 12px 4px 24px;
}

.product-info h2 {
  min-height: 34px;
  margin: 7px 0 11px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.price {
  color: var(--brick);
  font-size: 12px;
  font-weight: 700;
}

.price span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
}

.arrow {
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: var(--brick);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 350px) {
  .catalog {
    padding-inline: 14px;
  }

  .hero {
    height: 155px;
  }

  .product-list {
    gap: 8px;
  }

  .product-image-wrap {
    height: 120px;
  }

  .product-info h2 {
    font-size: 15px;
  }
}

/* Tablet: keep the simple two-column product rhythm instead of squeezing four cards. */
@media (min-width: 701px) {
  body {
    background: var(--paper);
  }

  .phone-shell {
    width: min(100%, 1180px);
    max-width: none;
    min-height: 100vh;
    box-shadow: none;
  }

  .topbar {
    height: 82px;
    padding-inline: clamp(36px, 6vw, 54px);
  }

  .catalog {
    padding: 60px clamp(40px, 7vw, 76px) 84px;
  }

  .catalog h1 {
    max-width: none;
    font-size: clamp(58px, 7vw, 82px);
  }

  .hero {
    height: 270px;
    margin-top: 30px;
  }

  .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .product-card {
    padding: 12px;
  }

  .product-image-wrap {
    height: 240px;
  }

  .product-info {
    min-height: 118px;
    padding: 14px 6px 24px;
  }

  .product-info h2 {
    font-size: 20px;
  }
}

/* Desktop: four cards fit comfortably once the canvas is actually wide enough. */
@media (min-width: 980px) {
  .catalog {
    padding: 68px 76px 90px;
  }

  .catalog h1 {
    font-size: clamp(64px, 6.2vw, 88px);
  }

  .hero {
    height: 300px;
    margin-top: 34px;
  }

  .product-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .product-image-wrap {
    height: 230px;
  }

  .product-info h2 {
    font-size: 18px;
  }
}

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