/* Only the approved images inside a home card move; its name/price stay still. */
.ace-home-v29 #app #home .home-card-gallery { position: relative; }
.ace-home-v29 #app #home .home-card-gallery-link {
  position: absolute; inset: 0; display: block; color: inherit; border-radius: inherit;
}
.ace-home-v29 #app #home .home-card-gallery-frame { display: block; position: absolute; inset: 6px; }
.ace-home-v29 #app #home .home-card-gallery-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  margin: 0; padding: 0; border: 0; display: block;
}
.ace-home-v29 #app #home .home-card-gallery [hidden] { display: none !important; }
.ace-home-v29 #app #home .home-card-gallery-placeholder {
  display: flex; width: 100%; height: 100%; flex-direction: column;
  justify-content: center; align-items: center; color: #786c5d; font-size: 13px; text-align: center;
}
.ace-home-v29 #app #home .home-card-gallery-placeholder small { font-size: 11px; }
.ace-home-v29 #app #home .home-card-gallery-controls {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
}
.ace-home-v29 #app #home .home-featured-card:hover .home-card-gallery-controls,
.ace-home-v29 #app #home .home-featured-card:focus-within .home-card-gallery-controls { opacity: 1; }
.ace-home-v29 #app #home .home-card-gallery-controls button {
  position: absolute;
  pointer-events: auto; min-width: 44px; min-height: 44px; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 10px; color: #4c4135;
  background: rgba(255, 254, 250, .96); font: inherit; font-size: 23px; cursor: pointer;
}
.ace-home-v29 #app #home .home-card-gallery-controls [data-gallery-prev] { left: 0; top: calc(50% - 22px); }
.ace-home-v29 #app #home .home-card-gallery-controls [data-gallery-next] { right: 0; top: calc(50% - 22px); }
.ace-home-v29 #app #home .home-card-gallery-controls [data-gallery-toggle] { left: calc(50% - 22px); bottom: 0; font-size: 15px; }
.ace-home-v29 #app #home .home-card-gallery-counter {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); border-radius: 6px;
  min-width: 35px; padding: 4px 2px; background: rgba(255, 254, 250, .96);
  color: #605347; font-size: 11px; text-align: center;
}
.ace-home-v29 #app #home .home-card-gallery button:focus-visible,
.ace-home-v29 #app #home .home-card-gallery-link:focus-visible,
.ace-home-v29 #app #home .home-card-product-link:focus-visible {
  outline: 2px solid #8d6b48; outline-offset: -2px;
}
.ace-home-v29 #app #home .home-card-product-link { color: inherit; text-decoration: none; min-width: 0; }
@media (hover: none) {
  .ace-home-v29 #app #home .home-card-gallery-controls { opacity: 1; }
}
@media (max-width: 767px) {
  .ace-home-v29 #app #home .home-card-gallery-controls { opacity: 1; }
}
@media (min-width: 1200px) and (max-height: 820px) {
  /* Existing short-screen cards have a 108-by-106 image column. Keep each
     44px target inside it, with separate top and bottom control rows. */
  .ace-home-v29 #app #home .home-card-gallery-controls [data-gallery-prev],
  .ace-home-v29 #app #home .home-card-gallery-controls [data-gallery-next] { top: 0; }
  .ace-home-v29 #app #home .home-card-gallery-counter { display: none; }
}

/* Quality03: readable empty-image text only; all layout and media rules retained. */
.ace-home-v29 #app #main #home .home-card-gallery-placeholder,
.ace-home-v29 #app #main #home .home-card-gallery-placeholder small {
  color: #5b5348;
}
