/* Dream Candy: clean manufacturer theme.
   Loaded after style.css and overrides its playful candy styling. */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Open+Sans:wght@400;600;700&display=swap");

:root {
  /* Accent is purple now (was red #d0141c); name kept so all rules still use it */
  --mf-red: #6f2da8;
  --mf-red-deep: #521f80;
  --mf-navy: #14213a;
  --mf-dark: #1d2330;
  --mf-text: #3c4252;
  --mf-muted: #6b7180;
  --mf-line: #e4e6ea;
  --mf-soft: #f4f5f7;
  --display: "Montserrat", "Segoe UI", sans-serif;
  --footer-bg: var(--mf-dark);
}

html {
  font-size: 112.5%;
}

body {
  font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif;
  background: #fff;
  color: var(--mf-text);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--mf-navy);
  letter-spacing: -0.01em;
}

/* Hide the decorative floating candy shapes everywhere */
.burst,
.star,
.sparkle,
.ring,
.dot,
.wave {
  display: none !important;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--mf-red);
  --btn-fg: #fff;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 3px;
  border: 2px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: none;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--mf-red-deep);
  border-color: var(--mf-red-deep);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.btn:active {
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  --btn-bg: transparent;
  border-color: #fff;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--mf-navy);
}

.btn-outline,
.btn-light,
.btn-yellow {
  --btn-bg: var(--mf-red);
  --btn-fg: #fff;
}

.eyebrow {
  padding: 0;
  background: none;
  rotate: none;
  color: var(--mf-red);
  letter-spacing: 0.2em;
  font-family: var(--display);
  font-weight: 700;
}

/* ---------- Header ---------- */

.site-header {
  background: #fff;
  filter: none;
  box-shadow:
    0 1px 0 var(--mf-line),
    0 4px 18px rgba(20, 33, 58, 0.06);
}

.site-header::after {
  display: none;
}

.site-header .navbar {
  padding: 12px 0;
  animation: none !important;
}

.site-header .navbar-brand.logo img {
  height: 124px;
  animation: none !important;
}

.site-header .navbar-brand.logo:hover img {
  transform: none;
}

.site-header .nav-link {
  margin: 0 4px;
  padding: 10px 12px !important;
  border-radius: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mf-navy) !important;
}

.site-header .nav-link::before {
  content: "";
  inset: auto 10px -2px;
  height: 2px;
  border-radius: 0;
  background: var(--mf-red);
  box-shadow: none !important;
  opacity: 1;
  scale: 0 1;
  rotate: none !important;
  transition: scale 0.25s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  translate: none;
  color: var(--mf-red) !important;
}

.site-header .nav-link:hover::before,
.site-header .nav-link:focus-visible::before,
.site-header .nav-link.active::before {
  scale: 1 1;
}

.site-header .nav-link.active {
  color: var(--mf-red) !important;
}

.site-header .nav-link.active::before {
  background: var(--mf-red);
}

.header-cta {
  margin-left: 28px;
}

.header-cta .btn {
  padding: 12px 22px;
  font-size: 0.8rem;
}

.site-header .navbar-toggler {
  border: 1px solid var(--mf-line);
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}

.site-header .navbar-toggler:hover {
  transform: none;
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(111, 45, 168, 0.2);
}

@media (max-width: 991px) {
  .site-header .navbar-brand.logo img {
    height: 80px;
  }

  .header-cta {
    margin-left: 0;
  }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding: 90px 0;
  text-align: left;
  background:
    linear-gradient(
      90deg,
      rgba(12, 16, 26, 0.9) 0%,
      rgba(12, 16, 26, 0.65) 45%,
      rgba(12, 16, 26, 0.15) 80%
    ),
    url("../images/suckers.png") center / cover no-repeat;
}

.page-hero::before,
.page-hero::after {
  display: none;
}

.page-hero h1 {
  max-width: 640px;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  text-shadow: none;
  animation: none;
}

.page-hero p {
  max-width: 560px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  animation: none;
}

.page-hero .mf-kicker {
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Shared section bits ---------- */

.mf-title {
  position: relative;
  margin: 0 0 30px;
  padding-bottom: 18px;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
}

.mf-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  background: var(--mf-red);
}

.mf-link {
  display: inline-flex;
  gap: 8px;
  color: var(--mf-red);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.mf-link:hover {
  color: var(--mf-red-deep);
}

/* ---------- Hero ---------- */

.mf-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 62vh, 620px);
  padding: 80px 0;
  background:
    linear-gradient(
      90deg,
      rgba(12, 16, 26, 0.88) 0%,
      rgba(12, 16, 26, 0.6) 40%,
      rgba(12, 16, 26, 0) 70%
    ),
    url("../images/suckers.png") right center / cover no-repeat;
  color: #fff;
}

.mf-hero-content {
  max-width: 560px;
}

.mf-kicker {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.mf-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
}

.mf-lead {
  margin: 0 0 34px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.mf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Highlights ---------- */

.mf-highlights {
  background: var(--mf-soft);
  padding: 34px 0;
}

.mf-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.mf-highlight {
  padding: 4px 24px;
  text-align: center;
}

.mf-highlight + .mf-highlight {
  border-left: 1px solid #d6d9de;
}

.mf-highlight i {
  margin-bottom: 14px;
  font-size: 2.1rem;
  color: var(--mf-red);
}

.mf-highlight h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mf-highlight p {
  margin: 0 auto;
  max-width: 200px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--mf-muted);
}

@media (max-width: 767px) {
  .mf-highlights-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .mf-highlight:nth-child(3) {
    border-left: 0;
  }
}

/* ---------- Products ---------- */

.mf-products {
  padding: 60px 0 70px;
}

.mf-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.mf-section-head .mf-title {
  margin: 0;
}

.mf-product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 991px) {
  .mf-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .mf-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mf-product {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  background: #fff;
  border: 1px solid var(--mf-line);
  text-align: center;
  color: var(--mf-navy);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.mf-product:hover {
  color: var(--mf-navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(20, 33, 58, 0.12);
}

.mf-product-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--mf-soft);
}

.mf-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: white;
  transition: transform 0.4s ease;
}

.mf-product:hover .mf-product-image img {
  transform: scale(1.05);
}

.mf-product strong {
  padding: 0 8px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
}

.mf-product small {
  padding: 2px 8px 0;
  font-size: 0.75rem;
  color: var(--mf-muted);
}

/* ---------- Manufacturing split ---------- */

.mf-split {
  display: grid;
  grid-template-columns: 62fr 38fr;
  background: var(--mf-soft);
}

.mf-split-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 520px;
  object-fit: cover;
}

.mf-split-copy {
  align-self: center;
  padding: 50px clamp(24px, 4vw, 60px);
}

.mf-split-copy p {
  margin: 0 0 28px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .mf-split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Wholesale ---------- */

.mf-wholesale {
  padding: 100px 0;
  background:
    linear-gradient(
      90deg,
      rgba(20, 24, 33, 0.95) 0%,
      rgba(20, 24, 33, 0.75) 40%,
      rgba(20, 24, 33, 0.1) 75%
    ),
    url("https://admin.dreamcandysa.co.za/uploads/products/1787752186_50.png")
      center / cover no-repeat;
  color: rgba(255, 255, 255, 0.9);
}

.mf-wholesale-copy {
  max-width: 440px;
}

.mf-wholesale .mf-title {
  color: #fff;
}

.mf-wholesale p {
  margin: 0 0 32px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 0;
  padding: 40px 0 0;
  background: var(--mf-dark);
  color: rgba(255, 255, 255, 0.85);
  animation: none;
}

footer::before {
  display: none;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 32px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.85);
}

a.footer-contact-item:hover {
  color: #fff;
}

.footer-contact-item i {
  font-size: 1.9rem;
  color: #fff;
}

.footer-contact-item strong,
.footer-contact-item span {
  display: block;
}

.footer-contact-item strong {
  color: #fff;
  font-weight: 600;
}

.footer-contact-item span {
  font-size: 0.88rem;
  opacity: 0.75;
}

@media (max-width: 767px) {
  .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-contact-item {
    justify-content: flex-start;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  text-align: left;
}

.social-links {
  gap: 10px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.social-links a:hover {
  background: var(--mf-red);
  transform: none;
  box-shadow: none;
}

/* ---------- Colourful footer ---------- */

footer {
  background: linear-gradient(135deg, var(--mf-red-deep) 0%, var(--mf-red) 100%);
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact-item i {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.35rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, color 0.2s ease;
}

a.footer-contact-item:hover i {
  background: #fff;
  color: var(--mf-red);
}

.footer-contact-item span {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a {
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  background: #fff;
  color: var(--mf-red);
}

/* Text sits over the photo on small screens, so darken it evenly */
@media (max-width: 767px) {
  .mf-hero {
    background:
      linear-gradient(rgba(12, 16, 26, 0.72), rgba(12, 16, 26, 0.72)),
      url("../images/suckers.png") center / cover no-repeat;
  }

  .mf-wholesale {
    padding: 70px 0;
    background:
      linear-gradient(rgba(20, 24, 33, 0.85), rgba(20, 24, 33, 0.85)),
      url("../images/clusters.png") center / cover no-repeat;
  }
}

/* ---------- Inner page building blocks ---------- */

.mf-section {
  padding: 70px 0;
}

.mf-section--soft {
  background: var(--mf-soft);
}

.mf-split--reverse {
  grid-template-columns: 38fr 62fr;
}

.mf-split--reverse .mf-split-image {
  order: 2;
}

@media (max-width: 767px) {
  .mf-split--reverse {
    grid-template-columns: 1fr;
  }

  .mf-split--reverse .mf-split-image {
    order: 0;
  }
}

.mf-split-copy p + p {
  margin-top: -12px;
}

/* Icon cards (values) */
.mf-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 767px) {
  .mf-card-grid {
    grid-template-columns: 1fr;
  }
}

.mf-card {
  padding: 34px 28px;
  background: #fff;
  border: 1px solid var(--mf-line);
  border-top: 3px solid var(--mf-red);
}

.mf-card i {
  margin-bottom: 16px;
  font-size: 2rem;
  color: var(--mf-red);
}

.mf-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mf-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--mf-muted);
}

/* Category tabs */
.mf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mf-line);
}

.mf-tab {
  padding: 9px 18px;
  border: 1px solid var(--mf-line);
  border-radius: 3px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mf-navy);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.mf-tab:hover {
  border-color: var(--mf-red);
  color: var(--mf-red);
}

.mf-tab.active {
  background: var(--mf-red);
  border-color: var(--mf-red);
  color: #fff;
}

/* Product grid variants */
.mf-product-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .mf-product-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .mf-product-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.mf-product-grid--4 .mf-product-image {
  aspect-ratio: 1;
}

.mf-product-grid--4 .mf-product strong {
  font-size: 1rem;
}

.mf-product-grid--4 .mf-product small {
  font-size: 0.82rem;
  line-height: 1.5;
}

.mf-product-cta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mf-red);
}

.mf-empty {
  padding: 30px;
  background: var(--mf-soft);
  border: 1px solid var(--mf-line);
  text-align: center;
}

.mf-empty a {
  color: var(--mf-red);
  font-weight: 600;
}

/* Breadcrumb */
.mf-breadcrumb {
  padding: 16px 0;
  background: var(--mf-soft);
  border-bottom: 1px solid var(--mf-line);
  font-size: 0.88rem;
  color: var(--mf-muted);
}

.mf-breadcrumb a {
  color: var(--mf-navy);
  font-weight: 600;
}

.mf-breadcrumb a:hover {
  color: var(--mf-red);
}

.mf-breadcrumb span {
  margin: 0 6px;
}

.mf-breadcrumb strong {
  color: var(--mf-red);
  font-weight: 600;
}

/* Product detail */
.mf-detail-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--mf-soft);
  border: 1px solid var(--mf-line);
}

.mf-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 28px;
  border: 1px solid var(--mf-line);
}

.mf-meta > div {
  flex: 1 1 160px;
  padding: 14px 20px;
}

.mf-meta > div + div {
  border-left: 1px solid var(--mf-line);
}

.mf-meta dt {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mf-muted);
}

.mf-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--mf-navy);
}

.mf-in-stock,
.mf-in-stock i {
  color: #1f8a3b !important;
}

.mf-description {
  margin-bottom: 32px;
}

.mf-description h3,
.mf-panel h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
}

.mf-description p {
  line-height: 1.7;
}

/* Bordered form panel */
.mf-panel {
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--mf-line);
  border-top: 3px solid var(--mf-red);
}

.mf-panel .mf-title {
  font-size: 1.75rem;
}

/* Forms */
.form-label {
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mf-navy);
}

.form-control {
  padding: 11px 14px;
  border: 1px solid #cfd3da;
  border-radius: 3px;
  background: #fff;
  font-size: 0.95rem;
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--mf-red);
  box-shadow: 0 0 0 3px rgba(111, 45, 168, 0.12);
}

.alert {
  border-radius: 3px;
  border-width: 1px 1px 1px 4px;
  box-shadow: none;
}

.alert h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
}

/* Contact details list */
.mf-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--mf-dark);
  color: rgba(255, 255, 255, 0.85);
}

.mf-contact-list li {
  display: flex;
  gap: 18px;
  padding: 26px 28px;
}

.mf-contact-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mf-contact-list i {
  width: 28px;
  padding-top: 2px;
  font-size: 1.4rem;
  text-align: center;
  color: var(--mf-red);
}

.mf-contact-list h3 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.mf-contact-list p {
  margin: 0;
  line-height: 1.6;
}

.mf-contact-list a {
  color: rgba(255, 255, 255, 0.85);
}

.mf-contact-list a:hover {
  color: #fff;
}

/* Cart table */
.mf-table {
  margin-bottom: 20px;
  border-top: 1px solid var(--mf-line);
}

.mf-table th {
  padding: 14px 12px;
  background: var(--mf-soft);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mf-navy);
}

.mf-table td {
  padding: 14px 12px;
  font-weight: 600;
  color: var(--mf-navy);
}

.mf-qty {
  max-width: 100px;
}

.mf-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--mf-line);
  border-radius: 3px;
  background: #fff;
  color: var(--mf-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.mf-icon-btn:hover {
  background: var(--mf-red);
  border-color: var(--mf-red);
  color: #fff;
}

.btn-dark-outline {
  --btn-bg: transparent;
  --btn-fg: var(--mf-navy);
  border-color: var(--mf-navy);
}

.btn-dark-outline:hover,
.btn-dark-outline:focus-visible {
  background: var(--mf-navy);
  border-color: var(--mf-navy);
}

/* ---------- WhatsApp ---------- */

.btn-whatsapp {
  --btn-bg: #25d366;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #1da851;
  border-color: #1da851;
}

.whatsapp-float {
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  width: 62px;
  height: 62px;
  font-size: 2rem;
  color: #fff;
  background: #25d366;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  transform: scale(1.08);
}

/* ---------- Product images: multiple photos ---------- */

/* Second photo fades in on hover in product cards */
.mf-product-image {
  position: relative;
}

.mf-product-image .mf-product-image-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
}

.mf-product:hover .mf-product-image.has-alt .mf-product-image-alt,
.mf-product:focus-visible .mf-product-image.has-alt .mf-product-image-alt {
  opacity: 1;
}

.mf-product-photos {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 33, 58, 0.72);
  border-radius: 999px;
}

/* Product detail gallery */
.mf-gallery-main {
  position: relative;
  background: #fff;
}

.mf-gallery-main img {
  object-fit: contain;
}

.mf-gallery-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--mf-navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--mf-line);
  border-radius: 50%;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mf-gallery-nav:hover,
.mf-gallery-nav:focus-visible {
  color: #fff;
  background: var(--mf-red);
  border-color: var(--mf-red);
}

.mf-gallery-prev {
  left: 12px;
}

.mf-gallery-next {
  right: 12px;
}

.mf-gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 33, 58, 0.72);
  border-radius: 999px;
}

.mf-gallery-thumbs {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.mf-gallery-thumb {
  flex: 0 0 84px;
  height: 84px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--mf-line);
  opacity: 0.7;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.mf-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mf-gallery-thumb:hover,
.mf-gallery-thumb.active {
  opacity: 1;
}

.mf-gallery-thumb.active {
  border-color: var(--mf-red);
}

@media (max-width: 575px) {
  .mf-gallery-thumb {
    flex-basis: 64px;
    height: 64px;
  }

  .mf-gallery-nav {
    width: 38px;
    height: 38px;
  }
}
