:root{
  /* Farben anpassen */
  --mw-blue: #2F4F63;     /* Kachel-Hintergrund */
  --mw-text: #ffffff;     /* Text */
  --mw-btn-bg: #ffffff;   /* Button Hintergrund */
  --mw-btn-text: #2F4F63; /* Button Schrift */
}

/* Grid: Default 1 Spalte, ab Tablet 2 Spalten */
.mw-myaccount-products .mw-product-grid{
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 14px;
  width: 100%;
  clear: both;
}

@media (min-width: 768px){
  .mw-myaccount-products .mw-product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card: wie Screenshot – zentriert, rund, blau */
.woocommerce .mw-product-card{
  background: var(--mw-blue);
  border-radius: 18px;
  padding: 26px 18px 20px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

/* Icon/Produktbild oben mittig */
.woocommerce .mw-product-card__icon{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.woocommerce .mw-product-card__icon img{
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* Titel mittig, sauber umbrechen */
.woocommerce .mw-product-card__title{
  color: var(--mw-text);
  line-height: 1.35;
  font-weight: 500;
  max-width: 30ch;
  margin: 0;
}

/* Button: weiß, blaue Schrift, weniger „Pill“ */
.woocommerce .mw-product-card__button{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--mw-btn-bg);
  color: var(--mw-btn-text) !important;
  text-decoration: none;
  font-weight: 700;

  padding: 10px 14px;
  border-radius: 10px;      /* kein 999px */
  min-width: 160px;

  border: none !important;  /* falls Theme was setzt */
  box-shadow: none;
}

.woocommerce .mw-product-card__button:hover{
  filter: brightness(0.96);
}

/* Fokus sichtbar (Tastatur) */
.woocommerce .mw-product-card__button:focus{
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: 3px;
}

/* Mobile Feintuning */
@media (max-width: 767px){
  .woocommerce .mw-product-card{
    padding: 24px 16px 18px;
  }

  .woocommerce .mw-product-card__icon img{
    width: 110px;
    height: 110px;
  }

  .woocommerce .mw-product-card__button{
    width: 100%;
    max-width: 240px;
  }
}
