html:root body.storefront-page #giftView #shopGrid .item-card.has-official-art:is(.is-bundle, .is-outfit):not(.is-vehicle):not(.is-jam-track) .item-body {
  background: linear-gradient(to top, var(--tile-text-background), transparent) !important;
}

html:root body.storefront-page #giftView #shopGrid .item-card.has-official-art:not(.is-vehicle, .is-jam-track) {
  --shop-art-headroom: 15%;
  --shop-card-radius: 20px;
  background: transparent !important;
}
html:root body.storefront-page #giftView #shopGrid .item-card.has-official-art:not(.is-vehicle, .is-jam-track)::before {
  content: "";
  position: absolute;
  inset: var(--shop-art-headroom) 0 0;
  border-radius: var(--shop-card-radius);
  background: linear-gradient(var(--tile-color), var(--tile-bottom));
  pointer-events: none;
}
html:root body.storefront-page #giftView #shopGrid .item-card.has-official-art:not(.is-vehicle, .is-jam-track)::after {
  top: calc(var(--shop-art-headroom) - 5px);
}
html:root body.storefront-page #giftView #shopGrid .item-card.has-official-art:not(.is-vehicle, .is-jam-track) .item-art {
  clip-path: inset(0 round 18px) !important;
}
html:root body.storefront-page #giftView #shopGrid .item-card .item-art > .is-official-pickaxe {
  --art-lift: 0px;
  scale: 1;
}
html:root body.storefront-page #giftView #shopGrid .item-card.has-official-art:not(.is-vehicle, .is-jam-track) .expires {
  inset-block-start: calc(var(--shop-art-headroom) + 8px) !important;
}
html:root body.storefront-page #giftView .shop-layout {
  --shop-frame: calc(100vw - 43px);
  --shop-frame-offset: -9.5px;
  --shop-columns: 2;
  --shop-tile-gap: 12px;
  --shop-grid-inset: calc(var(--shop-tile-gap) / 2);
  width: var(--shop-frame) !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-inline: 0 !important;
  margin-inline: calc((100% - var(--shop-frame)) / 2) !important;
  position: relative;
  left: calc(var(--shop-frame-offset) + var(--shop-scrollbar, 0px) / 2) !important;
}

html:root body.storefront-page #giftView .shop-layout > .shop-results {
  container-type: inline-size;
  width: 100%;
  max-width: none;
  padding-inline: 0 !important;
}

html:root body.storefront-page #giftView #shopGrid {
  --shop-unit: calc(100cqi / var(--shop-columns) - var(--shop-tile-gap));
  --shop-tile-height: calc(var(--shop-unit) / .627);
  --shop-grid-headroom: calc(var(--shop-tile-height) * .15);
  --shop-visible-row-gap: 67px;
  --shop-visible-title-gap: 61px;
  --shop-section-gap: 87px;
  width: 100%;
  max-width: none;
  padding-inline: 0 !important;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid {
  row-gap: var(--shop-section-gap) !important;
}

html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .section-grid {
  grid-template-columns: repeat(var(--shop-columns), minmax(0, 1fr)) !important;
  padding-inline: var(--shop-grid-inset) !important;
  column-gap: var(--shop-tile-gap) !important;
  row-gap: max(0px, calc(var(--shop-visible-row-gap) - var(--shop-grid-headroom))) !important;
  margin-top: 0 !important;
  padding-top: max(0px, calc(var(--shop-visible-title-gap) - var(--shop-grid-headroom))) !important;
}
html:root body.storefront-page #giftView #shopGrid .shop-section:not(.is-carousel) .section-heading {
  margin-bottom: 0 !important;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section {
  padding-inline: 0 !important;
}

html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section .section-grid > .item-card {
  height: var(--shop-tile-height) !important;
  min-height: 0 !important;
  aspect-ratio: auto;
}

html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .section-grid > .tile-span-1 {
  grid-column: span 1 !important;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .section-grid > .tile-span-2 {
  grid-column: span 2 !important;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .section-grid > :is(.tile-span-3, .tile-span-4) {
  grid-column: 1 / -1 !important;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .section-grid > .tile-span-4 {
  height: calc((100cqi - var(--shop-tile-gap)) * var(--shop-wide-ratio, .76)) !important;
}

html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel .section-grid:not([data-fit-carousel]) > .item-card[data-carousel-span="1"] {
  flex-basis: var(--shop-unit) !important;
  width: var(--shop-unit) !important;
  max-width: none !important;
}
html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel .section-grid:not([data-fit-carousel]) > .item-card[data-carousel-span="2"] {
  flex-basis: calc(var(--shop-unit) * 2 + var(--shop-tile-gap)) !important;
  width: calc(var(--shop-unit) * 2 + var(--shop-tile-gap)) !important;
  max-width: none !important;
}

html:root body.storefront-page #giftView #shopGrid .shop-section .item-card .selection-footer {
  box-sizing: border-box;
  inset: auto 0 0 !important;
  height: 21px !important;
  padding: 0 8px !important;
  border-radius: 0 0 14px 14px !important;
  background: #fff !important;
  color: #161616 !important;
  font: italic 700 11px/21px "Golos Text", Arial, sans-serif !important;
}

@media (width >= 821px) {
  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel {
    --carousel-edge-inset: 0px;
    --carousel-frame-inset: 5px;
    --shop-arrow-edge: calc(var(--carousel-edge-inset) - 34px);
  }

  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel .section-heading {
    padding-inline: calc(var(--carousel-edge-inset) + var(--carousel-frame-inset));
  }

  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel .section-grid {
    width: calc(100% - 2 * var(--carousel-edge-inset)) !important;
    margin-inline: var(--carousel-edge-inset) !important;
    margin-top: 0 !important;
    padding: 8px var(--carousel-frame-inset) 6px !important;
    column-gap: var(--shop-tile-gap) !important;
    scroll-padding-inline: var(--carousel-frame-inset);
  }

  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel .section-scroll-button[data-carousel-scroll] {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
}

@media (821px <= width < 1024px) {
  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel {
    --carousel-edge-inset: 17px;
  }
}

@media (width >= 640px) {
  html:root body.storefront-page #giftView .shop-layout { --shop-columns: 3; }
}

@media (width >= 768px) {
  html:root body.storefront-page #giftView .shop-layout {
    --shop-columns: 4;
    --shop-frame: calc(100vw - 68px);
    --shop-frame-offset: -10px;
    --shop-wide-ratio: .516;
  }
  html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .section-grid > .tile-span-3 {
    grid-column: span 3 !important;
  }
}

@media (width < 1024px) {
  html:root body.storefront-page #giftView .shop-layout[data-sidebar-compact] {
    display: block !important;
    overflow: visible;
  }
  html:root body.storefront-page #giftView .shop-layout .section-sidebar.is-compact {
    margin-left: calc((100% - var(--compact-viewport-width, 100vw)) / 2 - var(--shop-frame-offset) - var(--shop-scrollbar, 0px) / 2) !important;
  }
}

@media (width >= 1024px) {
  html:root body.storefront-page[data-gift-visible] #giftView .shop-layout {
    --shop-content-max: 955px;
    --shop-frame: min(calc(var(--shop-content-max) + var(--shop-sidebar-width) + 2 * var(--shop-column-gap)), calc(100vw - 88px));
    --shop-frame-offset: 0px;
    --shop-sidebar-width: 48px !important;
    --shop-column-gap: 32px;
    --shop-wide-ratio: .38625;
    display: grid !important;
    grid-template-columns: var(--shop-sidebar-width) minmax(0, 1fr) !important;
    column-gap: var(--shop-column-gap) !important;
    padding-right: var(--shop-column-gap) !important;
    box-sizing: border-box;
  }
  html:root body.storefront-page #giftView .shop-layout .section-sidebar:not(.is-compact) {
    width: var(--shop-sidebar-width) !important;
  }
}

@media (1024px <= width < 1440px) {
  html:root[data-lotso-preview] body.storefront-page #giftView .shop-layout .section-sidebar:not(.is-compact) #filterToggle {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
  }
}

@media (width >= 1440px) {
  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel {
    --carousel-edge-inset: 11px;
  }
  html:root body.storefront-page[data-gift-visible] #giftView .shop-layout {
    /* Keep four tiles readable without letting the monitor dictate their size. */
    --shop-frame: min(1576px, calc(100vw - 88px));
    --shop-sidebar-width: 338px !important;
    --shop-column-gap: 24px;
    --shop-tile-gap: 9px;
    grid-template-columns: var(--shop-sidebar-width) minmax(0, var(--shop-content-max)) !important;
    column-gap: var(--shop-column-gap) !important;
    padding-right: 0 !important;
  }
}

@media (width < 640px) {
  html:root body.storefront-page #giftView #shopGrid {
    --shop-visible-row-gap: 52px;
    --shop-visible-title-gap: 45px;
    --shop-section-gap: 48px;
  }
  html:root body.storefront-page #giftView .shop-layout {
    --shop-frame: calc(100vw - var(--shop-scrollbar, 0px) - 24px);
    --shop-frame-offset: calc(var(--shop-scrollbar, 0px) / -2);
    --shop-wide-ratio: .76;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel .section-grid {
    --shop-grid-start: 37px;
  }
  html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .section-grid > .item-card[data-mobile-span="1"] {
    grid-column: span 1 !important;
    height: var(--shop-tile-height) !important;
  }
  html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .section-grid > .item-card[data-mobile-span="2"] {
    grid-column: 1 / -1 !important;
    height: calc((100cqi - var(--shop-tile-gap)) * var(--shop-wide-ratio)) !important;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel .section-grid {
    width: calc(100% - var(--shop-tile-gap)) !important;
    margin-inline: var(--shop-grid-inset) !important;
    padding-inline: 0 !important;
    column-gap: var(--shop-tile-gap) !important;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel .section-grid:not([data-fit-carousel]) > .item-card[data-mobile-span] {
    flex: 0 0 var(--phone-carousel-tile) !important;
    width: var(--phone-carousel-tile) !important;
    max-width: none !important;
  }
  html:root body.storefront-page #giftView #shopGrid .is-carousel .item-card[data-mobile-span="1"] {
    --phone-carousel-tile: var(--shop-unit);
  }
  html:root body.storefront-page #giftView #shopGrid .is-carousel .item-card[data-mobile-span="2"] {
    --phone-carousel-tile: calc(2 * var(--shop-unit) + var(--shop-tile-gap));
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel .section-grid[data-fit-carousel] {
    column-gap: 0 !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 0;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section.is-carousel .section-grid[data-fit-carousel] > .item-card {
    flex: 0 0 var(--fitted-card-width, var(--phone-carousel-tile)) !important;
    width: var(--fitted-card-width, var(--phone-carousel-tile)) !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-inline: 0 var(--fitted-card-space, 0px) !important;
    scroll-snap-align: none;
  }
  html:root body.storefront-page #giftView #shopGrid .is-carousel .section-grid[data-fit-carousel] > [data-carousel-page-start] {
    scroll-snap-align: start;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card {
    --shop-art-headroom: 15%;
    --shop-card-radius: 20px;
    background: transparent !important;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card::before {
    content: "";
    position: absolute;
    inset: var(--shop-art-headroom) 0 0;
    border-radius: var(--shop-card-radius);
    background: linear-gradient(var(--tile-color), var(--tile-bottom));
    pointer-events: none;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card .item-art {
    clip-path: inset(0 round 18px) !important;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-vehicle:not(.is-vehicle-accessory) .item-art {
    clip-path: inset(var(--shop-art-headroom) 0 0 round 18px) !important;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card .expires {
    inset-block-start: calc(var(--shop-art-headroom) + 8px) !important;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card :is(h4 > span, .badge-text) {
    max-width: 100%;
    width: fit-content;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: none !important;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card .price-track {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3px 4px;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card[data-mobile-span="1"] .price-track .original-vbucks {
    font-size: 10px !important;
    margin-left: 0;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-jam-track {
    --track-caption-room: 93px;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-jam-track:has(.original-price) {
    --track-caption-room: 106px;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-jam-track .item-art > .card-render {
    width: min(87.5%, calc(var(--shop-unit) * .875), calc(var(--shop-tile-height) * .92 - var(--track-caption-room))) !important;
    height: auto !important;
    aspect-ratio: 1;
    object-fit: contain !important;
    top: 8% !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    border-radius: 8px;
    outline: 1px solid rgba(255, 255, 255, .18);
    outline-offset: -1px;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-jam-track .item-body {
    padding: 12px 9px 8px !important;
    gap: 2px !important;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-jam-track .selection-footer {
    display: none !important;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-jam-track .item-body > :is(.item-tags, .discount-badge, .ending-badge, .new-badge) {
    margin: 0 !important;
    max-width: 100%;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-jam-track .item-type {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px !important;
  }
  html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-jam-track h4 {
    font-size: 16px !important;
    width: 100%;
    margin: 0;
  }
  html:root body.storefront-page.lotso-monochrome #giftView #shopGrid .shop-section .item-card.is-jam-track h4 + .prices {
    margin-top: 0 !important;
  }
  @container (inline-size < 320px) {
    html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-jam-track h4 {
      font-size: 15px !important;
    }
  }
}

/* Lotes: como fortnite.com, el arte puede sobresalir por ARRIBA, pero no por los lados ni por abajo
   (evita que se salga hacia la flecha del carrusel). No se reduce ni se baja el arte. */
html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-bundle:not(.is-vehicle, .is-jam-track) .item-art {
  clip-path: inset(-60% 0 0 0 round 0 0 var(--shop-card-radius, 14px) var(--shop-card-radius, 14px)) !important;
}
html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-bundle:not(.is-vehicle, .is-jam-track) .discount-badge {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
html:root body.storefront-page #giftView #shopGrid .shop-section .item-card.is-bundle:not(.is-vehicle, .is-jam-track) .discount-badge .badge-text {
  display: block;
  width: auto;
  white-space: inherit !important;
  animation: none;
}

/* Reserve room for artwork above the painted tile, even when the API art is used. */
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .item-card {
  --shop-art-headroom: var(--shop-grid-headroom);
  --shop-card-radius: 14px;
  background: transparent !important;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .item-card::before {
  content: "";
  position: absolute;
  inset: var(--shop-art-headroom) 0 0;
  border-radius: var(--shop-card-radius);
  background: linear-gradient(var(--tile-color), var(--tile-bottom));
  pointer-events: none;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .item-card::after {
  top: calc(var(--shop-art-headroom) - 5px);
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .item-card:not(.is-bundle) .item-art {
  clip-path: inset(0 round var(--shop-card-radius)) !important;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .item-card.is-vehicle:not(.is-vehicle-accessory) .item-art {
  clip-path: inset(var(--shop-art-headroom) 0 0 round var(--shop-card-radius)) !important;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section:not(.is-carousel) .item-card .expires {
  inset-block-start: calc(var(--shop-art-headroom) + 8px) !important;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section .item-card:is(.is-jam-track, .is-wheel) .item-body,
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section .item-card.is-wheel .item-art {
  background: transparent !important;
}
html:root body.storefront-page[data-gift-visible] #giftView #shopGrid .shop-section .item-card h4 > span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
  color: #fff !important;
  opacity: 1;
  animation: none !important;
  transform: none;
}
html:root body.storefront-page.lotso-monochrome #giftView #shopGrid .shop-section .item-card .price-track {
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
}
html:root body.storefront-page.lotso-monochrome #giftView #shopGrid .shop-section .item-card .price-track > :is(.vbucks, .soles):has(> del) {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: baseline;
  gap: 4px;
}
html:root body.storefront-page.lotso-monochrome #giftView #shopGrid .shop-section .item-card .vbucks:has(> del) > .vbuck-price {
  align-items: baseline;
}
html:root body.storefront-page.lotso-monochrome #giftView #shopGrid .shop-section .item-card .vbucks:has(> del) > .vbuck-price::before,
html:root body.storefront-page.lotso-monochrome #giftView #shopGrid .shop-section .item-card .vbucks:has(> del) > .vbuck-price > img {
  align-self: center;
}
html:root body.storefront-page.lotso-monochrome #giftView #shopGrid .shop-section .item-card .price-track del {
  align-self: baseline;
  transform: none;
  margin: 0;
  text-decoration: line-through solid currentColor 1px;
}

/* Tablet (640-820 px): en los carruseles todas las tarjetas usan el fondo completo para que midan igual
   (las de arte oficial y las canciones dejaban un 15% libre arriba y quedaban más bajas). */
@media (640px <= width < 821px) {
  html:root body.storefront-page #giftView#giftView#giftView #shopGrid .shop-section.is-carousel .item-card:is(.has-official-art, .is-jam-track):not(.is-vehicle) {
    --shop-art-headroom: 0px;
  }
}

/* PC: los carruseles iguales que las cuadrículas (p. ej. Overwatch) y que fortnite.com: el fondo de color mide
   ~310 px (deja un 15% libre arriba), el personaje asoma por encima y hay 61 px entre el título y el fondo. */
@media (width >= 821px) {
  html:root body.storefront-page[data-gift-visible] #giftView#giftView#giftView#giftView #shopGrid .shop-section.is-carousel .item-card {
    --shop-art-headroom: var(--shop-grid-headroom) !important;
    --shop-card-radius: 14px;
    background: transparent !important;
  }
  html:root body.storefront-page[data-gift-visible] #giftView#giftView#giftView#giftView #shopGrid .shop-section.is-carousel .item-card:not(.is-jam-track)::before {
    content: "";
    position: absolute;
    inset: var(--shop-art-headroom) 0 0;
    border-radius: var(--shop-card-radius);
    background: linear-gradient(var(--tile-color), var(--tile-bottom));
    pointer-events: none;
  }
  html:root body.storefront-page[data-gift-visible] #giftView#giftView#giftView#giftView #shopGrid .shop-section.is-carousel .item-card::after { top: calc(var(--shop-art-headroom) - 5px); }
  html:root body.storefront-page[data-gift-visible] #giftView#giftView#giftView#giftView #shopGrid .shop-section.is-carousel .item-card:not(.is-bundle) .item-art { clip-path: inset(0 round var(--shop-card-radius)) !important; }
  html:root body.storefront-page[data-gift-visible] #giftView#giftView#giftView#giftView #shopGrid .shop-section.is-carousel .item-card.is-vehicle:not(.is-vehicle-accessory) .item-art {
    clip-path: inset(var(--shop-art-headroom) 0 0 round var(--shop-card-radius)) !important;
  }
  html:root body.storefront-page[data-gift-visible] #giftView#giftView#giftView#giftView #shopGrid .shop-section.is-carousel .item-card .expires { inset-block-start: calc(var(--shop-art-headroom) + 8px) !important; }
}
