/* ABIGAIL: replaces assets/abigail-shop/shop.css from package 0.1.
 * Card design and typography stay in Avada. Special image geometry lives here.
 * Classes: Column = abn-card abn-with-honey; Post Card Image = abn-product-image.
 */
.abn-card {
    --abn-image-height: 270px;
    --abn-image-lift: 155px;
    --abn-image-width: 82%;
    position: relative;
    isolation: isolate;
    overflow: visible !important;
}
.abn-card > .fusion-column-wrapper {
    overflow: visible !important;
}
/* Remove the old decoration if an older stylesheet is still present. */
.abn-card.abn-with-honey::before { content: none; }
.abn-card .abn-product-image {
    position: relative;
    isolation: isolate;
    z-index: 1;
    flex-shrink: 0;
    height: var(--abn-image-height);
    min-height: var(--abn-image-height);
    margin-top: calc(-1 * var(--abn-image-lift)) !important;
    margin-bottom: 0px !important;
    overflow: visible !important;
}
/* Paint decoration above the card surface, below image and link. */
.abn-card.abn-with-honey .abn-product-image::before {
    content: "";
    position: absolute;
    inset: -20px -20px -30px;
    background: url("honey.svg") center / contain no-repeat;
    pointer-events: none;
    z-index: 0;
}
.abn-card .abn-product-image > * {
    position: relative;
    z-index: 1;
}
.abn-card .abn-product-image .fusion-image-wrapper,
.abn-card .abn-product-image .fusion-imageframe,
.abn-card .abn-product-image a,
.abn-card .abn-product-image picture {
    display: block;
    height: 100%;
    overflow: visible !important;
}
.abn-card .abn-product-image img {
    display: block;
    position: relative;
    z-index: 1;
    width: var(--abn-image-width) !important;
    max-width: 100% !important;
    height: var(--abn-image-height) !important;
    object-fit: contain !important;
    object-position: center;
    margin-inline: auto;
    filter: drop-shadow(0 18px 15px rgb(24 38 58 / 8%));
}
/* Optional class on the archive element; no global overflow override. */
.abn-products,
.abn-products .fusion-grid,
.abn-products .fusion-grid-column,
.abn-products .fusion-post-card,
.abn-products .fusion-post-card-content {
    overflow: visible !important;
}
.abn-card .abn-purchase { margin-top: auto; }
.abn-card .abn-price { font-variant-numeric: tabular-nums; }
/* Purchase-area alignment: assign abn-purchase to Post Card Cart itself.
 * Use equal-height cards (Stretch) and a vertical card Column in Avada.
 * Minimum heights grow for extra attributes, messages or long content.
 */
.abn-card > .fusion-column-wrapper {
    display: flex;
    flex-direction: column;
}
.abn-card .abn-purchase {
    --abn-purchase-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-shrink: 0;
    min-height: var(--abn-purchase-height);
    margin-top: auto;
    width: 100%;
}
.abn-card .abn-purchase form.cart {
    width: 100%;
    margin-bottom: 0;
}
.abn-card .abn-purchase form.variations_form {
    display: flex;
    flex-direction: column;
    min-height: var(--abn-purchase-height);
}
.abn-card .abn-purchase .variations { margin-bottom: 16px; }
.abn-card .abn-purchase .single_variation_wrap { margin-top: auto; }
.abn-card .abn-purchase .woocommerce-variation-add-to-cart {
    margin-bottom: 0;
}
/* Optional class on the tax/shipping Text Block. */
.abn-card .abn-tax { flex-shrink: 0; }
.abn-card .abn-tax p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
    .abn-card {
        --abn-image-height: 230px;
        --abn-image-lift: 150px;
        --abn-image-width: 92%;
    }
}


/* WARENKORB – ergänzende Details */

/* Produktbilder vollständig darstellen */
.ab-cart-table .product-thumbnail img {
  width: 100px;
  max-width: 100%;
  height: 100px;
  object-fit: contain;
}

/* Gewählte Varianten */
.ab-cart-table .variation {
  color: #657085;
  font-size: 13px;
}

/* Positionssumme */
.ab-cart-table .product-subtotal {
  color: #17243A;
  font-weight: 500;
}

/* Gesamtbetrag */
.ab-cart-totals .order-total th,
.ab-cart-totals .order-total td {
  font-size: 21px;
  font-weight: 500;
}

/* Echter WooCommerce-Kassenbutton */
.ab-cart-summary a.checkout-button {
  display: block;
  box-sizing: border-box;
  padding: 16px 20px;
  border: 0;
  border-radius: 0px;
  background: #8a654a;
	border-radius:15px;
  color: #fff;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
}

.ab-cart-summary a.checkout-button:hover {
  border-radius:15px;
  background: #9a6a2c;
  color: #fff;
}

@media (max-width: 600px) {
  .ab-cart-table .product-thumbnail img {
    width: 72px;
    height: 92px;
  }
}

/* Kompaktere Produktkarten auf Smartphones */
@media (max-width: 600px) {
  .abn-card {
    --abn-image-height: 140px;
    --abn-image-lift: 95px;
    --abn-image-width: 78%;
  }

  .abn-card .abn-product-image {
    margin-bottom: 0px !important;
  }

  .abn-card .abn-purchase {
    --abn-purchase-height: 0px;
    margin-top: 5px;
  }

  .abn-card .abn-purchase .variations {
    margin-bottom: 0px;
  }

  .abn-card .abn-purchase .single_variation_wrap {
    margin-top: 0;
  }
}

/* Warenkorb: ausgewogene Spalten auf Desktop */
@media (min-width: 1100px) {
  .ab-cart-table table.shop_table {
    width: 100%;
    table-layout: fixed;
  }

  /* Kompakte Bildspalte */
  .ab-cart-table .product-thumbnail,
  .ab-cart-table .product-image {
    width: 110px !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
  }

  /* Produktname nutzt den verbleibenden Platz */
  .ab-cart-table .product-name,
  .ab-cart-table .product-title {
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
    text-align: left;
    overflow-wrap: anywhere;
  }

  /* Abstand zwischen Mengenfeld und Preis */
  .ab-cart-table .product-quantity {
    width: 140px !important;
    padding-left: 8px !important;
    padding-right: 20px !important;
    text-align: center;
  }

  /* Positionssumme */
  .ab-cart-table .product-subtotal {
    width: 100px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    text-align: right;
    white-space: nowrap;
  }

  /* Entfernen-Symbol separat */
  .ab-cart-table .product-remove {
    width: 32px !important;
    padding-left: 8px !important;
    padding-right: 0 !important;
    text-align: right;
  }
}

/* Bestellübersicht: einheitliche Button-Schrift */
.ab-cart-summary [name="update_cart"],
.ab-cart-summary .fusion-update-cart,
.ab-cart-summary .checkout-button {
  font-size: 14px !important;
  border-radius:15px;
  line-height: 1.3 !important;
}

.ab-cart-summary [name="update_cart"] .fusion-button-text,
.ab-cart-summary .fusion-update-cart .fusion-button-text,
.ab-cart-summary .checkout-button .fusion-button-text {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Mobil: beide Buttons gleich groß untereinander */
@media (max-width: 600px) {
  .ab-cart-summary .wc-proceed-to-checkout {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ab-cart-summary .wc-proceed-to-checkout > * {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .ab-cart-summary [name="update_cart"],
  .ab-cart-summary .fusion-update-cart,
  .ab-cart-summary .checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 52px;
    padding: 12px 16px !important;
    margin: 0 !important;
    box-sizing: border-box;
    text-align: center !important;
    white-space: normal;
  }
}

/* PRODUKTDETAIL – Hauptaufnahme */
.ab-detail-gallery
.woocommerce-product-gallery__image:first-child {
  background:
    url("honey.svg") center / 95% auto no-repeat,
    #EFF3FA;
  border: 1px solid #D9DEEC;
  border-radius: 24px;
  overflow: hidden;
}

/* Produkt vollständig darstellen */
.ab-detail-gallery
.woocommerce-product-gallery__image:first-child img {
  object-fit: contain;
}

/* Kaufbutton */
.ab-detail-cart .single_add_to_cart_button {
  min-height: 48px;
  border-radius: 12px;
}

/* Kleine Displays */
@media (max-width: 600px) {
  .ab-detail-gallery
  .woocommerce-product-gallery__image:first-child {
    border-radius: 18px;
  }

  .ab-detail-cart .single_add_to_cart_button {
    min-height: 44px;
  }
}


/* Waben hinter der Hauptaufnahme der Produktgalerie */
.ab-detail-gallery .flex-viewport {
  background-color: #EFF3FA;
  background-image: url("honey.svg");
  background-position: center;
  background-size: 95% auto;
  background-repeat: no-repeat;
}

/* Deckende Hintergründe der einzelnen Slides entfernen */
.ab-detail-gallery .woocommerce-product-gallery__image,
.ab-detail-gallery .woocommerce-product-gallery__image > a {
  background: transparent !important;
}


/* Produktgalerie: benachbarte Slides abschneiden */
.ab-detail-gallery .flex-viewport {
  overflow: hidden !important;
}


/* Rahmen am ersten Slide testweise entfernen */
.ab-detail-gallery
.woocommerce-product-gallery__image:first-child {
  border: 0 !important;
}