/* Keep the navigation, category content and footer on the same fluid grid. */
body#category {
  --sv-category-gutter: clamp(12px, 1.4vw, 32px);
}

body#category #wrapper > .container,
body#category .sv-shell {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--sv-category-gutter)) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

body#category #wrapper > .container > .row {
  margin-inline: 0;
}

body#category #wrapper > .container > .row > :is(#left-column, #content-wrapper) {
  min-width: 0;
  padding-inline: 0;
}

body#category #main :is(.mg-page, .nf-page, .td-shell) {
  width: 100%;
  max-width: none;
}

body#category #main .sv-gifts-heading h1 {
  color: #162946 !important;
}

html[data-theme="dark"] body#category #main .sv-gifts-heading {
  background: linear-gradient(115deg, #132238, #1d3050 65%, #303254);
}

html[data-theme="dark"] body#category #main .sv-gifts-heading h1 {
  color: #f5f8ff !important;
}

html[data-theme="dark"] body#category #main .sv-gifts-heading :is(.sv-category-description, p) {
  color: #d8e5f8 !important;
}

@media (min-width: 992px) {
  body#category #wrapper > .container > .row:has(> #left-column):has(> #content-wrapper) {
    display: grid;
    grid-template-columns: clamp(205px, 16vw, 280px) minmax(0, 1fr);
    column-gap: clamp(16px, 1.6vw, 32px);
  }

  body#category #wrapper > .container > .row:has(> #left-column)::before,
  body#category #wrapper > .container > .row:has(> #left-column)::after {
    display: none;
  }

  body#category #wrapper > .container > .row:has(> #left-column) > :is(#left-column, #content-wrapper) {
    width: 100%;
    max-width: none;
    float: none;
    grid-row: 1;
  }

  body#category #wrapper > .container > .row > #left-column { grid-column: 1; }
  body#category #wrapper > .container > .row > #content-wrapper { grid-column: 2; }
}

@media (min-width: 1600px) {
  body#category #wrapper #js-product-list .tvgrid-list-view-product > .products {
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)) !important;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  body#category #header .sv-nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    gap: 0 18px;
  }

  body#category #header .sv-nav-inner > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-inline: 0;
  }
}

@media (max-width: 767px) {
  body#category #main :is(.mg-hero, .nf-hero, .td-hero) {
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(18px, 4.2vw, 28px);
  }

  body#category #main :is(.mg-hero, .nf-hero, .td-hero) > * {
    min-width: 0;
    max-width: 100%;
  }

  body#category #main :is(.mg-hero, .nf-hero, .td-hero) h1 {
    font-size: clamp(29px, 7.6vw, 41px) !important;
    line-height: 1.09 !important;
    overflow-wrap: break-word;
  }

  body#category #main :is(.mg-hero, .nf-hero, .td-hero) a {
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
  }
}
