:root {
  --mprod-primary: #d12727;
  --mprod-dark: #07164a;
  --mprod-blue: #1473ff;
  --mprod-text: #111827;
  --mprod-muted: #6b7280;
  --mprod-border: #e5e7eb;
  --mprod-card: #fff;
  --mprod-soft: #f5f7fb
}

.mprod-category-grid,
.mprod-product-grid {
  display: grid;
  grid-template-columns: repeat(var(--mprod-cols, 4), minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  box-sizing: border-box
}

.mprod-category-page-heading {
    margin: 0 0 22px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: #e60000;
    text-transform: uppercase;
}

.mprod-category-card,
.mprod-product-card {
  text-decoration: none;
  color: var(--mprod-text);
  display: block;
  text-align: center;
  transition: .25s ease;
  box-sizing: border-box
}

.mprod-category-card:hover,
.mprod-product-card:hover {
  transform: translateY(-4px)
}

.mprod-category-image,
.mprod-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  overflow: hidden;
  width: 100%;
  height: var(--mprod-cat-img-h, 330px);
  box-sizing: border-box
}

.mprod-category-image img,
.mprod-product-image img,
.mprod-detail-image img,
.mprod-related-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.mprod-category-title {
  display: block;
  margin-top: 20px;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #000
}

.mprod-product-card {
  border-radius: 10px;
  padding: 0
}

.mprod-product-image {
  height: var(--mprod-prod-img-h, 230px);
  background: #ddd
}

.mprod-product-title {
  display: block;
  margin-top: 16px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  text-transform: uppercase;
  color: #000
}

.mprod-read-more {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #111
}

.mprod-placeholder {
  font-weight: 800;
  font-size: 22px;
  color: #000;
  text-align: center
}

.mprod-empty {
  padding: 18px;
  border: 1px solid var(--mprod-border);
  background: var(--mprod-soft);
  border-radius: 8px
}

.mprod-detail-wrap {
  width: 100%;
  box-sizing: border-box
}

.mprod-detail-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start
}

.mprod-detail-main .mprod-detail-image,
.mprod-detail-main .mprod-detail-gallery {
  width: 100%;
  max-width: 620px;
  margin: 0 auto
}

.mprod-detail-image {
  border: 5px solid var(--mprod-primary);
  background: #fff;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box
}

.mprod-detail-title {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 5px;
  color: #111;
  font-weight: 900;
  text-transform: uppercase
}

.mprod-subtitle {
  font-size: 17px;
  color: #444;
  margin-bottom: 18px
}

.mprod-info-table {
  border-collapse: collapse;
  max-width: 360px;
  width: 100%;
  font-size: 13px;
  margin: 18px 0 30px
}

.mprod-info-table th,
.mprod-info-table td {
  border: 1px solid #dde3ea;
  padding: 11px 14px;
  text-align: left
}

.mprod-info-table th {
  background: #f3f6fb;
  color: #506176;
  font-weight: 800
}

.mprod-detail-content h3 {
  font-size: 22px;
  margin: 10px 0 12px;
  color: #111;
  font-weight: 800
}

.mprod-description {
  font-size: 14px;
  line-height: 1.7;
  color: #111
}

/* ---- Full-width detail sections (description / USPs) ---- */
.mprod-detail-description-section,
.mprod-detail-usps-section {
  width: 100%;
  max-width: 100%;
  margin-top: 40px;
  clear: both;
  box-sizing: border-box
}

.mprod-section-heading {
  font-size: 22px;
  margin: 0 0 14px;
  color: #111;
  font-weight: 800
}

/* ---- Elementor-built description: render full-width like the editor ---- */
.mprod-elementor-content .mprod-description {
  width: 100%;
  max-width: 100%;
  font-size: inherit;
  line-height: inherit;
  color: inherit
}

.mprod-elementor-content .mprod-description > .elementor {
  width: 100%;
  max-width: 100%
}

/* Let boxed sections/containers span the full available content width */
.mprod-elementor-content .mprod-description .elementor-section.elementor-section-boxed > .elementor-container,
.mprod-elementor-content .mprod-description .e-con-boxed > .e-con-inner {
  max-width: 100%
}

/* Neutralise negative margins from stretched sections inside the wrap */
.mprod-elementor-content .mprod-description .elementor-section-stretched {
  left: 0 !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important
}

.mprod-elementor-content .mprod-description img {
  max-width: 100%;
  height: auto
}

.mprod-usps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0
}

.mprod-usps li {
  position: relative;
  padding-left: 28px;
  margin: 9px 0;
  font-size: 14px;
  line-height: 1.45
}

.mprod-usps li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  width: 18px;
  height: 18px;
  border: 2px solid #3295ff;
  color: #3295ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900
}

.mprod-enquire {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--mprod-primary);
  color: #fff !important;
  text-decoration: none;
  border-radius: 30px;
  padding: 11px 24px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(5, 200, 121, .25);
  transition: .25s ease
}

.mprod-enquire:hover {
  transform: translateY(-2px);
  filter: brightness(.96)
}

.mprod-related {
  position: relative;
  margin-top: 45px;
  text-align: center
}

.mprod-related h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 900;
  margin: 0 0 34px;
  color: var(--mprod-dark)
}

.mprod-related h2:after {
  content: '';
  color: var(--mprod-blue)
}

.mprod-related-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 38px 28px;
  scrollbar-width: thin
}

.mprod-related-card {
  min-width: 210px;
  max-width: 210px;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  text-decoration: none;
  color: #0a174a;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  transition: .25s ease
}

.mprod-related-card:hover {
  transform: translateY(-4px)
}

.mprod-related-image {
  display: flex;
  height: 145px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px
}

.mprod-related-card strong {
  display: block;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 1.2
}

.mprod-related-card small {
  display: block;
  margin-top: 7px;
  color: #111;
  font-size: 12px
}

.mprod-rel-arrow {
  position: absolute;
  top: 56%;
  transform: translateY(-50%);
  border: 1px solid #dbeafe;
  background: #fff;
  color: #d12727;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
  transition: .25s ease;
  padding: 0
}

.mprod-rel-arrow:hover {
  background: #d12727;
  color: #fff
}

.mprod-rel-prev {
  left: 0
}

.mprod-rel-next {
  right: 0
}

@media(max-width:1024px) {

  .mprod-category-grid,
  .mprod-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px
  }

  .mprod-detail-main {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .mprod-category-title {
    font-size: 24px
  }

  .mprod-detail-title {
    font-size: 28px
  }
}

@media(max-width:767px) {

  .mprod-category-grid,
  .mprod-product-grid {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .mprod-category-image {
    height: 240px
  }

  .mprod-product-image {
    height: 220px
  }

  .mprod-category-title {
    font-size: 22px
  }

  .mprod-detail-image {
    min-height: 280px;
    padding: 20px
  }

  .mprod-detail-title {
    font-size: 26px
  }

  .mprod-related h2 {
    font-size: 30px
  }

  .mprod-related-card {
    min-width: 170px
  }

  .mprod-related-track {
    gap: 18px;
    padding-left: 26px;
    padding-right: 26px
  }

  .mprod-rel-arrow {
    font-size: 20px;
    width: 30px;
    height: 30px
  }
}

/* Layout stability fixes */
.mprod-detail-wrap,
.mprod-product-grid,
.mprod-category-grid {
  position: relative !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  clear: both
}

.mprod-detail-wrap {
  display: block;
  margin-bottom: 80px;
  padding-bottom: 40px
}

.mprod-detail-wrap:after,
.mprod-product-grid:after,
.mprod-category-grid:after {
  content: "";
  display: block;
  clear: both
}

.mprod-related {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  clear: both
}

.mprod-related-track {
  min-height: 220px
}

.mprod-placeholder-small {
  font-size: 13px;
  background: #f3f4f6;
  min-height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center
}

.site-footer,
#colophon,
footer,
.elementor-location-footer {
  clear: both !important
}

/* Product detail image/gallery */
.mprod-detail-image,
.mprod-detail-gallery {
  border: 5px solid var(--mprod-primary);
  background: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden
}

.mprod-detail-gallery {
  display: block
}

.mprod-detail-gallery-viewport {
  width: 100%;
  height: 100%;
  min-height: 340px;
  overflow: hidden
}

.mprod-detail-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .35s ease
}

.mprod-detail-gallery-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center
}

.mprod-detail-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.mprod-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #dbeafe;
  background: #fff;
  color: #d12727;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
  transition: .25s ease;
  padding: 0
}

.mprod-gallery-arrow:hover {
  background: #d12727;
  color: #fff
}

.mprod-gallery-prev {
  left: 12px
}

.mprod-gallery-next {
  right: 12px
}

.mprod-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4
}

.mprod-gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #cbd5e1;
  padding: 0;
  cursor: pointer
}

.mprod-gallery-dot.is-active {
  background: #d12727
}

.mprod-detail-image-single img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

@media(max-width:767px) {
  .mprod-detail-gallery {
    min-height: 280px;
    padding: 20px
  }

  .mprod-detail-gallery-viewport {
    min-height: 240px
  }

  .mprod-gallery-arrow {
    width: 32px;
    height: 32px;
    font-size: 22px
  }
}


/* Category filter for My Products listing */
.mprod-top-filter {
    margin: 0 0 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mprod-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mprod-filter-select {
    min-width: 190px;
    padding: 11px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}
