/* =========================================================
   E-COMMERCE — ESTÉTICA RADIANTE
   Arquivo isolado: não altera o restante do site.
========================================================= */

.ecommerce-page {
  background: #ac796b;
  color: #5a322a;
}

.ecommerce-page.ecom-overlay-open {
  overflow: hidden;
}

.ecom-main {
  background: linear-gradient(180deg, #fff8f5 0%, #f3ded7 100%);
}

.ecom-section {
  min-height: 65vh;
  padding: 76px 20px 96px;
}

.ecom-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.ecom-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.ecom-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(176, 113, 93, .12);
  color: #8c5b50;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ecom-heading h1 {
  margin: 0 0 12px;
  color: #4a2a25;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
}

.ecom-heading p {
  margin: 0;
  color: #76574f;
  font-size: 15px;
  line-height: 1.75;
}

/* ===== PESQUISA E FILTROS ===== */

.ecom-controls {
  position: relative;
  z-index: 4;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid rgba(90, 50, 42, .10);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 46px rgba(90, 50, 42, .10);
}

.ecom-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 16px;
}

.ecom-search-field {
  position: relative;
}

.ecom-search-field svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  color: #8c5b50;
  transform: translateY(-50%);
  pointer-events: none;
}

.ecom-search-field input,
.ecom-field select,
.ecom-field input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(90, 50, 42, .15);
  border-radius: 14px;
  background: #fffaf7;
  color: #3f241f;
  font-size: 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ecom-search-field input {
  padding: 0 18px 0 49px;
  font-size: 14px;
}

.ecom-field select,
.ecom-field input {
  padding: 0 13px;
}

.ecom-search-field input:focus,
.ecom-field select:focus,
.ecom-field input:focus {
  border-color: #b0715d;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(176, 113, 93, .12);
}

.ecom-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.ecom-field {
  min-width: 0;
}

.ecom-field label {
  display: block;
  margin-bottom: 7px;
  color: #67463e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ecom-price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ecom-check-field {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid rgba(90, 50, 42, .12);
  border-radius: 14px;
  background: #fffaf7;
}

.ecom-check-field label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #5a322a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.ecom-check-field input {
  width: 18px;
  height: 18px;
  accent-color: #8c5b50;
}

.ecom-clear-btn {
  min-width: 112px;
  height: 50px;
  padding: 0 17px;
  border: 1px solid rgba(90, 50, 42, .14);
  border-radius: 14px;
  background: #fff;
  color: #5a322a;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
}

.ecom-clear-btn:hover {
  background: #5a322a;
  color: #fff;
}

.ecom-controls-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid rgba(90, 50, 42, .09);
}

.ecom-result-count {
  margin: 0;
  color: #65483f;
  font-size: 13px;
  font-weight: 800;
}

.ecom-filter-chips {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.ecom-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: #f1dfd9;
  color: #68443b;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.ecom-filter-chip span {
  font-size: 16px;
  line-height: 1;
}

/* ===== GRADE DE PRODUTOS ===== */

.ecom-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 18px;
}

.ecom-product-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(90, 50, 42, .10);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(90, 50, 42, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.ecom-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 23px 48px rgba(90, 50, 42, .14);
}

.ecom-product-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f7e8e1;
  cursor: pointer;
}

.ecom-product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}

.ecom-product-card:hover .ecom-product-image {
  transform: scale(1.035);
}

.ecom-product-image.is-fallback {
  padding: 50px;
  object-fit: contain;
}

.ecom-product-badge,
.ecom-product-stock-badge {
  position: absolute;
  top: 13px;
  z-index: 2;
  min-height: 26px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ecom-product-badge {
  left: 13px;
  background: #b0715d;
}

.ecom-product-stock-badge {
  right: 13px;
  background: #5a322a;
}

.ecom-product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.ecom-product-brand {
  display: block;
  margin-bottom: 7px;
  color: #b0715d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ecom-product-content h2 {
  margin: 0 0 8px;
  color: #321b17;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.ecom-product-content > p {
  margin: 0 0 14px;
  color: #705249;
  font-size: 12px;
  line-height: 1.55;
}

.ecom-product-price {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(90, 50, 42, .10);
}

.ecom-product-price span {
  display: block;
  color: rgba(90, 50, 42, .48);
  font-size: 10px;
  font-weight: 700;
  text-decoration: line-through;
}

.ecom-product-price strong {
  display: block;
  color: #2d7a46;
  font-size: 1.35rem;
  font-weight: 900;
}

.ecom-product-price small {
  display: block;
  margin-top: 2px;
  color: #80655d;
  font-size: 9px;
  font-weight: 700;
}

.ecom-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.ecom-btn-details,
.ecom-btn-add {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
}

.ecom-btn-details {
  border: 1px solid rgba(90, 50, 42, .14);
  background: #fff;
  color: #5a322a;
}

.ecom-btn-details:hover {
  background: #f8efeb;
}

.ecom-btn-add {
  border: 1px solid #5a322a;
  background: #5a322a;
  color: #fff;
}

.ecom-btn-add:hover {
  border-color: #7a4a3e;
  background: #7a4a3e;
}

.ecom-btn-add:disabled {
  border-color: #b9aaa5;
  background: #b9aaa5;
  cursor: not-allowed;
}

.ecom-empty {
  padding: 54px 22px;
  border: 1px solid rgba(90, 50, 42, .10);
  border-radius: 22px;
  background: rgba(255, 255, 255, .75);
  text-align: center;
}

.ecom-empty svg {
  width: 44px;
  height: 44px;
  margin-bottom: 13px;
  color: #b0715d;
}

.ecom-empty h2 {
  margin: 0 0 8px;
  color: #4a2a25;
  font-size: 1.35rem;
  font-weight: 900;
}

.ecom-empty p {
  margin: 0;
  color: #76574f;
  font-size: 13px;
}

/* ===== MODAL DO PRODUTO ===== */

.ecom-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
}

.ecom-modal.active {
  display: block;
}

.ecom-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 18, 15, .74);
  backdrop-filter: blur(7px);
}

.ecom-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100% - 34px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  padding: 25px;
  overflow-y: auto;
  border-radius: 26px;
  background: #fffaf6;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
}

.ecom-modal-close,
.ecom-cart-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #5a322a;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ecom-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
}

.ecom-modal-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 30px;
}

.ecom-modal-gallery {
  padding: 14px;
  border: 1px solid rgba(90, 50, 42, .11);
  border-radius: 22px;
  background: #f4e6df;
}

.ecom-modal-main-image {
  width: 100%;
  height: 440px;
  border-radius: 17px;
  object-fit: cover;
}

.ecom-modal-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.ecom-modal-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.ecom-modal-thumb.active {
  border-color: #b0715d;
}

.ecom-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecom-modal-info {
  padding: 18px 6px 6px;
}

.ecom-modal-brand {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(176, 113, 93, .12);
  color: #8c5b50;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ecom-modal-info h2 {
  margin: 0 0 13px;
  color: #2f1914;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.05;
}

.ecom-modal-description {
  margin: 0 0 18px;
  color: #654941;
  font-size: 14px;
  line-height: 1.7;
}

.ecom-modal-price {
  margin-bottom: 17px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(90, 50, 42, .11);
}

.ecom-modal-price > span {
  display: block;
  color: rgba(90, 50, 42, .48);
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
}

.ecom-modal-price strong {
  display: block;
  color: #2d7a46;
  font-size: 2rem;
  font-weight: 900;
}

.ecom-modal-price small {
  display: block;
  margin-top: 3px;
  color: #76574f;
  font-size: 11px;
  font-weight: 700;
}

.ecom-modal-benefits {
  margin-bottom: 18px;
}

.ecom-modal-benefits h3 {
  margin: 0 0 9px;
  color: #3d231e;
  font-size: 14px;
  font-weight: 900;
}

.ecom-modal-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ecom-modal-benefits li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 17px;
  color: #654941;
  font-size: 12px;
}

.ecom-modal-benefits li::before {
  position: absolute;
  left: 0;
  color: #b0715d;
  content: "•";
  font-weight: 900;
}

.ecom-stock-info {
  display: block;
  margin-bottom: 14px;
  color: #2d7a46;
  font-size: 11px;
  font-weight: 900;
}

.ecom-stock-info.is-empty {
  color: #a44444;
}

.ecom-buy-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
}

.ecom-qty {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(90, 50, 42, .14);
  border-radius: 999px;
  background: #fff;
}

.ecom-qty button,
.ecom-qty input {
  width: 42px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #5a322a;
  text-align: center;
  font-weight: 900;
}

.ecom-qty button {
  font-size: 18px;
  cursor: pointer;
}

.ecom-modal-add,
.ecom-modal-buy {
  flex: 1;
  min-height: 50px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.ecom-modal-add {
  border: 1px solid #5a322a;
  background: #5a322a;
  color: #fff;
}

.ecom-modal-buy {
  width: 100%;
  border: 1px solid #b0715d;
  background: #b0715d;
  color: #fff;
}

.ecom-modal-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 17px;
  border: 1px solid rgba(90, 50, 42, .18);
  border-radius: 999px;
  background: #fff;
  color: #5a322a;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.ecom-modal-share:hover {
  border-color: #5a322a;
  background: #fff8f5;
}

.ecom-modal-share svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecom-modal-add:disabled,
.ecom-modal-buy:disabled {
  opacity: .48;
  cursor: not-allowed;
}

/* ===== CARRINHO ===== */

.ecom-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 10070;
  visibility: hidden;
  background: rgba(31, 18, 15, .62);
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}

.ecom-cart-overlay.active {
  visibility: visible;
  opacity: 1;
}

.ecom-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10080;
  display: flex;
  width: min(430px, 100%);
  height: 100%;
  flex-direction: column;
  background: #fffaf6;
  box-shadow: -22px 0 60px rgba(38, 20, 16, .24);
  transform: translateX(105%);
  transition: transform .28s ease;
}

.ecom-cart.active {
  transform: translateX(0);
}

.ecom-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px;
  border-bottom: 1px solid rgba(90, 50, 42, .11);
}

.ecom-cart-header h2 {
  margin: 0;
  color: #3d231e;
  font-size: 1.35rem;
  font-weight: 900;
}

.ecom-cart-body {
  flex: 1;
  padding: 17px;
  overflow-y: auto;
}

.ecom-cart-empty {
  padding: 50px 18px;
  text-align: center;
}

.ecom-cart-empty svg {
  width: 45px;
  height: 45px;
  margin-bottom: 12px;
  color: #b0715d;
}

.ecom-cart-empty h3 {
  margin: 0 0 7px;
  color: #4a2a25;
  font-size: 1.1rem;
  font-weight: 900;
}

.ecom-cart-empty p {
  margin: 0;
  color: #76574f;
  font-size: 12px;
}

.ecom-cart-items {
  display: grid;
  gap: 12px;
}

.ecom-cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(90, 50, 42, .10);
  border-radius: 17px;
  background: #fff;
}

.ecom-cart-item > img {
  width: 88px;
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
  background: #f4e6df;
}

.ecom-cart-item-info > span {
  display: block;
  margin-bottom: 3px;
  color: #b0715d;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.ecom-cart-item-info h3 {
  margin: 0 0 5px;
  color: #3d231e;
  font-size: 13px;
  font-weight: 900;
}

.ecom-cart-item-info > strong {
  display: block;
  color: #2d7a46;
  font-size: 13px;
  font-weight: 900;
}

.ecom-cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.ecom-cart-qty {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(90, 50, 42, .13);
  border-radius: 999px;
}

.ecom-cart-qty button,
.ecom-cart-qty span {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #fff;
  color: #5a322a;
  font-size: 11px;
  font-weight: 900;
}

.ecom-cart-qty button {
  cursor: pointer;
}

.ecom-cart-remove {
  padding: 4px;
  border: 0;
  background: transparent;
  color: #9a554a;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.ecom-cart-footer {
  padding: 19px;
  border-top: 1px solid rgba(90, 50, 42, .11);
  background: #fff;
}

.ecom-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  color: #4a2a25;
  font-weight: 900;
}

.ecom-cart-total strong {
  color: #2d7a46;
  font-size: 1.35rem;
}

.ecom-checkout-btn,
.ecom-clear-cart-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.ecom-checkout-btn {
  border: 1px solid #5a322a;
  background: #5a322a;
  color: #fff;
}

.ecom-clear-cart-btn {
  min-height: 38px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #8c5b50;
}

.ecom-checkout-btn:disabled,
.ecom-clear-cart-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ===== BOTÃO FLUTUANTE E MENSAGEM ===== */

.ecom-floating-cart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 980;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: #5a322a;
  color: #fff;
  box-shadow: 0 14px 34px rgba(90, 50, 42, .34);
  cursor: pointer;
}

.ecom-floating-cart svg {
  width: 24px;
  height: 24px;
}

.ecom-cart-count {
  position: absolute;
  top: -4px;
  right: -3px;
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #b0715d;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.ecom-header-cart {
  position: relative;
}

.ecom-header-cart .ecom-cart-count {
  top: -8px;
  right: -9px;
}

.ecom-message {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 10100;
  max-width: min(360px, calc(100% - 36px));
  padding: 13px 17px;
  border-radius: 14px;
  background: #2d7a46;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .25s ease;
}

.ecom-message.erro {
  background: #93483e;
}

.ecom-message.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOCO E ACESSIBILIDADE ===== */

.ecom-section button:focus-visible,
.ecom-section input:focus-visible,
.ecom-section select:focus-visible,
.ecom-modal button:focus-visible,
.ecom-cart button:focus-visible,
.ecom-floating-cart:focus-visible {
  outline: 3px solid rgba(176, 113, 93, .38);
  outline-offset: 3px;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 980px) {
  .ecom-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecom-clear-btn {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .ecom-section {
    padding-top: 54px;
  }

  .ecom-search-row {
    grid-template-columns: 1fr;
  }

  .ecom-modal-grid {
    grid-template-columns: 1fr;
  }

  .ecom-modal-main-image {
    height: 340px;
  }
}

@media (max-width: 576px) {
  .ecom-section {
    padding: 46px 12px 76px;
  }

  .ecom-heading {
    margin-bottom: 26px;
  }

  .ecom-heading p {
    font-size: 13px;
  }

  .ecom-controls {
    padding: 14px;
    border-radius: 18px;
  }

  .ecom-filter-grid {
    grid-template-columns: 1fr;
  }

  .ecom-price-fields {
    grid-template-columns: 1fr 1fr;
  }

  .ecom-controls-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ecom-filter-chips {
    justify-content: flex-start;
  }

  .ecom-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ecom-product-card {
    border-radius: 15px;
  }

  .ecom-product-image {
    height: 142px;
  }

  .ecom-product-badge,
  .ecom-product-stock-badge {
    top: 8px;
    min-height: 22px;
    padding: 5px 7px;
    font-size: 7px;
  }

  .ecom-product-badge {
    left: 8px;
  }

  .ecom-product-stock-badge {
    right: 8px;
  }

  .ecom-product-content {
    padding: 11px;
  }

  .ecom-product-content h2 {
    font-size: 13px;
  }

  .ecom-product-content > p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .ecom-product-price strong {
    font-size: 1.08rem;
  }

  .ecom-product-price small {
    font-size: 8px;
  }

  .ecom-product-actions {
    grid-template-columns: 1fr;
  }

  .ecom-btn-details,
  .ecom-btn-add {
    min-height: 36px;
    font-size: 9px;
  }

  .ecom-modal-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    padding: 13px;
    border-radius: 18px;
  }

  .ecom-modal-main-image {
    height: 245px;
  }

  .ecom-modal-info {
    padding: 8px 2px 2px;
  }

  .ecom-buy-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ecom-qty {
    align-self: flex-start;
  }

  .ecom-modal-add,
  .ecom-modal-buy {
    width: 100%;
  }

  .ecom-floating-cart {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }

  .ecom-message {
    right: 12px;
    bottom: 80px;
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 360px) {
  .ecom-products-grid {
    grid-template-columns: 1fr;
  }

  .ecom-product-image {
    height: 210px;
  }
}
