/* Offline-mirror fixes -- REDUCED after the real plugin JS was fetched.

   History: the original crawl was missing ~33 plugin JS files (slick,
   essential-blocks bundles, GSAP), so nothing animated and pages rendered
   blank. This file papered over that with blanket !important overrides.

   Those assets are now present, so slick and GSAP initialise normally. The
   previous slider overrides were actively HARMFUL: they forced slides visible
   before slick measured them, so slick cached `.slick-list { height: 0px }` and
   the hero slider collapsed after its first paint.

   What remains is only the non-slick-dependent fallback. Every rule that could
   interfere with a working slick carousel has been removed.
*/

/* ---------------------------------------------------------------
   Part A: mobile drawer (`#sidr`).

   OceanWP's mobile menu is a sidr drawer; sidr.js is present in the mirror and
   positions/animates it itself. An earlier rule hid the drawer outright, which
   left the mobile menu button showing only its dark overlay — so nothing here
   touches the drawer any more. */

/* ---------------------------------------------------------------
   Part B: product-carousel grid fallback, ONLY when slick has not run.

   If the carousel JS loads, slick lays out the items and these rules never
   match (the `:not()` keeps them inert). If it does not, the items would
   otherwise stack full-width in a single column, so fall back to a 2-up grid. */
.eb-product-carousel:not(.slick-initialized) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 20px !important;
}

.eb-product-carousel:not(.slick-initialized) > .eb-product-carousel-item {
  flex: 0 0 calc(50% - 10px) !important;
  max-width: calc(50% - 10px) !important;
  width: calc(50% - 10px) !important;
  float: none !important;
}

@media (max-width: 782px) {
  .eb-product-carousel:not(.slick-initialized) > .eb-product-carousel-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

.eb-woo-product-carousel,
.eb-product-carousel-wrap,
.eb-product-carousel-wrap .eb-parent-wrapper {
  overflow: visible !important;
}

/* ---------------------------------------------------------------
   Layout corrections (hero slider width, product-grid columns, desktop
   overlay) are NOT here: they live in app/assets/theme-fixes.css, which the app
   injects into every page. site/ is re-created from site.tar.gz, so a rule
   written in this file would not survive a deploy. */

/* ---------------------------------------------------------------
   Deliberately NOT included any more:
     - .eb___animated opacity/visibility forcing   (GSAP now animates these)
     - .eb-slider-item / .eb-slider-wrapper overrides (breaks slick's height calc)
     - .eb-slider-item ~ .eb-slider-item { display:none } (hides real slides)
   Those were written for a JS-less mirror. With the assets present they fight
   the plugins, so the site's own CSS is left in charge. */