/* Each category has its own image and text column. Product pixels stay inside
   their allotted space instead of floating across the neighbouring label. */
#home .home-dock {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
#home .home-dock .category-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 14px;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
  height: 110px;
  padding: 16px;
  text-align: left;
  overflow: hidden;
  transform-style: flat;
}
#home .home-dock .category-product {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 72px;
  max-width: 100%;
  margin: 0;
  transform: none;
  z-index: 1;
}
#home .home-dock .category-product > img,
#home .home-dock .category-product > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  overflow: hidden;
}
#home .home-dock .category-product::after {
  bottom: 5px;
  left: 16%;
  width: 68%;
  height: 6px;
  filter: blur(7px);
}
#home .home-dock .category-card > span:nth-child(2) {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  z-index: 2;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.025em;
  white-space: normal;
}
#home .home-dock .category-card small {
  display: block;
  max-width: none;
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 450;
  letter-spacing: 0;
}
#home .home-dock .category-card > span:last-child {
  display: block;
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  width: 14px;
}
#home .home-dock .category-card > span:last-child svg {
  display: block;
  width: 14px;
  height: 14px;
}
#home .home-dock .shield-pane {
  width: 44px;
  height: 55px;
  left: calc(50% - 23px);
  top: 10px;
  border-radius: 13px 13px 22px 22px;
}
#home .home-dock .shield-pane-back {
  left: calc(50% - 16px);
  top: 4px;
}
#home .home-dock .shield-pane-front svg {
  width: 25px;
  height: 31px;
}
@media (hover: hover) and (pointer: fine) {
  #home .home-dock .category-card:hover .category-product {
    transform: translateY(-4px);
  }
}
@media (max-width: 1150px) and (min-width: 901px) {
  #home .home-dock { gap: 10px; }
  #home .home-dock .category-card {
    grid-template-columns: 59px minmax(0, 1fr);
    column-gap: 9px;
    height: 104px;
    padding: 13px;
  }
  #home .home-dock .category-card > span:nth-child(2) { font-size: 11px; }
  #home .home-dock .category-card small { font-size: 8px; }
  #home .home-dock .category-card > span:last-child { display: none; }
}
@media (max-width: 900px) and (min-width: 651px) {
  #home .home-dock { gap: 10px; }
  #home .home-dock .category-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 48px auto;
    row-gap: 5px;
    height: 114px;
    padding: 10px 9px 11px;
    justify-items: center;
    text-align: center;
  }
  #home .home-dock .category-product { width: 74px; height: 48px; }
  #home .home-dock .category-product--shield { width: 56px; transform: scale(.68); }
  #home .home-dock .category-card > span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 10px; }
  #home .home-dock .category-card small { margin-top: 3px; font-size: 7px; }
  #home .home-dock .category-card > span:last-child { display: none; }
}
@media (max-width: 650px) {
  #home .home-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #home .home-dock .category-card {
    grid-template-columns: 47px minmax(0, 1fr);
    column-gap: 8px;
    height: 78px;
    padding: 10px;
  }
  #home .home-dock .category-product { height: 55px; }
  #home .home-dock .category-product--shield { transform: scale(.77); }
  #home .home-dock .category-card > span:nth-child(2) { font-size: 10px; letter-spacing: -.025em; }
  #home .home-dock .category-card small { font-size: 7px; line-height: 1.45; margin-top: 4px; }
  #home .home-dock .category-card > span:last-child { display: none; }
}
@media (max-width: 360px) {
  #home .home-dock { gap: 8px; }
  #home .home-dock .category-card {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 6px;
    height: 74px;
    padding: 9px;
  }
  #home .home-dock .category-product { height: 48px; }
  #home .home-dock .category-product--shield { transform: scale(.65); }
  #home .home-dock .category-card > span:nth-child(2) { font-size: 9px; }
  #home .home-dock .category-card small { font-size: 6.5px; }
}
@keyframes fv-front-scene-arrive {
  from { transform: translate(22%, -15%) scale(.65); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.product-scene[data-model="dji-m4pro"].scene-arriving .scene-aircraft {
  animation-name: fv-front-scene-arrive;
}
/* The official Mavic 4 Pro is front-on. Do not tilt only this catalogue model.
   The rotor planes and their source coordinates remain unchanged. */
.product-card .product-image-link[data-id="dji-m4pro"] .aircraft-image,
.product-card .product-image-link[data-id="dji-m4pro"] .drone-visual,
.product-scene[data-model="dji-m4pro"] .scene-aircraft {
  transform: none;
}
.product-scene[data-model="dji-m4pro"] .scene-aircraft {
  top: 27%;
  height: 48%;
}
@media (max-width: 650px) {
  .product-scene[data-model="dji-m4pro"] .scene-aircraft { top: 31%; height: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  #home .home-dock .category-card:hover .category-product { transform: none; }
}

/* Homepage category grid. Load after the theme and typography layers. */
body[data-theme="graphite"] #home.home-stage .home-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 14px;
}
body[data-theme="graphite"] #home.home-stage .home-dock .home-dock-extra {
  display: contents;
}
body[data-theme="graphite"] #home.home-stage .home-dock .category-card,
body[data-theme="graphite"] #home.home-stage .home-dock .category-card:last-child {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: auto;
  grid-column: auto;
  align-items: center;
  justify-items: stretch;
  gap: 18px;
  width: 100%;
  min-width: 0;
  min-height: 144px;
  height: auto;
  padding: 18px;
  text-align: left;
  overflow: hidden;
  transform-style: flat;
}
body[data-theme="graphite"] #home.home-stage .home-dock .category-product {
  position: relative;
  inset: auto;
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  width: 104px;
  height: 100px;
  max-width: 100%;
  margin: 0;
  flex: none;
  transform: none;
}
body[data-theme="graphite"] #home.home-stage .home-dock .category-product > img,
body[data-theme="graphite"] #home.home-stage .home-dock .category-product > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}
body[data-theme="graphite"] #home.home-stage .home-dock .category-product--symbol svg {
  width: 64px;
  height: 64px;
}
body[data-theme="graphite"] #home.home-stage .home-dock .category-product--shield .shield-pane-front {
  position: static;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
}
body[data-theme="graphite"] #home.home-stage .home-dock .category-product--shield .shield-pane-front svg {
  width: 64px;
  height: 64px;
}
body[data-theme="graphite"] #home.home-stage .home-dock .shield-pane-back,
body[data-theme="graphite"] #home.home-stage .home-dock .category-product::after {
  display: none;
}
body[data-theme="graphite"] #home.home-stage .home-dock .category-card > span:nth-child(2) {
  position: static;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font: 800 19px/1.3 Manrope, Arial, sans-serif !important;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}
body[data-theme="graphite"] #home.home-stage .home-dock .category-card small {
  display: block;
  margin-top: 7px;
  max-width: none;
  font: 500 13px/1.4 Manrope, Arial, sans-serif !important;
}
body[data-theme="graphite"] #home.home-stage .home-dock .category-card > span:last-child {
  display: none;
}
@media (min-width: 1100px) {
  body[data-theme="graphite"] #home.home-stage .home-dock {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card,
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card:last-child {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 104px auto;
    gap: 12px;
    align-items: start;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-product {
    width: 100%;
    height: 104px;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card > span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    font-size: 17px !important;
  }
}
@media (max-width: 650px) {
  body[data-theme="graphite"] #home.home-stage .home-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card,
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card:last-child {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 96px auto;
    align-items: start;
    justify-items: stretch;
    gap: 10px;
    min-height: 198px;
    padding: 13px 10px;
    border-radius: 18px;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-product {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 96px;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card > span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    font-size: 16px !important;
    line-height: 1.3 !important;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card small {
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin-top: 6px;
  }
}
@media (max-width: 360px) {
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card,
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card:last-child {
    padding: 12px 8px;
    grid-template-rows: 84px auto;
    min-height: 190px;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-product {
    height: 84px;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card > span:nth-child(2) {
    font-size: 15px !important;
  }
}

/* Consistent mobile typography and generous, centered category photography. */
@media (max-width: 650px) {
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card,
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card:last-child {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 120px auto;
    min-height: 242px;
    gap: 8px;
    padding: 12px 8px 16px;
    text-align: center;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-product {
    width: 100%;
    height: 120px;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card > span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    text-align: center;
    font-size: 22px !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em;
    hyphens: auto;
    overflow-wrap: normal;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card small {
    position: static;
    margin: 8px 0 0;
    text-align: center;
    letter-spacing: 0;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card:is([data-category="dji"], [data-category="fpv"]) > span:nth-child(2) {
    font-size: 34px !important;
  }
}
@media (max-width: 360px) {
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card,
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card:last-child {
    grid-template-rows: 108px auto;
    min-height: 230px;
    padding: 10px 6px 14px;
  }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-product { height: 108px; }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card > span:nth-child(2) { font-size: 20px !important; }
  body[data-theme="graphite"] #home.home-stage .home-dock .category-card:is([data-category="dji"], [data-category="fpv"]) > span:nth-child(2) { font-size: 30px !important; }
}
body[data-theme="graphite"] #home.home-stage .home-dock .category-product--photo > img,
body[data-theme="graphite"] #home.home-stage .home-dock .category-product--photo > svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply !important;
}

body[data-theme="graphite"] #home.home-stage .home-dock .category-product--photo {
  mix-blend-mode: multiply !important;
}

body[data-theme="graphite"] #home.home-stage .home-dock .category-card:is([data-category="power"], [data-category="radio"], [data-category="metal-detectors"]) > span:nth-child(2) { hyphens: none; }
