.macs-product-page {
  background: #fff;
  color: #111;
  font-family: Manrope, Inter, Arial, sans-serif;
}

.macs-product-shell {
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
}

.macs-product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 12px;
  color: #8a8a8a;
  font-size: 12px;
}

.macs-product-breadcrumbs a,
.macs-product-breadcrumbs span {
  color: inherit;
  text-decoration: none;
}

.macs-product-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.macs-product-gallery-card,
.macs-product-buy-card,
.macs-product-card,
.macs-product-accordion,
.macs-review-card {
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
}

.macs-product-gallery-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  min-height: 520px;
  padding: 18px;
}

.macs-product-gallery-card.is-compact-gallery {
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: auto;
}

.macs-product-thumbs {
  display: grid;
  gap: 14px;
  align-content: start;
}

.macs-product-thumbs.is-compact {
  align-content: start;
}

.macs-product-thumbs button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  padding: 5px;
  cursor: pointer;
}

.macs-product-thumbs button.is-active {
  border-color: #008f7a;
  box-shadow: 0 0 0 2px #008f7a inset;
}

.macs-product-thumbs img,
.macs-product-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.macs-product-main-image {
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  background: #fafafa;
}

.macs-product-image-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.macs-product-image-carousel::-webkit-scrollbar {
  display: none;
}

.macs-product-image-slide {
  display: grid;
  flex: 0 0 100%;
  min-width: 0;
  min-height: inherit;
  place-items: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: clamp(24px, 5vw, 72px);
}

.macs-product-image-slide img {
  width: 100%;
  height: 100%;
  max-width: min(100%, 520px);
  max-height: 430px;
  object-fit: contain;
  object-position: center;
}

.macs-gallery-swipe-hint {
  display: none;
}

.macs-product-inspection {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  color: #333;
  font-size: 12px;
  font-weight: 800;
}

.macs-inspection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.macs-inspection-pills span,
.macs-product-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  background: #fff;
  padding: 0 10px;
  color: #333;
  font-size: 12px;
  font-weight: 800;
}

.macs-product-info {
  display: grid;
  gap: 12px;
}

.macs-product-buy-card {
  padding: 20px;
}

.macs-product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.macs-product-title-row h1 {
  margin: 0 0 4px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.08;
  letter-spacing: 0;
}

.macs-product-subtitle,
.macs-product-meta {
  margin: 0;
  color: #555;
  font-size: 13px;
}

.macs-product-price {
  min-width: 120px;
  text-align: right;
  font-size: 22px;
  font-weight: 1000;
}

.macs-product-old-price {
  display: block;
  margin-top: 4px;
  color: #8d8d8d;
  font-size: 11px;
  font-weight: 700;
  text-decoration: line-through;
}

.macs-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #333;
  font-size: 13px;
}

.macs-stars {
  color: #00b67a;
  letter-spacing: 1px;
}

.macs-product-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 12px 14px;
}

.macs-product-service ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #333;
  font-size: 13px;
}

.macs-add-to-cart {
  min-width: 220px;
  height: 64px;
  border: 0;
  border-radius: 6px;
  background: #171d1d;
  color: #fff;
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
}

.macs-buy-whatsapp {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border-radius: 6px;
  background: #008f7a;
  color: #fff;
  font-weight: 1000;
  text-decoration: none;
}

.macs-buy-whatsapp:hover {
  background: #171d1d;
  color: #fff;
}

.macs-product-delivery {
  margin-top: 10px;
  border-radius: 4px;
  background: #effaf2;
  padding: 8px 10px;
  color: #236333;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.macs-option-panel {
  display: grid;
  gap: 18px;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 18px;
}

.macs-option-group h2 {
  margin: 0 0 10px;
  color: #333;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.macs-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.macs-option-button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #fff;
  padding: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.macs-option-button.is-active {
  border-color: #008f7a;
  background: #e9fbf8;
  box-shadow: 0 0 0 1px #008f7a inset;
  color: #075f54;
}

.macs-option-button:hover,
.macs-color-dot:hover {
  transform: translateY(-1px);
}

.macs-option-button:focus-visible,
.macs-color-dot:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.macs-color-row {
  display: flex;
  gap: 10px;
}

.macs-color-dot {
  width: 30px;
  height: 30px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #fff inset;
  cursor: pointer;
}

.macs-color-dot.is-active {
  outline: 2px solid #008f7a;
  outline-offset: 3px;
}

.macs-protection {
  border: 1px solid #cff4e1;
  border-radius: 8px;
  background: #f0fff8;
  padding: 16px;
}

.macs-protection h2 {
  margin: 0 0 10px;
  font-size: 13px;
}

.macs-protection p {
  margin: 0 0 8px;
  color: #244d3c;
  font-size: 13px;
}

.macs-accordion-list {
  display: grid;
  gap: 10px;
}

.macs-product-accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  color: #111;
  font-size: 14px;
  font-weight: 900;
}

.macs-product-story {
  margin-top: 70px;
  background: linear-gradient(90deg, #f2ffff, #e8fbff);
}

.macs-product-story-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
  padding: 50px 0;
}

.macs-product-story h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.macs-product-story h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.macs-product-story p {
  margin: 0;
  color: #333;
  line-height: 1.55;
}

.macs-spec-stack {
  display: grid;
  gap: 12px;
}

.macs-spec-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-radius: 8px;
  background: #fff;
  padding: 0 18px;
  box-shadow: 0 8px 24px rgba(0, 160, 190, 0.14);
  font-size: 14px;
  font-weight: 900;
}

.macs-product-row-section {
  width: min(100% - 32px, 1440px);
  margin: 48px auto 0;
}

.macs-product-row-section h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.macs-row-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.macs-pair-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #ececec;
  border-radius: 6px;
  color: #111;
  padding: 12px;
  text-decoration: none;
}

.macs-pair-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.macs-pair-card h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.macs-pair-card strong {
  white-space: nowrap;
  font-size: 13px;
}

.macs-small-products {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid #ececec;
  border-left: 1px solid #ececec;
}

.macs-small-card {
  display: grid;
  align-content: start;
  min-height: 178px;
  border-right: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  padding: 14px;
  color: #111;
  text-align: center;
  text-decoration: none;
}

.macs-small-card img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  margin-bottom: 10px;
}

.macs-small-card h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
}

.macs-small-card p {
  margin: 4px 0 0;
  color: #555;
  font-size: 12px;
}

.macs-trust-strip {
  display: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  width: min(100% - 32px, 1440px);
  margin: 70px auto 58px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(110deg, #7debef, #86f0be);
  padding: 48px 70px;
}

.macs-trust-strip h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.02;
}

.macs-trust-card {
  align-self: center;
  background: #fff;
  border-radius: 12px;
  padding: 18px 26px;
}

.macs-trust-card p {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #eaeaea;
  font-size: 14px;
}

.macs-trust-card p:last-child {
  border-bottom: 0;
}

.macs-reviews {
  width: min(100% - 32px, 1440px);
  margin: 0 auto 54px;
}

.macs-reviews h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.macs-reviews-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
}

.macs-review-summary,
.macs-review-card {
  padding: 18px;
}

.macs-review-score {
  font-size: 38px;
  font-weight: 1000;
}

.macs-review-bars {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.macs-review-bar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.macs-review-bar span:nth-child(2) {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #72ce3f var(--fill), #ededed var(--fill));
}

.macs-review-list {
  display: grid;
  gap: 12px;
}

.macs-review-card h3 {
  margin: 8px 0 6px;
  font-size: 14px;
}

.macs-review-card p {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
}

.macs-verified {
  float: right;
  border-radius: 999px;
  background: #e7fbef;
  color: #148447;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
}

.macs-detail-skeleton {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  gap: 24px;
  padding: 28px 0 60px;
}

.macs-skeleton-gallery,
.macs-skeleton-info {
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
}

.macs-skeleton-gallery {
  min-height: 520px;
}

.macs-skeleton-info {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.macs-skeleton-info span,
.macs-skeleton-info strong,
.macs-skeleton-info p,
.macs-skeleton-info div,
.macs-skeleton-gallery {
  position: relative;
  overflow: hidden;
  background: #f2f4f4;
}

.macs-skeleton-info span {
  width: 36%;
  height: 18px;
  border-radius: 999px;
}

.macs-skeleton-info strong {
  width: 72%;
  height: 36px;
  border-radius: 8px;
}

.macs-skeleton-info p {
  width: 100%;
  height: 54px;
  border-radius: 8px;
}

.macs-skeleton-info p + p {
  width: 88%;
}

.macs-skeleton-info div {
  height: 64px;
  border-radius: 8px;
}

.macs-skeleton-gallery::after,
.macs-skeleton-info span::after,
.macs-skeleton-info strong::after,
.macs-skeleton-info p::after,
.macs-skeleton-info div::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: macsSkeletonShimmer 1.4s infinite;
}

@keyframes macsSkeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 980px) {
  .macs-product-top,
  .macs-product-story-inner,
  .macs-reviews-layout,
  .macs-trust-strip,
  .macs-detail-skeleton {
    grid-template-columns: 1fr;
  }

  .macs-product-gallery-card {
    grid-template-columns: 1fr;
  }

  /* A single-image product receives .is-compact-gallery. Keep that variant
     one-column on phones too; otherwise its 54px thumbnail column squeezes
     the main image down to almost nothing. */
  .macs-product-gallery-card.is-compact-gallery {
    grid-template-columns: 1fr;
  }

  .macs-product-thumbs {
    display: flex;
    order: 2;
    overflow-x: auto;
  }

  .macs-product-thumbs.is-compact {
    justify-content: center;
  }

  .macs-product-service {
    grid-template-columns: 1fr;
  }

  .macs-add-to-cart {
    width: 100%;
  }

  .macs-row-grid,
  .macs-small-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .macs-product-shell {
    width: min(100% - 20px, 1440px);
  }

  .macs-product-title-row {
    display: grid;
  }

  .macs-product-price {
    text-align: left;
  }

  .macs-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .macs-product-gallery-card {
    gap: 12px;
    padding: 10px;
  }

  .macs-product-main-image {
    height: clamp(270px, 78vw, 380px);
    min-height: 0;
  }

  .macs-product-image-carousel,
  .macs-product-image-slide {
    height: 100%;
    min-height: 0;
  }

  .macs-product-image-slide {
    padding: 16px;
  }

  .macs-product-image-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  .macs-product-thumbs {
    gap: 8px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .macs-product-thumbs button {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    scroll-snap-align: start;
  }

  .macs-gallery-swipe-hint {
    display: block;
    margin: -4px 0 2px;
    color: #5d6666;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
  }

  .macs-product-row-section {
    width: min(100% - 20px, 1440px);
    margin-top: 38px;
  }

  .macs-row-grid,
  .macs-small-products {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-right: -10px;
    padding: 2px 10px 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .macs-row-grid::-webkit-scrollbar,
  .macs-small-products::-webkit-scrollbar {
    display: none;
  }

  .macs-pair-card {
    flex: 0 0 min(86vw, 330px);
    min-height: 82px;
    scroll-snap-align: start;
  }

  .macs-small-products {
    border: 0;
  }

  .macs-small-card {
    flex: 0 0 min(48vw, 185px);
    min-height: 190px;
    border: 1px solid #ececec;
    scroll-snap-align: start;
  }

  .macs-trust-strip {
    padding: 32px 24px;
  }
}
