.hdr-account-menu {
  position: relative;
  display: inline-flex;
}

/* TANDA40: cart-enabled cards inspired by retail product tiles. */
.product-card[data-product-direct-purchase="1"].is-direct-purchase-card,
body.catalog-page .pcard[data-product-direct-purchase="1"].is-direct-purchase-card,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"].is-direct-purchase-card {
  background: #fff !important;
  border: 1px solid rgba(15, 107, 122, .34) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 26px rgba(8, 23, 43, .08) !important;
  overflow: hidden !important;
}

.product-card[data-product-direct-purchase="1"].is-direct-purchase-card:hover,
body.catalog-page .pcard[data-product-direct-purchase="1"].is-direct-purchase-card:hover {
  border-color: #0f7c8d !important;
  box-shadow: 0 18px 38px rgba(8, 23, 43, .14) !important;
  transform: translateY(-2px) !important;
}

.product-card[data-product-direct-purchase="1"] .card-img-wrap,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-img,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-img {
  background: #fff !important;
}

.product-card[data-product-direct-purchase="1"] .card-img-wrap > img,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-img > img,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-img > img {
  object-fit: contain !important;
}

.product-card[data-product-direct-purchase="1"] .card-badge,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-tags > *,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-tags > * {
  border-radius: 0 0 6px 0 !important;
  background: #f97316 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .2) !important;
}

.product-card[data-product-direct-purchase="1"] .card-body,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-body,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-body {
  text-align: center !important;
}

.product-card[data-product-direct-purchase="1"] .card-name,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-name,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-name {
  color: #0f6b7a !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
  line-height: 1.16 !important;
}

.product-card[data-product-direct-purchase="1"] .card-brand,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-brand,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-brand {
  color: #6b7280 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

.product-card[data-product-direct-purchase="1"] .card-price-row,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-price-row,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-price-row {
  justify-items: center !important;
  text-align: center !important;
}

.product-card[data-product-direct-purchase="1"] .card-price,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-price,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-price {
  color: #dc2626 !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  font-weight: 950 !important;
}

.product-card[data-product-direct-purchase="1"] .card-price-old,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-price-old,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-price-old {
  color: #9ca3af !important;
  text-decoration: line-through !important;
}

.product-card[data-product-direct-purchase="1"] .card-price-note,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-note,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-note {
  color: #6b7280 !important;
  font-size: 11px !important;
}

.product-card[data-product-direct-purchase="1"] .card-commerce-pay-row,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row {
  display: none !important;
}

.product-card[data-product-direct-purchase="1"] .card-commerce-inline,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-inline,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-inline {
  grid-template-columns: 104px minmax(0, 1fr) !important;
  gap: 8px !important;
}

.product-card[data-product-direct-purchase="1"] .card-qty-control,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-control,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-control {
  grid-template-columns: 30px minmax(0, 1fr) 30px !important;
  border-color: #16a7d8 !important;
  border-radius: 4px !important;
}

.product-card[data-product-direct-purchase="1"] .card-qty-step,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-step,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-step {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: #0ea5e9 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.product-card[data-product-direct-purchase="1"] .card-qty-control input,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-control input,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-control input {
  appearance: textfield !important;
  color: #111827 !important;
}

.product-card[data-product-direct-purchase="1"] .card-qty-control input::-webkit-outer-spin-button,
.product-card[data-product-direct-purchase="1"] .card-qty-control input::-webkit-inner-spin-button,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-control input::-webkit-outer-spin-button,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-control input::-webkit-inner-spin-button {
  appearance: none !important;
  margin: 0 !important;
}

.product-card[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart {
  background: #19a9d4 !important;
  border-color: #19a9d4 !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
}

.cart-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483010;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.cart-confirm-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-confirm-modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  padding: 22px;
  position: relative;
}

.cart-confirm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.cart-confirm-close svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
}

.cart-confirm-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3f3f46;
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 18px;
}

.cart-confirm-title svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #4b5563;
  stroke-width: 2.2;
}

.cart-confirm-product {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: #f8fafc;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 18px;
}

.cart-confirm-product img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  background: #fff;
}

.cart-confirm-info strong {
  display: block;
  color: #334155;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 14px;
}

.cart-confirm-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f97316;
  font-size: 14px;
  font-weight: 850;
}

.cart-confirm-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
}

.cart-confirm-action--continue {
  background: #f97316;
  color: #fff;
  margin-bottom: 12px;
}

.cart-confirm-action--cart {
  background: #2f56a6;
  color: #fff;
}

@media (max-width: 640px) {
  .product-card[data-product-direct-purchase="1"] .card-commerce-inline,
  body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-inline,
  body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-inline {
    grid-template-columns: 86px minmax(0, 1fr) !important;
  }

  .product-card[data-product-direct-purchase="1"] .card-qty-control,
  body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-control,
  body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-control {
    grid-template-columns: 24px minmax(0, 1fr) 24px !important;
  }

  .product-card[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
  body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
  body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart {
    font-size: 10px !important;
    padding: 0 6px !important;
  }
}

/* PDP quote actions: keep WhatsApp, email and favorite visible in one row. */
body.detail-page .detail-cart-block .cart-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 54px !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body.detail-page .detail-cart-block .product-wa-btn,
body.detail-page .detail-cart-block .sedmac-product-quote-btn,
body.detail-page .detail-cart-block .btn-wishlist {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  grid-column: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  white-space: nowrap !important;
}

body.detail-page .detail-cart-block .btn-wishlist {
  display: inline-grid !important;
  place-items: center !important;
  width: 54px !important;
  padding: 0 !important;
}

body.detail-page .detail-cart-block .product-wa-btn svg,
body.detail-page .detail-cart-block .sedmac-product-quote-btn svg,
body.detail-page .detail-cart-block .btn-wishlist svg {
  flex: 0 0 18px !important;
}

body.detail-page .detail-delivery-benefits {
  margin: 0 0 16px !important;
}

body.detail-page .detail-delivery-benefits .product-delivery-benefits {
  margin: 0 !important;
}

@media (max-width: 767px) {
  body.detail-page .detail-cart-block .cart-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px !important;
    gap: 7px !important;
  }

  body.detail-page .detail-cart-block .product-wa-btn,
  body.detail-page .detail-cart-block .sedmac-product-quote-btn {
    min-height: 46px !important;
    padding-inline: 9px !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
    gap: 5px !important;
    white-space: nowrap !important;
  }

  body.detail-page .detail-cart-block .btn-wishlist {
    width: 44px !important;
    min-height: 46px !important;
  }

  body.detail-page .detail-cart-block .product-wa-btn svg,
  body.detail-page .detail-cart-block .sedmac-product-quote-btn svg {
    width: 15px !important;
    height: 15px !important;
    flex-basis: 15px !important;
  }

  body.detail-page .detail-cart-block .product-wa-btn {
    font-size: 11px !important;
  }
}

/* Newsletter confirmation cards use a compact recommendation layout, not catalog purchase controls. */
body.newsletter-success-page .newsletter-success-carousel .pcard .pcard-foot {
  padding: 0 14px 16px !important;
}

body.newsletter-success-page .newsletter-success-carousel .pcard .card-commerce-inline {
  width: 100% !important;
  grid-template-columns: 1fr !important;
}

body.newsletter-success-page .newsletter-success-carousel .pcard .card-qty-control,
body.newsletter-success-page .newsletter-success-carousel .pcard .btn-add-cart-pay,
body.newsletter-success-page .newsletter-success-carousel .pcard .btn-micro,
body.newsletter-success-page .newsletter-success-carousel .pcard .card-qty-message {
  display: none !important;
}

body.newsletter-success-page .newsletter-success-carousel .pcard .btn-add-cart {
  width: 100% !important;
  min-height: 42px !important;
  border-radius: 8px !important;
  justify-content: center !important;
}

.pdp-commerce-actions {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.pdp-commerce-actions[hidden] {
  display: none !important;
}

.pdp-commerce-btn {
  min-height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 16px 32px rgba(1, 20, 41, 0.16);
}

.pdp-commerce-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdp-commerce-btn--cart {
  background: #061a33;
  color: #fff;
}

.pdp-commerce-btn--pay {
  background: #22c55e;
  color: #fff;
  box-shadow: 0 18px 36px rgba(34, 197, 94, 0.24);
}

.pdp-commerce-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .pdp-commerce-actions {
    grid-template-columns: 1fr;
  }

  .pdp-commerce-btn {
    min-height: 50px;
    font-size: 14px;
  }
}

.hdr-account-trigger {
  max-width: 170px;
  white-space: nowrap;
}

.hdr-account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  min-width: 250px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(15, 23, 42, .18);
  display: none;
}

.hdr-account-menu:hover .hdr-account-dropdown,
.hdr-account-menu:focus-within .hdr-account-dropdown {
  display: grid;
  gap: 4px;
}

.hdr-account-dropdown a,
.hdr-account-dropdown button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0b1b33;
  display: flex;
  padding: 10px 12px;
  font: 800 13px/1.2 inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.hdr-account-dropdown a:hover,
.hdr-account-dropdown button:hover {
  background: #eef4fb;
}

.mobile-commerce-strip {
  display: none;
}

/* Phase 3: public PDP premium hierarchy */
body.detail-page .detail-info {
  position: relative;
}

body.detail-page .detail-campaign-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

body.detail-page .detail-campaign-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid rgba(232, 103, 14, .18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8, 23, 43, .96), rgba(16, 36, 62, .92));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(8, 23, 43, .16);
}

body.detail-page .detail-campaign-pill span {
  color: #ffb16f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

body.detail-page .detail-campaign-pill strong {
  font-size: 13px;
  font-weight: 900;
}

body.detail-page .detail-campaign-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 103, 14, .44);
}

body.detail-page .detail-commercial-intro {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(238,244,251,.84));
}

body.detail-page .detail-commercial-intro > div:first-child {
  display: grid;
  gap: 4px;
}

body.detail-page .detail-commercial-intro span {
  color: #e8670e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.detail-page .detail-commercial-intro p {
  margin: 0;
  color: #536783;
  font-size: 14px;
  line-height: 1.5;
}

body.detail-page .detail-highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.detail-page .detail-highlight-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(8, 23, 43, .06);
  color: #20324c;
  font-size: 11px;
  letter-spacing: .03em;
}

body.detail-page .detail-price-block {
  position: relative;
  overflow: hidden;
}

body.detail-page .detail-price-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #ff9b3d, #e8670e);
}

body.detail-page .detail-cart-block {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(8, 23, 43, .08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(8, 23, 43, .08);
}

body.detail-page .detail-cart-block .cart-row {
  gap: 10px;
}

body.detail-page .detail-cart-block .product-wa-btn {
  min-height: 54px;
  box-shadow: 0 18px 34px rgba(8, 23, 43, .18);
}

body.detail-page .detail-short-desc {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.6;
}

body.detail-page .detail-trust-row {
  margin-top: 18px;
}

body.catalog-page .catalog-trust-band {
  padding: 0 0 24px;
}

body.catalog-page .catalog-trust-grid,
body.detail-page .detail-confidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.catalog-page .catalog-trust-card,
body.detail-page .detail-confidence-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(8, 23, 43, .08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(8, 23, 43, .06);
}

body.catalog-page .catalog-trust-card strong,
body.detail-page .detail-confidence-card strong {
  color: #071421;
  font-size: 15px;
}

body.catalog-page .catalog-trust-card span,
body.detail-page .detail-confidence-card span {
  color: #56677b;
  font-size: 13px;
  line-height: 1.45;
}

body.catalog-page .catalog-trust-icon,
body.detail-page .detail-confidence-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #e8670e;
}

body.catalog-page .catalog-trust-icon svg,
body.detail-page .detail-confidence-icon svg {
  width: 24px;
  height: 24px;
}

body.detail-page .detail-confidence-band {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(8, 23, 43, .08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(232, 103, 14, .11), transparent 24%),
    #f7f9fc;
}

body.detail-page .detail-confidence-head {
  display: grid;
  gap: 4px;
}

body.detail-page .detail-confidence-head span {
  color: #e8670e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.detail-page .detail-confidence-head strong {
  color: #071421;
  font-size: clamp(18px, 2vw, 22px);
}

.product-quote-fill {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 6px;
  min-height: 26px;
  overflow: hidden;
}

.product-quote-fill span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4fb;
  color: #415672;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 992px) {
  body.detail-page .detail-info {
    align-self: start;
  }
}

@media (max-width: 767px) {
  body.catalog-page .catalog-trust-band {
    padding-bottom: 18px;
  }

  body.catalog-page .catalog-trust-grid,
  body.detail-page .detail-confidence-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  body.catalog-page .catalog-trust-card,
  body.detail-page .detail-confidence-card {
    flex: 0 0 min(78vw, 280px);
    min-height: 0;
    scroll-snap-align: start;
  }

  body.detail-page .detail-campaign-strip {
    gap: 8px;
    margin-bottom: 14px;
  }

  body.detail-page .detail-campaign-pill {
    min-height: 40px;
    width: 100%;
    justify-content: space-between;
  }

  body.detail-page .detail-commercial-intro {
    padding: 14px;
    gap: 12px;
  }

  body.detail-page .detail-commercial-intro p {
    font-size: 13px;
  }

  body.detail-page .detail-cart-block {
    padding: 14px;
  }

  body.detail-page .detail-cart-block .cart-row {
    grid-template-columns: 1fr !important;
  }

  body.detail-page .detail-cart-block .product-detail-qty,
  body.detail-page .detail-cart-block .btn-main-cart,
  body.detail-page .detail-cart-block .product-wa-btn,
  body.detail-page .detail-cart-block .btn-wishlist {
    width: 100%;
    grid-column: auto !important;
  }

  body.detail-page .detail-cart-block .btn-wishlist {
    min-height: 48px;
  }
}

.account-hero-card span {
  text-transform: none;
  letter-spacing: 0;
}

.account-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.account-auth-screen {
  max-width: 620px;
  margin: 0 auto;
}

.account-auth-card--focused {
  padding: 34px;
}

.account-auth-card,
.account-panel-card,
.account-sidebar {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
}

.account-auth-card {
  padding: 28px;
}

.account-auth-card h2,
.account-panel-card h2 {
  margin: 4px 0 8px;
  color: #071b36;
}

.account-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.account-form label {
  display: grid;
  gap: 7px;
  color: #10233f;
  font-weight: 800;
}

.account-form input,
.account-profile-form input,
.account-profile-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cad5e1;
  border-radius: 12px;
  padding: 11px 13px;
  color: #0b1b33;
  background: #fff;
}

.account-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-google-btn {
  min-height: 52px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #0b1b33;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.account-google-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  color: #fff;
  font: 900 16px/1 Arial, sans-serif;
}

.account-auth-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.account-muted-link {
  color: #536783;
  font-weight: 800;
  text-decoration: none;
}

.account-config-warning {
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  padding: 12px 14px;
  font-weight: 800;
}

.account-security-note,
.cart-auto-save-note {
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #dbe5f0;
  color: #536783;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.checkout-pickup-note,
.checkout-dispatch-advice {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(14, 116, 144, .20);
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fafc, #eef7f8);
  color: #123047;
  padding: 14px;
  line-height: 1.45;
}

.checkout-pickup-note {
  border-color: rgba(34, 197, 94, .28);
  background: #f0fdf4;
}

.checkout-pickup-note span {
  width: fit-content;
  border-radius: 999px;
  background: #15803d;
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-pickup-note strong {
  color: #052e16;
}

.checkout-pickup-note p {
  margin: 0;
  color: #166534;
  font-weight: 750;
}

.checkout-dispatch-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #0b1e34;
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
}

.checkout-dispatch-advice strong {
  color: #071b36;
}

.checkout-dispatch-advice p,
.checkout-dispatch-advice small {
  margin: 0;
  color: #536783;
  font-weight: 750;
}

.account-dashboard--portal {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.account-sidebar {
  padding: 16px;
  position: sticky;
  top: 104px;
}

.account-profile-mini {
  display: grid;
  gap: 6px;
  padding: 12px;
  margin-bottom: 8px;
}

.account-profile-mini span {
  color: #64748b;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.account-sidebar > a,
.account-sidebar button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #10233f;
  display: flex;
  padding: 11px 12px;
  text-align: left;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.account-sidebar > a.active,
.account-sidebar > a:hover,
.account-sidebar button:hover {
  background: #eef4fb;
  color: #f26a0a;
}

.account-panel-card {
  padding: 24px;
}

.account-order-list {
  display: grid;
  gap: 12px;
}

.account-order {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(100px, .7fr)) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.account-order span,
.account-order small,
.account-empty span {
  color: #64748b;
}

.account-empty {
  display: grid;
  gap: 10px;
  place-items: start;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 26px;
  background: #f8fafc;
}

.account-password-form {
  max-width: 640px;
}

@media (max-width: 900px) {
  .account-auth-grid,
  .account-dashboard--portal,
  .account-order {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .hdr-account-dropdown {
    right: auto;
    left: 0;
  }
}

@media (max-width: 560px) {
  .account-two-cols {
    grid-template-columns: 1fr;
  }

  .account-auth-card,
  .account-panel-card {
    padding: 18px;
  }
}

.cart-premium-layout,
.checkout-steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.checkout-empty-state--premium {
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 44px 24px;
}

.cart-disabled-state {
  text-align: left;
}

.cart-disabled-state .checkout-empty-icon,
.cart-disabled-state h2,
.cart-disabled-state > p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cart-disabled-products {
  width: min(100%, 680px);
  margin: 22px auto 6px;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .72);
}

.cart-disabled-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  color: var(--navy);
}

.cart-disabled-product + .cart-disabled-product {
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.cart-disabled-product strong {
  font-size: 14px;
  line-height: 1.35;
}

.cart-disabled-product span {
  flex: 0 0 auto;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
}

.cart-disabled-clear-form {
  display: contents;
}

.checkout-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.checkout-items--premium {
  display: grid;
  gap: 14px;
}

.checkout-item--premium {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.4fr) minmax(100px, .65fr) 92px minmax(100px, .65fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.checkout-item--premium.is-saving {
  border-color: rgba(245, 124, 0, .42);
  box-shadow: 0 12px 26px rgba(245, 124, 0, .12);
}

.checkout-item--premium.is-saved {
  border-color: rgba(22, 163, 74, .34);
}

.checkout-item--premium.is-error {
  border-color: rgba(220, 38, 38, .36);
  box-shadow: 0 12px 26px rgba(220, 38, 38, .10);
}

.checkout-item-image {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.checkout-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.checkout-remove-btn {
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
}

.checkout-qty input[readonly] {
  cursor: progress;
  opacity: .72;
}

.cart-update-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.cart-update-fallback {
  display: none;
}

.checkout-summary-secondary {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.checkout-summary-cta {
  width: 100%;
  margin-top: 16px;
  border-radius: 14px;
}

.checkout-card--steps {
  display: grid;
  gap: 18px;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.checkout-step-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
  padding: 22px;
}

.checkout-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f26a0a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 1000;
  font-size: 18px;
}

.checkout-step-content h2 {
  margin: 4px 0 18px;
  color: #071b36;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.payment-method-card {
  border: 1px solid #dbe5f0;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  background: #f8fafc;
}

.payment-method-card:has(input:checked) {
  border-color: #f26a0a;
  box-shadow: 0 0 0 4px rgba(242, 106, 10, .12);
  background: #fff;
}

.payment-method-card input {
  width: 18px;
  height: 18px;
}

.payment-method-card span {
  color: #64748b;
  line-height: 1.45;
}

.premium-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #f8fafc;
  padding: 13px 14px;
  color: #10233f;
  font-weight: 850;
  line-height: 1.35;
}

.premium-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #f26a0a;
}

.premium-check--compact {
  padding: 12px 13px;
}

.checkout-confirm-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.checkout-confirm-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.payment-result-card {
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 22px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.ecommerce-action-btn {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 1000;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ecommerce-action-btn:hover {
  transform: translateY(-1px);
}

.ecommerce-action-btn--primary {
  background: #18c46c;
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(24, 196, 108, .28);
}

.ecommerce-action-btn--light {
  background: #fff;
  border-color: #cbd5e1;
  color: #0b1b33 !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
}

.ecommerce-action-btn--dark {
  background: #071b36;
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(7, 27, 54, .24);
}

.ecommerce-action-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.payment-error-actions {
  justify-content: flex-start;
}

.checkout-pay-btn {
  width: 100%;
  margin-top: 12px;
  background: #18c46c;
  color: #fff !important;
}

.checkout-summary-card .checkout-summary-cta.ecommerce-action-btn--primary,
.checkout-card .checkout-pay-btn.ecommerce-action-btn--primary,
.payment-error-actions .ecommerce-action-btn--primary {
  background: #18c46c !important;
  border-color: #18c46c !important;
  color: #fff !important;
  min-height: 56px;
  font-size: 16px;
  box-shadow: 0 18px 34px rgba(24, 196, 108, .28) !important;
}

.checkout-summary-card .checkout-summary-cta.ecommerce-action-btn--primary:hover,
.checkout-card .checkout-pay-btn.ecommerce-action-btn--primary:hover,
.payment-error-actions .ecommerce-action-btn--primary:hover {
  background: #12a95c !important;
}

body.catalog-page .pcard-foot {
  grid-template-columns: minmax(0, 1fr) 42px !important;
  align-items: stretch !important;
}

body.catalog-page .pcard-foot .btn-add-cart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-family: var(--f-ui, Inter, Arial, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  background: #071b36 !important;
  box-shadow: 0 12px 24px rgba(7, 27, 54, .16) !important;
}

body.catalog-page .pcard-foot .btn-add-cart-pay {
  background: #18c46c !important;
  box-shadow: 0 12px 24px rgba(24, 196, 108, .2) !important;
}

body.catalog-page .pcard-foot .btn-micro {
  min-height: 42px !important;
}

@media (max-width: 640px) {
  body.catalog-page .pcard-foot {
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) 40px !important;
    gap: 6px !important;
  }

  body.catalog-page .pcard-foot .btn-add-cart {
    min-height: 40px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}

.checkout-client-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: #b45309;
  font-weight: 900;
}

.account-client-message {
  min-height: 20px;
  color: #b45309;
  font-weight: 900;
}

.payment-method-logo {
  width: 96px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
  background: #fff;
}

.payment-method-card small {
  color: #475569;
  font-weight: 800;
}

.account-order-actions {
  display: grid;
  gap: 8px;
}

.account-order-actions form {
  margin: 0;
}

.account-order-actions button,
.account-order-actions a {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1024px) {
  .cart-premium-layout,
  .checkout-steps-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 122px;
  }

  .site-header .mobile-header {
    height: 122px;
    justify-content: flex-start;
  }

  .site-header .mobile-search-row {
    top: 122px;
  }

  .mobile-commerce-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 12px 10px;
    background: #08172b;
  }

  .mobile-commerce-strip a {
    min-height: 54px;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    background: #fff;
    color: #0b1b33;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.08;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  }

  .mobile-commerce-strip svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-commerce-strip__accent {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
    color: #9a3412 !important;
  }

  .mobile-shortcut-card[href*="calculador-generador"] {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
  }

  .hdr-account-menu {
    position: static;
  }

  .hdr-account-trigger {
    min-height: 42px;
    padding: 0 10px;
  }

  .hdr-account-dropdown {
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100dvh - 90px);
    overflow: auto;
    border-radius: 18px;
    z-index: 10050;
  }

  .account-auth-grid,
  .account-dashboard--portal {
    gap: 16px;
  }

  .account-auth-card,
  .account-panel-card,
  .account-sidebar {
    border-radius: 18px;
  }

  .account-auth-card h2,
  .account-panel-card h2,
  .checkout-step-content h2 {
    font-size: 24px;
    line-height: 1.12;
  }

  .account-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    scrollbar-width: thin;
  }

  .account-profile-mini {
    min-width: 190px;
  }

  .account-sidebar > a,
  .account-sidebar button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .cart-premium-layout,
  .checkout-steps-layout {
    gap: 16px;
  }

  .checkout-empty-state--premium {
    min-height: 320px;
    padding: 30px 16px;
    border-radius: 20px;
  }

  .checkout-empty-actions,
  .payment-error-actions,
  .cart-update-row {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-empty-actions .btn-primary,
  .checkout-empty-actions .btn-secondary,
  .checkout-empty-actions .ecommerce-action-btn,
  .payment-error-actions .ecommerce-action-btn {
    width: 100%;
  }

  .checkout-item--premium {
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .checkout-item-image {
    width: 76px;
    border-radius: 14px;
  }

  .checkout-item-price,
  .checkout-qty,
  .checkout-item-total,
  .checkout-remove-btn {
    grid-column: 2;
  }

  .checkout-item-price,
  .checkout-item-total {
    font-size: 15px;
  }

  .checkout-qty input {
    max-width: 92px;
    min-height: 42px;
  }

  .checkout-step-card {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
  }

  .checkout-step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .payment-method-grid {
    grid-template-columns: 1fr;
  }

  .payment-method-card {
    min-height: 84px;
  }

  .checkout-confirm-list div {
    display: grid;
    gap: 4px;
  }

  .ecommerce-action-btn,
  .checkout-pay-btn {
    min-height: 50px;
    border-radius: 14px;
    width: 100%;
  }

  .payment-result-card {
    padding: 20px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .mobile-commerce-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mobile-commerce-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-commerce-strip a {
    flex: 0 0 112px;
    min-height: 50px;
    scroll-snap-align: start;
  }

  .account-auth-card,
  .account-panel-card,
  .checkout-step-card,
  .payment-result-card {
    padding: 16px;
  }

  .account-form input,
  .account-profile-form input,
  .account-profile-form select,
  .account-profile-form textarea,
  .premium-field input,
  .premium-field select,
  .premium-field textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .checkout-item--premium {
    grid-template-columns: 68px 1fr;
  }

  .checkout-item-image {
    width: 68px;
  }

  .checkout-step-content h2,
  .account-auth-card h2,
  .account-panel-card h2 {
    font-size: 22px;
  }
}

/* Ecommerce product actions and mobile commerce navigation */
.pdp-commerce-actions {
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.pdp-commerce-qty,
.product-detail-qty,
.card-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #d8e2ee;
  border-radius: 14px;
  background: #fff;
  color: #0a1a2f;
  font-size: 12px;
  font-weight: 800;
}

.pdp-commerce-qty input,
.product-detail-qty input,
.card-qty-control input {
  width: 58px;
  min-height: 34px;
  border: 0;
  border-left: 1px solid #d8e2ee;
  padding-left: 10px;
  font: inherit;
  text-align: center;
  background: transparent;
  color: #06172d;
}

.pdp-commerce-buttons,
.home-card-commerce-actions {
  display: flex;
  flex: 1 1 260px;
  gap: 10px;
}

.pdp-commerce-message,
.product-detail-qty-message,
.card-qty-message {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #57708e;
  font-size: 12px;
  font-weight: 800;
}

.card-commerce-inline {
  display: grid;
  grid-template-columns: minmax(82px, .8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  grid-column: 1 / -1;
  align-items: stretch;
  min-width: 0;
}

.card-commerce-inline .card-qty-message {
  grid-column: 1 / -1;
}

.pcard-foot .card-qty-control,
.card-footer .card-qty-control {
  min-height: 40px;
  padding: 4px 8px;
}

.pcard-foot .card-qty-control span,
.card-footer .card-qty-control span {
  display: none;
}

.pcard-foot .card-qty-control input,
.card-footer .card-qty-control input {
  width: 46px;
  border-left: 0;
  padding-left: 0;
}

.btn-add-cart--home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 14px;
  background: #071a31;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.pcard-foot .btn-add-cart.is-loading,
.card-footer .btn-add-cart.is-loading {
  opacity: .78;
  transform: translateY(1px) scale(.98);
  pointer-events: none;
}

.pcard-foot .btn-add-cart:active,
.card-footer .btn-add-cart:active {
  transform: translateY(1px) scale(.98);
}

.fav-item-quote-note {
  display: block;
  margin-top: 3px;
  color: #8a5b18;
  font-size: 11px;
  font-weight: 900;
}

.btn-add-cart-pay.btn-add-cart--home {
  background: #f26a0a;
}

body.catalog-page .pcard-foot,
body.detail-page .related-grid .pcard-foot {
  grid-template-columns: minmax(0, 1fr) 42px !important;
  gap: 8px !important;
}

body.catalog-page .pcard-foot .card-commerce-inline,
body.detail-page .related-grid .pcard-foot .card-commerce-inline {
  grid-column: 1 / -1;
}

body.catalog-page .pcard-foot .btn-micro,
body.detail-page .related-grid .pcard-foot .btn-micro {
  grid-column: 2 / 3;
  grid-row: 2;
  justify-self: stretch;
}

body.catalog-page .pcard-foot .card-qty-message,
body.detail-page .related-grid .pcard-foot .card-qty-message {
  grid-column: 1 / 2;
  grid-row: 2;
  align-self: center;
}

body.catalog-page .pcard-foot .btn-add-cart,
body.detail-page .related-grid .pcard-foot .btn-add-cart {
  min-height: 42px !important;
  height: auto !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

body.catalog-page .pcard-foot .btn-add-cart-pay,
body.detail-page .related-grid .pcard-foot .btn-add-cart-pay {
  background: #f26a0a !important;
  box-shadow: 0 12px 24px rgba(242, 106, 10, .2) !important;
}

@media (max-width: 640px) {
  body.catalog-page .pcard-foot,
  body.detail-page .related-grid .pcard-foot {
    grid-template-columns: minmax(0, 1fr) 40px !important;
    gap: 6px !important;
  }

  body.catalog-page .pcard-foot .btn-add-cart,
  body.detail-page .related-grid .pcard-foot .btn-add-cart {
    min-height: 40px !important;
    padding: 0 7px !important;
    font-size: 12px !important;
  }

  body.catalog-page .card-commerce-inline,
  body.detail-page .related-grid .card-commerce-inline {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: repeat(2, 38px);
    gap: 6px;
  }

  body.catalog-page .card-commerce-inline .card-qty-control,
  body.detail-page .related-grid .card-commerce-inline .card-qty-control {
    grid-row: 1 / 3;
    min-height: 100%;
  }

  body.catalog-page .card-commerce-inline .card-qty-control input,
  body.detail-page .related-grid .card-commerce-inline .card-qty-control input {
    width: 42px;
    font-size: 13px;
  }

  body.catalog-page .card-commerce-inline .btn-add-cart,
  body.detail-page .related-grid .card-commerce-inline .btn-add-cart {
    min-height: 38px !important;
    width: 100% !important;
    padding: 0 6px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 768px) {
  .mobile-commerce-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .mobile-commerce-strip {
    gap: 6px;
    padding: 5px 0 6px !important;
  }

  .mobile-commerce-strip a {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
    padding: 4px 5px !important;
    gap: 3px !important;
    font-size: 9.5px !important;
    line-height: 1.1;
  }

  .mobile-commerce-strip svg {
    width: 13px !important;
    height: 13px !important;
  }

  .mobile-commerce-badge {
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
  }

  .pdp-commerce-buttons,
  .home-card-commerce-actions {
    flex-basis: 100%;
  }

  .pdp-commerce-actions {
    grid-template-columns: 1fr;
  }

  .pdp-commerce-btn {
    min-height: 46px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .mobile-commerce-strip {
    padding-bottom: 5px !important;
  }

  .mobile-commerce-strip a {
    flex: 1 1 auto !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 4px 4px !important;
    font-size: 9px !important;
  }

  .mobile-commerce-strip a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-commerce-inline {
    grid-template-columns: 52px 1fr 1fr;
  }
}

/* Product modal commerce polish */
.pdp-actions-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.pdp-commerce-actions {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 8px !important;
}

.pdp-commerce-actions[hidden] {
  display: none !important;
}

.pdp-commerce-qty {
  min-height: 42px !important;
  padding: 5px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.pdp-commerce-qty input {
  width: 42px !important;
  min-height: 30px !important;
}

.pdp-commerce-buttons {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 8px !important;
}

.pdp-commerce-btn {
  min-height: 42px !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.pdp-commerce-btn--pay {
  background: #f26a0a !important;
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(242, 106, 10, .22) !important;
}

.pdp-actions-row .btn-pdp-wa {
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
}

.pdp-fav-btn-action {
  flex: 0 0 52px !important;
  width: 52px !important;
  min-width: 52px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 13px !important;
  overflow: visible !important;
}

.pdp-fav-btn-action span,
.pdp-fav-btn-action .pdp-fav-label {
  display: none !important;
}

.pdp-fav-btn-action svg {
  width: 22px !important;
  height: 22px !important;
}

@media (max-width: 640px) {
  .pdp-actions-row {
    grid-template-columns: minmax(0, 1fr) 52px !important;
  }

  .pdp-commerce-actions {
    grid-template-columns: 1fr !important;
  }

  .pdp-commerce-buttons {
    grid-template-columns: 1fr !important;
  }

  .pdp-commerce-btn {
    justify-content: center !important;
    min-height: 44px !important;
  }
}

/* Mobile PDP final authority: compact premium CTA rail. */
@media (max-width: 767px) {
  .pdp-modal {
    max-width: calc(100vw - 16px) !important;
  }

  .pdp-info {
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .pdp-actions-row {
    grid-template-columns: minmax(0, 1fr) 52px !important;
    gap: 8px !important;
    padding: 8px !important;
    margin-top: 8px !important;
    border-radius: 14px !important;
  }

  .pdp-commerce-actions {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .pdp-commerce-qty {
    min-height: 42px !important;
    height: 42px !important;
    align-self: stretch !important;
  }

  .pdp-commerce-qty span {
    font-size: 10px !important;
  }

  .pdp-commerce-qty input {
    width: 34px !important;
    min-height: 28px !important;
    font-size: 14px !important;
  }

  .pdp-commerce-buttons {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .pdp-commerce-btn {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    border-radius: 11px !important;
  }

  .pdp-commerce-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  .pdp-actions-row .btn-pdp-wa {
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .pdp-fav-btn-action {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    font-size: 0 !important;
    border-radius: 13px !important;
  }

  .pdp-fav-btn-action .pdp-fav-label {
    display: none !important;
  }

  .pdp-fav-btn-action svg {
    width: 21px !important;
    height: 21px !important;
  }
}

@media (max-width: 420px) {
  .mobile-commerce-strip {
    height: auto !important;
    gap: 5px !important;
    padding: 4px 0 5px !important;
  }

  .mobile-commerce-strip a {
    min-height: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    padding: 3px 4px !important;
    font-size: 8.5px !important;
  }

  .mobile-commerce-strip svg {
    width: 12px !important;
    height: 12px !important;
  }

  .site-footer .footer-logo-strip {
    margin-top: 16px !important;
    gap: 10px !important;
  }

  .site-footer .footer-logo-block {
    padding: 11px !important;
  }

  .site-footer .footer-logo-list {
    gap: 6px !important;
  }

  .site-footer .footer-logo-pill {
    height: 40px !important;
    padding: 5px 8px !important;
  }

  .site-footer .footer-logo-pill img {
    max-width: min(92%, 118px) !important;
    max-height: 25px !important;
  }

  .site-footer .footer-online-note {
    margin-top: 12px !important;
    padding: 9px 12px !important;
  }

  .site-footer .footer-online-note strong {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
}

/* Mobile commerce shortcuts: premium final authority. */
@media (max-width: 768px) {
  .mobile-commerce-strip {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 7px 0 9px !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .mobile-commerce-strip a {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 16px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: start !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 7px 8px !important;
    gap: 6px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(148, 163, 184, .34) !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    color: #0b1b33 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08) !important;
    scroll-snap-align: unset !important;
    flex: unset !important;
  }

  .mobile-commerce-strip svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
  }

  .mobile-commerce-strip a span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10.5px !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
  }

  .mobile-commerce-strip__accent {
    background: linear-gradient(180deg, #fff7ed, #ffedd5) !important;
    border-color: rgba(251, 146, 60, .42) !important;
    color: #9a3412 !important;
  }

  .mobile-commerce-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    border: 2px solid #ffffff !important;
    background: #f26a0a !important;
    color: #ffffff !important;
    font-size: 10px !important;
    line-height: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 14px rgba(242, 106, 10, .32) !important;
  }

  .mobile-commerce-badge[hidden] {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .mobile-commerce-strip {
    gap: 6px !important;
  }

  .mobile-commerce-strip a {
    grid-template-columns: 14px minmax(0, 1fr) !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 7px 6px !important;
    gap: 5px !important;
  }

  .mobile-commerce-strip svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
  }

  .mobile-commerce-strip a span {
    font-size: 9.8px !important;
  }
}

/* Mobile PDP gallery authority: keep quick view and image viewer inside viewport. */
@media (max-width: 767px) {
  .pdp-overlay.open {
    width: 100vw !important;
    max-width: 100vw !important;
    inset: 0 !important;
    overflow: hidden !important;
    padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
  }

  .pdp-modal {
    width: min(100%, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .pdp-overlay.open .pdp-modal {
    transform: none !important;
  }

  .pdp-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .pdp-gallery {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .pdp-main-img {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: clamp(150px, 30dvh, 230px) !important;
    min-height: 150px !important;
    max-height: 230px !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    padding: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .pdp-main-img img,
  #pdpMainImg {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    padding: 12px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .pdp-image-zoom-hint {
    right: 10px !important;
    bottom: 10px !important;
    left: auto !important;
    max-width: calc(100% - 20px) !important;
  }

  .pdp-image-viewer.open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 10px !important;
    overflow: hidden !important;
    padding: calc(10px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left)) !important;
    box-sizing: border-box !important;
  }

  .pdp-image-viewer-head {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 0 48px 0 0 !important;
    box-sizing: border-box !important;
  }

  .pdp-image-viewer-title {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .pdp-image-viewer-close {
    top: calc(10px + env(safe-area-inset-top)) !important;
    right: calc(10px + env(safe-area-inset-right)) !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    z-index: 6600 !important;
  }

  .pdp-image-viewer-stage {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding: 0 52px !important;
    box-sizing: border-box !important;
    touch-action: none !important;
    overscroll-behavior: contain !important;
  }

  .pdp-image-viewer-img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 170px) !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
  }

  .pdp-image-nav {
    position: absolute !important;
    top: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
  }

  .pdp-image-nav-prev {
    left: 8px !important;
    right: auto !important;
  }

  .pdp-image-nav-next {
    right: 8px !important;
    left: auto !important;
  }

  .pdp-image-viewer-tools {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .pdp-image-tool {
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .pdp-image-viewer-thumbs {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .pdp-main-img {
    height: clamp(142px, 28dvh, 206px) !important;
    min-height: 142px !important;
  }

  .pdp-image-viewer-stage {
    padding-inline: 46px !important;
  }

  .pdp-image-nav {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .pdp-image-viewer-img {
    max-height: calc(100dvh - 158px) !important;
  }

  .pdp-image-tool {
    height: 36px !important;
    font-size: 11px !important;
  }
}

/* Fase 3: autoridad final mobile para header, quick view y visor de imagen. */
@media (max-width: 900px) {
  .site-header {
    transition: box-shadow .18s ease, background-color .18s ease;
  }

  .site-header .mobile-header {
    display: block !important;
    height: auto !important;
    min-height: 58px !important;
    padding: max(6px, env(safe-area-inset-top)) 0 6px !important;
    background: #08172b !important;
    transition: padding .2s ease, min-height .2s ease;
  }

  .site-header .mobile-header-row {
    height: 52px !important;
    min-height: 52px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .site-header .mobile-logo-wrap {
    justify-self: center !important;
    max-width: min(156px, 44vw) !important;
    transition: transform .2s ease, max-width .2s ease;
  }

  .site-header .mobile-logo-full {
    max-height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .site-header .mobile-icon-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
  }

  .site-header .mobile-search-row {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none !important;
    transition: max-height .2s ease, opacity .2s ease, padding .2s ease;
  }

  body.mobile-search-open .site-header .mobile-search-row,
  .site-header .mobile-search-row.is-open {
    max-height: 66px !important;
    opacity: 1 !important;
    padding: 6px 0 4px !important;
    pointer-events: auto !important;
  }

  .site-header .mobile-commerce-strip {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    height: auto !important;
    max-height: 44px !important;
    padding: 4px 0 0 !important;
    overflow: hidden !important;
    transition: max-height .2s ease, opacity .18s ease, padding .2s ease, transform .2s ease;
  }

  .site-header .mobile-commerce-strip a {
    display: grid !important;
    grid-template-columns: 15px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 6px !important;
    border-radius: 10px !important;
  }

  .site-header .mobile-commerce-strip svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
  }

  .site-header .mobile-commerce-strip a span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10.5px !important;
    line-height: 1.05 !important;
  }

  .site-header.mobile-compact .mobile-header {
    min-height: 48px !important;
    padding-top: max(4px, env(safe-area-inset-top)) !important;
    padding-bottom: 4px !important;
  }

  .site-header.mobile-compact .mobile-header-row {
    height: 44px !important;
    min-height: 44px !important;
  }

  .site-header.mobile-compact .mobile-logo-wrap {
    max-width: min(132px, 38vw) !important;
    transform: scale(.94) !important;
    transform-origin: center center !important;
  }

  .site-header.mobile-compact .mobile-logo-full {
    max-height: 32px !important;
  }

  .site-header.mobile-compact .mobile-icon-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .site-header.mobile-compact .mobile-commerce-strip {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    transform: translateY(-4px) !important;
    pointer-events: none !important;
  }
}

@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body.pdp-open,
  body.pdp-open #page,
  body.pdp-open .site-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .pdp-overlay.open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: var(--app-height, 100svh) !important;
    max-height: var(--app-height, 100svh) !important;
    padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .pdp-modal {
    width: 100% !important;
    max-width: calc(100vw - 16px) !important;
    height: calc(var(--app-height, 100svh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    max-height: calc(var(--app-height, 100svh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
  }

  .pdp-inner {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .pdp-gallery {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    padding: 12px 12px 8px !important;
    border-radius: 18px 18px 0 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .pdp-main-img {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(170px, 31svh, 250px) !important;
    min-height: 170px !important;
    max-height: 250px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    transform: none !important;
  }

  .pdp-main-img img,
  #pdpMainImg {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    transform: none !important;
  }

  .pdp-inner:has(.pdp-info.is-quote-mode) .pdp-gallery {
    display: flex !important;
  }

  .pdp-info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .pdp-image-viewer.open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: var(--app-height, 100svh) !important;
    max-height: var(--app-height, 100svh) !important;
    padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    overscroll-behavior: contain !important;
  }

  .pdp-image-viewer-head {
    min-height: 44px !important;
    height: 44px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 50px 0 0 !important;
    box-sizing: border-box !important;
  }

  .pdp-image-viewer-close {
    position: fixed !important;
    top: calc(10px + env(safe-area-inset-top)) !important;
    right: calc(10px + env(safe-area-inset-right)) !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 8 !important;
  }

  .pdp-image-viewer-stage {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: calc(var(--app-height, 100svh) - 142px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    max-height: calc(var(--app-height, 100svh) - 142px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    padding: 0 46px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    touch-action: pan-y pinch-zoom !important;
  }

  .pdp-image-viewer-img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    will-change: transform !important;
    transition: transform .18s ease !important;
  }

  .pdp-image-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    z-index: 5 !important;
  }

  .pdp-image-nav-prev {
    left: 6px !important;
  }

  .pdp-image-nav-next {
    right: 6px !important;
  }

  .pdp-image-viewer-tools {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding-top: 8px !important;
    box-sizing: border-box !important;
  }

  .pdp-image-tool {
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 6px !important;
    font-size: 11.5px !important;
  }
}

/* Fase 4: checkout premium guiado. */
.checkout-accordion.checkout-card--steps {
  gap: 9px !important;
  padding: 12px !important;
}

.checkout-accordion .checkout-step-card {
  display: block !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05) !important;
}

.checkout-step-header {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 0;
  background: transparent;
  color: #071b36;
  text-align: left;
  cursor: pointer;
}

.checkout-step-header > span:last-child {
  display: grid;
  gap: 3px;
}

.checkout-step-header strong {
  font-size: 15px;
  line-height: 1.15;
}

.checkout-step-header small {
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
}

.checkout-accordion .checkout-step-number {
  width: 32px !important;
  height: 32px !important;
  font-size: 13px !important;
  background: #e8eef6 !important;
  color: #0b1e34 !important;
  box-shadow: none !important;
}

.checkout-accordion .checkout-step-card.is-active .checkout-step-number {
  background: linear-gradient(135deg, #f26a0a, #ff9a3c) !important;
  color: #fff !important;
}

.checkout-accordion .checkout-step-card.is-complete .checkout-step-number {
  background: #18c46c !important;
  color: #fff !important;
}

.checkout-accordion .checkout-step-content {
  padding: 0 13px 13px !important;
}

.checkout-accordion .checkout-step-content[hidden] {
  display: none !important;
}

.checkout-step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin: 11px -13px -13px;
  padding: 10px 13px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, .06);
}

.checkout-next-btn,
.checkout-back-btn {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.checkout-next-btn {
  background: #0b1e34;
  color: #fff;
}

.checkout-back-btn {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, .34);
  color: #334155;
}

.checkout-client-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: #be123c;
  font-weight: 800;
}

.checkout-review-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  background: #f8fafc;
}

.checkout-review-head,
.checkout-review-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-review-head span,
.checkout-review-total span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-review-head strong,
.checkout-review-total strong {
  color: #071b36;
  font-size: 18px;
  font-weight: 950;
}

.checkout-edit-cart-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 10px;
  color: #0b1e34;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.checkout-review-line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
  background: #fff;
}

.checkout-review-line img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: #eef3f8;
}

.checkout-review-line span {
  display: block;
  color: #071b36;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.checkout-review-line small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-weight: 800;
  font-size: 11px;
}

.checkout-review-line strong {
  color: #071b36;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.checkout-review-total {
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, .24);
}

.checkout-review-card p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.checkout-step-card.has-error {
  border-color: rgba(220, 38, 38, .34) !important;
}

.checkout-doc-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-doc-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 12px;
  background: #f8fafc;
  font-weight: 900;
  cursor: pointer;
}

.checkout-doc-toggle label:has(input:checked) {
  border-color: rgba(242, 106, 10, .55);
  background: #fff7ed;
  color: #9a3412;
  box-shadow: 0 0 0 4px rgba(242, 106, 10, .10);
}

.checkout-boleta-note,
.checkout-billing-fields {
  transition: opacity .18s ease, transform .18s ease;
}

.checkout-boleta-note[hidden],
.checkout-billing-fields[hidden] {
  display: none !important;
}

.checkout-payment-groups {
  display: grid;
  gap: 10px;
}

.checkout-payment-group {
  display: grid;
  gap: 10px;
}

.checkout-payment-group-title {
  display: grid;
  gap: 3px;
}

.checkout-payment-group-title strong {
  color: #071b36;
  font-size: 15px;
}

.checkout-payment-group-title span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.payment-method-card {
  min-height: 82px;
}

@media (min-width: 900px) {
  .checkout-page-shell.section {
    padding-top: 28px !important;
  }

  .checkout-hero {
    margin-bottom: 10px !important;
  }

  .checkout-hero h1 {
    font-size: 40px !important;
  }

  .checkout-hero p {
    font-size: 13px !important;
  }

  .checkout-hero-total {
    min-width: 168px !important;
    padding: 11px 13px !important;
  }

  .checkout-hero-total strong {
    font-size: 21px !important;
  }

  .checkout-steps-layout {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 20px !important;
  }

  .checkout-accordion .premium-form-grid {
    gap: 10px !important;
  }

  .checkout-accordion .premium-field label {
    margin-bottom: 5px !important;
    font-size: 12px !important;
  }

  .checkout-accordion input,
  .checkout-accordion select,
  .checkout-accordion textarea {
    min-height: 40px !important;
  }

  .checkout-summary-card {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .checkout-summary-row,
  .checkout-summary-total {
    padding: 9px 0 !important;
  }

  .checkout-summary-total strong {
    font-size: 24px !important;
  }
}

.payment-method-card strong em {
  font-style: normal;
  color: #9a3412;
  font-size: 12px;
}

.checkout-summary {
  align-self: start;
}

@media (max-width: 767px) {
  .checkout-accordion .checkout-step-card {
    border-radius: 12px !important;
  }

  .checkout-step-header {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
  }

  .checkout-accordion .checkout-step-number {
    width: 32px !important;
    height: 32px !important;
  }

  .checkout-accordion .checkout-step-content {
    padding: 0 14px 14px !important;
  }

  .checkout-step-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin: 10px -14px -14px;
    padding: 10px 14px;
  }

  .checkout-review-head,
  .checkout-review-total {
    align-items: flex-start;
  }

  .checkout-review-head {
    display: grid;
  }

  .checkout-edit-cart-link {
    justify-content: center;
  }

  .checkout-review-line {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .checkout-review-line img {
    width: 48px;
    height: 48px;
  }

  .checkout-review-line strong {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .checkout-next-btn,
  .checkout-back-btn,
  .checkout-pay-btn {
    width: 100%;
    justify-content: center;
  }

  .checkout-doc-toggle {
    grid-template-columns: 1fr;
  }
}

/* Fase 9: media responsive authority for mobile PDP and lightbox. */
.gallery-main,
.pdp-main-img,
.pcard-img,
.card-img-wrap {
  contain: layout paint;
}

.gallery-main-image,
.gallery-thumb-image,
.pdp-main-img img,
#pdpMainImg,
.pdp-thumb img,
.pdp-image-viewer-img {
  object-fit: contain !important;
  object-position: center center !important;
}

.gallery-main {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: clamp(10px, 2vw, 20px);
  box-sizing: border-box;
}

.gallery-thumb,
.pdp-thumb,
.card-image-thumb {
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
}

.gallery-thumb-image,
.pdp-thumb img,
.card-image-thumb img {
  width: 100%;
  height: 100%;
  padding: 4px;
  box-sizing: border-box;
}

.pdp-image-viewer {
  overscroll-behavior: contain;
}

.pdp-image-viewer-stage {
  isolation: isolate;
}

.pdp-image-viewer-img {
  transform-origin: center center;
}

@media (max-width: 767px) {
  .detail-gallery {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .gallery-main {
    width: 100%;
    min-height: 0;
    max-height: min(74vw, 360px);
  }

  .gallery-thumbs,
  .pdp-thumbs {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .gallery-thumb,
  .pdp-thumb {
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
  }

  .pdp-main-img {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(64vw, 250px) !important;
  }

  .pdp-main-img img,
  #pdpMainImg {
    width: 100% !important;
    height: 100% !important;
    padding: 10px !important;
  }

  .pdp-image-viewer.open {
    display: grid !important;
    grid-template-rows: 44px minmax(0, 1fr) auto !important;
  }

  .pdp-image-viewer-stage {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding-inline: clamp(40px, 12vw, 54px) !important;
    touch-action: pan-y pinch-zoom !important;
  }

  .pdp-image-viewer-img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(var(--app-height, 100svh) - 150px) !important;
  }

  .pdp-image-nav {
    opacity: .96;
  }
}

/* Final authority: product card cart buttons must remain visible on hover/focus. */
.product-card .card-footer .btn-add-cart,
body.catalog-page .pcard-foot .btn-add-cart,
body.detail-page .related-grid .pcard-foot .btn-add-cart {
  position: relative !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
  text-decoration: none !important;
  pointer-events: auto !important;
}

.product-card:hover .card-footer .btn-add-cart,
.product-card .card-footer .btn-add-cart:hover,
.product-card .card-footer .btn-add-cart:focus-visible,
body.catalog-page .pcard:hover .pcard-foot .btn-add-cart,
body.catalog-page .pcard-foot .btn-add-cart:hover,
body.catalog-page .pcard-foot .btn-add-cart:focus-visible,
body.detail-page .related-grid .pcard:hover .pcard-foot .btn-add-cart,
body.detail-page .related-grid .pcard-foot .btn-add-cart:hover,
body.detail-page .related-grid .pcard-foot .btn-add-cart:focus-visible {
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
  background: #071b36 !important;
  border-color: #071b36 !important;
  transform: none !important;
}

.product-card:hover .card-footer .btn-add-cart-pay,
.product-card .card-footer .btn-add-cart-pay:hover,
.product-card .card-footer .btn-add-cart-pay:focus-visible,
body.catalog-page .pcard:hover .pcard-foot .btn-add-cart-pay,
body.catalog-page .pcard-foot .btn-add-cart-pay:hover,
body.catalog-page .pcard-foot .btn-add-cart-pay:focus-visible,
body.detail-page .related-grid .pcard:hover .pcard-foot .btn-add-cart-pay,
body.detail-page .related-grid .pcard-foot .btn-add-cart-pay:hover,
body.detail-page .related-grid .pcard-foot .btn-add-cart-pay:focus-visible {
  color: #fff !important;
  background: #f26a0a !important;
  border-color: #f26a0a !important;
}

/* Commercial price clarity in product cards and checkout. */
.card-price-stack,
.pcard-price-row {
  display: grid !important;
  gap: 3px !important;
}

.card-price-label,
.pcard-price-label {
  color: #536986 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

.card-price-old,
.pcard-price-old {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #8da0bb !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.card-price-old span,
.pcard-price-old span {
  color: #6b7f9a !important;
  text-decoration: none !important;
}

.card-price-old:not(span),
.pcard-price-old:not(span) {
  text-decoration: line-through;
}

.product-delivery-benefits {
  display: grid !important;
  gap: 6px !important;
  margin-top: 10px !important;
}

.product-delivery-pill {
  width: max-content !important;
  max-width: 100% !important;
  border-radius: 8px !important;
  padding: 6px 9px !important;
  white-space: normal !important;
  line-height: 1.18 !important;
}

.product-delivery-pill--shipping {
  background: #ecfdf5 !important;
  color: #047857 !important;
}

.product-delivery-pill--pickup {
  background: #fff7ed !important;
  color: #b45309 !important;
}

.checkout-item-pickup-price {
  display: block;
  margin-top: 4px;
  color: #b45309;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

/* Final product card composition: compact, even-height commerce cards. */
:root {
  --sedmac-navy: #071b36;
  --sedmac-navy-soft: #0d2747;
  --sedmac-orange: #f26a16;
  --sedmac-orange-dark: #c94f08;
  --sedmac-home-product-card-height: 680px;
}

.prod-grid,
.product-grid,
.related-grid,
body.catalog-page .prod-grid {
  align-items: stretch !important;
}

.product-card,
.pcard,
body.catalog-page .pcard,
body.detail-page .related-grid .pcard {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}

body.home-page .home-dynamic .slider-track,
body.home-page .home-dynamic .product-grid {
  align-items: stretch !important;
}

body.home-page .home-dynamic .slider-track .product-card,
body.home-page .home-dynamic .product-grid .product-card {
  height: var(--sedmac-home-product-card-height) !important;
  min-height: var(--sedmac-home-product-card-height) !important;
  max-height: var(--sedmac-home-product-card-height) !important;
}

.product-card .card-img-wrap,
body.catalog-page .pcard .pcard-img,
body.detail-page .related-grid .pcard .pcard-img {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
}

.product-card .card-img-wrap > img,
body.catalog-page .pcard .pcard-img > img,
body.detail-page .related-grid .pcard .pcard-img > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: clamp(14px, 5%, 22px) !important;
  transform: none !important;
}

.product-card:hover .card-img-wrap > img,
body.catalog-page .pcard:hover .pcard-img > img,
body.detail-page .related-grid .pcard:hover .pcard-img > img {
  transform: none !important;
}

.product-card .card-badge,
body.catalog-page .pcard .pcard-tags,
body.detail-page .related-grid .pcard .pcard-tags {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 5 !important;
}

.product-card .badge-offer,
body.catalog-page .pcard .ptag-sale,
body.detail-page .related-grid .pcard .ptag-sale {
  min-height: 0 !important;
  padding: 3px 9px !important;
  border: .5px solid #F09595 !important;
  border-radius: 999px !important;
  background: #FCEBEB !important;
  color: #791F1F !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  line-height: 1.35 !important;
}

body.catalog-page .pcard .ptag-new,
body.detail-page .related-grid .pcard .ptag-new {
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: var(--sedmac-navy) !important;
  color: #fff !important;
  font-size: 10px !important;
}

body.catalog-page .pcard .ptag-campaign,
body.detail-page .related-grid .pcard .ptag-campaign {
  padding: 3px 9px !important;
  border: .5px solid rgba(242, 106, 22, .42) !important;
  border-radius: 999px !important;
  background: #fff4e8 !important;
  color: #8a3b06 !important;
  font-size: 10px !important;
}

.product-card .card-fav,
body.catalog-page .pcard .pcard-overlay,
body.detail-page .related-grid .pcard .pcard-overlay {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
}

body.catalog-page .pcard .pcard-overlay,
body.detail-page .related-grid .pcard .pcard-overlay {
  width: 30px !important;
  height: 30px !important;
  inset: auto 10px auto auto !important;
  display: block !important;
  opacity: 1 !important;
  background: transparent !important;
}

body.catalog-page .pcard .pcard-overlay .pcard-ov-btn:first-child,
body.detail-page .related-grid .pcard .pcard-overlay .pcard-ov-btn:first-child {
  display: none !important;
}

body.catalog-page .pcard .pcard-overlay .pcard-ov-btn,
body.detail-page .related-grid .pcard .pcard-overlay .pcard-ov-btn,
.product-card .card-fav {
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: .5px solid rgba(148, 163, 184, .42) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08) !important;
}

.product-card .card-body,
body.catalog-page .pcard .pcard-body,
body.detail-page .related-grid .pcard .pcard-body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 14px 16px !important;
}

.card-meta,
.pcard-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.card-brand,
.pcard-brand {
  min-width: 0 !important;
  margin: 0 !important;
  color: #6b7280 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

.product-card-divider {
  width: 100%;
  height: 1px;
  margin: 2px 0 0;
  border: 0;
  background: rgba(148, 163, 184, .28);
}

.card-meta .card-sku,
.pcard-meta .pcard-sku {
  max-width: 48% !important;
  overflow: hidden !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #8da0bb !important;
  font-size: 10px !important;
  font-weight: 750 !important;
}

.card-name,
.pcard-name {
  display: -webkit-box !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 5px 0 12px !important;
  overflow: hidden !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.card-price-row,
.pcard-price-row {
  min-height: 78px !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.card-price,
.pcard-price {
  color: var(--sedmac-orange-dark) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
  line-height: 1 !important;
}

.card-price-old,
.pcard-price-old {
  text-decoration: line-through !important;
}

.card-price-quote,
.pcard-price-quote {
  display: flex !important;
  align-items: flex-start !important;
  gap: 3px !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 60px !important;
  padding: 10px 12px !important;
  border: .5px solid rgba(242, 106, 22, .45) !important;
  border-radius: 8px !important;
  background: #fff4e8 !important;
  color: #9a3f06 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.card-price-quote span,
.pcard-price-quote span {
  display: inline !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.card-price-quote small,
.pcard-price-quote small {
  color: #5d6675 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
}

.product-delivery-benefits {
  display: grid !important;
  gap: 7px !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.product-pickup-offer {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  line-height: 1.18;
}

.product-pickup-offer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-pickup-offer__label {
  color: #334155;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-pickup-offer__price {
  color: #111827;
  font-size: 16px;
  font-weight: 950;
}

.product-pickup-offer__save {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: .5px solid #97C459;
  border-radius: 999px;
  background: #EAF3DE;
  color: #27500A;
  font-size: 10px;
  font-weight: 900;
}

.product-pickup-offer__note {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.sedmac-quote-card-block {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.sedmac-quote-divider {
  width: 100%;
  height: 1px;
  border-top: .5px solid rgba(148, 163, 184, .38);
}

.sedmac-quote-save-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #FAECE7;
  color: #D85A30;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.sedmac-quote-card-block svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sedmac-quote-save-pill svg,
.sedmac-quote-wa svg {
  fill: currentColor;
  stroke: none;
}

.sedmac-quote-specs {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.sedmac-quote-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.sedmac-quote-spec span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sedmac-quote-actions {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.sedmac-quote-actions .sedmac-quote-more {
  flex: 1 1 auto;
  min-width: 0;
}

.sedmac-quote-actions .sedmac-quote-wa {
  flex: 0 0 38px;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: .5px solid #25D366 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #25D366 !important;
  box-shadow: none !important;
}

.sedmac-quote-actions .sedmac-quote-wa svg {
  width: 18px !important;
  height: 18px !important;
}

.sedmac-quote-actions .sedmac-quote-wa:hover,
.sedmac-quote-actions .sedmac-quote-wa:focus-visible {
  border-color: #25D366 !important;
  background: transparent !important;
  color: #25D366 !important;
}

.sedmac-quote-actions .sedmac-quote-wa:hover svg,
.sedmac-quote-actions .sedmac-quote-wa:focus-visible svg {
  fill: currentColor !important;
}

.sedmac-quote-shipping {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 12px;
  color: #8da0bb;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
}

.sedmac-quote-shipping svg {
  width: 12px;
  height: 12px;
}

body.catalog-page .pcard-foot--quote,
body.detail-page .related-grid .pcard-foot--quote {
  display: block !important;
}

body.catalog-page .pcard-foot--quote .sedmac-quote-divider,
body.detail-page .related-grid .pcard-foot--quote .sedmac-quote-divider {
  display: none;
}

.card-price-note,
.pcard-note {
  display: none !important;
}

.card-stock,
.pcard-stock {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 0 !important;
  color: #536986 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.card-stock-dot,
.pcard-stock-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #64748b !important;
  flex: 0 0 6px !important;
}

.stock-ok .card-stock-dot,
.stock-ok .pcard-stock-dot,
.stock-low .card-stock-dot,
.stock-low .pcard-stock-dot {
  background: #22a35a !important;
}

.product-card .card-footer,
body.catalog-page .pcard-foot,
body.detail-page .related-grid .pcard-foot {
  margin-top: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px !important;
  gap: 7px !important;
  align-items: stretch !important;
}

.product-card .card-footer {
  padding-top: 8px !important;
}

body.catalog-page .pcard-foot,
body.detail-page .related-grid .pcard-foot {
  padding: 10px 14px 14px !important;
}

.product-card .card-footer .btn-quote-primary,
.pcard .pcard-foot .btn-quote-primary,
.pcard .btn-quote-primary {
  display: none !important;
}

.product-card .card-footer .btn-detail,
.pcard-foot .btn-card-more,
.product-card .card-footer .btn-quote-primary,
body.catalog-page .pcard-foot .btn-add-cart,
body.detail-page .related-grid .pcard-foot .btn-add-cart {
  min-height: 36px !important;
  height: 36px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
}

.pcard-foot .btn-card-more {
  grid-column: 1 / 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border: 1px solid var(--sedmac-navy) !important;
  background: var(--sedmac-navy) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 850 !important;
}

.pcard-foot .btn-card-more svg {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.product-card .card-footer .card-commerce-inline,
.product-card .card-footer .home-card-commerce-actions {
  grid-column: 1 / -1 !important;
}

.product-card .card-footer .btn-detail {
  grid-column: 1 / 3 !important;
  background: var(--sedmac-navy) !important;
  border-color: var(--sedmac-navy) !important;
  color: #fff !important;
}

.btn-quote-primary {
  grid-column: 1 / -1 !important;
  background: var(--sedmac-navy) !important;
  border-color: var(--sedmac-navy) !important;
  color: #fff !important;
}

body.catalog-page .pcard-foot .btn-add-cart,
body.detail-page .related-grid .pcard-foot .btn-add-cart,
.product-card .card-footer .btn-add-cart {
  background: var(--sedmac-navy) !important;
  border-color: var(--sedmac-navy) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.catalog-page .pcard-foot .btn-add-cart-pay,
body.detail-page .related-grid .pcard-foot .btn-add-cart-pay,
.product-card .card-footer .btn-add-cart-pay {
  background: var(--sedmac-orange) !important;
  border-color: var(--sedmac-orange) !important;
  color: #fff !important;
}

.product-card .card-footer .btn-wa,
body.catalog-page .pcard-foot .btn-wa,
body.detail-page .related-grid .pcard-foot .btn-wa {
  grid-column: 3 / 4 !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 7px !important;
  justify-self: end !important;
}

body.catalog-page .pcard-foot .card-commerce-inline,
body.detail-page .related-grid .pcard-foot .card-commerce-inline {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(58px, 82px) minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 7px !important;
}

body.catalog-page .pcard-foot .card-qty-message,
body.detail-page .related-grid .pcard-foot .card-qty-message {
  grid-column: 1 / 3 !important;
  grid-row: auto !important;
}

@media (max-width: 640px) {
  :root {
    --sedmac-home-product-card-height: 610px;
  }

  .product-card .card-body,
  body.catalog-page .pcard .pcard-body,
  body.detail-page .related-grid .pcard .pcard-body {
    padding: 11px !important;
    gap: 7px !important;
  }

  .product-card .card-footer,
  body.catalog-page .pcard-foot,
  body.detail-page .related-grid .pcard-foot {
    grid-template-columns: minmax(0, 1fr) 36px !important;
  }

  body.catalog-page .pcard-foot .card-commerce-inline,
  body.detail-page .related-grid .pcard-foot .card-commerce-inline {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    grid-template-rows: repeat(2, 36px) !important;
  }
}

/* Hotfix home cards: same height, no clipped action buttons. */
body.home-page .home-dynamic .slider-track .product-card,
body.home-page .home-dynamic .product-grid .product-card {
  height: 630px !important;
  min-height: 630px !important;
  max-height: 630px !important;
}

body.home-page .home-dynamic .product-card .card-img-wrap {
  flex: 0 0 220px !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  aspect-ratio: auto !important;
}

body.home-page .home-dynamic .product-card .card-img-wrap > img {
  max-width: 100% !important;
  max-height: 100% !important;
}

body.home-page .home-dynamic .product-card .card-body {
  min-height: 0 !important;
  overflow: hidden !important;
}

body.home-page .home-dynamic .product-card .card-price-row {
  min-height: 68px !important;
  margin-bottom: 8px !important;
}

body.home-page .home-dynamic .product-card .card-price-quote,
body.home-page .home-dynamic .product-card .pcard-price-quote {
  min-height: 54px !important;
  padding: 9px 11px !important;
}

body.home-page .home-dynamic .product-card .product-delivery-benefits {
  gap: 5px !important;
  margin-bottom: 7px !important;
}

body.home-page .home-dynamic .product-card .product-pickup-offer {
  padding: 8px 10px !important;
}

body.home-page .home-dynamic .product-card .card-stock {
  margin-bottom: 7px !important;
}

body.home-page .home-dynamic .product-card .card-footer {
  flex: 0 0 auto !important;
  margin-top: auto !important;
}

@media (max-width: 640px) {
  body.home-page .home-dynamic .slider-track .product-card,
  body.home-page .home-dynamic .product-grid .product-card {
    flex: 0 0 min(76vw, 292px) !important;
    width: min(76vw, 292px) !important;
    min-width: min(76vw, 292px) !important;
    max-width: min(76vw, 292px) !important;
    height: 560px !important;
    min-height: 560px !important;
    max-height: 560px !important;
  }

  body.home-page .home-dynamic .product-card .card-img-wrap {
    flex-basis: 190px !important;
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
  }
}

body.home-page .home-dynamic .slider-wrapper .slider-track.product-grid > .product-card {
  height: 630px !important;
  min-height: 630px !important;
  max-height: 630px !important;
}

@media (max-width: 640px) {
  body.home-page .home-dynamic .slider-wrapper .slider-track.product-grid > .product-card {
    flex: 0 0 min(76vw, 292px) !important;
    width: min(76vw, 292px) !important;
    min-width: min(76vw, 292px) !important;
    max-width: min(76vw, 292px) !important;
    height: 560px !important;
    min-height: 560px !important;
    max-height: 560px !important;
  }
}

/* Mobile header: keep logo centered while compacting on scroll. */
@media (max-width: 900px) {
  .site-header .mobile-logo-wrap,
  .site-header.mobile-compact .mobile-logo-wrap {
    position: static !important;
    left: auto !important;
    grid-column: 2 !important;
    justify-self: center !important;
    transform: none !important;
  }

  .site-header .mobile-logo-full {
    transition: max-height .2s ease !important;
  }

  .site-header.mobile-compact .mobile-logo-full {
    max-height: 32px !important;
  }
}

/* Mobile PDP media final authority: home/catalog quick view images stay centered in their frame. */
@media (max-width: 767px) {
  .pdp-overlay.open .pdp-gallery {
    align-items: stretch !important;
  }

  .pdp-overlay.open .pdp-main-img {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    aspect-ratio: auto !important;
    width: 100% !important;
    height: clamp(188px, 52vw, 235px) !important;
    min-height: 188px !important;
    max-height: 235px !important;
    padding: 0 !important;
    overflow: hidden !important;
    contain: layout paint !important;
  }

  .pdp-overlay.open .pdp-main-img > img,
  .pdp-overlay.open #pdpMainImg {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    vertical-align: middle !important;
  }

  .pdp-image-viewer.open .pdp-image-viewer-stage {
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
  }

  .pdp-image-viewer.open .pdp-image-viewer-img {
    align-self: center !important;
    justify-self: center !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* Mobile product card authority: two-up premium layout with ordered actions. */
@media (max-width: 640px) {
  body.home-page .home-dynamic .slider-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 12px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.home-page .home-dynamic .slider-wrapper::-webkit-scrollbar {
    display: none !important;
  }

  body.home-page .home-dynamic .slider-track,
  body.home-page .home-dynamic .product-grid.slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    min-width: 100% !important;
    gap: 12px !important;
    padding: 0 16px !important;
    align-items: stretch !important;
    transform: none !important;
  }

  body.home-page .home-dynamic .slider-track .product-card,
  body.home-page .home-dynamic .product-grid .product-card,
  body.home-page .home-dynamic .slider-wrapper .slider-track.product-grid > .product-card {
    flex: 0 0 calc((100vw - 44px) / 2) !important;
    width: calc((100vw - 44px) / 2) !important;
    min-width: calc((100vw - 44px) / 2) !important;
    max-width: calc((100vw - 44px) / 2) !important;
    height: 518px !important;
    min-height: 518px !important;
    max-height: 518px !important;
    border-radius: 14px !important;
    scroll-snap-align: start !important;
  }

  body.home-page .home-dynamic .product-card .card-img-wrap,
  body.catalog-page .pcard .pcard-img,
  body.detail-page .related-grid .pcard .pcard-img {
    height: 148px !important;
    min-height: 148px !important;
    max-height: 148px !important;
    flex: 0 0 148px !important;
    aspect-ratio: auto !important;
    display: grid !important;
    place-items: center !important;
  }

  body.home-page .home-dynamic .product-card .card-img-wrap > img,
  body.catalog-page .pcard .pcard-img > img,
  body.detail-page .related-grid .pcard .pcard-img > img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 10px !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body.home-page .home-dynamic .product-card .card-body,
  body.catalog-page .pcard .pcard-body,
  body.detail-page .related-grid .pcard .pcard-body {
    padding: 10px 10px 8px !important;
    gap: 6px !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.home-page .home-dynamic .product-card .card-name,
  body.catalog-page .pcard .pcard-name,
  body.detail-page .related-grid .pcard .pcard-name {
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    font-size: 12.2px !important;
    line-height: 1.38 !important;
    -webkit-line-clamp: 2 !important;
  }

  body.home-page .home-dynamic .product-card .card-price-row,
  body.catalog-page .pcard .pcard-price-row,
  body.detail-page .related-grid .pcard .pcard-price-row {
    min-height: 44px !important;
    margin: 0 !important;
  }

  body.home-page .home-dynamic .product-card .card-price,
  body.catalog-page .pcard .pcard-price,
  body.detail-page .related-grid .pcard .pcard-price {
    font-size: 18px !important;
    line-height: 1.05 !important;
  }

  body.home-page .home-dynamic .product-card .card-price-quote,
  body.home-page .home-dynamic .product-card .pcard-price-quote {
    min-height: 48px !important;
    padding: 8px 9px !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }

  body.home-page .home-dynamic .product-card .product-delivery-benefits,
  body.home-page .home-dynamic .product-card .product-pickup-offer,
  body.home-page .home-dynamic .product-card .card-stock {
    margin-bottom: 5px !important;
  }

  body.home-page .home-dynamic .product-card .product-pickup-offer {
    padding: 7px 8px !important;
  }

  body.home-page .home-dynamic .product-card .sedmac-quote-card-block,
  body.catalog-page .pcard .sedmac-quote-card-block,
  body.detail-page .related-grid .pcard .sedmac-quote-card-block {
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.home-page .home-dynamic .product-card .sedmac-quote-save-pill,
  body.catalog-page .pcard .sedmac-quote-save-pill,
  body.detail-page .related-grid .pcard .sedmac-quote-save-pill {
    padding: 2px 6px !important;
    font-size: 9.5px !important;
  }

  body.home-page .home-dynamic .product-card .sedmac-quote-specs,
  body.catalog-page .pcard .sedmac-quote-specs,
  body.detail-page .related-grid .pcard .sedmac-quote-specs {
    max-height: 33px !important;
    gap: 2px !important;
    overflow: hidden !important;
    font-size: 10px !important;
  }

  body.home-page .home-dynamic .product-card .sedmac-quote-spec:nth-child(n+3),
  body.catalog-page .pcard .sedmac-quote-spec:nth-child(n+3),
  body.detail-page .related-grid .pcard .sedmac-quote-spec:nth-child(n+3) {
    display: none !important;
  }

  body.home-page .home-dynamic .product-card .sedmac-quote-actions,
  body.catalog-page .pcard .sedmac-quote-actions,
  body.detail-page .related-grid .pcard .sedmac-quote-actions {
    gap: 6px !important;
  }

  body.home-page .home-dynamic .product-card .sedmac-quote-actions .sedmac-quote-wa,
  body.catalog-page .pcard .sedmac-quote-actions .sedmac-quote-wa,
  body.detail-page .related-grid .pcard .sedmac-quote-actions .sedmac-quote-wa {
    flex-basis: 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
  }

  body.home-page .home-dynamic .product-card .sedmac-quote-shipping,
  body.catalog-page .pcard .sedmac-quote-shipping,
  body.detail-page .related-grid .pcard .sedmac-quote-shipping {
    font-size: 9px !important;
  }

  body.catalog-page .pcard-foot--quote,
  body.detail-page .related-grid .pcard-foot--quote {
    padding: 8px 10px 10px !important;
  }

  body.home-page .home-dynamic .product-card .card-footer,
  body.catalog-page .pcard-foot,
  body.detail-page .related-grid .pcard-foot {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 36px !important;
    grid-auto-rows: minmax(36px, auto) !important;
    gap: 7px !important;
    align-items: stretch !important;
    margin-top: auto !important;
    padding: 8px 10px 10px !important;
  }

  body.home-page .home-dynamic .product-card .card-footer > .btn-add-cart,
  body.home-page .home-dynamic .product-card .card-footer > .btn-quote-primary,
  body.catalog-page .pcard-foot > .btn-add-cart,
  body.detail-page .related-grid .pcard-foot > .btn-add-cart {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.home-page .home-dynamic .product-card .card-footer > .btn-detail,
  body.catalog-page .pcard-foot > .btn-card-more,
  body.detail-page .related-grid .pcard-foot > .btn-card-more {
    grid-column: 1 / 2 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.home-page .home-dynamic .product-card .card-footer > .btn-wa,
  body.catalog-page .pcard-foot > .btn-wa,
  body.detail-page .related-grid .pcard-foot > .btn-wa {
    grid-column: 2 / 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    justify-self: stretch !important;
  }

  body.home-page .home-dynamic .product-card .card-footer > .btn-detail,
  body.home-page .home-dynamic .product-card .card-footer > .btn-add-cart,
  body.home-page .home-dynamic .product-card .card-footer > .btn-quote-primary,
  body.catalog-page .pcard-foot > .btn-add-cart,
  body.catalog-page .pcard-foot > .btn-card-more,
  body.detail-page .related-grid .pcard-foot > .btn-add-cart,
  body.detail-page .related-grid .pcard-foot > .btn-card-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.home-page .home-dynamic .product-card .card-footer .card-commerce-inline,
  body.home-page .home-dynamic .product-card .card-footer .home-card-commerce-actions,
  body.catalog-page .pcard-foot .card-commerce-inline,
  body.detail-page .related-grid .pcard-foot .card-commerce-inline {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 7px !important;
    min-width: 0 !important;
  }

  body.home-page .home-dynamic .product-card .card-footer .card-commerce-inline .card-qty-control,
  body.catalog-page .pcard-foot .card-commerce-inline .card-qty-control,
  body.detail-page .related-grid .pcard-foot .card-commerce-inline .card-qty-control {
    grid-column: 1 / 2 !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    justify-content: center !important;
  }

  body.home-page .home-dynamic .product-card .card-footer .card-commerce-inline .card-qty-control input,
  body.catalog-page .pcard-foot .card-commerce-inline .card-qty-control input,
  body.detail-page .related-grid .pcard-foot .card-commerce-inline .card-qty-control input {
    width: 100% !important;
    min-height: 34px !important;
    padding: 0 !important;
    font-size: 13px !important;
  }

  body.home-page .home-dynamic .product-card .card-footer .card-commerce-inline .btn-add-cart,
  body.catalog-page .pcard-foot .card-commerce-inline .btn-add-cart,
  body.detail-page .related-grid .pcard-foot .card-commerce-inline .btn-add-cart {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    font-size: 0 !important;
    color: transparent !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  body.home-page .home-dynamic .product-card .card-footer .card-commerce-inline .btn-add-cart::before,
  body.catalog-page .pcard-foot .card-commerce-inline .btn-add-cart::before,
  body.detail-page .related-grid .pcard-foot .card-commerce-inline .btn-add-cart::before {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
  }

  body.home-page .home-dynamic .product-card .card-footer .card-commerce-inline .btn-add-cart-pay::before,
  body.catalog-page .pcard-foot .card-commerce-inline .btn-add-cart-pay::before,
  body.detail-page .related-grid .pcard-foot .card-commerce-inline .btn-add-cart-pay::before {
    content: "$";
    border: 0;
    color: #fff;
    font-size: 18px;
  }

  body.home-page .home-dynamic .product-card .card-footer .card-qty-message,
  body.catalog-page .pcard-foot .card-qty-message,
  body.detail-page .related-grid .pcard-foot .card-qty-message {
    grid-column: 1 / -1 !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body.home-page .home-dynamic .product-card .card-footer .card-qty-message:empty,
  body.catalog-page .pcard-foot .card-qty-message:empty,
  body.detail-page .related-grid .pcard-foot .card-qty-message:empty {
    display: none !important;
  }

  body.home-page .home-dynamic .product-card .card-footer svg,
  body.catalog-page .pcard-foot svg,
  body.detail-page .related-grid .pcard-foot svg {
    flex: 0 0 auto !important;
  }

  body.home-page .home-dynamic .hero-home-main.hero {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.home-page .home-dynamic .hero-home-main .hero-slide,
  body.home-page .home-dynamic .hero-home-main .hero-slide.active {
    min-height: 0 !important;
    height: 100% !important;
  }

  body.home-page .home-dynamic .hero-home-main .hero-slide-picture img {
    object-fit: cover !important;
    object-position: center center !important;
  }
}
@media (max-width: 640px) {
  body.home-page .home-dynamic .hero-home-main .hero-slide-bg {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: #071a2e !important;
  }

  body.home-page .home-dynamic .hero-home-main .hero-slide-picture img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #071a2e !important;
  }

  body.home-page .home-dynamic .hero-home-main .hero-slide--image-only {
    min-height: auto !important;
    aspect-ratio: 4 / 3;
  }
}

body.catalog-page .pcard-foot.pcard-foot--quote,
body.detail-page .related-grid .pcard-foot.pcard-foot--quote {
  display: block !important;
  grid-template-columns: none !important;
}

body.catalog-page .pcard-foot.pcard-foot--quote .sedmac-quote-card-block,
body.detail-page .related-grid .pcard-foot.pcard-foot--quote .sedmac-quote-card-block {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  body.catalog-page .pcard-foot.pcard-foot--quote,
  body.detail-page .related-grid .pcard-foot.pcard-foot--quote {
    display: block !important;
    padding: 8px 10px 10px !important;
  }
}

body.home-page .home-dynamic .product-card .sedmac-quote-actions .sedmac-quote-wa,
body.catalog-page .pcard-foot.pcard-foot--quote .sedmac-quote-actions .sedmac-quote-wa,
body.detail-page .related-grid .pcard-foot.pcard-foot--quote .sedmac-quote-actions .sedmac-quote-wa {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 767px) {
  body.pdp-open .pdp-overlay.open .pdp-actions-row {
    position: fixed !important;
    left: calc(12px + env(safe-area-inset-left)) !important;
    right: calc(12px + env(safe-area-inset-right)) !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    z-index: 4600 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 50px !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid rgba(213, 223, 236, .96) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 18px 44px rgba(8, 23, 43, .2) !important;
    backdrop-filter: blur(14px) !important;
  }

  body.pdp-open .pdp-overlay.open .pdp-info,
  body.pdp-open .pdp-overlay.open #pdpStateInfo {
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }

  body.pdp-open .pdp-overlay.open .pdp-actions-row .btn-pdp-wa,
  body.pdp-open .pdp-overlay.open .pdp-actions-row .btn-pdp-email,
  body.pdp-open .pdp-overlay.open .pdp-actions-row .pdp-fav-btn-action {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 8px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
  }

  body.pdp-open .pdp-overlay.open .pdp-actions-row .pdp-fav-btn-action {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding: 0 !important;
  }

  body.home-page #waFabWrap.wa-float,
  body.home-page .scroll-top,
  body.home-page #scrollTop {
    left: auto !important;
    right: calc(16px + env(safe-area-inset-right)) !important;
  }

  body.home-page #waFabWrap.wa-float {
    bottom: var(--mobile-float-bottom, calc(18px + env(safe-area-inset-bottom))) !important;
  }

  body.home-page .scroll-top,
  body.home-page #scrollTop {
    bottom: calc(var(--mobile-float-bottom, calc(18px + env(safe-area-inset-bottom))) + 76px) !important;
  }

  body.home-page #waFabWrap.wa-float.wa-fab--raised {
    bottom: var(--mobile-float-bottom, calc(18px + env(safe-area-inset-bottom))) !important;
  }

  body.pdp-open .pdp-overlay.open #pdpStateForm.active {
    display: flex !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  body.pdp-open .pdp-overlay.open #pdpStateForm.active .pdp-commercial-zone {
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  body.pdp-open .pdp-overlay.open #pdpStateForm.active .pdp-form-compact {
    width: 100% !important;
    max-height: calc(var(--app-height, 100svh) - 28px - env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 14px calc(88px + env(safe-area-inset-bottom)) !important;
    gap: 10px !important;
  }

  body.pdp-open .pdp-overlay.open #pdpStateForm.active textarea {
    height: 82px !important;
    min-height: 82px !important;
    max-height: 92px !important;
    resize: none !important;
  }

  body.pdp-open .pdp-overlay.open #pdpStateForm.active input {
    height: 43px !important;
    min-height: 43px !important;
  }

  body.pdp-open .pdp-overlay.open #pdpStateForm.active .pdp-form-actions {
    position: fixed !important;
    left: calc(12px + env(safe-area-inset-left)) !important;
    right: calc(12px + env(safe-area-inset-right)) !important;
    bottom: calc(var(--keyboard-bottom-gap, 0px) + 10px + env(safe-area-inset-bottom)) !important;
    z-index: 4610 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid rgba(213, 223, 236, .96) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 18px 44px rgba(8, 23, 43, .2) !important;
    backdrop-filter: blur(14px) !important;
  }

  body.pdp-open .pdp-overlay.open #pdpStateForm.active #pdpQuoteSubmitBtn,
  body.pdp-open .pdp-overlay.open #pdpStateForm.active .btn-pdp-back-alt {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    line-height: 1.05 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body.pdp-open .pdp-overlay.open #pdpStateForm.active .btn-pdp-back-alt {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #071421 !important;
    background: #ffffff !important;
  }

  body.pdp-open .pdp-overlay.open:has(#pdpStateForm.active) {
    align-items: stretch !important;
    justify-content: stretch !important;
    height: var(--app-height, 100svh) !important;
    max-height: var(--app-height, 100svh) !important;
    overflow: hidden !important;
  }

  body.pdp-open .pdp-overlay.open:has(#pdpStateForm.active) .pdp-modal {
    height: calc(var(--app-height, 100svh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    max-height: calc(var(--app-height, 100svh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    transform: none !important;
  }

  body.pdp-open .pdp-overlay.open:has(#pdpStateForm.active) .pdp-inner,
  body.pdp-open .pdp-overlay.open:has(#pdpStateForm.active) .pdp-info {
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-gallery {
    display: none !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-inner {
    display: block !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-info {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 12px !important;
    overflow: hidden !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-brand-row,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-title,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-sku,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-breadcrumb {
    display: none !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpCommZoneWrapper,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-commercial-zone {
    height: 100% !important;
    max-height: 100% !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-compact {
    max-height: calc(100% - 132px - env(safe-area-inset-bottom)) !important;
    height: calc(100% - 132px - env(safe-area-inset-bottom)) !important;
    padding-bottom: 14px !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-title {
    font-size: 28px !important;
    line-height: 1 !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-quote-product-card,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-quote-destination {
    padding: 11px 12px !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-group {
    display: grid !important;
    grid-template-rows: auto auto !important;
    gap: 7px !important;
    height: auto !important;
    min-height: 63px !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-group:has(#pdp_wa_msg) {
    min-height: 104px !important;
  }
}

/* Final mobile safety patch for product pages and the PDP quote form. */
@media (max-width: 767px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.detail-page,
  body.detail-page .site-wrapper,
  body.detail-page main,
  body.detail-page .container,
  body.detail-page .detail-shell,
  body.detail-page .detail-shell > .container,
  body.detail-page .detail-modal.detail-modal-inline,
  body.detail-page .detail-body,
  body.detail-page .detail-gallery,
  body.detail-page .detail-info,
  body.detail-page .detail-tabs-section,
  body.detail-page .detail-related-section,
  body.detail-page .related-grid {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.detail-page .detail-shell > .container {
    width: min(100%, calc(100vw - 20px)) !important;
  }

  body.detail-page .detail-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.detail-page .detail-title,
  body.detail-page .detail-header-breadcrumb,
  body.detail-page .detail-brand,
  body.detail-page .detail-short-desc,
  body.detail-page .detail-price-note,
  body.detail-page .docs-resource-card,
  body.detail-page .spec-row,
  body.detail-page .spec-value {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open {
    top: var(--app-top, 0px) !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: var(--app-height, 100svh) !important;
    max-height: var(--app-height, 100svh) !important;
    overflow: hidden !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-modal {
    width: min(100%, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    height: calc(var(--app-height, 100svh) - 16px - env(safe-area-inset-bottom)) !important;
    max-height: calc(var(--app-height, 100svh) - 16px - env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    transform: none !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-inner {
    display: block !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-info,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpCommZoneWrapper,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-commercial-zone {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-commercial-zone {
    height: auto !important;
    align-items: flex-start !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-compact {
    height: auto !important;
    max-height: calc(var(--app-height, 100svh) - 44px - env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px !important;
    padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-actions {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
  }
}

/* TANDA32: mobile PDP quote form must stay visible and compact after tapping "Hablar con ventas". */
@media (max-width: 767px) {
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-modal {
    width: min(100%, 430px) !important;
    max-width: calc(100vw - 16px) !important;
    height: auto !important;
    max-height: calc(var(--app-height, 100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    transform: none !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-inner {
    display: block !important;
    height: auto !important;
    max-height: calc(var(--app-height, 100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    background: #ffffff !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-gallery,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-brand-row,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-title,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-sku,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-breadcrumb,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateInfo {
    display: none !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-info,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpCommZoneWrapper,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-commercial-zone {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-info {
    padding: 56px 10px 10px !important;
    background: #ffffff !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open .pdp-close {
    top: 12px !important;
    right: 12px !important;
    z-index: 70 !important;
    width: 40px !important;
    height: 40px !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-compact {
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    gap: 9px !important;
    overflow: visible !important;
    padding: 12px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-title {
    max-width: calc(100% - 46px) !important;
    font-size: 22px !important;
    line-height: 1.05 !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-desc {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-quote-product-card,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-quote-destination {
    padding: 9px 10px !important;
    border-radius: 12px !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-quote-product-label,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-group label {
    font-size: 10px !important;
    letter-spacing: .08em !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-quote-product-name {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-group {
    gap: 5px !important;
    min-height: 0 !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active input {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    font-size: 16px !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active textarea {
    height: 74px !important;
    min-height: 74px !important;
    max-height: 96px !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
    resize: none !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .pdp-form-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 35 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 2px 0 0 !important;
    padding: 8px 0 0 !important;
    background: linear-gradient(180deg, rgba(247, 249, 252, 0), #f7f9fc 38%, #f7f9fc 100%) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active #pdpQuoteSubmitBtn,
  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .btn-pdp-back-alt {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active #pdpQuoteSubmitBtn {
    order: 1 !important;
    background: #25d366 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(37, 211, 102, .24) !important;
  }

  body.pdp-open.pdp-quote-form-open .pdp-overlay.open #pdpStateForm.active .btn-pdp-back-alt {
    order: 2 !important;
    color: #071421 !important;
    background: #ffffff !important;
  }

  body.pdp-open.pdp-quote-form-open #pdpOverlay.open,
  body.pdp-open.pdp-quote-form-open #pdpOverlay.open:has(#pdpStateForm.active) {
    align-items: flex-start !important;
    justify-content: center !important;
  }

  body.pdp-open.pdp-quote-form-open #pdpOverlay.open #pdpModal,
  body.pdp-open.pdp-quote-form-open #pdpOverlay.open:has(#pdpStateForm.active) #pdpModal {
    height: auto !important;
    max-height: calc(var(--app-height, 100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  }

  body.pdp-open.pdp-quote-form-open #pdpOverlay.open #pdpModal .pdp-inner,
  body.pdp-open.pdp-quote-form-open #pdpOverlay.open:has(#pdpStateForm.active) #pdpModal .pdp-inner {
    height: auto !important;
    max-height: calc(var(--app-height, 100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.pdp-open.pdp-quote-form-open #pdpOverlay.open #pdpModal .pdp-info,
  body.pdp-open.pdp-quote-form-open #pdpOverlay.open:has(#pdpStateForm.active) #pdpModal .pdp-info {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

/* Mobile anti-zoom: browsers zoom focused controls below 16px. */
@media (max-width: 767px) {
  #pdpStateForm input,
  #pdpStateForm textarea,
  #pdpStateForm select,
  .sedmac-quotation-modal input,
  .sedmac-quotation-modal textarea,
  .sedmac-quotation-modal select,
  .quote-modal input,
  .quote-modal textarea,
  .quote-modal select {
    font-size: 16px !important;
    line-height: 1.35 !important;
    transform: translateZ(0);
  }
}

/* Absolute final catalog mobile card guard. */
@media (max-width: 640px) {
  body.catalog-page .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.catalog-page .pcard .pcard-img {
    height: clamp(104px, 30vw, 126px) !important;
    max-height: 126px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  body.catalog-page .pcard .pcard-img > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 8px !important;
    transform: none !important;
  }

  body.catalog-page .pcard .pcard-body {
    min-height: 0 !important;
    padding: 9px 9px 7px !important;
  }

  body.catalog-page .pcard .pcard-name {
    min-height: 32px !important;
    max-height: 32px !important;
    margin-bottom: 6px !important;
    font-size: 11px !important;
    line-height: 1.32 !important;
  }

  body.catalog-page .pcard .pcard-price-row {
    min-height: 0 !important;
    margin-top: 0 !important;
  }

  body.catalog-page .pcard .pcard-price {
    font-size: 16px !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  body.catalog-page .pcard .pcard-note {
    display: none !important;
  }

  body.catalog-page .pcard-foot.pcard-foot--quote {
    display: block !important;
    padding: 6px 8px !important;
  }

  body.catalog-page .pcard-foot.pcard-foot--quote .sedmac-quote-card-block {
    display: grid !important;
    gap: 5px !important;
  }

  body.catalog-page .pcard-foot.pcard-foot--quote .sedmac-quote-specs,
  body.catalog-page .pcard-foot.pcard-foot--quote .sedmac-quote-shipping {
    display: none !important;
  }

  body.catalog-page .pcard-foot.pcard-foot--quote .sedmac-quote-save-pill {
    height: 18px !important;
    max-width: 100% !important;
    padding: 0 7px !important;
    overflow: hidden !important;
    font-size: 9.5px !important;
    line-height: 18px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.catalog-page .pcard-foot.pcard-foot--quote .sedmac-quote-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 32px !important;
    gap: 5px !important;
  }

  body.catalog-page .btn-card-more,
  body.catalog-page .sedmac-quote-wa {
    height: 30px !important;
    min-height: 0 !important;
    border-radius: 10px !important;
    font-size: 11px !important;
  }
}
/* TANDA36: keep product-card purchase controls stable when cart is enabled. */
.product-card .card-footer .card-commerce-inline,
body.catalog-page .pcard-foot .card-commerce-inline,
body.detail-page .related-grid .pcard-foot .card-commerce-inline {
  display: grid !important;
  grid-template-columns: minmax(74px, 90px) minmax(0, 1fr) !important;
  gap: 7px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
}

.product-card .card-footer .card-qty-control,
body.catalog-page .pcard-foot .card-qty-control,
body.detail-page .related-grid .pcard-foot .card-qty-control {
  min-width: 0 !important;
  height: 38px !important;
  padding: 4px 6px !important;
  border-radius: 11px !important;
}

.product-card .card-footer .card-qty-control span,
body.catalog-page .pcard-foot .card-qty-control span,
body.detail-page .related-grid .pcard-foot .card-qty-control span {
  font-size: 10px !important;
  line-height: 1 !important;
}

.product-card .card-footer .card-qty-control input,
body.catalog-page .pcard-foot .card-qty-control input,
body.detail-page .related-grid .pcard-foot .card-qty-control input {
  width: 34px !important;
  min-width: 34px !important;
  height: 26px !important;
  padding: 0 2px !important;
  font-size: 14px !important;
}

.product-card .card-footer .btn-add-cart,
.product-card .card-footer .btn-add-cart-pay,
body.catalog-page .pcard-foot .btn-add-cart,
body.catalog-page .pcard-foot .btn-add-cart-pay,
body.detail-page .related-grid .pcard-foot .btn-add-cart,
body.detail-page .related-grid .pcard-foot .btn-add-cart-pay {
  min-height: 38px !important;
  max-height: 42px !important;
  border-radius: 11px !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.product-card .card-footer .card-qty-message,
body.catalog-page .pcard-foot .card-qty-message,
body.detail-page .related-grid .pcard-foot .card-qty-message {
  min-height: 14px !important;
  margin-top: 4px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

@media (max-width: 520px) {
  .product-card .card-footer .card-commerce-inline,
  body.catalog-page .pcard-foot .card-commerce-inline,
  body.detail-page .related-grid .pcard-foot .card-commerce-inline {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .product-card .card-footer .btn-add-cart,
  .product-card .card-footer .btn-add-cart-pay,
  body.catalog-page .pcard-foot .btn-add-cart,
  body.catalog-page .pcard-foot .btn-add-cart-pay,
  body.detail-page .related-grid .pcard-foot .btn-add-cart,
  body.detail-page .related-grid .pcard-foot .btn-add-cart-pay {
    font-size: 11px !important;
    padding: 6px 8px !important;
  }
}

/* TANDA38: final home/catalog card height guard after cart and quote states. */
body.home-page .home-dynamic .product-grid,
body.home-page .home-dynamic .slider-track {
  align-items: stretch !important;
}

body.home-page .home-dynamic .product-card,
body.catalog-page .pcard {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

body.home-page .home-dynamic .product-card .card-img-wrap {
  height: clamp(170px, 17vw, 220px) !important;
  min-height: 0 !important;
  max-height: 220px !important;
  aspect-ratio: auto !important;
}

body.home-page .home-dynamic .product-card .card-img-wrap > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 12px !important;
  transform: none !important;
}

body.home-page .home-dynamic .product-card .card-body {
  min-height: 0 !important;
  padding-bottom: 10px !important;
}

body.home-page .home-dynamic .product-card .card-name {
  min-height: 38px !important;
  max-height: 38px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body.home-page .home-dynamic .product-card .sedmac-quote-specs,
body.home-page .home-dynamic .product-card .sedmac-quote-shipping {
  display: none !important;
}

body.home-page .home-dynamic .product-card .sedmac-quote-card-block {
  gap: 7px !important;
}

body.home-page .home-dynamic .product-card .sedmac-quote-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 38px !important;
  gap: 7px !important;
}

body.home-page .home-dynamic .product-card .btn-detail,
body.home-page .home-dynamic .product-card .sedmac-quote-wa,
body.home-page .home-dynamic .product-card .btn-wa {
  min-height: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
}

@media (max-width: 640px) {
  body.home-page .home-dynamic .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.home-page .home-dynamic .product-card .card-img-wrap {
    height: clamp(104px, 30vw, 126px) !important;
    max-height: 126px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  body.home-page .home-dynamic .product-card .card-img-wrap > img {
    padding: 8px !important;
  }

  body.home-page .home-dynamic .product-card .card-body {
    padding: 9px 9px 7px !important;
  }

  body.home-page .home-dynamic .product-card .card-brand,
  body.home-page .home-dynamic .product-card .card-sku,
  body.home-page .home-dynamic .product-card .card-stock,
  body.home-page .home-dynamic .product-card .card-price-note {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
  }

  body.home-page .home-dynamic .product-card .card-name {
    min-height: 32px !important;
    max-height: 32px !important;
    margin-bottom: 6px !important;
    font-size: 11px !important;
    line-height: 1.32 !important;
  }

  body.home-page .home-dynamic .product-card .card-price {
    font-size: 16px !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  body.home-page .home-dynamic .product-card .card-footer,
  body.home-page .home-dynamic .product-card .sedmac-quote-card-block {
    padding: 6px 0 0 !important;
  }

  body.home-page .home-dynamic .product-card .sedmac-quote-save-pill {
    height: 18px !important;
    max-width: 100% !important;
    padding: 0 7px !important;
    overflow: hidden !important;
    font-size: 9.5px !important;
    line-height: 18px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.home-page .home-dynamic .product-card .sedmac-quote-actions {
    grid-template-columns: minmax(0, 1fr) 32px !important;
    gap: 5px !important;
  }

  body.home-page .home-dynamic .product-card .btn-detail,
  body.home-page .home-dynamic .product-card .sedmac-quote-wa,
  body.home-page .home-dynamic .product-card .btn-wa,
  body.home-page .home-dynamic .product-card .btn-add-cart,
  body.home-page .home-dynamic .product-card .btn-add-cart-pay {
    min-height: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
  }
}

/* TANDA39: premium direct-purchase layout, only when cart is active for the product. */
.product-card[data-product-direct-purchase="1"] .card-footer.is-direct-purchase-foot,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 40px !important;
  gap: 8px !important;
  align-items: stretch !important;
  padding: 10px 12px 12px !important;
  min-height: 0 !important;
}

.product-card[data-product-direct-purchase="1"] .card-commerce-inline,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-inline,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-inline {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: clamp(62px, 25%, 84px) minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  gap: 8px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
}

.product-card[data-product-direct-purchase="1"] .card-commerce-pay-row,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row {
  grid-column: 1 / -1 !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
}

.product-card[data-product-direct-purchase="1"] .card-qty-control,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-control,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-control {
  grid-row: auto !important;
  display: grid !important;
  place-items: center !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 1px solid #d7e2ef !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.product-card[data-product-direct-purchase="1"] .card-qty-control span,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-control span,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-control span {
  display: none !important;
}

.product-card[data-product-direct-purchase="1"] .card-qty-control input,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-control input,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-control input {
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 6px !important;
  border: 0 !important;
  background: transparent !important;
  color: #071b36 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.product-card[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
.product-card[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay {
  grid-row: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 42px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #fff !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.product-card[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart {
  background: #071b36 !important;
  border-color: #071b36 !important;
}

.product-card[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay {
  background: #f26a0a !important;
  border-color: #f26a0a !important;
  box-shadow: 0 10px 22px rgba(242, 106, 10, .18) !important;
}

.product-card[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart::before,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart::before,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart::before,
.product-card[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay::before,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay::before,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay::before {
  content: none !important;
  display: none !important;
}

.product-card[data-product-direct-purchase="1"] .card-qty-message,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-message,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-message {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  margin: -2px 0 0 !important;
  color: #58708e !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}

.product-card[data-product-direct-purchase="1"] .card-qty-message:empty,
body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-message:empty,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-message:empty {
  display: none !important;
}

.product-card[data-product-direct-purchase="1"] .card-footer.is-direct-purchase-foot > .btn-detail,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot > .btn-card-more,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot > .btn-card-more {
  grid-column: 1 / 2 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
}

.product-card[data-product-direct-purchase="1"] .card-footer.is-direct-purchase-foot > .btn-wa,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot > .btn-wa,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot > .btn-wa,
body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot > .btn-micro,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot > .btn-micro {
  grid-column: 2 / 3 !important;
  box-sizing: border-box !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 11px !important;
  justify-self: stretch !important;
}

body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot > .btn-micro,
body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot > .btn-micro {
  display: none !important;
}

body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .cart-row {
  display: grid !important;
  grid-template-columns: 124px minmax(0, 1fr) minmax(0, 1fr) 48px !important;
  gap: 10px !important;
  align-items: stretch !important;
}

body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .product-detail-qty {
  grid-column: 1 / 2 !important;
  min-height: 50px !important;
}

body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) [data-detail-add-cart],
body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) [data-detail-pay-now] {
  min-height: 50px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1.05 !important;
}

body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) [data-detail-pay-now] {
  background: #f26a0a !important;
  border-color: #f26a0a !important;
  box-shadow: 0 14px 28px rgba(242, 106, 10, .18) !important;
}

body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .product-detail-qty-message {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
}

body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .product-wa-btn,
body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .sedmac-product-quote-btn {
  grid-column: span 2 !important;
  min-height: 46px !important;
  border-radius: 13px !important;
}

body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .btn-wishlist {
  grid-column: 4 / 5 !important;
  grid-row: 1 / 2 !important;
  width: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
}

.pdp-commerce-actions:not([hidden]) {
  display: grid !important;
  grid-template-columns: 116px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.pdp-commerce-actions:not([hidden]) .pdp-commerce-qty {
  min-height: 50px !important;
  border-radius: 14px !important;
}

.pdp-commerce-actions:not([hidden]) .pdp-commerce-buttons {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.pdp-commerce-actions:not([hidden]) .pdp-commerce-btn {
  min-height: 50px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
}

.pdp-commerce-actions:not([hidden]) .pdp-commerce-btn--pay {
  background: #f26a0a !important;
  box-shadow: 0 14px 28px rgba(242, 106, 10, .2) !important;
}

.pdp-commerce-actions:not([hidden]) .pdp-commerce-message {
  grid-column: 1 / -1 !important;
}

@media (max-width: 640px) {
  .product-card[data-product-direct-purchase="1"] .card-footer.is-direct-purchase-foot,
  body.catalog-page .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot,
  body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .pcard-foot.is-direct-purchase-foot {
    grid-template-columns: minmax(0, 1fr) 36px !important;
    gap: 6px !important;
    padding: 8px !important;
  }

  .product-card[data-product-direct-purchase="1"] .card-commerce-inline,
  body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-inline,
  body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-inline {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    gap: 6px !important;
  }

  .product-card[data-product-direct-purchase="1"] .card-qty-control,
  body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-control,
  body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-control,
  .product-card[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
  body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
  body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-inline .btn-add-cart,
  .product-card[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay,
  body.catalog-page .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay,
  body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-commerce-pay-row .btn-add-cart-pay {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    padding: 0 8px !important;
  }

  .product-card[data-product-direct-purchase="1"] .card-qty-control input,
  body.catalog-page .pcard[data-product-direct-purchase="1"] .card-qty-control input,
  body.detail-page .related-grid .pcard[data-product-direct-purchase="1"] .card-qty-control input {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 14px !important;
  }

  body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .cart-row {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .product-detail-qty {
    grid-column: 1 / 2 !important;
    min-height: 50px !important;
    height: 50px !important;
    padding: 0 8px !important;
  }

  body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .product-detail-qty span {
    display: none !important;
  }

  body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .product-detail-qty input {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 900 !important;
  }

  body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) [data-detail-add-cart] {
    grid-column: 2 / 3 !important;
  }

  body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) [data-detail-pay-now],
  body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .product-detail-qty-message,
  body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .product-wa-btn,
  body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .sedmac-product-quote-btn {
    grid-column: 1 / -1 !important;
  }

  body.detail-page .detail-cart-block:has([data-detail-purchase-qty]) .btn-wishlist {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
  }

  .pdp-commerce-actions:not([hidden]) {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .pdp-commerce-actions:not([hidden]) .pdp-commerce-buttons {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .pdp-commerce-actions:not([hidden]) .pdp-commerce-qty {
    grid-row: span 2 !important;
    min-height: 100% !important;
  }

  .pdp-commerce-actions:not([hidden]) .pdp-commerce-btn {
    min-height: 42px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }
}
