body.wg-store-category {
  --wg-category-slate: #293e51;
  --wg-category-control: #2267af;
}

body.wg-store-category #CategoryBreadcrumb {
  margin: 0 0 8px;
  padding: 6px 9px;
  border: 1px solid var(--style-line);
  background: var(--style-wash);
  color: var(--style-muted);
}

body.wg-store-category #CategoryBreadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.wg-store-category #CategoryBreadcrumb li,
body.wg-store-category #CategoryBreadcrumb li a {
  float: none;
  margin: 0;
  padding: 0;
  background: none;
}

body.wg-store-category #CategoryBreadcrumb li + li::before { content: "\203A\00A0" / ""; }

body.wg-store-category #CategoryHeading {
  margin: 0 0 8px;
  border: 1px solid var(--style-line);
  background: #fff;
}

body.wg-store-category #CategoryHeading > .BlockContent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0 0 8px;
}

body.wg-store-category #CategoryHeading > .BlockContent > h2,
body.wg-store-category .wg-native-category-products > h2 {
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 0;
  background: var(--wg-category-slate);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}

body.wg-store-category #CategoryHeading > .BlockContent > h2 { font-size: 20px; }
body.wg-store-category #CategoryHeading .CategoryDescription { padding-inline: 9px; }
body.wg-store-category #CategoryHeading :is(.CategoryDescription, .SubCategoryList, .SubCategoryListGrid):empty { display: none; }

body.wg-store-category #CategoryHeading :is(.SubCategoryList, .SubCategoryListGrid) {
  float: none;
  margin: 0;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: var(--style-ink);
}

body.wg-store-category #CategoryHeading :is(.SubCategoryList, .SubCategoryListGrid) > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.wg-store-category #CategoryHeading :is(.SubCategoryList, .SubCategoryListGrid) > ul > li {
  float: none;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

body.wg-store-category #CategoryHeading :is(.SubCategoryList, .SubCategoryListGrid) li > a {
  display: block;
  padding: 6px 9px;
  border: 1px solid var(--style-line);
  background: var(--style-wash);
  color: var(--style-accent);
  overflow-wrap: anywhere;
  text-decoration: none;
}

body.wg-store-category #CategoryHeading :is(.SubCategoryList, .SubCategoryListGrid) li > a:is(:hover, :focus-visible) {
  border-color: var(--wg-category-control);
  text-decoration: underline;
}

body.wg-store-category #CategoryHeading .SortBox {
  order: 1;
  float: none;
  align-self: end;
  max-width: 100%;
  margin: 0 9px;
  color: var(--style-ink);
}

body.wg-store-category #CategoryHeading .SortBox select {
  max-width: min(100%, 190px);
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid var(--style-line);
  border-radius: 5px;
  color: var(--style-ink);
  background: #fff;
  font: inherit;
}

body.wg-store-category #CategoryContent {
  margin: 0;
  padding: 0;
}

body.wg-store-category #CategoryContent .ProductList.List {
  display: grid;
  gap: 12px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

body.wg-store-category #CategoryContent .ProductList.List > li {
  display: grid;
  grid-template-columns: minmax(70px, min(132px, 26%)) minmax(0, 1fr);
  gap: 11px;
  float: none;
  box-sizing: border-box;
  width: auto;
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid var(--style-line);
  border-radius: 0;
  background: #fff;
}

body.wg-store-category #CategoryContent .ProductList.List > li > .ProductImage {
  display: grid;
  place-items: center;
  align-self: start;
  float: none;
  box-sizing: border-box;
  width: auto;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--style-line);
  border-radius: 0;
  background: #fff;
}

body.wg-store-category #CategoryContent .ProductList.List .ProductImage > a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

body.wg-store-category #CategoryContent .ProductList.List .ProductImage img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

body.wg-store-category #CategoryContent .ProductList.List > li > .ProductDetails {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  float: none;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: auto !important;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}

body.wg-store-category #CategoryContent .ProductList.List .ProductDetails > strong {
  grid-row: 1;
  margin: 0;
  color: var(--style-ink);
  font: 750 15px / 1.35 var(--style-heading);
}

body.wg-store-category #CategoryContent .ProductList.List .ProductDetails > strong > a:not(:hover, :focus-visible) { text-decoration: none; }
body.wg-store-category #CategoryContent .ProductList.List .ProductDetails > .Rating { grid-row: 2; }

body.wg-store-category #CategoryContent .ProductList.List .ProductDetails > .ProductDescription {
  grid-row: 3;
  margin: 0;
  color: #97a1a8;
  font-style: normal;
}

body.wg-store-category #CategoryContent .ProductList.List .ProductRightCol {
  grid-row: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: start;
}

body.wg-store-category #CategoryContent .ProductList.List .ProductRightCol > br { display: none; }
body.wg-store-category #CategoryContent .ProductList.List .ProductPrice {
  color: var(--style-accent);
  font-size: 16px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
body.wg-store-category #CategoryContent .ProductList.List .ProductPrice strike { color: var(--style-muted); font-size: 12px; font-weight: 400; }

body.wg-store-category #CategoryContent .ProductList.List .ProductRightCol > .ProductQty {
  margin-inline-start: auto;
}

body.wg-store-category #CategoryContent .ProductList.List .ProductQty > a {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--wg-category-control);
  border-radius: 5px;
  background: var(--wg-category-control);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

body.wg-store-category #CategoryContent .ProductList.List .ProductQty > a:is(:hover, :focus-visible) {
  background: #1a538d;
}

body.wg-store-category .CategoryPagination {
  min-height: 0;
  height: auto;
  padding: 5px 7px;
  border: 1px solid var(--style-line);
  background: var(--style-wash);
  color: var(--style-ink);
}

body.wg-store-category #SideCategoryTopSellers .ProductList {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.wg-store-category #SideCategoryTopSellers .ProductList > li {
  display: grid;
  grid-template-columns: 1.4em minmax(0, 1fr);
  gap: 4px 7px;
  float: none;
  box-sizing: border-box;
  width: auto;
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding: 6px 0 !important;
  border: 0;
  border-bottom: 1px solid var(--style-line);
  background: transparent;
  text-align: start;
}

body.wg-store-category #SideCategoryTopSellers .ProductList > br,
body.wg-store-category #SideCategoryTopSellers .ProductList > li:not(.TopSeller1) .ProductImage {
  display: none;
}

body.wg-store-category #SideCategoryTopSellers .TopSellerNumber {
  grid-column: 1;
  float: none;
  display: block;
  width: auto;
  height: auto;
  padding: 1px 3px;
  margin: 0;
  align-self: start;
  background: var(--style-wash);
  color: var(--style-accent);
  text-align: center;
}

body.wg-store-category #SideCategoryTopSellers :is(.ProductImage, .ProductDetails) {
  grid-column: 2;
  float: none;
  width: auto;
  height: auto !important;
  margin: 0;
  padding: 0;
  background: transparent;
  overflow-wrap: anywhere;
}

body.wg-store-category #SideCategoryTopSellers .ProductImage img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  body.wg-store-category #Wrapper {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    column-gap: 10px;
  }

  body.wg-store-category #Wrapper:has(> #LayoutColumn3:is([style*="display:none"], [style*="display: none"])) {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  body.wg-store-category #Wrapper > :is(#LayoutColumn1, #LayoutColumn2, #LayoutColumn3) {
    grid-row: 2;
    float: none;
    position: static;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
  }

  body.wg-store-category #Wrapper > #LayoutColumn1 { grid-column: 1; }
  body.wg-store-category #Wrapper > #LayoutColumn2 { grid-column: 2; }
  body.wg-store-category #Wrapper > #LayoutColumn3 { grid-column: 3; }
  body.wg-store-category #Wrapper > :not(:is(#LayoutColumn1, #LayoutColumn2, #LayoutColumn3)) { grid-column: 1 / -1; }
  body.wg-store-category #Wrapper > .Clear { display: none; }
}

@media (max-width: 1023px) {
  body.wg-store-category #Wrapper > #LayoutColumn3 {
    float: none;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 14px 12px;
  }
}

@media (max-width: 470px) {
  body.wg-store-category #CategoryContent .ProductList.List > li { gap: 8px; padding: 7px; }
  body.wg-store-category #CategoryContent .ProductList.List .ProductRightCol > .ProductQty { margin-inline-start: 0; }
}

/* The native image grid supplies fixed inline sizes and float-clearing list items. */
body.wg-cloud-white.wg-store-category #CategoryHeading .SubCategoryListGrid > ul > li {
  width: auto !important;
  height: auto !important;
  min-width: 0;
}

body.wg-cloud-white.wg-store-category #CategoryHeading .SubCategoryListGrid > ul > li[style*="clear"]:not(:has(> a)) {
  display: none;
}

body.wg-cloud-white.wg-store-category #CategoryHeading .SubCategoryListGrid > ul > li:has(> a > img) {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--style-line);
  background: #fff;
}

body.wg-cloud-white.wg-store-category #CategoryHeading .SubCategoryListGrid li:has(> a > img) > br {
  display: none;
}

body.wg-cloud-white.wg-store-category #CategoryHeading .SubCategoryListGrid li > a:has(> img) {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  box-sizing: border-box;
  block-size: 92px;
  padding: 6px;
  border: 0;
  background: #fff;
}

body.wg-cloud-white.wg-store-category #CategoryHeading .SubCategoryListGrid li > a > img {
  display: block;
  max-inline-size: 100%;
  max-block-size: 100%;
  block-size: auto;
  object-fit: contain;
}

body.wg-cloud-white.wg-store-category #CategoryHeading .SubCategoryListGrid li:has(> a > img) > a:not(:has(> img)) {
  display: grid;
  flex: 1;
  place-items: center;
  border: 0;
  border-top: 1px solid var(--style-line);
}

body.wg-cloud-white.wg-store-category #CategoryHeading .SubCategoryListGrid li > a:focus-visible {
  outline: 2px solid var(--wg-blue);
  outline-offset: -2px;
}

body.wg-cloud-white.wg-store-category #LayoutColumn2 .wg-native-category-products > .SortBox {
  float: none;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 6px 9px;
  border: 1px solid var(--style-line);
  border-top: 0;
  background: var(--style-wash);
  color: var(--style-ink);
  text-align: end;
}

body.wg-cloud-white.wg-store-category #LayoutColumn2 #CategoryContent .ProductList.List .ProductDetails > .Rating.Rating0 {
  display: none;
}

body.wg-cloud-white.wg-store-category #LayoutColumn2 #CategoryContent .ProductList.List .ProductDetails:has(> .Rating.Rating0) > .ProductDescription { grid-row: 2; }
body.wg-cloud-white.wg-store-category #LayoutColumn2 #CategoryContent .ProductList.List .ProductDetails:has(> .Rating.Rating0) > .ProductRightCol { grid-row: 3; }

body.wg-cloud-white:is(.wg-store-category, .wg-cloud-listing) #LayoutColumn2 .CategoryPagination .PagingList a {
  display: inline-block;
  min-width: 1.5em;
  padding: 2px 5px;
  border-color: var(--style-line);
  background: var(--style-surface);
  color: var(--style-accent);
}

body.wg-cloud-white:is(.wg-store-category, .wg-cloud-listing) #LayoutColumn2 .CategoryPagination .PagingList a:is(:hover, :focus-visible) {
  border-color: var(--style-accent);
  background: var(--style-wash);
  color: var(--style-ink);
}
