.ajcm {
  --ajcm-ink: #27140f;
  --ajcm-text: #36312e;
  --ajcm-red: #c8070e;
  --ajcm-red-dark: #a5070c;
  --ajcm-line: #e6d7d0;
  --ajcm-tint: #fff3e9;
  --ajcm-scroll-offset: 112px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  color: var(--ajcm-ink);
  font-family: inherit;
  scroll-margin-top: var(--ajcm-scroll-offset);
}

.ajcm *, .ajcm *::before, .ajcm *::after { box-sizing: inherit; }
.ajcm [hidden] { display: none !important; }

.ajcm-picker { margin: 0 auto clamp(22px, 3vw, 36px); }
.ajcm-select-wrap { position: relative; width: min(100%, 445px); margin-inline: auto; }
.ajcm-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 12px;
  height: 12px;
  border: solid var(--ajcm-ink);
  border-width: 0 3px 3px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.ajcm .ajcm-select-wrap select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 8px 56px 8px 23px;
  appearance: none;
  border: 1.5px solid var(--ajcm-red);
  border-radius: 999px;
  background: #fff;
  color: var(--ajcm-ink);
  font: inherit;
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.ajcm-panel, .ajcm-section { scroll-margin-top: var(--ajcm-scroll-offset); }
.ajcm-panel { margin: 0 0 24px; }
.ajcm-panel:has(> .ajcm-subnav) {
  display: grid;
  grid-template-columns: minmax(160px, 23%) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.5vw, 32px);
}

.ajcm .ajcm-subnav ul, .ajcm .ajcm-products {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ajcm-subnav li { margin: 0; }
.ajcm-subnav li + li { margin-top: 5px; }
.ajcm .ajcm-subnav a {
  display: block;
  padding: 10px 13px;
  border-radius: 7px;
  background: var(--ajcm-tint);
  color: var(--ajcm-ink);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ajcm .ajcm-subnav a:hover { background: #ffe4d0; }
.ajcm .ajcm-subnav a[aria-current="true"] { background: var(--ajcm-red-dark); color: #fff; }

.ajcm-section {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid #f0e7e2;
  border-radius: 14px;
  background: #fff;
}
.ajcm-section + .ajcm-section { margin-top: 14px; }
.ajcm-section[hidden] + .ajcm-section { margin-top: 0; }
.ajcm-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 16px;
  margin: 0 0 10px;
}
.ajcm-section-head.ajcm-has-description h2 { grid-column: 1 / -1; }
.ajcm-section-head .ajcm-category-description {
  max-width: 62ch;
  margin: 0;
}
.ajcm .ajcm-section-head h2 {
  margin: 0;
  color: var(--ajcm-ink);
  font-family: inherit;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}
.ajcm-category-description, .ajcm-product-copy p, .ajcm .ajcm-empty {
  margin: 5px 0 0;
  color: var(--ajcm-text);
  font-size: 14px;
  line-height: 1.5;
}
.ajcm-category-description p { margin: 0 0 6px; }
.ajcm-category-description > :last-child { margin-bottom: 0; }
.ajcm-count {
  justify-self: end;
  align-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ajcm-tint);
  color: var(--ajcm-red-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ajcm .ajcm-products {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(22px, 4vw, 46px);
}
.ajcm .ajcm-products:has(> :nth-child(2))::after {
  content: "";
  position: absolute;
  inset: 12px auto 0 50%;
  border-left: 1px solid var(--ajcm-line);
  pointer-events: none;
}
.ajcm-product {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 14px;
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--ajcm-line);
}
.ajcm .ajcm-product h3 {
  margin: 0;
  color: var(--ajcm-ink);
  font-family: inherit;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.ajcm .ajcm-product h3 a { color: inherit; text-decoration: none; }
.ajcm .ajcm-product h3 a:hover { text-decoration: underline; }
.ajcm-price-block { flex-shrink: 0; max-width: 48%; text-align: right; }
.ajcm-price {
  color: var(--ajcm-red);
  font-size: clamp(16px, 1.85vw, 23px);
  font-weight: 800;
  line-height: 1.2;
}
.ajcm-price del { opacity: .68; font-size: .78em; }
.ajcm-price ins { background: transparent; color: inherit; text-decoration: none; }
.ajcm-price .woocommerce-price-suffix { display: block; font-size: .62em; font-weight: 500; }
.ajcm-unit { display: block; margin-top: 3px; color: var(--ajcm-text); font-size: 13px; line-height: 1.25; }

.ajcm :is(a, select):focus-visible { outline: 2px solid var(--ajcm-red-dark); outline-offset: 3px; }
.ajcm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ajcm .ajcm-products { grid-template-columns: minmax(0, 1fr); }
  .ajcm .ajcm-products::after { display: none; }
}
@media (max-width: 680px) {
  .ajcm { --ajcm-scroll-offset: 76px; }
  .ajcm-panel:has(> .ajcm-subnav) { grid-template-columns: minmax(0, 1fr); }
  .ajcm .ajcm-subnav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .ajcm-subnav li + li { margin-top: 0; }
  .ajcm .ajcm-subnav a { display: flex; min-height: 40px; align-items: center; padding: 8px 10px; font-size: 14px; }
}
