.catalog-page {
  background: #080807;
  color: #e7dfd2;
  min-height: 100vh;
  min-height: 100dvh;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) clamp(16px, 5.5vw, 80px) 18px;
  border-bottom: 1px solid #332f2b;
  background: #050505;
}
.catalog-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}
.catalog-logo {
  display: block;
  width: clamp(160px, 32vw, 240px);
  height: auto;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
}
.catalog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: flex-end;
}
.catalog-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: #9d9589;
  text-decoration: none;
  font: 500 10px 'Oswald', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.catalog-nav a:hover { color: #e7dfd2; }
.catalog-nav .nav-order {
  padding: 10px 16px;
  border: 1px solid #c2493e;
  background: #98271f;
  color: #fff;
}

.catalog-hero {
  padding: clamp(40px, 8vw, 70px) clamp(16px, 5.5vw, 80px) clamp(24px, 5vw, 40px);
  max-width: 1440px;
  margin: 0 auto;
}
.catalog-hero .kicker {
  margin: 0 0 12px;
  color: #bb4033;
  font: 500 11px 'Oswald', sans-serif;
  letter-spacing: 3px;
}
.catalog-hero h1 {
  margin: 0 0 16px;
  font: 600 clamp(32px, 8vw, 72px)/.95 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.catalog-hero h1 i { font-style: normal; color: transparent; -webkit-text-stroke: 1px #8e8579; }
.catalog-hero p {
  max-width: 560px;
  color: #9d9589;
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 1.8;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 14px;
  padding: 0 clamp(16px, 5.5vw, 80px) calc(80px + env(safe-area-inset-bottom, 0px));
  max-width: 1440px;
  margin: 0 auto;
}

.catalog-card {
  border: 1px solid #332f2b;
  background: #0e0d0c;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .25s;
  cursor: pointer;
}
.catalog-card:focus-visible {
  outline: 2px solid #a43a30;
  outline-offset: 2px;
}
@media (hover: hover) {
  .catalog-card:hover { transform: translateY(-3px); border-color: #a43a3044; }
}

.catalog-card-image {
  aspect-ratio: 4/3;
  background: #111;
  overflow: hidden;
}
.catalog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card-image.placeholder {
  display: grid;
  place-items: center;
  color: #5c554c;
  font: 500 10px 'Oswald', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #111, #0a0908);
}

.catalog-card-body {
  padding: clamp(16px, 3vw, 22px);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.catalog-card-body span {
  color: #a63429;
  font: 500 9px 'Oswald', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.catalog-card-body h3 {
  margin: 10px 0 8px;
  font: 500 clamp(18px, 4vw, 22px) 'Oswald', sans-serif;
  text-transform: uppercase;
  line-height: 1.15;
}
.catalog-card-body p {
  margin: 0 0 14px;
  color: #8c8478;
  font-size: 11px;
  line-height: 1.65;
  flex: 1;
}
.catalog-card-price {
  margin-bottom: 14px;
  font: 500 16px 'Oswald', sans-serif;
  color: #e7dfd2;
}
.catalog-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.catalog-card-more {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #332f2b;
  background: transparent;
  color: #9d9589;
  font: 500 9px 'Oswald', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.catalog-card-more:hover { color: #e7dfd2; border-color: #5c554c; }
.catalog-card .add-to-cart {
  flex: 1 1 auto;
  min-height: 44px;
  margin-top: 0;
}

/* Product detail modal */
.catalog-product-modal {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.catalog-product-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.catalog-product-backdrop {
  position: absolute;
  inset: 0;
  background: #050505d9;
  backdrop-filter: blur(6px);
}
.catalog-product-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  border: 1px solid #332f2b;
  background: #0e0d0c;
  box-shadow: 0 24px 80px #00000080;
  -webkit-overflow-scrolling: touch;
}
.catalog-product-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid #332f2b;
  background: #080807ee;
  color: #9d9589;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.catalog-product-close:hover { color: #e7dfd2; border-color: #a43a30; }
.catalog-product-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: min(520px, 85dvh);
}
.catalog-product-media {
  min-height: 280px;
  background: #111;
  border-right: 1px solid #292622;
}
.catalog-product-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.catalog-product-placeholder {
  min-height: 280px;
  height: 100%;
  display: grid;
  place-items: center;
  color: #5c554c;
  font: 500 11px 'Oswald', sans-serif;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #111, #0a0908);
}
.catalog-product-content {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.catalog-product-kicker {
  color: #bd4437;
  font: 500 10px 'Oswald', sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.catalog-product-content h2 {
  margin: 14px 0 16px;
  font: 600 clamp(28px, 4vw, 42px)/1.05 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #e7dfd2;
}
.catalog-product-desc {
  margin: 0 0 24px;
  color: #8c8478;
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 1.75;
  flex: 1;
}
.catalog-product-price {
  margin-bottom: 20px;
  font: 500 clamp(20px, 3vw, 26px) 'Oswald', sans-serif;
  color: #e7dfd2;
  text-transform: uppercase;
}
.catalog-product-add {
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid #c2493e;
  background: #98271f;
  color: #fff;
  font: 500 11px 'Oswald', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}
.catalog-product-add:hover { background: #a8221a; }

.catalog-page .contact {
  margin-top: 48px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
.catalog-page .contact h2 { display: none; }

@media (max-width: 760px) {
  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .catalog-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .catalog-nav::-webkit-scrollbar { display: none; }
  .catalog-nav a { flex-shrink: 0; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-product-layout { grid-template-columns: 1fr; }
  .catalog-product-media { border-right: 0; border-bottom: 1px solid #292622; }
  .catalog-product-media img,
  .catalog-product-placeholder { min-height: 220px; }
  .catalog-card-actions { flex-direction: column; }
  .catalog-card-more,
  .catalog-card .add-to-cart { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-product-modal,
  .catalog-card { transition: none; }
}
