.apux-categories { margin: 14px 0 56px; --category-red: #d91d2c; }
/* Restore the delivery illustration's intended constraint in the cached legacy CSS.
   It must not create a horizontal scrollbar next to the new home catalogue. */
.apux-categories ~ .main__delivery .main-delivery__info-img { max-width: 100%; }
.apux-categories ~ .main__delivery .main-delivery__info-img img { width: 100%; max-width: 410px; height: auto; }
.apux-categories-heading { margin-bottom: 22px; }
.apux-categories-heading h2 { margin: 0 0 8px; color: #17191c; font-size: 32px; font-weight: 700; line-height: 1.2; }
.apux-categories-heading p { margin: 0; color: #727784; font-size: 15px; line-height: 1.5; }
.apux-category-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.apux-category-card {
  position: relative; display: flex; align-items: flex-start; flex-direction: column;
  box-sizing: border-box; flex: 0 0 calc((100% - 72px) / 7);
  gap: 10px; min-width: 0; min-height: 176px; padding: 16px 12px 18px;
  background: #fff; border: 1px solid #e4e6eb; border-radius: 18px;
  text-align: left; color: #202226; cursor: pointer;
  box-shadow: 0 3px 12px #24282e04; transition: border-color 140ms, box-shadow 140ms;
}
.apux-category-card img { display: block; width: 104px; height: 88px; object-fit: contain; align-self: center; }
.apux-category-card span { display: block; width: 100%; padding-right: 6px; font: inherit; font-size: 14px; font-weight: 600; line-height: 20px; }
.apux-category-card > .bi { position: absolute; bottom: 8px; right: 11px; color: #a3a8b1; font-size: 11px; }
.apux-category-card:hover, .apux-category-card[aria-expanded="true"] { border-color: var(--category-red); box-shadow: 0 5px 18px #a20c1510; }
.apux-category-card:hover > .bi, .apux-category-card[aria-expanded="true"] > .bi { color: var(--category-red); }
.apux-category-card[aria-expanded="true"] { background: #fff8f8; }
.apux-categories button:focus-visible, .apux-categories a:focus-visible { outline: 2px solid var(--category-red); outline-offset: 3px; }
.apux-category-more { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.apux-category-more-label { color: #777d88; font-size: 13px; margin-right: 8px; }
.apux-category-more button { display: inline-flex; align-items: center; gap: 10px; background: #f5f6f8; border: 1px solid transparent; border-radius: 10px; min-height: 40px; padding: 9px 13px; color: #4b515c; font: inherit; font-size: 13px; line-height: 20px; cursor: pointer; }
.apux-category-more .bi { color: #9297a0; font-size: 10px; }
.apux-category-more button:hover, .apux-category-more button[aria-expanded="true"] { color: #b61623; border-color: #edbbc0; background: #fff6f7; }
.apux-category-panel { margin-top: 20px; padding: 24px; border: 1px solid #e4e6eb; border-radius: 24px; background: #f5f6f8; scroll-margin-top: 112px; }
.apux-category-panel[hidden] { display: none; }
.apux-category-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid #e3e5e9; }
.apux-category-panel-heading { display: flex; align-items: center; gap: 18px; min-width: 0; }
.apux-category-panel-picture { flex: 0 0 80px; width: 80px; height: 76px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: #fff; border: 1px solid #e9eaee; }
.apux-category-panel-picture img { display: block; width: 64px; height: 60px; object-fit: contain; }
.apux-category-panel-titles { min-width: 0; }
.apux-category-panel-eyebrow { margin: 0 0 6px; font-size: 11px; line-height: 16px; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; color: #bd1927; }
.apux-category-panel h3 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; color: #17191c; }
.apux-category-panel h3:focus { outline: none; }
.apux-category-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #e4e6eb; border-radius: 50%; background: #fff; color: #626975; cursor: pointer; }
.apux-category-close:hover { background: #fff1f2; border-color: #ebbbc0; color: #bd1927; }
.apux-category-subgroups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding-top: 22px; }
.apux-category-subgroup { min-width: 0; }
.apux-category-subgroup h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: #5d636e; font-size: 13px; line-height: 20px; font-weight: 600; }
.apux-category-subgroup h4::before { content: ''; flex: 0 0 3px; height: 14px; border-radius: 2px; background: var(--category-red); }
.apux-category-subgroup ul { display: grid; grid-template-columns: 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.apux-category-subgroup li { min-width: 0; margin: 0; padding: 0; }
.apux-category-subgroup a { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; height: 100%; padding: 11px 14px; border: 1px solid #e4e6eb; border-radius: 12px; background: #fff; color: #24272d; font-size: 14px; line-height: 21px; font-weight: 500; text-decoration: none; transition: border-color 140ms, background-color 140ms; }
.apux-category-subgroup a span { min-width: 0; }
.apux-category-subgroup a .bi { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; color: #c51c2b; background: #fff1f2; font-size: 14px; }
.apux-category-subgroup a:hover, .apux-category-subgroup a:focus-visible { color: #b61623; border-color: #e6a5ae; background: #fffafb; }
.apux-category-subgroup a:hover .bi, .apux-category-subgroup a:focus-visible .bi { color: #fff; background: var(--category-red); }
.apux-category-subgroups--single { grid-template-columns: 1fr; }
.apux-category-subgroups--single .apux-category-subgroup ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
.apux-category-subgroup li:only-child { grid-column: 1 / -1; }
.apux-category-footnote { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 0; font-size: 12px; line-height: 18px; color: #636a76; }
.apux-category-footnote > .bi { flex: 0 0 auto; color: #bd1927; font-size: 14px; }
@media (min-width: 1051px) and (max-width: 1399px) {
  .apux-category-card span { font-size: 13px; padding-right: 0; }
}
@media (max-width: 1050px) {
  .apux-category-card { flex-basis: calc((100% - 36px) / 4); }
}
@media (max-width: 820px) {
  .apux-category-card { flex-basis: calc((100% - 24px) / 3); }
  .apux-category-card { min-height: 166px; }
}
@media (max-width: 640px) {
  .apux-category-subgroups { grid-template-columns: 1fr; gap: 22px; }
  .apux-category-subgroups--single .apux-category-subgroup ul { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .apux-categories { margin-bottom: 36px; }
  .apux-categories-heading { margin-bottom: 18px; }
  .apux-categories-heading h2 { font-size: 26px; line-height: 32px; }
  .apux-categories-heading p { font-size: 14px; max-width: 280px; }
  .apux-category-grid { gap: 10px; }
  .apux-category-card { flex-basis: calc((100% - 10px) / 2); padding: 12px; min-height: 166px; border-radius: 15px; gap: 8px; }
  .apux-category-card img { width: 92px; height: 82px; }
  .apux-category-card span { font-size: 14px; line-height: 20px; padding-right: 8px; }
  .apux-category-card > .bi { bottom: 16px; right: 8px; }
  .apux-category-more-label { flex: 0 0 100%; margin-bottom: 2px; }
  .apux-category-more { gap: 7px; margin-top: 14px; }
  .apux-category-more button { min-height: 44px; padding: 9px 11px; }
  .apux-category-panel { padding: 16px; border-radius: 18px; scroll-margin-top: 144px; }
  .apux-category-panel-head { align-items: flex-start; gap: 10px; padding-bottom: 18px; }
  .apux-category-panel-heading { gap: 10px; }
  .apux-category-panel-picture { flex-basis: 50px; width: 50px; height: 56px; border-radius: 12px; }
  .apux-category-panel-picture img { width: 44px; height: 48px; }
  .apux-category-panel-eyebrow { font-size: 10px; line-height: 14px; letter-spacing: .04em; margin-bottom: 4px; }
  .apux-category-panel h3 { font-size: 19px; line-height: 24px; }
  .apux-category-subgroups { padding-top: 18px; }
  .apux-category-subgroup a { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) { .apux-category-card, .apux-category-subgroup a { transition: none; } }
