/* =====================================================
   NEOSERV PRODUCT COMPONENTS
   =====================================================
   Brand colour — change this one variable to retheme
   every component on the page at once.
   ===================================================== */

:root {
  --np-brand:        #3a7bd5;               /* ← change to your brand colour  */
  --np-brand-soft:   rgba(58, 123, 213, 0.08);
  --np-brand-ring:   rgba(58, 123, 213, 0.12);
}


/* =====================================================
   PRODUCT PAGE — TAB NAV
   ===================================================== */

.product-desc-wrap .nav-tabs .nav-item {
  text-transform: uppercase;
}


/* =====================================================
   FAQ ACCORDION
   ===================================================== */

.mg-faq {
  margin: 40px 0 20px;
  border: 1px solid #ececec;
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.mg-faq-head {
  padding: 26px 28px 22px;
  border-bottom: 1px solid #efefef;
}

.mg-faq-head h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
}

.mg-faq-list {
  padding: 10px 0;
}

.mg-faq-item {
  border-bottom: 1px solid #efefef;
}

.mg-faq-item:last-child {
  border-bottom: none;
}

.mg-faq-item summary {
  position: relative;
  cursor: pointer;
  padding: 20px 72px 20px 28px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
  list-style: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.mg-faq-item summary::-webkit-details-marker {
  display: none;
}

.mg-faq-item summary:hover {
  background: #fafafa;
}

/* Plus / minus toggle icon */
.mg-faq-item summary::after,
.mg-faq-item summary::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.25s ease;
}

.mg-faq-item summary::after {
  right: 28px;
  width: 20px;
  height: 2px;
  background: #9a9a9a;
  border-radius: 999px;
}

.mg-faq-item summary::before {
  right: 37px;
  width: 2px;
  height: 20px;
  background: #9a9a9a;
  border-radius: 999px;
}

.mg-faq-item[open] summary::before {
  opacity: 0;
  transform: translateY(-50%) scaleY(0.3);
}

/* Answer panel */
.mg-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mg-faq-answer-inner {
  padding: 15px 28px 24px;
}

.mg-faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #555;
}

/* Brand theme */
.mg-faq {
  border-top: 4px solid var(--np-brand);
}

.mg-faq-item[open] summary {
  background: var(--np-brand-soft);
  color: var(--np-brand);
}

.mg-faq-item[open] summary::after,
.mg-faq-item[open] summary::before {
  background: var(--np-brand);
}

/* Mobile */
@media (max-width: 767px) {
  .mg-faq {
    margin: 32px 0 18px;
    border-radius: 18px;
  }

  .mg-faq-head {
    padding: 22px 18px 18px;
  }

  .mg-faq-head h3 {
    font-size: 24px;
  }

  .mg-faq-item summary {
    padding: 18px 58px 18px 18px;
    font-size: 16px;
  }

  .mg-faq-item summary::after {
    right: 18px;
    width: 18px;
  }

  .mg-faq-item summary::before {
    right: 26px;
    height: 18px;
  }

  .mg-faq-answer-inner {
    padding: 15px 18px 18px;
  }

  .mg-faq-answer p {
    font-size: 15px;
  }
}


/* =====================================================
   BENEFIT BOXES
   ===================================================== */

.mg-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.mg-benefit-box {
  background: #fff;
  border: 1px solid #eee;
  border-top: 4px solid var(--np-brand);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mg-benefit-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.mg-benefit-box h3 {
  font-size: 22px;
  margin: 0 0 18px;
  line-height: 1.2;
}

.mg-benefit-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mg-benefit-box li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 26px;
  line-height: 1.6;
  color: #333;
}

.mg-benefit-box li:last-child {
  margin-bottom: 0;
}

/* Bullet dot */
.mg-benefit-box li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--np-brand);
  box-shadow: 0 0 0 4px var(--np-brand-ring);
}

/* Responsive */
@media (max-width: 1024px) {
  .mg-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mg-benefits {
    grid-template-columns: 1fr;
  }
}


/* =====================================================
   INGREDIENTS TABLE
   ===================================================== */

.mg-ingredients-table-wrap {
  margin: 30px 0;
  padding: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-top: 4px solid var(--np-brand);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mg-ingredients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
}

.mg-ingredients-table thead th {
  padding: 18px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  background: linear-gradient(to bottom, var(--np-brand-soft), #f8f8f8);
  border-bottom: 1px solid #e6e6e6;
}

.mg-ingredients-table thead th:nth-child(2),
.mg-ingredients-table thead th:nth-child(3) {
  text-align: right;
}

.mg-ingredients-table tbody td {
  padding: 16px 22px;
  border-bottom: 1px solid #eeeeee;
  color: #333;
  vertical-align: middle;
}

.mg-ingredients-table tbody tr:last-child td {
  border-bottom: none;
}

.mg-ingredients-table tbody td:nth-child(2),
.mg-ingredients-table tbody td:nth-child(3) {
  white-space: nowrap;
  text-align: right;
}

.mg-ingredients-table .is-subrow td {
  font-size: 15px;
  color: #666;
  background: #fcfcfc;
}

.mg-ingredients-table .is-subrow td:first-child {
  padding-left: 34px;
}

.mg-ingredients-table .is-total td {
  font-weight: 700;
  color: var(--np-brand);
  background: var(--np-brand-soft);
}

.mg-ingredients-table .is-total td:first-child,
.mg-ingredients-table .is-total td:nth-child(2),
.mg-ingredients-table .is-total td:nth-child(3) {
  font-size: 18px;
}

/* Mobile */
@media (max-width: 767px) {
  .mg-ingredients-table {
    font-size: 14px;
  }

  .mg-ingredients-table thead th,
  .mg-ingredients-table tbody td {
    padding: 14px 14px;
  }

  .mg-ingredients-table .is-subrow td:first-child {
    padding-left: 22px;
  }

  .mg-ingredients-table .is-total td:first-child,
  .mg-ingredients-table .is-total td:nth-child(2),
  .mg-ingredients-table .is-total td:nth-child(3) {
    font-size: 16px;
  }
}
