.category-page {
  color: #302522;
  background: linear-gradient(180deg, #fffaf4 0, #fff 48%, #fffaf6 100%);
  font-family: 'Outfit', sans-serif;
}

.category-page-hero {
  position: relative;
  padding: 148px 24px 54px;
  text-align: center;
}

.category-back-link {
  position: absolute;
  top: 116px;
  left: max(24px, calc((100% - 1180px) / 2));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9e171d;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.category-back-link:hover { color: #e66a1c; }

.category-page-eyebrow {
  color: #b5121b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.category-page-hero h1 {
  margin: 8px 0 4px;
  color: #302522;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 750;
  letter-spacing: -.035em;
}

.category-page-hero p {
  margin: 0 auto;
  color: #756963;
  font-size: 17px;
}

.category-products {
  width: min(1180px, calc(100% - 48px));
  min-height: 340px;
  margin: 0 auto 90px;
  padding: 28px;
  border: 1px solid #efe2d8;
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 48px rgba(85, 46, 28, .07);
}

.category-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
}

.category-product-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 310px;
  overflow: visible;
  color: #a9171e;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.category-product-frame {
  position: absolute;
  z-index: 0;
  inset: 14px 3px 0 14px;
  border: 2px solid #382d29;
  border-radius: 32px;
  pointer-events: none;
  transition: transform .28s ease, border-color .28s ease;
}

.category-product-frame::before {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 92px;
  height: 92px;
  border-top: 10px solid #b5121b;
  border-left: 10px solid #b5121b;
  border-radius: 35px 0 0;
  content: "";
  transition: border-color .28s ease, width .28s ease, height .28s ease;
}

.frame-dot {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #382d29;
  transition: transform .28s ease, background .28s ease;
}

.frame-dot-top {
  top: -6px;
  left: 37%;
}

.frame-dot-left {
  top: 52%;
  left: -6px;
}

.category-product-surface {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 122px minmax(42px, auto) 20px;
  gap: 10px;
  min-height: 252px;
  margin: 42px 25px 28px 29px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(239, 228, 220, .85);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(39, 31, 28, .14);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.category-product-card:hover .category-product-surface,
.category-product-card:focus-visible .category-product-surface {
  transform: translateY(-8px);
  border-color: rgba(181, 18, 27, .24);
  box-shadow: 0 22px 34px rgba(39, 31, 28, .22);
}

.category-product-card:hover .category-product-frame,
.category-product-card:focus-visible .category-product-frame {
  transform: translateY(2px);
  border-color: #9f171b;
}

.category-product-card:hover .category-product-frame::before,
.category-product-card:focus-visible .category-product-frame::before {
  width: 104px;
  height: 104px;
  border-color: #e5b546;
}

.category-product-card:hover .frame-dot,
.category-product-card:focus-visible .frame-dot {
  background: #b5121b;
  transform: scale(1.3);
}

.category-product-image {
  display: grid;
  width: 100%;
  height: 122px;
  place-items: center;
  overflow: hidden;
}

.category-product-image img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 150px) !important;
  max-height: 112px !important;
  object-fit: contain;
  transition: transform .35s ease, filter .35s ease;
}

.category-product-card:hover .category-product-image img,
.category-product-card:focus-visible .category-product-image img {
  transform: scale(1.07);
  filter: drop-shadow(0 8px 8px rgba(54, 35, 29, .16));
}

.category-product-name {
  display: block;
  align-self: center;
  width: 100%;
  min-height: 42px;
  position: relative;
  z-index: 1;
  color: #a9171e;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
}

.category-product-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #756963;
  font-size: 12px;
  font-weight: 600;
  transition: color .25s ease;
}

.category-product-cta i { transition: transform .25s ease; }
.category-product-card:hover .category-product-cta,
.category-product-card:focus-visible .category-product-cta { color: #b5121b; }
.category-product-card:hover .category-product-cta i,
.category-product-card:focus-visible .category-product-cta i { transform: translateX(4px); }

.category-product-card:focus-visible { outline: 3px solid rgba(229, 181, 70, .75); outline-offset: 4px; border-radius: 32px; }

.category-empty {
  display: grid;
  min-height: 280px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.category-empty[hidden] { display: none; }
.category-empty > i { color: #c21a25; font-size: 30px; }
.category-empty h2 { margin: 14px 0 5px; color: #302522; font-size: 25px; font-weight: 700; }
.category-empty p { margin: 0 0 18px; color: #756963; }

.category-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 9px;
  background: linear-gradient(100deg, #b5121b, #e56b1f);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.category-contact-link:hover { color: #fff; }

@media (max-width: 850px) {
  .category-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .category-page-hero { padding: 142px 20px 36px; }
  .category-back-link { top: 104px; left: 20px; }
  .category-page-hero h1 { font-size: 38px; }
  .category-page-hero p { font-size: 15px; }
  .category-products { width: calc(100% - 28px); margin-bottom: 54px; padding: 14px; border-radius: 18px; }
  .category-products-grid { grid-template-columns: 1fr; gap: 14px; }
  .category-product-card { min-height: 286px; }
  .category-product-frame { inset: 12px 2px 0 12px; border-radius: 28px; }
  .category-product-frame::before { width: 76px; height: 76px; border-radius: 30px 0 0; }
  .category-product-surface { grid-template-rows: 112px minmax(36px, auto) 20px; min-height: 234px; margin: 34px 18px 24px 24px; padding: 18px; border-radius: 24px; }
  .category-product-image { height: 112px; }
  .category-product-image img { max-height: 104px !important; }
  .category-product-name { font-size: 13px; }
}
