/**
 * Platform modules + CMS components — responsive BEM (all storefront layouts).
 * Build: 20260527-platform-modules-v8
 * Load after platform-bem.css; does not replace layout1-page.css (layout1 bold).
 * Scope: .mega-store main content only — not .l1-header / admin.
 */

.mega-store.layout-page {
  --mega-mod-max: min(100%, 75rem);
  --mega-mod-pad-x: clamp(0.75rem, 3vw, 1.25rem);
  --mega-mod-pad-y: clamp(0.85rem, 2.5vw, 1.35rem);
  --mega-mod-gap: clamp(0.75rem, 2.5vw, 1.25rem);
  --mega-mod-radius: 12px;
}

.mega-store.layout-page .layout-page__main,
.mega-store.layout-page .storefront__main,
.mega-store.layout-page #layout-main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

/* Module shells (all layouts) */
.mega-store .content-module,
.mega-store .storefront-bold__module-section,
.mega-store .storefront-bold__module-section--compact,
.mega-store .saf_about_wrapper,
.mega-store .saf_blog_wrapper,
.mega-store .bolxdatabooking {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  float: none !important;
  clear: both;
}

.mega-store .container.layout-page__module-row,
.mega-store .container.storefront-bold__module-row,
.mega-store .storefront-bold__module-container {
  width: 100% !important;
  max-width: var(--mega-mod-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--mega-mod-pad-x) !important;
  padding-right: var(--mega-mod-pad-x) !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* Neutralize legacy Bootstrap grid inside modules (not site header) */
.mega-store .layout-page__main .content-module .row,
.mega-store .layout-page__main .storefront-bold__module-section .row,
.mega-store .layout-page__main .saf_about_wrapper .row,
.mega-store .layout-page__main .saf_about_detail .row,
.mega-store .layout-page__main .storefront-bold__module-row-inner {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  gap: var(--mega-mod-gap);
}

.mega-store .layout-page__main .content-module [class*="col-"],
.mega-store .layout-page__main .saf_about_wrapper [class*="col-"],
.mega-store .layout-page__main .saf_about_detail [class*="col-"] {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  position: relative !important;
}

@media (min-width: 576px) {
  .mega-store .layout-page__main .content-module .col-sm-6,
  .mega-store .layout-page__main .content-module [class*="col-sm-6"],
  .mega-store .layout-page__main .saf_about_wrapper .col-sm-6 {
    flex: 1 1 calc(50% - var(--mega-mod-gap)) !important;
    max-width: calc(50% - var(--mega-mod-gap) / 2) !important;
  }
}

@media (min-width: 768px) {
  .mega-store .layout-page__main .content-module .col-md-4,
  .mega-store .layout-page__main .content-module [class*="col-md-4"] {
    flex: 1 1 calc(33.333% - var(--mega-mod-gap)) !important;
    max-width: calc(33.333% - var(--mega-mod-gap) / 1.5) !important;
  }

  .mega-store .layout-page__main .content-module .col-md-6,
  .mega-store .layout-page__main .content-module [class*="col-md-6"] {
    flex: 1 1 calc(50% - var(--mega-mod-gap)) !important;
    max-width: calc(50% - var(--mega-mod-gap) / 2) !important;
  }
}

/* Fluid media inside module HTML */
.mega-store .layout-page__main .content-module img,
.mega-store .layout-page__main .content-module video,
.mega-store .layout-page__main .content-module iframe,
.mega-store .layout-page__main .content-module embed,
.mega-store .layout-page__main .content-module object,
.mega-store .layout-page__main .storefront-bold__prose img,
.mega-store .layout-page__main #contentpagehere img {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
}

.mega-store .layout-page__main .content-module table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

@media (max-width: 767.98px) {
  .mega-store .layout-page__main .content-module table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Kill harmful inline floats in module bodies */
.mega-store .layout-page__main .saf_about_detail [style*="float:left"],
.mega-store .layout-page__main .saf_about_detail [style*="float: left"],
.mega-store .layout-page__main .saf_about_detail [style*="float:right"],
.mega-store .layout-page__main .saf_about_detail [style*="float: right"] {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 0 var(--mega-mod-gap) !important;
  box-sizing: border-box !important;
}

.mega-store .layout-page__main .saf_about_detail [style*="float"] img {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto var(--mega-mod-gap);
}

/* Swiper / sliders inside modules */
.mega-store .layout-page__main .blogSlider,
.mega-store .layout-page__main .partner_slider,
.mega-store .layout-page__main .swiper-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  box-sizing: border-box;
}

.mega-store .layout-page__main .swiper-wrapper,
.mega-store .layout-page__main .swiper-slide {
  box-sizing: border-box;
}

.mega-store .layout-page__main .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Image box / booking grids */
.mega-store .layout-page__main .bolxdatabooking,
.mega-store .layout-page__main .saf_blog_thumb {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}

.mega-store .layout-page__main .saf_blog_page_wrapper .row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mega-mod-gap);
}

@media (max-width: 575.98px) {
  .mega-store .layout-page__main .saf_blog_page_wrapper .row {
    grid-template-columns: 1fr !important;
  }
}

/* Module split (bold) */
.mega-store .storefront-bold__module-split {
  display: flex;
  flex-direction: column;
  gap: var(--mega-mod-gap);
  width: 100%;
}

.mega-store .storefront-bold__module-split-media {
  width: 100%;
  margin: 0;
}

.mega-store .storefront-bold__module-split-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--mega-mod-radius);
}

@media (min-width: 768px) {
  .mega-store .storefront-bold__module-split--right,
  .mega-store .storefront-bold__module-split:not(.storefront-bold__module-split--top):not(.storefront-bold__module-split--bottom) {
    flex-direction: row;
    align-items: flex-start;
  }

  .mega-store .storefront-bold__module-split--right .storefront-bold__module-split-media {
    order: 2;
    flex: 0 0 min(42%, 22rem);
  }

  .mega-store .storefront-bold__module-split--right .storefront-bold__module-split-body {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .mega-store .storefront-bold__module-split:not(.storefront-bold__module-split--right) .storefront-bold__module-split-media {
    flex: 0 0 min(42%, 22rem);
  }

  .mega-store .storefront-bold__module-split-body {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* ===== Layout2 / Layout3 skins (no storefront-bold) ===== */
body.mega-store.theme-layout2 .layout-page__main .content-module,
body.mega-store.theme-layout3 .layout-page__main .content-module {
  padding: var(--mega-mod-pad-y) var(--mega-mod-pad-x);
}

body.mega-store.theme-layout2 .saf_pagetitle .container,
body.mega-store.theme-layout3 .saf_pagetitle .container {
  max-width: var(--mega-mod-max);
}

body.mega-store.theme-layout2 .saf_blog_wrapper .saf_blog_thumb,
body.mega-store.theme-layout3 .saf_blog_wrapper .saf_blog_thumb {
  margin-bottom: var(--mega-mod-gap);
}

/* Ecom basic (empty theme class) */
body.mega-store:not(.theme-layout1):not(.theme-layout2):not(.theme-layout3) .layout-page__main .container {
  max-width: var(--mega-mod-max);
  margin-left: auto;
  margin-right: auto;
}

/* Forms in modules */
.mega-store .layout-page__main .content-module input[type="text"],
.mega-store .layout-page__main .content-module input[type="email"],
.mega-store .layout-page__main .content-module input[type="tel"],
.mega-store .layout-page__main .content-module select,
.mega-store .layout-page__main .content-module textarea {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  .mega-store .layout-page__main .content-module .btn,
  .mega-store .layout-page__main .content-module button[type="submit"] {
    width: 100%;
    max-width: 100%;
  }
}

/* ===== Image gallery BEM (layout1/2/3 PHP markup) ===== */
.mega-store .l1-mod-gallery {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mega-store .l1-mod-gallery__grid {
  display: grid;
  grid-template-columns: repeat(var(--l1-gallery-cols, 2), minmax(0, 1fr));
  gap: var(--mega-mod-gap);
  width: 100%;
}

@media (max-width: 575.98px) {
  .mega-store .l1-mod-gallery__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .mega-store .l1-mod-gallery__grid {
    grid-template-columns: repeat(min(var(--l1-gallery-cols, 2), 2), minmax(0, 1fr));
  }
}

.mega-store .l1-mod-gallery__item,
.mega-store .l1-mod-gallery__slide {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.mega-store .l1-mod-gallery__link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.mega-store .l1-mod-gallery__img,
.mega-store .l1-mod-gallery__link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--mega-mod-radius);
  box-sizing: border-box;
}

.mega-store .l1-mod-gallery__slider-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.mega-store .l1-mod-gallery__intro {
  margin-bottom: var(--mega-mod-gap);
}

/* Events cards — neutralize legacy inline floats */
.mega-store .layout-page__main .saf_blog_thumb[style*="float"],
.mega-store .layout-page__main .saf_blog_thumb [style*="float:left"],
.mega-store .layout-page__main .saf_blog_thumb [style*="float: left"] {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.mega-store .layout-page__main .saf_blog_thumb .blog_text[style*="height"] {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* ===== List slider + cards (events, products, book, image_box) ===== */
.mega-store .l1-mod-slider {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mega-store .l1-mod-slider__layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  gap: var(--mega-mod-gap);
}

.mega-store .l1-mod-slider__aside-col,
.mega-store .l1-mod-slider__track-col {
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .mega-store .l1-mod-slider__aside-col {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .mega-store .l1-mod-slider__track-col {
    flex: 0 0 66.666%;
    max-width: 66.666%;
  }
}

.mega-store .l1-mod-slider--compact {
  display: flex;
  flex-direction: column;
  gap: var(--mega-mod-gap);
}

.mega-store .l1-mod-slider__track,
.mega-store .l1-mod-slider__swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.mega-store .l1-mod-slider__nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mega-store .l1-mod-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  float: none !important;
}

.mega-store .l1-mod-card__media {
  display: block;
  width: 100%;
}

.mega-store .l1-mod-card__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--mega-mod-radius);
}

.mega-store .l1-mod-card__body,
.mega-store .l1-mod-card__excerpt {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.mega-store .l1-mod-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0;
  width: 100%;
  box-sizing: border-box;
}

.mega-store .l1-mod-card__price--paid {
  font-size: clamp(1rem, 3vw, 1.35rem);
  color: #c00;
  border: 2px solid #c00;
  border-radius: 50%;
  padding: 0.35rem 0.65rem;
  line-height: 1.2;
}

.mega-store .l1-mod-card__price--free {
  font-weight: 700;
  color: #0a7a0a;
}

.mega-store .l1-mod-card__badge {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mega-store .l1-mod-card__title {
  margin: 0.5rem 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.mega-store .l1-mod-card__title a {
  text-decoration: none;
  color: inherit;
}

.mega-store .l1-mod-card__excerpt {
  margin-bottom: 0.75rem;
  max-height: none;
  overflow: visible;
}

.mega-store .l1-mod-card__cta {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  box-sizing: border-box;
}

.mega-store .l1-mod-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.mega-store .l1-mod-card__more svg {
  width: 0.65rem;
  height: auto;
  flex-shrink: 0;
}

/* Brand slider */
.mega-store .l1-mod-brands {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mega-store .l1-mod-brands__slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.mega-store .l1-mod-brands__item img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ===== CMS content module ===== */
.mega-store .l1-mod-content__body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

.mega-store .l1-mod-content__head {
  margin-bottom: var(--mega-mod-gap);
}

/* ===== Marketing popup modal ===== */
.mega-store .l1-mod-popup__dialog {
  width: calc(100% - 1.5rem);
  max-width: 36rem;
  margin: 1rem auto;
}

@media (min-width: 576px) {
  .mega-store .l1-mod-popup__dialog.modal-lg {
    max-width: 48rem;
  }
}

.mega-store .l1-mod-popup__content {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mega-store .l1-mod-popup__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mega-store .l1-mod-popup__body img,
.mega-store .l1-mod-popup__body iframe,
.mega-store .l1-mod-popup__body video {
  max-width: 100%;
  height: auto;
}

.mega-store .l1-mod-popup__footer .l1-mod-popup__btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .mega-store .l1-mod-popup__footer .l1-mod-popup__btn {
    width: auto;
  }
}

.mega-store .l1-mod-popup__header {
  display: block;
  position: relative;
  padding-right: 2.5rem;
}

.mega-store .l1-mod-popup__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* ===== Ecom basic (legacy template) — safety net for floats / overflow ===== */
body.mega-store.theme-ecom-basic {
  --mega-mod-max: min(100%, 75rem);
  --mega-mod-pad-x: clamp(0.75rem, 3vw, 1.25rem);
  --mega-mod-gap: clamp(0.75rem, 2.5vw, 1.25rem);
}

body.mega-store.theme-ecom-basic .container {
  max-width: var(--mega-mod-max);
}

body.mega-store.theme-ecom-basic .saf_about_wrapper,
body.mega-store.theme-ecom-basic .saf_blog_wrapper,
body.mega-store.theme-ecom-basic .saf_partner_wrapper,
body.mega-store.theme-ecom-basic .saf_about_detail,
body.mega-store.theme-ecom-basic .saf_blog_thumb {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  float: none !important;
}

body.mega-store.theme-ecom-basic .saf_about_wrapper img,
body.mega-store.theme-ecom-basic .saf_blog_wrapper img,
body.mega-store.theme-ecom-basic .module_img_gallery,
body.mega-store.theme-ecom-basic #contentpagehere img {
  max-width: 100% !important;
  height: auto !important;
}

body.mega-store.theme-ecom-basic .saf_about_detail [style*="float:left"],
body.mega-store.theme-ecom-basic .saf_about_detail [style*="float: left"],
body.mega-store.theme-ecom-basic .saf_blog_thumb [style*="float"] {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.mega-store.theme-ecom-basic .blogSlider,
body.mega-store.theme-ecom-basic .partner_slider,
body.mega-store.theme-ecom-basic .swiper-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
}

body.mega-store.theme-ecom-basic .saf_about_detail .row,
body.mega-store.theme-ecom-basic .saf_blog_wrapper .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
  gap: var(--mega-mod-gap);
}

body.mega-store.theme-ecom-basic .saf_about_detail [class*="col-"],
body.mega-store.theme-ecom-basic .saf_blog_wrapper [class*="col-"] {
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  float: none !important;
}

/* ===== Module row chrome (mega-module-row / mega-module-slot) ===== */
.mega-store .mega-module-row {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  float: none !important;
}

.mega-store .mega-module-slot {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ===== Deep CMS prose (all layouts + ecom basic pages) ===== */
.mega-store .mega-commerce--cms #contentpagehere,
.mega-store .mega-commerce--cms .l1-cms__prose,
.mega-store .l1-page-content__prose,
.mega-store #contentpagehere.l1-cms__prose,
.mega-store .l1-mod-content__body,
.mega-store .storefront-bold__prose {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

.mega-store .mega-commerce--cms #contentpagehere img,
.mega-store .l1-cms__prose img,
.mega-store #contentpagehere img,
.mega-store .storefront-bold__prose img {
  max-width: 100% !important;
  height: auto !important;
}

.mega-store .mega-commerce--cms #contentpagehere iframe,
.mega-store .mega-commerce--cms #contentpagehere video,
.mega-store .mega-commerce--cms #contentpagehere embed,
.mega-store #contentpagehere iframe,
.mega-store .l1-cms__prose iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: 12rem;
  aspect-ratio: 16 / 9;
  border: 0;
}

.mega-store table.l1-cms__table,
.mega-store .l1-cms__prose table,
.mega-store #contentpagehere table,
.mega-store .storefront-bold__prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mega-store .mega-commerce--cms #contentpagehere [class*="col-"],
.mega-store #contentpagehere [class*="col-"] {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.mega-store .mega-commerce--cms #contentpagehere .row,
.mega-store #contentpagehere .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  gap: var(--mega-mod-gap, 1rem);
}

/* Cookie bar — mobile */
.mega-store .platform-cookie-bar {
  max-width: 100vw;
  box-sizing: border-box;
}

.mega-store .platform-cookie-bar__inner,
.mega-store .platform-cookie-bar__body {
  max-width: 100%;
  overflow-wrap: break-word;
}

@media (max-width: 575.98px) {
  .mega-store .platform-cookie-bar__actions,
  .mega-store .platform-cookie-bar__accept {
    width: 100%;
    max-width: 100%;
  }
}

/* ===== Commerce pages (cart, checkout, PDP) — all layouts; layout2/3 site-bem overrides win ===== */
.mega-store .product-shop.page-details .product-large img {
  max-width: 100%;
  height: auto;
}

.mega-store .product-tab .nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.mega-store .product-tab .nav > li {
  flex: 0 0 auto;
}

.mega-store .product-tab-link {
  display: inline-block;
  white-space: nowrap;
}

.mega-store .product-shop.page-details .product-thumbs-track .owl-stage {
  display: flex !important;
  gap: 0.5rem;
}

.mega-store .product-shop.page-details .product-thumbs-track .pt {
  flex: 0 0 auto;
}

.mega-store .product-options__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mega-store .product-options__pill {
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
}

.mega-store .page-details__rte {
  overflow-wrap: break-word;
  word-break: break-word;
}

.mega-store .page-details__rte img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767.98px) {
  .mega-store .mega-pdp__info {
    margin-top: 1rem;
  }

  .mega-store .product-details,
  .mega-store .product-details__panel {
    padding: 0.85rem;
  }

  /* Cart: card rows (shared layout/cart.php markup) */
  .mega-store .cart-page__table-wrap {
    overflow-x: visible;
  }

  .mega-store .cart-table__inner {
    display: block;
    min-width: 100%;
    width: 100%;
  }

  .mega-store .cart-table__inner thead {
    display: none;
  }

  .mega-store .cart-table__inner tbody tr {
    display: block;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--mega-mod-radius, 12px);
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  .mega-store .cart-table__inner tbody tr td {
    display: block;
    width: 100% !important;
    padding: 0.35rem 0 !important;
    border: none !important;
  }

  .mega-store .cart-table__inner tbody tr td::before {
    display: block;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(15, 23, 42, 0.55);
    margin-bottom: 0.2rem;
  }

  .mega-store .cart-table__inner tbody tr td.cart-pic::before { content: ""; }
  .mega-store .cart-table__inner tbody tr td.cart-title::before { content: "Product"; }
  .mega-store .cart-table__inner tbody tr td.p-price::before { content: "Price"; }
  .mega-store .cart-table__inner tbody tr td.qua-col::before { content: "Qty"; }
  .mega-store .cart-table__inner tbody tr td:nth-child(5)::before { content: "Tax"; }
  .mega-store .cart-table__inner tbody tr td:nth-child(6)::before {
    content: "Line total";
    font-weight: 700;
  }
  .mega-store .cart-table__inner tbody tr td.close-td {
    text-align: right;
    padding-top: 0.5rem !important;
  }
  .mega-store .cart-table__inner tbody tr td.close-td::before { content: ""; }

  /* Sticky totals — ecom-basic + layout1 (layout2/3 use site-bem) */
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--cart .cart-page__main {
    padding-bottom: 6rem;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--cart .cart-page__aside .proceed-checkout,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--cart .proceed-checkout.cart-page__total {
    position: sticky;
    bottom: 0;
    z-index: 1100;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--mega-mod-radius, 12px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 1rem;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--cart .proceed-checkout .proceed-btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-section {
    padding-bottom: 6.5rem;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .order-total {
    position: sticky;
    bottom: 0;
    z-index: 1100;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--mega-mod-radius, 12px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .mega-store .cart-buttons,
  .mega-store .cart-page__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mega-store .cart-buttons .primary-btn,
  .mega-store .cart-page__actions .primary-btn {
    width: 100%;
    text-align: center;
  }

  .mega-store .coupon-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mega-store .coupon-form .site-btn {
    width: 100%;
  }
}

/* ===== Product listing (shop grid) — ecom-basic + layout1; layout2/3 use site-bem ===== */
.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--listing .product-list .row {
  row-gap: var(--mega-mod-gap, 1rem);
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .product-item.mega-commerce__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--mega-mod-radius, 12px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .product-item .pi-pic {
  position: relative;
  overflow: hidden;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .product-item .pi-pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .product-item .pi-text {
  flex: 1 1 auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .product-item .pi-text h5 {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.35;
  margin: 0;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .filter-widget {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--mega-mod-radius, 12px);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .filter-widget .fw-title {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .filter-catagories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .product-listing__search-form .advanced-search .input-group {
  display: flex;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--mega-mod-radius, 12px);
  overflow: hidden;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .product-listing__search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 0.65rem 0.85rem;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .product-listing__search-form button[type="submit"] {
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  padding: 0 0.85rem;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .product-show-option {
  margin-bottom: 1rem;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .product-show-option .select-option select {
  max-width: 100%;
  min-height: 2.75rem;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--listing .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding-left: 0;
  list-style: none;
}

@media (max-width: 991.98px) {
  /* Show sidebar search/categories on tablet/phone (markup uses d-none d-md-block) */
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--listing .produts-sidebar-filter.d-none.d-md-block {
    display: block !important;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 1rem;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--listing .product-shop > .container > .row {
    display: flex;
    flex-direction: column;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--listing .produts-sidebar-filter {
    order: -1;
  }
}

@media (max-width: 767.98px) {
  .mega-store:not(.theme-layout2):not(.theme-layout3) .product-show-option .row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .product-show-option .col-lg-5,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .product-show-option .col-lg-7,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .product-show-option .col-md-5,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .product-show-option .col-md-7 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    text-align: left !important;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .product-show-option .select-option {
    width: 100%;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .product-show-option .select-option select {
    width: 100%;
  }
}

/* ===== Account / login / register — ecom-basic + layout1 ===== */
.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--account.user-auth-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth-page__section {
  padding: var(--mega-mod-pad-y, 1rem) 0;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth__card,
.mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth__inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth__input,
.mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth .form-control {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  font-size: 16px;
  border-radius: var(--mega-mod-radius, 12px);
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth__submit,
.mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth .cbtn.user-auth__submit {
  width: 100%;
  min-height: 2.75rem;
  border-radius: var(--mega-mod-radius, 12px);
}

@media (max-width: 767.98px) {
  .mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth-page__row {
    margin-left: 0;
    margin-right: 0;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth-page__container {
    padding-left: var(--mega-mod-pad-x, 0.75rem);
    padding-right: var(--mega-mod-pad-x, 0.75rem);
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth__row--split {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth__forgot {
    width: 100%;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .user-auth__grid .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

/* ===== Checkout multi-step — ecom-basic + layout1 ===== */
.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form input[type="text"],
.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form input[type="email"],
.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form input[type="tel"],
.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form input[type="password"],
.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form select,
.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  font-size: 16px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--mega-mod-radius, 12px);
  padding: 0.55rem 0.85rem;
  box-sizing: border-box;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form .col-lg-6,
.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form .col-lg-12 {
  margin-bottom: 0.65rem;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .place-order {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--mega-mod-radius, 12px);
  padding: 1rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .order-table {
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .order-table li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .payment-method-label {
  display: block;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--mega-mod-radius, 12px);
  margin-top: 0.35rem;
  cursor: pointer;
}

.mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-content .content-btn {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--mega-mod-radius, 12px);
}

@media (max-width: 991.98px) {
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form > .row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form > .row > [class*="col-lg-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .place-order {
    order: -1;
  }
}

@media (max-width: 767.98px) {
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form .row .col-lg-6,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form .row .col-md-6,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form .row .col-sm-6,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form .row .col-sm-2,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form .row .col-sm-10,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-form .row .col-sm-12 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .alert.alert-info.row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .alert .pull-right {
    float: none !important;
    align-self: flex-start;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .order-btn .place-btn,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .order-btn .site-btn,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-section .place-btn,
  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout .checkout-section .site-btn {
    width: 100%;
    min-height: 2.75rem;
  }

  .mega-store:not(.theme-layout2):not(.theme-layout3) .mega-commerce--checkout #step_2 > .row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}
