/* Consistent thumbnails and compact actions on VirtueMart product-list cards. */
.vm-product-grid .product-container .vm-product-media-container {
  min-height: 166px !important;
  height: 166px;
}
.vm-product-grid .product-container .vm-product-media-container > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.vm-product-grid .product-container .browseProductImage {
  display: block;
  float: none !important;
  width: 150px !important;
  height: 150px !important;
  max-width: 150px !important;
  max-height: 150px !important;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}
.vm-product-grid .product-container .mamlux-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}
.vm-product-grid .mamlux-view-product {
  display: inline-flex;
  flex: 1 1 104px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid #b83238;
  border-radius: 9px;
  background: #fff;
  color: #a92d33;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
.vm-product-grid .mamlux-view-product:hover,
.vm-product-grid .mamlux-view-product:focus-visible {
  border-color: #98252d;
  background: #fff2f2;
  color: #98252d;
}
.vm-product-grid .mamlux-product-actions > .addtocart-area {
  flex: 2 1 190px;
  min-width: 0;
  margin: 0;
}
.vm-product-grid .mamlux-product-actions .addtocart-area form,
.vm-product-grid .mamlux-product-actions .addtocart-bar {
  height: 100%;
  margin: 0;
}
.vm-product-grid .mamlux-product-actions .addtocart-bar > .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 5px;
  height: 100%;
  margin: 0;
}
.vm-product-grid .mamlux-product-actions .vm-addtocart-button-col {
  order: 1;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding: 0;
}
.vm-product-grid .mamlux-product-actions .addtocart-bar .col-auto {
  order: 2;
  flex: 0 0 98px;
  width: 98px;
  padding: 0;
}
.vm-product-grid .mamlux-product-actions .vm-addtocart-button-wrapper,
.vm-product-grid .mamlux-product-actions .addtocart-button {
  width: 100%;
  height: 100%;
  min-height: 48px;
}
.vm-product-grid .mamlux-product-actions .addtocart-button {
  padding: 5px 6px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
}
.vm-product-grid .mamlux-product-actions .quantity-box {
  display: flex;
  width: 98px;
  height: 48px;
  border: 1px solid #d9e1e9;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.vm-product-grid .mamlux-product-actions .quantity-box .quantity-controls {
  display: inline-flex;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  width: 27px;
  min-width: 27px;
  height: 46px;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  color: #334b62;
}
.vm-product-grid .mamlux-product-actions .quantity-box .quantity-controls:hover,
.vm-product-grid .mamlux-product-actions .quantity-box .quantity-controls:focus-visible {
  background: #f5e9ea;
  color: #a92d33;
}
.vm-product-grid .mamlux-product-actions .quantity-box .quantity-controls svg {
  width: 17px;
  height: 17px;
}
.vm-product-grid .mamlux-product-actions .quantity-box .quantity-input {
  flex: 1 1 0;
  width: 42px !important;
  min-width: 0;
  height: 46px;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}
.vm-product-grid .mamlux-product-actions .addtocart-bar .notify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  white-space: normal;
}

@media (max-width: 430px) {
  .vm-product-grid > .row > .product.col-6 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Category-specific color palette for product actions and prices. */
.category-view.mamlux-card-tone-electrolux { --mamlux-card-accent: #245f9b; --mamlux-card-accent-dark: #194b7d; --mamlux-card-accent-soft: #eaf2fb; }
.category-view.mamlux-card-tone-bosch { --mamlux-card-accent: #b83238; --mamlux-card-accent-dark: #97262d; --mamlux-card-accent-soft: #fff0f1; }
.category-view.mamlux-card-tone-siemens { --mamlux-card-accent: #007f89; --mamlux-card-accent-dark: #00656e; --mamlux-card-accent-soft: #e6f6f5; }
.category-view.mamlux-card-tone-alternative { --mamlux-card-accent: #596570; --mamlux-card-accent-dark: #444e58; --mamlux-card-accent-soft: #eff2f4; }
.category-view.mamlux-card-tone-household { --mamlux-card-accent: #4c6b53; --mamlux-card-accent-dark: #38563f; --mamlux-card-accent-soft: #eef6ef; }
.category-view { --mamlux-card-accent: #b83238; --mamlux-card-accent-dark: #97262d; --mamlux-card-accent-soft: #fff0f1; }
.category-view .vm-product-grid .product-container .PricesalesPrice,
.category-view .vm-product-grid .product-container .vm-product-title a:hover {
  color: var(--mamlux-card-accent);
}
.vm-product-grid .product-container .mamlux-product-actions {
  align-items: flex-end;
}
.vm-product-grid .mamlux-product-actions .mamlux-view-product {
  flex: 1 1 120px;
  align-self: flex-end;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border-color: var(--mamlux-card-accent);
  color: var(--mamlux-card-accent);
}
.vm-product-grid .mamlux-product-actions .mamlux-view-product:hover,
.vm-product-grid .mamlux-product-actions .mamlux-view-product:focus-visible {
  border-color: var(--mamlux-card-accent-dark);
  background: var(--mamlux-card-accent-soft);
  color: var(--mamlux-card-accent-dark);
}
.vm-product-grid .mamlux-product-actions > .addtocart-area {
  flex: 0 0 151px;
  width: 151px;
  align-self: flex-end;
  margin-left: auto;
}
.vm-product-grid .mamlux-product-actions .addtocart-area form {
  height: auto !important;
  min-height: 48px;
}
.vm-product-grid .mamlux-product-actions .addtocart-bar {
  height: 48px;
  min-height: 48px;
}
.vm-product-grid .mamlux-product-actions .addtocart-bar > .row {
  height: 48px;
}
.vm-product-grid .mamlux-product-actions .vm-addtocart-button-col {
  flex: 0 0 48px;
  width: 48px;
  max-width: 48px;
}
.vm-product-grid .mamlux-product-actions .vm-addtocart-button-wrapper {
  width: 48px;
  height: 48px;
}
.vm-product-grid .mamlux-product-actions .addtocart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0 !important;
  border: 1px solid var(--mamlux-card-accent) !important;
  border-radius: 9px;
  background: var(--mamlux-card-accent) !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 0;
}
.vm-product-grid .mamlux-product-actions .addtocart-button:hover,
.vm-product-grid .mamlux-product-actions .addtocart-button:focus-visible {
  border-color: var(--mamlux-card-accent-dark) !important;
  background: var(--mamlux-card-accent-dark) !important;
}
.vm-product-grid .mamlux-product-actions .addtocart-button::before {
  content: "";
  display: block;
  width: 23px;
  height: 23px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h3l2.4 12.4a2 2 0 0 0 2 1.6h10a2 2 0 0 0 2-1.6L23 6H5'/%3E%3C/svg%3E");
}
.vm-product-grid .mamlux-product-actions .quantity-box .quantity-controls:hover,
.vm-product-grid .mamlux-product-actions .quantity-box .quantity-controls:focus-visible {
  background: var(--mamlux-card-accent-soft);
  color: var(--mamlux-card-accent-dark);
}

/* Align the detail button with the actual cart controls, not the form's extra height. */
.vm-product-grid .product-container .mamlux-product-actions {
  align-items: flex-start;
}
.vm-product-grid .mamlux-product-actions .mamlux-view-product,
.vm-product-grid .mamlux-product-actions > .addtocart-area {
  align-self: flex-start;
}
.vm-product-grid .mamlux-product-actions .mamlux-view-product {
  margin-top: 30px;
}
.vm-product-grid .mamlux-product-actions .addtocart-bar {
  margin-top: 0 !important;
}
