/* Repairs for the static snapshot: the scripts that sized, positioned and animated
   these widgets were stripped, so each is given a plain CSS layout instead. */

/* ---- header: logo, menu and icons on one aligned row ---- */
.elementor-location-header .elementor-element-650b187 {
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
  align-items: center !important; justify-content: space-between !important;
  gap: 18px !important; min-height: 0 !important; padding: 10px 24px !important;
}
.elementor-location-header .theplus-equal-height { flex: 0 0 auto !important; width: auto !important; height: auto !important; min-height: 0 !important; }
.elementor-location-header .elementor-element-a191a5c { width: 88px !important; height: auto !important; margin: 0 !important; transform: none !important; }
.elementor-location-header .elementor-element-a191a5c img { width: 88px !important; height: auto !important; }
.elementor-location-header .elementor-element-d36b41a { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; margin: 0 !important; transform: none !important; }
.elementor-location-header .elementor-element-d4828ba { flex: 0 0 auto !important; width: auto !important; display: flex !important; flex-direction: row !important; align-items: center !important; gap: 16px !important; margin: 0 !important; }

/* ---- hero: the background media is gone, so drop the tall empty spacers ---- */
.elementor-element-399d4dc .elementor-element-833e2ca .elementor-spacer { height: 36px !important; }
.elementor-element-399d4dc .elementor-element-a4cb5b6 .elementor-spacer { height: 56px !important; }

/* ---- best sellers: equal, aligned cards ---- */
ul.products { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; gap: 24px 20px !important; }
ul.products li.product { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; width: auto !important; margin: 0 !important; float: none !important; }
ul.products li.product a.woocommerce-LoopProduct-link { display: flex !important; flex-direction: column !important; align-items: center !important; width: 100% !important; flex: 1 1 auto !important; }
ul.products li.product img { width: 100% !important; max-width: 200px !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: contain; }
ul.products li.product .woocommerce-loop-product__title { line-height: 1.3 !important; min-height: 2.6em !important; display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important; padding: 0.5em 0 0 !important; }
ul.products li.product .jdgm-widget { min-height: 22px; display: flex; justify-content: center; margin: 4px 0; }
ul.products li.product .price { margin-top: auto !important; padding: 4px 0 8px; }
ul.products li.product .button, ul.products li.product .add_to_cart_button { margin-top: 0 !important; }

/* menu: a single row that fills the space between the logo and the icons */
.elementor-location-header .elementor-element-d36b41a .elementor-widget-container,
.elementor-location-header .elementor-element-d36b41a nav { width: 100% !important; }
.elementor-location-header .elementor-element-d36b41a ul.elementor-nav-menu {
  display: flex !important; flex-wrap: nowrap !important; justify-content: space-between !important; width: 100% !important;
}
.elementor-location-header .elementor-element-d36b41a ul.elementor-nav-menu > li { flex: 1 1 auto !important; text-align: center; }
.elementor-location-header .elementor-element-d36b41a .elementor-item { padding-left: 10px !important; padding-right: 10px !important; white-space: nowrap; }

/* the product widget should fill its row, not sit in a 280px column */
.elementor-element-568a2e8 > .theplus-equal-height { flex: 1 1 100% !important; width: 100% !important; max-width: none !important; }
.elementor-element-568a2e8, .elementor-element-74ad5c3 { width: 100% !important; }

/* give the menu all the room it can get */
.elementor-location-header .elementor-element-d36b41a { flex: 1 1 0 !important; max-width: none !important; }
.elementor-location-header .elementor-element-d36b41a .elementor-item { padding-left: 6px !important; padding-right: 6px !important; font-size: 0.85rem !important; }
.elementor-location-header .elementor-element-650b187 { gap: 12px !important; padding-left: 16px !important; padding-right: 16px !important; }

/* the stacked panels share one width and one centre line */
.elementor-element-01d62f8, .elementor-element-d35b228, .elementor-element-43c1382 {
  width: min(100% - 32px, 704px) !important; max-width: 704px !important; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box !important;
}
.elementor-element-d35b228 { padding-left: 16px !important; padding-right: 16px !important; }

/* review stars on a baseline, centred under each product */
ul.products li.product .jdgm-prev-badge { display: flex !important; justify-content: center !important; align-items: center !important; gap: 6px; width: 100%; }
ul.products li.product .jdgm-prev-badge__stars { display: inline-flex !important; align-items: center; line-height: 1 !important; }
ul.products li.product .jdgm-prev-badge[data-number-of-reviews="0"] { display: none !important; }
.jdgm-star { line-height: 1 !important; vertical-align: middle; }

/* the white menu bar spans every item, including "More" */
.elementor-location-header .elementor-element-d36b41a nav.elementor-nav-menu--main,
.elementor-location-header .elementor-element-d36b41a ul.elementor-nav-menu { background: #fff !important; }

/* menu items share the bar equally so all five fit */
.elementor-location-header .elementor-element-d36b41a ul.elementor-nav-menu > li { flex: 1 1 0 !important; min-width: 0 !important; }
.elementor-location-header .elementor-element-d36b41a .elementor-item { justify-content: center !important; padding-left: 4px !important; padding-right: 4px !important; letter-spacing: 0 !important; }
.elementor-location-header .elementor-element-d36b41a .sub-arrow { display: none !important; }

/* ---- reviews: the carousel was frozen mid-slide, so make it a plain scroll-snap strip ---- */
.jdgm-all-reviews__header { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 22px !important; }
.jdgm-row-carousel { width: 100% !important; max-width: 704px; margin: 0 auto !important; }
.jdgm-rev-carousel { overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; width: 100% !important; padding: 0 !important; scrollbar-width: thin; }
.jdgm-glider-track { width: auto !important; transform: none !important; gap: 16px; align-items: stretch !important; }
.jdgm-glider-track > .jdgm-rev.jdgm-glider-slide { flex: 0 0 calc(50% - 8px) !important; width: auto !important; min-width: 0; height: auto !important; scroll-snap-align: start; box-sizing: border-box; margin: 0 !important; left: 0 !important; transform: none !important; }
.jdgm-glider-prev, .jdgm-glider-next, .jdgm-glider-arrow, .jdgm-glider-dots, .jdgm-carousel-arrow { display: none !important; }
.jdgm-row-readmore, .jdgm-row-stars { width: auto !important; max-width: 100%; text-align: center !important; }
.jdgm-row-readmore { display: flex !important; flex-wrap: wrap; gap: 10px 14px; justify-content: center; align-items: center; }
.jdgm-row-readmore .jdgm-link-wrapper { width: auto !important; }
.jdgm-row-media { display: none !important; }
.jdgm-histogram__row { display: flex !important; align-items: center; justify-content: center; gap: 10px; }
.jdgm-histogram__row .jdgm-histogram__bar { display: none !important; }
.jdgm-all-reviews__summary-stars, .jdgm-histogram__star { display: flex; justify-content: center; align-items: center; line-height: 1; }

/* review cards: one consistent layout, no dead controls */
.jdgm-rev-carousel-prev, .jdgm-rev-carousel-next { display: none !important; }
.jdgm-glider-slide .jdgm-rev__media { display: none !important; }
.jdgm-glider-slide { display: flex !important; flex-direction: column !important; text-align: center; padding: 22px 20px !important; }
.jdgm-glider-slide .jdgm-rev__header { flex: 0 0 auto; }
.jdgm-glider-slide .jdgm-rev__content { flex: 1 1 auto; }
.jdgm-glider-slide .jdgm-row-product .jdgm-rev__prod-info-wrapper { display: flex !important; flex-direction: column; align-items: center; gap: 6px; }
.jdgm-glider-slide .jdgm-rev__prod-link { display: inline-block; max-width: 100%; line-height: 1.25 !important; padding: 7px 16px !important; font-size: 0.8rem !important; }
.jdgm-glider-slide .jdgm-row-rating { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 4px; }
.jdgm-glider-slide .jdgm-rev__rating { display: inline-flex; align-items: center; line-height: 1; }
.jdgm-glider-slide .jdgm-rev__read-full { margin: 16px auto 0 !important; align-self: center; }

/* summary stars: counts line up in a column */
.jdgm-histogram__row { display: grid !important; grid-template-columns: 110px 28px; justify-content: center; align-items: center; column-gap: 10px; }
.jdgm-histogram__row .jdgm-histogram__star { justify-content: flex-end; }
.jdgm-histogram__row .jdgm-histogram__frequency { text-align: left; }
.jdgm-histogram__row.jdgm-histogram__clear-filter { display: block !important; }

/* dead floating widget: the currency switcher cannot work without its scripts */
.woo-multi-currency { display: none !important; }

.jdgm-glider-slide .jdgm-rev__read-full { position: static !important; display: inline-block !important; width: auto !important; left: auto !important; right: auto !important; transform: none !important; }
.jdgm-glider-slide .jdgm-rev__body { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.jdgm-glider-slide .jdgm-rev__content { margin-bottom: 8px; }
.jdgm-histogram__row.jdgm-histogram__clear-filter { margin-top: 8px; text-align: center; }

/* equal-height review cards instead of stretching to the longest review */
.jdgm-glider-track > .jdgm-rev.jdgm-glider-slide { height: 290px !important; justify-content: space-between; }
.jdgm-glider-slide .jdgm-rev__body { -webkit-line-clamp: 4; }
.jdgm-glider-slide .jdgm-rev__content { flex: 0 1 auto; }
.elementor-element-b40a4da { padding-bottom: 24px !important; min-height: 0 !important; }

/* footer: same width and centre line as the page body */
.elementor-location-footer .elementor-element-4308ddaa,
.elementor-location-footer .elementor-element-2c0db819,
.elementor-location-footer .elementor-element-0f66126,
.elementor-location-footer .elementor-element-2ee4b9c { width: min(100% - 32px, 704px) !important; max-width: 704px !important; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; justify-content: center !important; text-align: center !important; }
.elementor-location-footer .elementor-element-2ee4b9c .e-con-inner { width: 100% !important; justify-content: center !important; }
.elementor-location-footer .elementor-element-7d8f5a1b { padding-top: 24px !important; min-height: 0 !important; }

.jdgm-glider-track > .jdgm-rev.jdgm-glider-slide { height: 340px !important; }
.elementor-location-footer .elementor-element-4308ddaa { height: auto !important; min-height: 0 !important; align-items: center !important; padding: 14px 8px !important; }
.elementor-location-footer .elementor-element-4308ddaa .elementor-icon-list-items { justify-content: center !important; align-items: center !important; }
.elementor-element-0508c49 { margin-bottom: 0 !important; }
.elementor-location-footer { margin-top: 0 !important; }
.elementor-location-footer .elementor-element-691f2e9e, .elementor-location-footer .elementor-element-691f2e9e .elementor-widget-container { margin: 0 !important; padding: 0 !important; height: auto !important; }
.elementor-location-footer .elementor-element-4308ddaa { margin-top: 24px !important; }

/* the "1 review" caption is invisible but still takes room, which pushed the stars off centre */
ul.products li.product .jdgm-prev-badge__text { display: none !important; }

@media (max-width: 640px) {
  .jdgm-glider-track > .jdgm-rev.jdgm-glider-slide { flex-basis: 100% !important; height: auto !important; min-height: 300px; }
  .jdgm-glider-slide .jdgm-row-rating { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .elementor-location-header .elementor-element-d8d8458 * { letter-spacing: 0.1em !important; font-size: 0.66rem !important; line-height: 1.3 !important; }
}
