/* =========================================
   MeinAboWein – Shop: Suche + Weinlinie + Filter
   Version 7.17
   ========================================= */

/* Top wirklich blocken */
.mab-fullwidth {
  width: 100% !important;
  display: block !important;
  clear: both !important;
}

/* Sicherstellen: Produktlisten beginnen erst darunter */
.woocommerce ul.products,
.woocommerce-page ul.products {
  clear: both !important;
}

/* -------- Top Block -------- */
.mab-shop-top { margin: 0 0 24px 0; }

.mab-shop-intro {
  background: #F6F4EF;
  border: 1px solid #e4e1db;
  border-radius: 16px;
  padding: 22px 24px;
  margin: 0 0 12px 0;
}

.mab-shop-intro-inner { display: flex; align-items: center; gap: 18px; }

.mab-shop-avatar img {
  width: 86px;
  height: auto;
  border-radius: 50%;
  border: 3px solid #C6A572;
  background: #fff;
}

.mab-shop-text h2 {
  margin: 0 0 6px 0;
  font-size: 22px;
  line-height: 1.25;
  color: #232F37;
}

.mab-shop-lead,
.mab-shop-hint {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #232F37;
}

.mab-shop-hint { color: #555; }

.mab-shop-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Buttons */
.mab-btn-primary,
.mab-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  line-height: 1;
  cursor: pointer;
}

.mab-btn-primary {
  background: #232F37;
  color: #fff;
  border: 1px solid #232F37;
}

.mab-btn-primary:hover {
  background: #C6A572;
  border-color: #C6A572;
  color: #232F37;
}

.mab-btn-ghost {
  background: transparent;
  border: 1px solid #d8d3cc;
  color: #232F37;
}

.mab-btn-ghost:hover {
  border-color: #C6A572;
  background: rgba(198,165,114,0.12);
}

.mab-btn-small {
  padding: 10px 14px;
  font-size: 14px;
}

/* Cart badge */
.mab-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #C6A572;
  color: #232F37;
  font-size: 12px;
  font-weight: 800;
}

/* -------- Filterbar -------- */
.mab-shop-filters {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
  margin: 0 0 16px 0;
}

.mab-filter-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 12px;
  align-items: end;
}

.mab-filter label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 700;
}

.mab-filter-select,
.mab-filter-search-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e1dfda;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #232F37;
  box-sizing: border-box;
  font: inherit;
  line-height: 1.2;
}

.mab-filter-search {
  grid-column: 1 / -1;
  padding: 12px 14px;
  background: #F6F4EF;
  border: 1px solid #e4e1db;
  border-radius: 12px;
}

.mab-filter-search label {
  color: #232F37;
  margin-bottom: 7px;
}

.mab-filter-search-input {
  border-color: #d6c7ab;
  background: #fff;
}

.mab-filter-search-input::placeholder {
  color: #777;
  opacity: 1;
}

.mab-filter-select:focus,
.mab-filter-search-input:focus {
  outline: none;
  border-color: #C6A572;
  box-shadow: 0 0 0 3px rgba(198,165,114,0.18);
}

.mab-filter-search-hint {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 12px;
  line-height: 1.35;
}

.mab-filter-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  grid-column: 1 / -1;
  padding-top: 2px;
}

/* Add notice */
.mab-addnotice {
  background: rgba(198,165,114,0.18);
  border: 1px solid rgba(198,165,114,0.35);
  color: #232F37;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px 0;
}

.mab-addnotice-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #C6A572;
  color: #232F37;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.mab-addnotice-link {
  margin-left: auto;
  color: #232F37;
  font-weight: 800;
  text-decoration: underline;
}

/* -------- Gefilterte Auswahl Block -------- */
.mab-filtered-block {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
  margin: 0 0 18px 0;
}

.mab-filtered-head h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  color: #232F37;
}

.mab-filtered-head p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 13px;
}

.mab-filtered-search-result {
  margin: 0 0 14px 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(198,165,114,0.12);
  border: 1px solid rgba(198,165,114,0.30);
  color: #232F37;
  font-size: 14px;
  font-weight: 700;
}

.mab-filtered-empty {
  padding: 14px;
  border-radius: 12px;
  background: #F6F4EF;
  border: 1px solid #e4e1db;
  color: #232F37;
}

/* Separator zwischen oben und Woo Standard */
.mab-shop-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px 0;
}

.mab-shop-separator:before,
.mab-shop-separator:after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.08);
}

.mab-shop-separator span {
  font-weight: 800;
  color: #232F37;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Product cards edler */
.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.woocommerce ul.products li.product .button {
  background: #232F37 !important;
  border-radius: 8px !important;
  transition: all 0.2s ease;
}

.woocommerce ul.products li.product .button:hover {
  background: #C6A572 !important;
  color: #232F37 !important;
}

@media (max-width: 1100px) {
  .mab-filter-row {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .mab-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .mab-shop-intro-inner {
    flex-direction: column;
    text-align: center;
  }

  .mab-shop-actions {
    justify-content: center;
  }

  .mab-shop-intro {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .mab-filter-row {
    grid-template-columns: 1fr;
  }

  .mab-filter-search,
  .mab-filter-actions {
    grid-column: 1;
  }

  .mab-filter-actions {
    justify-content: stretch;
  }

  .mab-filter-actions .mab-btn-primary,
  .mab-filter-actions .mab-btn-ghost {
    flex: 1;
  }

  .mab-filter-search {
    padding: 12px;
  }

  .mab-filter-search-hint {
    font-size: 11px;
  }
}


/* Flaschen vollständig und ruhig darstellen – besonders Steinberg-Etiketten. */
.woocommerce ul.products li.product a img.mab-shop-product-image,
.woocommerce-page ul.products li.product a img.mab-shop-product-image,
.woocommerce ul.products li.product a img.attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 280px !important;
  margin: 0 0 14px !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}
@media (max-width: 640px) {
  .woocommerce ul.products li.product a img.mab-shop-product-image,
  .woocommerce-page ul.products li.product a img.mab-shop-product-image,
  .woocommerce ul.products li.product a img.attachment-woocommerce_thumbnail {
    height: 240px !important;
  }
}
