/**
 * Weblytic content rail — match Deo theme .container (same as /10-prestashop).
 *
 * Theme container steps:
 *   ≥992  → 992px
 *   ≥1200 → 1200px
 *   ≥1400 → 1400px
 *   ≤991  → 100% (mobile responsive layer)
 *
 * Side padding: 24px desktop; laptop (992–1399) uses +15px body inset.
 * Header/footer stay full-bleed.
 */

@media (min-width: 992px) and (max-width: 1199px) {
  :root,
  body.wbl-override-header,
  body.wbl-override-footer,
  body.wbl-static-home-page,
  body.wbl-homepage-active,
  body.wbl-override-product,
  body.wbl-module-product,
  body.wbl-module-category,
  body.wbl-module-search,
  body.wbl-module-listing,
  body.wbl-module-customer,
  body.wbl-module-soft,
  body.wbl-module-checkout,
  body.wbl-module-order-confirm,
  body.wbl-override-soft {
    --wbl-max: 992px;
    --wbl-container-pad-x: 39px; /* 24px + 15px laptop inset */
    --wbl-cart-width: 992px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  :root,
  body.wbl-override-header,
  body.wbl-override-footer,
  body.wbl-static-home-page,
  body.wbl-homepage-active,
  body.wbl-override-product,
  body.wbl-module-product,
  body.wbl-module-category,
  body.wbl-module-search,
  body.wbl-module-listing,
  body.wbl-module-customer,
  body.wbl-module-soft,
  body.wbl-module-checkout,
  body.wbl-module-order-confirm,
  body.wbl-override-soft {
    --wbl-max: 1200px;
    --wbl-container-pad-x: 39px; /* 24px + 15px laptop inset */
    --wbl-cart-width: 1200px;
  }
}

@media (min-width: 1400px) {
  :root,
  body.wbl-override-header,
  body.wbl-override-footer,
  body.wbl-static-home-page,
  body.wbl-homepage-active,
  body.wbl-override-product,
  body.wbl-module-product,
  body.wbl-module-category,
  body.wbl-module-search,
  body.wbl-module-listing,
  body.wbl-module-customer,
  body.wbl-module-soft,
  body.wbl-module-checkout,
  body.wbl-module-order-confirm,
  body.wbl-override-soft {
    --wbl-max: 1400px;
    --wbl-container-pad-x: 24px;
    --wbl-cart-width: 1400px;
  }
}

@media (min-width: 992px) {
  /*
   * Shared content rail — body sections only.
   * Header / footer stay full-bleed.
   */
  body.wbl-static-home-page .wbl-sh-container,
  body.wbl-override-product .wbl-pp-inner,
  body.wbl-module-product .wbl-pp-inner,
  body.wbl-module-category .wbl-category-page,
  body.wbl-module-search .wbl-category-page,
  body.wbl-module-listing .wbl-category-page,
  body.wbl-module-customer .wbl-customer-page,
  body.wbl-module-customer .wbl-account-page,
  body.wbl-module-customer .deo-my-account,
  body.wbl-module-customer .page-content,
  body.page-contact.wbl-module-customer .wbl-contact-page,
  body.wbl-module-soft.page-cart .wbl-cart-page,
  body.wbl-module-soft.page-cart .wbl-cart-content-wrapper,
  body.wbl-module-soft.page-cart #wrapper > .container,
  body.wbl-module-soft.page-cart #wrapper > .container-fluid,
  body.wbl-module-soft.page-cart #columns,
  body.wbl-module-soft.page-cart .columns-container,
  .wbl-static-checkout .wbl-checkout-trustbar__inner,
  .wbl-static-checkout .wbl-checkout-shell,
  body.wbl-module-checkout #wrapper > .container,
  body.wbl-module-checkout #wrapper > .container-fluid,
  body.wbl-module-checkout .wbl-checkout-trustbar__inner,
  body.wbl-module-order-confirm #wrapper > .container,
  body.wbl-module-order-confirm #wrapper > .container-fluid {
    max-width: var(--wbl-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--wbl-container-pad-x) !important;
    padding-right: var(--wbl-container-pad-x) !important;
    box-sizing: border-box !important;
  }

  /* Order confirmation page is inside padded container — avoid double side pad */
  body.wbl-module-order-confirm .wbl-confirm-content-wrapper {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.wbl-module-order-confirm .wbl-confirm-page {
    max-width: none !important;
    width: auto !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Why strip is inside the content container — match payment rail width */
  body.wbl-module-checkout #wrapper > .container > .wbl-checkout-why,
  body.wbl-module-checkout #wrapper > .container-fluid > .wbl-checkout-why {
    max-width: none !important;
    width: 100% !important;
  }

  /* Live checkout shell is inside #wrapper > .container — avoid double side pad */
  body.wbl-module-checkout .wbl-checkout-shell,
  body.wbl-module-checkout .wbl-checkout-shell--live-top {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Explicitly keep chrome full-bleed */
  body.wbl-override-header .wbl-site-header-inner,
  body.wbl-override-header .wbl-announcement-inner,
  body.wbl-override-footer .wbl-site-footer-inner {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  /* Cart page already pads the outer container — avoid double horizontal pad */
  body.wbl-module-soft.page-cart .wbl-cart-page,
  body.wbl-module-soft.page-cart .wbl-cart-content-wrapper,
  body.wbl-module-soft.page-cart #columns,
  body.wbl-module-soft.page-cart .columns-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .wbl-static-checkout .wbl-checkout-trustbar__inner,
  .wbl-static-checkout .wbl-checkout-shell {
    width: 100% !important;
  }

  body.wbl-override-header .wbl-deo-megamenu-wrap .deo-megamenu-modal,
  body.wbl-override-header .megamenu-content.deo-megamenu-modal {
    width: 100% !important;
    max-width: calc(var(--wbl-max, 1400px) - 40px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  body.wbl-override-header .wbl-main-nav .deo-horizontal-menu .megamenu > .nav-item.aligned-fullwidth > .dropdown-menu {
    width: 100% !important;
    max-width: calc(var(--wbl-max, 1400px) - 75px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

/* Laptop-only UI polish (992–1399) */
@media (min-width: 992px) and (max-width: 1399px) {
  body.wbl-static-home-page .wbl-sh-campaign-body {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 34%) !important;
    gap: 12px !important;
  }

  body.wbl-static-home-page .wbl-sh-campaign-text h3 {
    white-space: nowrap !important;
    font-size: clamp(15px, 1.55vw, 22px) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
  }

  body.wbl-static-home-page .wbl-sh-campaign-visual img {
    max-width: min(220px, 100%) !important;
  }

  body.wbl-static-home-page .wbl-sh-campaign-text .wbl-sh-badge {
    display: none !important;
  }

  body.wbl-static-home-page .wbl-sh-campaign-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.wbl-static-home-page .wbl-sh-campaign-actions .wbl-sh-btn-primary,
  body.wbl-static-home-page .wbl-sh-campaign-actions .wbl-sh-btn-outline {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    min-width: 0 !important;
  }

  body.wbl-static-home-page .wbl-sh-platform {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 0 14px !important;
    min-height: 72px !important;
  }

  body.wbl-static-home-page .wbl-sh-platform-label {
    font-size: 13px !important;
    max-width: 170px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }

  body.wbl-static-home-page .wbl-sh-platform-label svg {
    display: none !important;
  }

  body.wbl-static-home-page .wbl-sh-platform-list {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  body.wbl-static-home-page .wbl-sh-platform-item {
    flex: 0 1 auto !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    min-width: 0 !important;
  }

  body.wbl-static-home-page .wbl-sh-platform-item img {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
  }

  body.wbl-static-home-page .wbl-sh-platform-item strong {
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  body.wbl-static-home-page .wbl-sh-platform-item small {
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  body.wbl-static-home-page .wbl-sh-platform-cta {
    font-size: 12px !important;
    max-width: 190px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    text-align: right !important;
  }

  body.wbl-static-home-page .wbl-sh-hero {
    position: relative !important;
    overflow: visible !important;
  }

  body.wbl-static-home-page .wbl-sh-hero-grid {
    padding-bottom: 100px !important;
  }

  body.wbl-static-home-page .wbl-sh-platform-wrap {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: -36px !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: var(--wbl-max, 1200px) !important;
    margin: 0 !important;
    padding-left: var(--wbl-container-pad-x) !important;
    padding-right: var(--wbl-container-pad-x) !important;
    box-sizing: border-box !important;
    z-index: 12 !important;
    pointer-events: none !important;
  }

  body.wbl-static-home-page .wbl-sh-platform {
    pointer-events: auto !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  body.wbl-static-home-page .wbl-sh-trending {
    padding-top: 56px !important;
  }

  /* Mega menu: tighter columns on laptop widths */
  .wbl-main-nav .deo-horizontal-menu .megamenu > .nav-item > .dropdown-menu {
    padding: 22px 22px 18px !important;
  }

  .wbl-main-nav .deo-horizontal-menu .dropdown-menu .mega-col {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .wbl-main-nav .deo-horizontal-menu .dropdown-menu .mega-col:first-child {
    padding-left: 0 !important;
  }

  .wbl-main-nav .deo-horizontal-menu .dropdown-menu .mega-col:last-child {
    padding-right: 0 !important;
  }

  .wbl-main-nav .deo-horizontal-menu .dropdown-menu .mega-col:has(.widget-product_list) {
    padding: 10px 4px 10px 18px !important;
  }

  .wbl-main-nav .deo-horizontal-menu .dropdown-menu ul.nav-links a {
    padding: 7px 8px !important;
    font-size: 13px !important;
  }

  .wbl-main-nav .deo-horizontal-menu .dropdown-menu .widget-product_list .product-title a {
    font-size: 12.5px !important;
  }
}

/* Hide Deo mobile bottom nav (home + back-to-top bar) */
.deo-nav-mobile,
nav.deo-nav-mobile {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 991px) {
  #back-top,
  .deo-back-top {
    display: none !important;
  }
}
