/* A v3: all eleven mobile homepage tiles. The existing grid remains two columns. */
@media (max-width: 767px) {
  .kp-homepage-current .m12-directions > .m12-carousel {
    display: flex; flex-direction: column; position: relative;
    padding: 0; gap: 0; overflow: hidden; min-width: 0; align-self: stretch;
  }
  .kp-homepage-current .m12-directions > .m12-carousel:hover {border-color:#e4e4e9;color:#252529}
  .kp-homepage-current .m12-carousel-family {
    display: flex; flex-direction: column; justify-content: center; flex:0 0 auto;
    box-sizing: border-box; position:relative; min-height:var(--m12-family-height,44px); padding:5px 10px 5px 20px;
    border-bottom:1px solid #ececf0; color:#252529; text-decoration:none;
    overflow-wrap:anywhere; word-break:normal; -webkit-tap-highlight-color:#b315121a;
  }
  .kp-homepage-current .m12-carousel-family::before {content:'';position:absolute;left:10px;top:11px;width:2px;height:16px;border-radius:2px;background:#b31512}
  .kp-homepage-current .m12-carousel-family-name {font:600 14px/16px Arial,Helvetica,sans-serif;}
  .kp-homepage-current .m12-carousel-all {font:400 12px/14px Arial,Helvetica,sans-serif;color:#b31512}
  .kp-homepage-current .m12-carousel-all i {font-size:10px;margin-left:4px}
  .kp-homepage-current .m12-carousel-viewport {
    display:flex; flex:1 0 auto; min-width:0; width:100%; align-items:stretch;
    overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory;
    overscroll-behavior-x:contain; scrollbar-width:none;
    -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y pinch-zoom;
  }
  .kp-homepage-current .m12-carousel-viewport::-webkit-scrollbar {display:none}
  .kp-homepage-current .m12-carousel-slide {
    flex:0 0 100%; box-sizing:border-box; min-width:0; padding:0 7px;
    display:flex; flex-direction:column; gap:0; color:#252529; text-decoration:none;
    scroll-snap-align:start; scroll-snap-stop:always; -webkit-user-drag:none;
    -webkit-tap-highlight-color:#b315121a;
  }
  .kp-homepage-current .m12-carousel-slide .m12-picture {position:relative;display:grid;place-items:center;flex:0 0 120px;min-height:120px;height:120px}
  .kp-homepage-current .m12-carousel-slide .m12-picture img {height:120px;max-height:120px;max-width:100%;width:100%;object-fit:contain;-webkit-user-drag:none;user-select:none}
  .kp-homepage-current .m12-carousel-slide .m12-picture img[hidden] {display:none}
  .kp-homepage-current .m12-carousel-slide .m12-name {
    display:flex; align-items:flex-end; flex:1 0 auto; box-sizing:border-box; min-height:36px; height:auto; padding:0 0 4px;
    font:600 14px/16px Arial,Helvetica,sans-serif; color:#252529;
    overflow-wrap:anywhere; word-break:normal; hyphens:auto;
  }
  .kp-homepage-current .m12-carousel-image-fallback {font:400 12px/16px Arial,sans-serif;color:#666;max-width:100%;text-align:center}
  .kp-homepage-current .m12-carousel-image-fallback[hidden] {display:none}
  .kp-homepage-current .m12-carousel-controls {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;flex:0 0 auto;box-sizing:border-box;min-height:44px;border-top:1px solid #ececf0}
  .kp-homepage-current .m12-carousel-controls button {
    appearance:none;display:grid;place-items:center;box-sizing:border-box;
    min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:9px;
    color:#b31512;background:transparent;font-size:23px;cursor:pointer;
  }
  .kp-homepage-current .m12-carousel-controls button[aria-disabled="true"] {color:#a5a5af;cursor:default}
  .kp-homepage-current .m12-carousel-controls button:active {background:#fff3f2}
  .kp-homepage-current .m12-carousel-counter {display:block;padding:3px 0;text-align:center;color:#5d5d66;font:400 12px/16px Arial,Helvetica,sans-serif;overflow-wrap:anywhere}
  .kp-homepage-current .m12-carousel-slide:focus-visible,.kp-homepage-current .m12-carousel-family:focus-visible {outline:2px solid #b31512;outline-offset:-3px;border-radius:8px}
  .kp-homepage-current .m12-carousel-controls button:focus-visible {outline:2px solid #b31512;outline-offset:-4px}
  .kp-homepage-current .m12-carousel-status {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
  /* First pair: larger photos, captions close to the controls; natural text height remains free. */
  .kp-homepage-current .m12-carousel:is([data-group="hooks"],[data-group="price"]) .m12-carousel-slide .m12-picture {
    flex-basis:120px; min-height:120px; height:120px;
  }
  .kp-homepage-current .m12-carousel:is([data-group="hooks"],[data-group="price"]) .m12-carousel-slide .m12-picture img {
    height:120px; max-height:120px;
  }
  .kp-homepage-current .m12-carousel:is([data-group="hooks"],[data-group="price"]) .m12-carousel-slide .m12-name {
    display:flex; align-items:flex-end; flex:1 0 auto; min-height:36px; padding:0 0 4px;
  }
  .kp-homepage-current .m12-carousel[data-group="hooks"] .m12-carousel-slide .m12-picture-overview {
    grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:4px;
  }
  .kp-homepage-current .m12-carousel[data-group="hooks"] .m12-carousel-slide .m12-picture-overview img {
    min-width:0; min-height:0; height:100%; max-height:100%;
  }
  .kp-homepage-current .m12-price-label {display:block; min-width:0; width:100%;}
  .kp-homepage-current .m12-price-word {display:inline-block; max-width:100%; hyphens:manual; overflow-wrap:normal; word-break:normal;}
}

@media (max-width:339px) {
  .kp-homepage-current .m12-carousel[data-group="price"] .m12-carousel-slide .m12-price-overview {font-size:13px;}
}
