/* Shared product rhythm; retain brand accents for actions and prices. */
body { background-color: #f7fafb; }
body .ms-confetti-burst { display: none; }
body .ms-header { box-shadow: 0 3px 12px rgba(7, 56, 78, .09); }
body .ms-main .summary { box-shadow: none; }
body .ms-product-assurances { font-size: 13px; gap: 12px; }
body .ms-section { padding-block: 36px; }
body .ms-commerce-section { margin-block: 30px; }
body .ms-section__eyebrow { display: none; }
body .ms-section__header { margin-bottom: 22px; align-items: center; }
body .ms-commerce-section h2 { font-size: 28px; line-height: 1.2; }
body ul.products li.product .ms-product-thumb { box-shadow: none !important; border-color: #e2e9ed !important; }
body #novidades ul.products li.product .woocommerce-loop-product__title,
body ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px !important; line-height: 1.4 !important;
  min-height: 2.8em !important; margin-block: 12px 10px !important;
  display: -webkit-box; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical;
  overflow: hidden; height: 2.8em !important; max-height: 2.8em !important;
}
body #novidades ul.products li.product > .woocommerce-LoopProduct-link { grid-template-rows: auto auto auto auto !important; }
body #novidades ul.products li.product .price,
body ul.products li.product .price { font-size: 20px !important; line-height: 1.35; }
body ul.products li.product .price .rm-pagbank-price {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start;
  gap: 5px !important;
  box-sizing: border-box;
  width: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 5px !important;
  padding: 5px 8px !important;
  border-radius: 4px !important;
  background: #e8f7ed !important;
  color: #167a43 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
body ul.products li.product .price .rm-pagbank-price::before {
  order: 1;
  color: #167a43;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  content: "Pix";
}
body ul.products li.product .price .rm-pagbank-price .icon-pix {
  order: 0;
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  background-image: url('/wp-content/plugins/pagbank-connect/public/images/pix-photo.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
}
body ul.products li.product .price .rm-pagbank-price > b {
  order: 2;
  color: #167a43;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
}
body ul.products li.product .ms-installment { font-size: 13px !important; line-height: 1.4; margin-bottom: 12px !important; min-height: 1.4em; }
body #novidades ul.products li.product .button:not(.ms-quick-add),
body ul.products li.product > .button:not(.ms-quick-add) {
  box-shadow: none !important; border-radius: 6px !important;
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
}
body ul.products li.product .onsale,
body ul.products li.product .ms-new-product-badge { box-shadow: none !important; }
body .ms-commerce-carousel__arrow { box-shadow: none !important; }
body .ms-commerce-carousel__viewport { padding-bottom: 18px !important; }
.ms-catalog-event-notice { padding: 14px 20px; margin: 12px auto; max-width: 1500px; background: #e7f3f8; color: #084c70; border-left: 3px solid #0877a0; }
body.ms-event-sales-paused .ms-event-pause { min-height: 0; }
body.ms-event-sales-paused .ms-event-pause__inner { padding-block: 30px; }
body.ms-event-sales-paused .ms-event-pause__logo { display: none; }
body.ms-event-sales-paused .ms-event-pause h1 { font-size: 30px; }
body.ms-event-sales-paused .ms-quick-add { display: none !important; }
body .ms-event-pause-main { background: #f7fafb; color: #153442; }
body #catalogo-evento { background: #f7fafb; color: #153442; padding-block: 32px; }
body #catalogo-evento h2 { color: #083652; font-size: 28px; margin: 0 0 10px; }
body #catalogo-evento > .ms-container > p { color: #4c6370; margin-bottom: 24px; }
body #catalogo-evento ul.products { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 24px 20px !important; padding: 0 !important; margin: 0 0 28px !important; }
body #catalogo-evento ul.products::before,
body #catalogo-evento ul.products::after { display: none !important; }
body #catalogo-evento ul.products li.product { width: auto !important; max-width: none !important; min-width: 0; float: none !important; margin: 0 !important; padding: 0 !important; }
body #catalogo-evento .woocommerce-loop-product__title { color: #153442 !important; }
body #catalogo-evento .ms-product-thumb { background: white; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
body #catalogo-evento .ms-product-thumb img { width: 100%; height: 100%; object-fit: contain; }
body #catalogo-evento .price { color: #076990 !important; }
body #catalogo-evento .ms-installment { color: #526d7b !important; }
body #catalogo-evento a.button { background: #08658a !important; color: white !important; }
body .ms-unit-input { display: inline-flex; position: relative; align-items: stretch; width: 96px; max-width: 100%; }
body .ms-unit-input input.qty { width: 100% !important; min-width: 0 !important; padding: 10px 36px 10px 8px !important; height: 52px !important; text-align: center; appearance: textfield; -moz-appearance: textfield; }
body .ms-unit-input input.qty::-webkit-inner-spin-button,
body .ms-unit-input input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body .ms-unit-input__arrows { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 30px; display: grid; grid-template-rows: 1fr 1fr; }
body .ms-unit-input__arrows button { display: grid !important; place-items: center; min-width: 0 !important; min-height: 0 !important; width: 30px !important; height: 24px !important; padding: 0 !important; border: 0 !important; border-radius: 3px !important; box-shadow: none !important; background: #eaf3f7 !important; color: #075879 !important; font-size: 18px !important; line-height: 1 !important; }
body .ms-unit-input__arrows button:hover { background: #d7eaf3 !important; }
@media (max-width: 1000px) { body #catalogo-evento ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { body #catalogo-evento ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 12px !important; } }
body .ms-catalog-quantity { display: grid; grid-template-columns: 36px 32px 36px auto; align-items: center; gap: 5px; margin-top: 10px; max-width: 100%; }
body .ms-catalog-quantity button { width: 36px !important; min-width: 36px !important; height: 36px !important; min-height: 36px !important; padding: 0 !important; border: 1px solid #c7dce5 !important; border-radius: 50% !important; background: #fff !important; color: #075879 !important; box-shadow: none !important; font-size: 20px; display: grid; place-items: center; }
.ms-catalog-quantity output { text-align: center; font-weight: 600; }
.ms-catalog-quantity small { font-size: 11px; color: #496774; }
.ms-catalog-quantity [role="status"] { grid-column: 1 / -1; font-size: 12px; color: #a02c36; }
.ms-catalog-quantity button:disabled { opacity: .45; }
body ul.products li.product .ms-review-score { display: flex; align-items: center; gap: 6px; min-height: 16px; margin: 7px 0 0; color: #526d7b; font-size: 12px; line-height: 1; }
body ul.products li.product .ms-review-score .star-rating { float: none; margin: 0; color: #bd8200; font-size: 13px; }
body ul.products li.product:has(.ms-review-score) > .woocommerce-LoopProduct-link { grid-template-rows: auto auto auto auto auto !important; }
body.single-product .woocommerce-product-rating .star-rating,
body.single-product #reviews .star-rating { color: #bd8200; }
body.single-product #reviews { max-width: 900px; }
body.single-product #reviews .commentlist { padding: 0; }
body.single-product #reviews .commentlist li { border-bottom: 1px solid #dce9ef; padding-block: 14px; }
body.single-product #review_form_wrapper { margin-top: 24px; }
body.single-product #review_form .comment-form-rating { margin-block: 12px; }
@media (max-width: 700px) {
  body .ms-section { padding-block: 24px; }
  body .ms-commerce-section h2 { font-size: 23px; }
  body .ms-commerce-carousel__viewport { padding-inline: 4px !important; }
  body.single-product section.ms-commerce-section .ms-commerce-carousel ul.products li.product,
  body.woocommerce-cart section.ms-cart-recommendations .ms-commerce-carousel ul.products li.product,
  body .ms-recently-viewed .ms-commerce-carousel ul.products li.product {
    flex: 0 0 min(78vw, 320px) !important;
    width: min(78vw, 320px) !important;
    max-width: min(78vw, 320px) !important;
  }
  body ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.7em !important;
    height: 2.7em !important;
    max-height: 2.7em !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin: 9px 0 4px !important;
  }
  body ul.products li.product > .woocommerce-LoopProduct-link {
    grid-template-rows: auto 2.7em auto minmax(1.4em, auto) !important;
    row-gap: 6px !important;
  }
  body ul.products li.product .price {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
  }
  body ul.products li.product .price br { display: none !important; }
  body ul.products li.product .price .rm-pagbank-price {
    margin: 0 !important;
    padding: 4px 7px !important;
  }
  body ul.products li.product .ms-installment {
    min-height: 1.4em !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    white-space: nowrap;
  }
  body ul.products li.product > .button:not(.ms-quick-add) {
    margin-top: 9px !important;
  }
  body .ms-catalog-quantity { grid-template-columns: 32px 24px 32px; gap: 4px; }
  body .ms-catalog-quantity button { width: 32px !important; min-width: 32px !important; height: 32px !important; min-height: 32px !important; }
  .ms-catalog-quantity small { grid-column: 1 / -1; }
}
