/* Computer Melli 6.0 — controlled single-product experience. */

.computer-melli-theme.single-product .cm-single-product-page {
  padding-bottom: 54px;
  background:
    radial-gradient(circle at 90% 0, rgba(124, 58, 237, .055), transparent 29rem),
    var(--cm-page);
}

.computer-melli-theme.single-product .cm-breadcrumbs,
.computer-melli-theme.single-product .woocommerce-breadcrumb {
  padding-block: 20px;
}

.computer-melli-theme .cm-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  gap: 22px;
  align-items: start;
}

.computer-melli-theme .cm-pdp.has-no-product-media {
  grid-template-columns: minmax(340px, .72fr) minmax(520px, 1.28fr);
}

.computer-melli-theme .cm-pdp-media,
.computer-melli-theme .cm-pdp-summary {
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  border-color: #e6e0ea;
  box-shadow: 0 18px 50px rgba(31, 20, 43, .075);
}

.computer-melli-theme .cm-pdp-media {
  position: sticky;
  top: 158px;
  background: #fff;
}

.computer-melli-theme .cm-pdp-media .cm-discount-badge {
  top: 36px;
  right: 36px;
}

.computer-melli-theme .cm-pdp-gallery {
  display: grid;
  gap: 12px;
}

.computer-melli-theme .cm-pdp-main-image {
  min-height: 525px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid #eeeaf1;
  border-radius: 18px;
  background: linear-gradient(180deg, #fdfcfe 0%, #f7f5f9 100%);
}

.computer-melli-theme .cm-pdp-main-image__img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: contain;
  padding: 30px;
  transition: opacity .18s ease;
}

.computer-melli-theme .cm-pdp-main-image__img.is-changing {
  opacity: .3;
}

.computer-melli-theme .cm-pdp-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.computer-melli-theme .cm-pdp-thumb {
  height: 82px;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--cm-line);
  border-radius: 13px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.computer-melli-theme .cm-pdp-thumb.is-active {
  border-color: var(--cm-primary);
  box-shadow: 0 0 0 3px rgba(112, 44, 214, .09);
}

.computer-melli-theme .cm-pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.computer-melli-theme .cm-pdp-no-image {
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 36px;
  border: 1px dashed #d7cfdf;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(124, 58, 237, .045), transparent 48%),
    #fbfafc;
  color: var(--cm-muted);
  text-align: center;
}

.computer-melli-theme .cm-pdp-no-image__mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--cm-primary-bright), var(--cm-primary-strong));
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 18px 35px rgba(109, 40, 217, .2);
}

.computer-melli-theme .cm-pdp-no-image strong,
.computer-melli-theme .cm-pdp-no-image small {
  display: block;
}

.computer-melli-theme .cm-pdp-no-image strong {
  color: var(--cm-text);
  font-size: 18px;
}

.computer-melli-theme .cm-pdp-no-image small {
  max-width: 310px;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.9;
}

.computer-melli-theme .cm-pdp-summary {
  background: #fff;
}

.computer-melli-theme .cm-pdp-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cm-line);
}

.computer-melli-theme .cm-pdp-kickers {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.computer-melli-theme .cm-pdp-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.computer-melli-theme .cm-pdp-stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.computer-melli-theme .cm-pdp-stock.is-in-stock {
  background: #eafaf4;
  color: #087b54;
}

.computer-melli-theme .cm-pdp-stock.is-out-of-stock {
  background: #fff0f3;
  color: #c51c49;
}

.computer-melli-theme .cm-pdp-summary h1.product_title {
  margin: 13px 0 8px !important;
  color: var(--cm-text);
  font-size: clamp(29px, 2.7vw, 38px) !important;
  font-weight: 900 !important;
  line-height: 1.48 !important;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.computer-melli-theme .cm-product-model {
  padding: 0;
  border: 0;
  color: #89818e;
  font-size: 11px;
  line-height: 1.65;
  text-align: right;
  word-break: break-word;
}

.computer-melli-theme .cm-product-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-height: 27px;
  margin: 12px 0 0;
  color: var(--cm-muted);
  font-size: 11px;
}

.computer-melli-theme .cm-product-rating-row .star-rating {
  margin: 0;
  color: #f3a51f;
}

.computer-melli-theme .cm-product-rating-row a {
  color: var(--cm-primary-strong);
  font-weight: 750;
}

.computer-melli-theme .cm-product-short-description {
  margin-top: 17px;
  color: #5f5865;
  font-size: 13px;
  line-height: 2;
}

.computer-melli-theme .cm-key-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}

.computer-melli-theme .cm-key-specs > div {
  min-height: 62px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid #ece8ef;
  border-radius: 13px;
  background: #faf9fb;
}

.computer-melli-theme .cm-key-specs span {
  flex: 0 0 auto;
  color: var(--cm-primary);
  font-weight: 900;
}

.computer-melli-theme .cm-key-specs strong {
  min-width: 0;
  font-size: 11px;
  line-height: 1.8;
}

.computer-melli-theme .cm-purchase-panel {
  margin-top: 18px;
  padding: 19px;
  border: 1px solid #dcd3e5;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbf9fd 100%);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(48, 25, 69, .055);
}

.computer-melli-theme .cm-seller-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cm-line);
}

.computer-melli-theme .cm-seller-row > div {
  display: grid;
  gap: 2px;
}

.computer-melli-theme .cm-seller-row small {
  color: var(--cm-muted);
  font-size: 9px;
}

.computer-melli-theme .cm-seller-row strong {
  font-size: 12px;
}

.computer-melli-theme .cm-seller-row .cm-success-text {
  font-size: 10px;
  font-weight: 850;
}

.computer-melli-theme .cm-single-price {
  width: 100%;
  min-width: 0;
  margin: 18px 0 15px;
  overflow: hidden;
  text-align: right;
}

.computer-melli-theme .cm-single-price p.price,
.computer-melli-theme .cm-single-price > .price,
.computer-melli-theme .cm-single-price .price {
  width: 100% !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0 !important;
  color: var(--cm-text) !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

.computer-melli-theme .cm-single-price del,
.computer-melli-theme .cm-single-price ins {
  width: auto !important;
  display: inline-flex !important;
  position: static !important;
  margin: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  text-align: right !important;
}

.computer-melli-theme .cm-single-price del {
  order: 1;
  color: var(--cm-muted) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  line-height: 1.5 !important;
}

.computer-melli-theme .cm-single-price ins {
  order: 2;
  color: var(--cm-text) !important;
  text-decoration: none !important;
  font-size: clamp(28px, 2.4vw, 34px) !important;
}

/* The old price reads as a plain struck figure — no unit beside it. */
.computer-melli-theme .cm-single-price del .woocommerce-Price-currencySymbol {
  display: none !important;
}

.computer-melli-theme .cm-single-price .woocommerce-Price-amount,
.computer-melli-theme .cm-product-card__price .woocommerce-Price-amount {
  max-width: 100%;
  display: inline-flex !important;
  align-items: baseline;
  gap: 4px;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
}

.computer-melli-theme .cm-single-price .woocommerce-Price-amount bdi,
.computer-melli-theme .cm-product-card__price .woocommerce-Price-amount bdi {
  display: inline-flex !important;
  align-items: baseline;
  gap: 4px;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  white-space: nowrap !important;
}

.computer-melli-theme .cm-single-price .woocommerce-Price-currencySymbol,
.computer-melli-theme .cm-product-card__price .woocommerce-Price-currencySymbol {
  direction: rtl !important;
  unicode-bidi: isolate !important;
  color: var(--cm-muted);
  font-size: .48em;
  font-weight: 700;
}

.computer-melli-theme .cm-single-add-to-cart form.cart {
  width: 100%;
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  margin: 0 !important;
}

.computer-melli-theme .cm-single-add-to-cart form.cart.grouped_form,
.computer-melli-theme .cm-single-add-to-cart form.variations_form {
  grid-template-columns: 1fr;
}

.computer-melli-theme .cm-single-add-to-cart .quantity {
  width: 100%;
  margin: 0 !important;
}

.computer-melli-theme .cm-single-add-to-cart .quantity .qty {
  width: 100% !important;
  min-height: 51px;
  border: 1px solid var(--cm-line) !important;
  border-radius: 13px !important;
  background: #fff !important;
  padding: 8px !important;
  color: var(--cm-text) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  text-align: center;
  box-shadow: none !important;
}

.computer-melli-theme .cm-single-add-to-cart .single_add_to_cart_button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 51px !important;
  margin: 0 !important;
  border-radius: 13px !important;
  font-size: 13px !important;
}

.computer-melli-theme .cm-single-add-to-cart .variations {
  width: 100%;
  margin: 0 0 12px !important;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.computer-melli-theme .cm-single-add-to-cart .variations tr {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.computer-melli-theme .cm-single-add-to-cart .variations th,
.computer-melli-theme .cm-single-add-to-cart .variations td {
  display: block;
  padding: 0 !important;
  border: 0 !important;
}

.computer-melli-theme .cm-single-add-to-cart .variations label {
  font-size: 11px;
  font-weight: 850;
}

.computer-melli-theme .cm-single-add-to-cart .variations select {
  min-height: 49px;
  border: 1px solid var(--cm-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
}

.computer-melli-theme .cm-single-add-to-cart .reset_variations {
  display: inline-block;
  margin-top: 6px;
  color: var(--cm-promo);
  font-size: 10px;
  font-weight: 750;
}

.computer-melli-theme .cm-single-add-to-cart .single_variation_wrap {
  display: grid;
  gap: 10px;
}

.computer-melli-theme .cm-single-add-to-cart .woocommerce-variation-price .price {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 4px !important;
  color: var(--cm-text) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

.computer-melli-theme .cm-purchase-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 14px 0 0;
  margin: 15px 0 0;
  border-top: 1px solid var(--cm-line);
  color: #625a68;
  font-size: 10px;
  list-style: none;
}

.computer-melli-theme .cm-purchase-benefits li::before {
  content: "✓";
  margin-left: 7px;
  color: var(--cm-success);
  font-weight: 900;
}

.computer-melli-theme .cm-product-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--cm-line);
}

.computer-melli-theme .cm-product-meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.computer-melli-theme .cm-product-meta-list > div {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 12px;
  font-size: 10px;
}

.computer-melli-theme .cm-product-meta-list dt {
  color: var(--cm-muted);
}

.computer-melli-theme .cm-product-meta-list dd {
  min-width: 0;
  margin: 0;
  color: var(--cm-text);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.computer-melli-theme .cm-product-meta-list a {
  color: var(--cm-primary-strong);
}

.computer-melli-theme .cm-product-reassurance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--cm-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--cm-shadow-sm);
}

.computer-melli-theme .cm-product-reassurance > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 17px;
  border-left: 1px solid var(--cm-line);
}

.computer-melli-theme .cm-product-reassurance > div:last-child {
  border-left: 0;
}

.computer-melli-theme .cm-product-reassurance span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cm-primary-soft);
  color: var(--cm-primary-strong);
  font-size: 18px;
  font-weight: 900;
}

.computer-melli-theme .cm-product-reassurance strong,
.computer-melli-theme .cm-product-reassurance small {
  display: block;
}

.computer-melli-theme .cm-product-reassurance strong {
  font-size: 11px;
}

.computer-melli-theme .cm-product-reassurance small {
  color: var(--cm-muted);
  font-size: 9px;
}

.computer-melli-theme .cm-product-tabs {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 42px rgba(31, 20, 43, .065);
}

.computer-melli-theme .cm-product-tabs .woocommerce-tabs {
  width: 100%;
}

.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs {
  min-height: 58px;
  display: flex !important;
  gap: 4px;
  align-items: stretch;
  overflow-x: auto;
  padding: 0 18px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--cm-line) !important;
  background: #fff !important;
}

.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs::before,
.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs li::before,
.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs li {
  min-width: max-content;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs li a {
  height: 100%;
  display: grid !important;
  place-items: center;
  padding: 16px 17px !important;
  border-bottom: 3px solid transparent;
  color: var(--cm-muted) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  white-space: nowrap;
}

.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs li.active a {
  border-color: var(--cm-primary);
  color: var(--cm-primary-strong) !important;
}

.computer-melli-theme .cm-product-tabs .woocommerce-Tabs-panel {
  width: 100% !important;
  padding: 27px !important;
  margin: 0 !important;
  color: #5e5764;
  font-size: 13px;
  line-height: 2.05;
}

.computer-melli-theme .cm-product-tabs .woocommerce-Tabs-panel > h2:first-child {
  margin-top: 0;
  color: var(--cm-text);
  font-size: 21px;
}

.computer-melli-theme .cm-product-tabs table.shop_attributes {
  width: 100%;
  border: 1px solid var(--cm-line) !important;
  border-radius: 14px;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
}

.computer-melli-theme .cm-product-tabs table.shop_attributes th,
.computer-melli-theme .cm-product-tabs table.shop_attributes td {
  padding: 12px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--cm-line) !important;
  background: #fff !important;
  font-size: 11px;
  font-style: normal !important;
}

.computer-melli-theme .cm-product-tabs table.shop_attributes th {
  width: 28%;
  background: #faf9fb !important;
  color: var(--cm-muted);
}

.computer-melli-theme .cm-product-tabs table.shop_attributes tr:last-child th,
.computer-melli-theme .cm-product-tabs table.shop_attributes tr:last-child td {
  border-bottom: 0 !important;
}

.computer-melli-theme .cm-product-tabs #reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 22px;
}

.computer-melli-theme .cm-product-tabs #comments,
.computer-melli-theme .cm-product-tabs #review_form_wrapper {
  min-width: 0;
}

.computer-melli-theme .cm-product-tabs #review_form_wrapper {
  padding: 18px;
  border: 1px solid var(--cm-line);
  border-radius: 16px;
  background: #faf9fb;
}

.computer-melli-theme .cm-product-tabs .commentlist {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
}

.computer-melli-theme .cm-product-tabs .commentlist li {
  padding: 16px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--cm-line);
}

.computer-melli-theme .cm-related-products {
  padding-top: 44px;
}

.computer-melli-theme .cm-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.computer-melli-theme .cm-related-grid > .cm-product-card {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}

@media (max-width: 1180px) {
  .computer-melli-theme .cm-pdp,
  .computer-melli-theme .cm-pdp.has-no-product-media {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .92fr);
  }

  .computer-melli-theme .cm-pdp-main-image {
    min-height: 455px;
  }

  .computer-melli-theme .cm-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .computer-melli-theme .cm-related-grid > .cm-product-card:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 900px) {
  .computer-melli-theme .cm-pdp,
  .computer-melli-theme .cm-pdp.has-no-product-media {
    grid-template-columns: 1fr;
  }

  .computer-melli-theme .cm-pdp-media {
    position: relative;
    top: auto;
    order: 1;
  }

  .computer-melli-theme .cm-pdp-summary {
    order: 2;
  }

  .computer-melli-theme .cm-pdp-main-image {
    min-height: 430px;
  }

  .computer-melli-theme .cm-pdp-no-image {
    min-height: 250px;
  }

  .computer-melli-theme .cm-product-tabs #reviews {
    grid-template-columns: 1fr;
  }

  .computer-melli-theme .cm-product-reassurance {
    grid-template-columns: 1fr 1fr;
  }

  .computer-melli-theme .cm-product-reassurance > div:nth-child(2) {
    border-left: 0;
  }

  .computer-melli-theme .cm-product-reassurance > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--cm-line);
  }
}

@media (max-width: 680px) {
  .computer-melli-theme.single-product .cm-breadcrumbs,
  .computer-melli-theme.single-product .woocommerce-breadcrumb {
    padding-block: 14px;
  }

  .computer-melli-theme .cm-pdp {
    gap: 12px;
  }

  .computer-melli-theme .cm-pdp-media,
  .computer-melli-theme .cm-pdp-summary {
    padding: 14px;
    border-radius: 17px;
  }

  .computer-melli-theme .cm-pdp-media .cm-discount-badge {
    top: 25px;
    right: 25px;
  }

  .computer-melli-theme .cm-pdp-main-image {
    min-height: 320px;
    border-radius: 14px;
  }

  .computer-melli-theme .cm-pdp-main-image__img {
    max-height: 360px;
    padding: 17px;
  }

  .computer-melli-theme .cm-pdp-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .computer-melli-theme .cm-pdp-thumb {
    height: 65px;
  }

  .computer-melli-theme .cm-pdp-no-image {
    min-height: 205px;
    grid-template-columns: auto 1fr;
    align-content: center;
    justify-items: start;
    gap: 14px;
    padding: 22px;
    text-align: right;
  }

  .computer-melli-theme .cm-pdp-no-image__mark {
    width: 64px;
    height: 64px;
    border-radius: 19px;
    font-size: 25px;
  }

  .computer-melli-theme .cm-pdp-summary h1.product_title {
    font-size: 24px !important;
  }

  .computer-melli-theme .cm-key-specs {
    grid-template-columns: 1fr;
  }

  .computer-melli-theme .cm-purchase-panel {
    padding: 15px;
  }

  .computer-melli-theme .cm-single-price p.price,
  .computer-melli-theme .cm-single-price > .price,
  .computer-melli-theme .cm-single-price .price {
    font-size: 25px !important;
  }

  .computer-melli-theme .cm-product-meta-list > div {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .computer-melli-theme .cm-product-reassurance {
    grid-template-columns: 1fr;
  }

  .computer-melli-theme .cm-product-reassurance > div {
    border-left: 0 !important;
    border-bottom: 1px solid var(--cm-line);
  }

  .computer-melli-theme .cm-product-reassurance > div:last-child {
    border-bottom: 0;
  }

  .computer-melli-theme .cm-product-tabs {
    border-radius: 17px;
  }

  .computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs {
    padding-inline: 7px !important;
  }

  .computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs li a {
    padding: 13px 11px !important;
  }

  .computer-melli-theme .cm-product-tabs .woocommerce-Tabs-panel {
    padding: 17px !important;
  }

  .computer-melli-theme .cm-related-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .computer-melli-theme .cm-related-grid > .cm-product-card,
  .computer-melli-theme .cm-related-grid > .cm-product-card:nth-child(n) {
    display: block;
    min-width: min(78vw, 300px) !important;
    scroll-snap-align: start;
  }
}

@media (max-width: 420px) {
  .computer-melli-theme .cm-pdp-no-image {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .computer-melli-theme .cm-seller-row {
    align-items: flex-start;
  }

  .computer-melli-theme .cm-single-add-to-cart form.cart {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .computer-melli-theme .cm-single-add-to-cart .variations tr {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .computer-melli-theme .cm-product-meta-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}


/* ============================================================
   6.0 final polish � single-product readability
   ============================================================ */
.computer-melli-theme .cm-pdp-kickers .cm-pill { font-size: 12px; }
.computer-melli-theme .cm-product-model { font-size: 12px; }
.computer-melli-theme .cm-single-price ins .woocommerce-Price-amount { font-size: clamp(28px, 2.4vw, 34px); }
.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs li a { font-size: 12px !important; }
.computer-melli-theme .cm-product-tabs .woocommerce-Tabs-panel { font-size: 14px; }
.computer-melli-theme .cm-product-tabs table.shop_attributes th,
.computer-melli-theme .cm-product-tabs table.shop_attributes td { font-size: 12px; }
.computer-melli-theme .cm-product-meta-list dt { font-size: 12px; }
.computer-melli-theme .cm-product-meta-list dd { font-size: 12px; }
.computer-melli-theme .cm-pdp-no-image strong { font-size: 19px; }
.computer-melli-theme .cm-pdp-no-image small { font-size: 12px; }
.computer-melli-theme .cm-related-products .cm-section-heading h2 { font-size: 26px; }


/* ============================================================
   Quantity stepper
   ============================================================ */
.computer-melli-theme .cm-quantity {
  width: 100% !important;
  display: grid;
  grid-template-columns: 42px minmax(44px, 1fr) 42px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--cm-line);
  border-radius: 13px;
  background: var(--cm-surface);
}
.computer-melli-theme .cm-quantity__button {
  min-height: 51px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--cm-surface-soft);
  color: var(--cm-muted);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.computer-melli-theme .cm-quantity__button:hover {
  background: var(--cm-primary-soft);
  color: var(--cm-primary);
}
.computer-melli-theme .cm-quantity__button:active {
  background: var(--cm-primary);
  color: #fff;
}
.computer-melli-theme .cm-quantity .qty {
  min-height: 49px !important;
  border: 0 !important;
  border-inline: 1px solid var(--cm-line) !important;
  border-radius: 0 !important;
  background: var(--cm-surface) !important;
  box-shadow: none !important;
  text-align: center;
}
/* Remove the native number spinners that overlap the custom steppers. */
.computer-melli-theme .cm-quantity input[type="number"]::-webkit-outer-spin-button,
.computer-melli-theme .cm-quantity input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.computer-melli-theme .cm-quantity input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ============================================================
   Spec table (chart-style label/value rows)
   ============================================================ */
.computer-melli-theme .cm-spec-table {
  margin-top: 20px;
  padding: 26px;
  border-radius: 20px;
  box-shadow: var(--cm-shadow-sm);
}
.computer-melli-theme .cm-spec-table__head {
  margin-bottom: 18px;
}
.computer-melli-theme .cm-spec-table__head span {
  display: block;
  color: var(--cm-primary);
  font-size: 11px;
  font-weight: 900;
}
.computer-melli-theme .cm-spec-table__head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.35;
}
.computer-melli-theme .cm-spec-table__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
.computer-melli-theme .cm-spec-table__row {
  display: grid;
  grid-template-columns: minmax(120px, .9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: baseline;
  padding: 13px 16px;
  border: 1px solid var(--cm-line);
  border-radius: 12px;
  background: var(--cm-surface-soft);
}
.computer-melli-theme .cm-spec-table__row dt {
  color: var(--cm-muted);
  font-size: 12px;
}
.computer-melli-theme .cm-spec-table__row dd {
  margin: 0;
  color: var(--cm-text);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

/* ============================================================
   Product tabs � one panel at a time
   ============================================================ */
.computer-melli-theme .cm-product-tabs .woocommerce-Tabs-panel {
  display: none !important;
}
.computer-melli-theme .cm-product-tabs .woocommerce-Tabs-panel.is-active {
  display: block !important;
}

/* ============================================================
   Review form (comment/respond area)
   ============================================================ */
.computer-melli-theme .cm-product-tabs #review_form_wrapper {
  background: var(--cm-surface-soft);
}
.computer-melli-theme .cm-product-tabs #respond,
.computer-melli-theme .cm-product-tabs .comment-form {
  color: var(--cm-text);
}
.computer-melli-theme .cm-product-tabs .comment-respond {
  background: transparent;
}
.computer-melli-theme .cm-product-tabs #respond .comment-reply-title,
.computer-melli-theme .cm-product-tabs .comment-notes,
.computer-melli-theme .cm-product-tabs .comment-form label {
  color: var(--cm-text);
}
.computer-melli-theme .cm-product-tabs .comment-notes {
  color: var(--cm-muted);
  font-size: 12px;
}
.computer-melli-theme .cm-product-tabs .comment-form input[type="text"],
.computer-melli-theme .cm-product-tabs .comment-form input[type="email"],
.computer-melli-theme .cm-product-tabs .comment-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--cm-line);
  border-radius: 12px;
  background: var(--cm-surface);
  color: var(--cm-text);
  font-size: 13px;
}
.computer-melli-theme .cm-product-tabs .comment-form textarea {
  min-height: 120px;
}
.computer-melli-theme .cm-product-tabs .comment-form input:focus,
.computer-melli-theme .cm-product-tabs .comment-form textarea:focus {
  outline: 0;
  border-color: var(--cm-primary);
  box-shadow: 0 0 0 3px rgba(112, 44, 214, .12);
}
.computer-melli-theme .cm-product-tabs .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.computer-melli-theme .cm-product-tabs .comment-form-cookies-consent input {
  accent-color: var(--cm-primary);
}
.computer-melli-theme .cm-product-tabs .comment-form .submit {
  min-height: 46px;
  padding: 11px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--cm-primary-strong), var(--cm-primary-bright));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.computer-melli-theme .cm-product-tabs .comment-form .submit:hover {
  background: var(--cm-primary-strong);
}
