.mab-wp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:22px;margin:22px auto}.mab-wp-card{overflow:hidden;background:#fff;border:1px solid #e5d8c3;border-radius:16px;box-shadow:0 6px 22px rgba(35,47,55,.06);height:100%;display:flex;flex-direction:column}.mab-wp-media{position:relative;display:block;background:#f6f4ef;aspect-ratio:4/3;overflow:hidden}.mab-wp-cover{width:100%;height:100%;object-fit:contain;display:flex;align-items:center;justify-content:center;font-size:76px}.mab-wp-badge{position:absolute;top:12px;left:12px;padding:7px 12px;background:#232f37;color:white;border-radius:50px;font-size:13px;font-weight:700}.mab-wp-body{padding:20px;display:flex;flex-direction:column;gap:11px;flex:1;color:#232f37}.mab-wp-body small{font-size:13px;color:#88632f}.mab-wp-body h3{font-size:22px;line-height:1.24;margin:0}.mab-wp-body h3 a{color:#232f37!important;text-decoration:none}.mab-wp-body p{margin:0;line-height:1.6}.mab-wp-price{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.mab-wp-price del{font-size:16px;color:#767676}.mab-wp-price strong{font-size:23px;color:#232f37}.mab-wp-note{font-size:13px;color:#6a604f}.mab-wp-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}.mab-wp-actions form{margin:0;flex:1}.mab-wp-actions button,.mab-wp-secondary{min-height:47px!important;padding:12px 16px!important;border-radius:9px!important;white-space:normal;display:flex;align-items:center;justify-content:center;font-weight:700;cursor:pointer;text-decoration:none!important;font-size:15px!important}.mab-wp-actions button{background:#232f37!important;border:1px solid #232f37!important;color:white!important;width:100%}.mab-wp-secondary{background:transparent;color:#232f37!important;border:1px solid #c6a572;flex:1}.mab-wp-contents{border-top:1px solid #e9e3d9;padding-top:13px}.mab-wp-contents ul{padding-left:22px}.mab-wp-contents a{color:#856023!important}.mab-wp-paused{color:#984e35}.mab-wp-single .mab-wp-card{max-width:950px;margin:auto}.mab-wp-single .mab-wp-media{aspect-ratio:16/8}.mab-wp-cart-meta{display:block;color:#767676;margin-top:6px}@media(max-width:520px){.mab-wp-grid{grid-template-columns:1fr;gap:16px}.mab-wp-card .mab-wp-body{padding:16px}.mab-wp-actions{flex-direction:column}.mab-wp-actions form,.mab-wp-secondary{width:100%}.mab-wp-single .mab-wp-media{aspect-ratio:4/3}}

/* Live collage fallback when the hosting server has no GD or no local product attachments. */
.mab-wp-auto-composite{position:relative;width:100%;height:100%;background:#faf9f6;overflow:hidden;display:flex;align-items:flex-end;padding:16% 3% 5%;box-sizing:border-box}
.mab-wp-bottles{display:flex;justify-content:space-around;align-items:flex-end;gap:2px;width:100%;height:100%}
.mab-wp-bottles img{display:block;flex:1 1 0;min-width:0;max-width:20%;width:0;height:100%;object-fit:contain;object-position:bottom center;}
.mab-wp-goldseal{position:absolute;right:2%;top:3%;width:24%;aspect-ratio:1;border-radius:50%;background:#e3bf80;border:4px double #fff5df;box-shadow:0 2px 8px #4c301933;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#302315;line-height:1.1;pointer-events:none}
.mab-wp-goldseal b{font-family:Georgia,serif;font-size:clamp(18px,3vw,43px);line-height:1}
.mab-wp-goldseal span{font-family:Georgia,serif;font-size:clamp(9px,1.4vw,17px);max-width:94%;overflow-wrap:anywhere}
@media(max-width:520px){.mab-wp-goldseal{width:25%;right:2%;top:4%}.mab-wp-goldseal b{font-size:28px}.mab-wp-goldseal span{font-size:11px}}

/* Dynamic per-package / per-customer discount. Keep gold bottle seal visible. */
.mab-wp-discount{position:absolute;right:12px;bottom:12px;background:#fff9eb;color:#724b14;border:1px solid #c7a467;border-radius:30px;padding:8px 13px;font-size:13px;font-weight:800;box-shadow:0 2px 8px #00000016}
.mab-wp-price del{color:#707780;text-decoration:line-through;font-size:16px}.mab-wp-price strong{font-size:24px;font-weight:800}.mab-wp-price{margin-top:5px}
@media(max-width:520px){.mab-wp-discount{padding:6px 10px;font-size:12px}.mab-wp-price strong{font-size:23px}}

/* V1.4.0: Individual product images and accessible wine list, like the producer's bundle page. */
.mab-wp-single{max-width:1060px;margin-inline:auto}
.mab-wp-single .mab-wp-card{max-width:none}
.mab-wp-contents{margin:clamp(18px,3vw,38px) auto 0;padding:clamp(16px,2.5vw,30px);border:1px solid #e5d8c3;background:#fff;border-radius:16px;color:#232f37;box-shadow:0 6px 22px rgba(35,47,55,.045)}
.mab-wp-contents-head h2{font-family:Georgia,serif;font-size:clamp(22px,2.5vw,30px);margin:0 0 8px;line-height:1.25;color:#232f37}
.mab-wp-contents-head p{margin:0 0 14px;color:#56616a;line-height:1.55}
.mab-wp-wine-list{display:flex;flex-direction:column}
.mab-wp-wine-row{display:grid;grid-template-columns:126px minmax(0,1fr) auto;align-items:center;gap:clamp(12px,2vw,24px);padding:20px 0;border-bottom:1px solid #e7e2d9;min-width:0}
.mab-wp-wine-row:last-child{border-bottom:0;padding-bottom:2px}
.mab-wp-wine-photo{display:flex;align-items:center;justify-content:center;background:#fbfaf7;border-radius:10px;padding:8px;min-height:150px;max-height:185px;text-decoration:none!important;overflow:hidden}
.mab-wp-wine-img{display:block;width:100%;height:170px;object-fit:contain;object-position:center}
.mab-wp-no-image{font-size:12px;color:#67727b;text-align:center}
.mab-wp-wine-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.mab-wp-wine-info h3{font-family:inherit;font-size:clamp(16px,1.6vw,19px);font-weight:750;line-height:1.34;margin:0;overflow-wrap:anywhere}
.mab-wp-wine-info h3 a{color:#232f37!important;text-decoration:none!important}
.mab-wp-wine-info h3 a:hover,.mab-wp-wine-link:hover{text-decoration:underline!important}
.mab-wp-wine-facts,.mab-wp-wine-description{font-size:14px;line-height:1.5;color:#5c6470;margin:0}
.mab-wp-wine-description{max-width:70ch}
.mab-wp-wine-link{font-weight:700;font-size:14px;color:#805824!important;text-decoration:underline!important;min-height:28px;display:inline-flex;align-items:center}
.mab-wp-wine-qty{justify-self:end;align-self:center;display:inline-block;white-space:nowrap;border-radius:6px;background:#f6f1e8;color:#805824;font-size:13px;font-weight:700;padding:9px 12px}
.mab-wp-wine-rating{display:flex;gap:7px;align-items:center;font-size:13px;color:#a56b22;line-height:1.1}
.mab-wp-wine-rating .star-rating{float:none;margin:0}
.mab-wp-wine-review-count{color:#59636c}
@media(max-width:700px){
  .mab-wp-wine-row{grid-template-columns:90px minmax(0,1fr);align-items:start;gap:12px;padding:16px 0}
  .mab-wp-wine-photo{min-height:124px;max-height:150px;padding:5px}
  .mab-wp-wine-img{height:140px}
  .mab-wp-wine-qty{grid-column:2;justify-self:start;margin-top:-3px}
  .mab-wp-wine-description{display:none}
}
@media(max-width:360px){
  .mab-wp-wine-row{grid-template-columns:74px minmax(0,1fr)}
  .mab-wp-wine-photo{min-height:110px}
  .mab-wp-wine-img{height:118px}
  .mab-wp-wine-facts{font-size:12px}
}

/* V1.4.1 – Do not display the author's name or publication date on package detail pages.
 * Astra includes these in .entry-meta below the main package title.
 * This is restricted to the wine-package custom post type: news and shop posts remain unchanged.
 */
body.single-mab_wine_package .entry-meta,
body.single-mab_wine_package .entry-header .entry-meta,
body.single-mab_wine_package .entry-meta .posted-on,
body.single-mab_wine_package .entry-meta .byline,
body.single-mab_wine_package .entry-meta .cat-links {
  display: none !important;
}

/* V1.4.2 – Versandkostenhinweis unmittelbar unter dem Paketpreis.
 * Reine Information: die tatsächlichen Versandkosten bleiben Sache des Checkouts. */
.mab-wp-body .mab-wp-shipping-note{margin:-5px 0 0;font-size:13px;line-height:1.45;color:#59636c;}


/* V1.4.3 – clearer package heading, prettier gold seal and automatic front-page section. */
.mab-wp-kicker{margin:2px 0 -2px;font-size:12px;line-height:1.35;letter-spacing:.08em;text-transform:uppercase;color:#8c6a34;font-weight:800}
.mab-wp-media{border-bottom:1px solid #ecdfca}
.mab-wp-auto-composite{background:linear-gradient(180deg,#fbfaf6 0%,#f4efe5 100%);padding:15% 3.5% 5.5%}
.mab-wp-bottles{align-items:flex-end;gap:4px}
.mab-wp-bottles img{filter:drop-shadow(0 16px 18px rgba(0,0,0,.12))}
.mab-wp-goldseal{position:absolute;right:3%;top:4%;width:25%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 30% 30%,#f7df9a 0%,#e0b866 58%,#cca055 100%);border:1px solid #b98a35;box-shadow:0 10px 22px rgba(76,48,25,.20), inset 0 0 0 4px rgba(255,245,223,.65), inset 0 0 0 7px rgba(185,138,53,.38);padding:10px 9px;color:#3f2b10}
.mab-wp-goldseal::after{content:'';position:absolute;inset:7px;border-radius:50%;border:1px solid rgba(90,57,17,.18);pointer-events:none}
.mab-wp-goldseal b{font-size:clamp(19px,3vw,42px);font-weight:700;letter-spacing:.01em}
.mab-wp-goldseal span{font-size:clamp(8px,1.18vw,14px);font-weight:700;letter-spacing:.09em;text-transform:uppercase;line-height:1.15;max-width:94%;overflow-wrap:anywhere;text-align:center}
.mab-wp-home-section{margin:40px auto 0;max-width:1200px}
.mab-wp-home-head{margin:0 0 18px}
.mab-wp-home-head h2{margin:0 0 6px;font-family:Georgia,serif;font-size:clamp(28px,3vw,40px);line-height:1.15;color:#232f37}
.mab-wp-home-head p{margin:0;color:#59636c;line-height:1.6}
@media(max-width:520px){.mab-wp-goldseal{width:27%;top:4%;right:3%}.mab-wp-home-section{margin-top:28px}}


/* V1.4.4 – Shop-sized package tiles, even when only one item exists. */
.mab-wp-grid-featured{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr));gap:22px;align-items:start;justify-items:start}
.mab-wp-grid-featured .mab-wp-card{width:100%;max-width:320px;min-width:0;height:auto;border-radius:9px;box-shadow:none}
.mab-wp-grid-featured .mab-wp-media{aspect-ratio:1/1;background:#f8f7f3}
.mab-wp-grid-featured .mab-wp-cover{object-fit:contain}
.mab-wp-grid-featured .mab-wp-body{padding:12px 14px 16px;gap:7px}
.mab-wp-grid-featured .mab-wp-body h3{font-size:17px;line-height:1.32}
.mab-wp-grid-featured .mab-wp-body>p:not(.mab-wp-kicker):not(.mab-wp-shipping-note):not(.mab-wp-note):not(.mab-wp-paused){font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mab-wp-grid-featured .mab-wp-kicker{font-size:11px;letter-spacing:.065em}
.mab-wp-grid-featured .mab-wp-price{margin:4px 0 2px;gap:8px}
.mab-wp-grid-featured .mab-wp-price strong{font-size:22px}
.mab-wp-grid-featured .mab-wp-price del{font-size:13px}
.mab-wp-grid-featured .mab-wp-note{font-size:12px;line-height:1.35}
.mab-wp-grid-featured .mab-wp-actions{margin-top:8px}
.mab-wp-grid-featured .mab-wp-actions button,.mab-wp-grid-featured .mab-wp-secondary{padding:9px 12px!important;min-height:40px!important;font-size:13px!important}
.mab-wp-grid-featured .mab-wp-paused{font-size:12px;line-height:1.4}
.mab-wp-grid-featured .mab-wp-badge{display:none}
.mab-wp-grid-featured .mab-wp-discount{font-size:11px;right:8px;bottom:8px;padding:5px 9px}
/* HTML image fallback matches the new official product-photo collage style. */
.mab-wp-auto-composite .mab-wp-goldseal{right:3.2%;top:4.5%;width:18%;min-width:68px;max-width:155px;aspect-ratio:1;background:#252823;color:#efd18c;border:3px solid #c8a261;box-shadow:0 4px 12px rgba(0,0,0,.17),inset 0 0 0 2px #252823,inset 0 0 0 4px #c8a261;padding:7px 4px}
.mab-wp-auto-composite .mab-wp-goldseal::after{inset:5px;border:0;border-top:1px solid rgba(235,203,132,.55);border-bottom:1px solid rgba(235,203,132,.55);border-radius:0;top:48%;bottom:37%}
.mab-wp-auto-composite .mab-wp-goldseal b{color:#efd18c;font-size:clamp(16px,2.5vw,30px)}
.mab-wp-auto-composite .mab-wp-goldseal span{color:#efd18c;font:700 clamp(7px,.95vw,11px)/1.15 system-ui,sans-serif;letter-spacing:.04em;margin-top:12px}
@media(max-width:620px){.mab-wp-grid-featured{gap:14px}.mab-wp-grid-featured .mab-wp-card{max-width:340px}.mab-wp-auto-composite .mab-wp-goldseal{min-width:64px;width:19%}.mab-wp-auto-composite .mab-wp-goldseal span{font-size:8px;margin-top:6px}}

/* V1.5.1: All six original bottle photos must remain entirely visible.
 * WooCommerce's square cropped thumbnail is no longer used in the markup.
 * Scope these stronger rules to the actual wine-detail classes, not the
 * older ".mab-pack-contents" selector which does not exist on this page.
 * Keep the product image unchanged; never crop the original photograph.
 */
.mab-wp-contents .mab-wp-wine-row > a.mab-wp-wine-photo {
  box-sizing: border-box;
  width: 100%;
  height: 190px;
  min-height: 0;
  max-height: none;
  padding: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mab-wp-contents .mab-wp-wine-row > a.mab-wp-wine-photo > img.mab-wp-wine-img {
  box-sizing: border-box;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
}
@media (max-width: 620px) {
  .mab-wp-contents .mab-wp-wine-row > a.mab-wp-wine-photo {
    height: 144px;
    padding: 5px;
  }
}
@media (max-width: 360px) {
  .mab-wp-contents .mab-wp-wine-row > a.mab-wp-wine-photo {
    height: 120px;
  }
}

/* V1.5.2 – Premium wine-package presentation.
   The count is REAL TEXT, not a tiny stamp burned into the cover PNG.
   On every page the same black-on-gold identity and accessible touch areas.
*/
.mab-wp-card .mab-wp-media .mab-wp-pack-label{
  position:absolute;
  top:clamp(10px,1.5vw,18px);
  left:clamp(10px,1.5vw,18px);
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:calc(100% - 32px);
  padding:8px 14px;
  border:1px solid rgba(217,183,117,.25);
  border-radius:100px;
  background:#222f38;
  color:#fff;
  box-shadow:0 4px 16px rgba(18,27,32,.16);
  font-size:clamp(12px,.88vw,14px);
  line-height:1.2;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
  white-space:nowrap;
  pointer-events:none;
}
.mab-wp-card .mab-wp-goldseal,
.mab-wp-card .mab-wp-badge{display:none!important}
.mab-wp-card .mab-wp-media .mab-wp-discount{
  z-index:3;
  font-size:clamp(12px,.9vw,14px);
  right:12px;
  bottom:12px;
  padding:8px 12px;
}
.mab-wp-card .mab-wp-media .mab-wp-cover{
  object-fit:contain;
  object-position:center center;
}
.mab-wp-card .mab-wp-note{
  color:#77582b;
  font-size:13px;
  line-height:1.5;
  font-weight:650;
  margin:0;
}

/* Three homepage highlights use the FULL row rather than 320px-wide mini cards. */
.mab-wp-home-section{width:100%;max-width:1250px;margin-inline:auto}
.mab-wp-grid.mab-wp-grid-featured{
  display:grid;
  width:100%;
  grid-template-columns:repeat(3,minmax(0,1fr));
  justify-items:stretch;
  align-items:stretch;
  column-gap:22px;
  row-gap:22px;
}
.mab-wp-grid-featured .mab-wp-card{
  width:100%;
  max-width:none;
  height:100%;
  min-width:0;
  border-radius:14px;
  box-shadow:0 8px 22px rgba(35,47,55,.055);
}
.mab-wp-grid-featured .mab-wp-media{aspect-ratio:4/3}
.mab-wp-grid-featured .mab-wp-body{
  padding:18px 19px 20px;
  gap:10px;
}
.mab-wp-grid-featured .mab-wp-body h3{
  font-size:clamp(18px,1.45vw,22px);
  line-height:1.3;
}
.mab-wp-grid-featured .mab-wp-body>p:not(.mab-wp-kicker):not(.mab-wp-shipping-note):not(.mab-wp-note):not(.mab-wp-paused){
  font-size:14px;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.mab-wp-grid-featured .mab-wp-kicker{font-size:12px;letter-spacing:.07em}
.mab-wp-grid-featured .mab-wp-price strong{font-size:25px}
.mab-wp-grid-featured .mab-wp-price del{font-size:15px}
.mab-wp-grid-featured .mab-wp-note{font-size:13px;line-height:1.5}
.mab-wp-grid-featured .mab-wp-actions{gap:9px;margin-top:auto}
.mab-wp-grid-featured .mab-wp-actions button,
.mab-wp-grid-featured .mab-wp-secondary{
  min-height:47px!important;
  padding:11px 12px!important;
  font-size:14px!important;
  line-height:1.3;
}
@media(min-width:980px){
  .mab-wp-grid-featured .mab-wp-actions button,
  .mab-wp-grid-featured .mab-wp-secondary{white-space:nowrap}
}
@media(max-width:979px){
  .mab-wp-grid.mab-wp-grid-featured{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }
  .mab-wp-grid-featured .mab-wp-card{max-width:none}
}
@media(max-width:640px){
  .mab-wp-grid.mab-wp-grid-featured{grid-template-columns:minmax(0,1fr);gap:16px}
  .mab-wp-grid-featured .mab-wp-card{max-width:none}
  .mab-wp-grid-featured .mab-wp-media{aspect-ratio:4/3}
  .mab-wp-grid-featured .mab-wp-body{padding:16px;gap:9px}
  .mab-wp-grid-featured .mab-wp-body h3{font-size:20px}
  .mab-wp-grid-featured .mab-wp-body>p:not(.mab-wp-kicker):not(.mab-wp-shipping-note):not(.mab-wp-note):not(.mab-wp-paused){
    -webkit-line-clamp:4;
    font-size:14px;
  }
  .mab-wp-grid-featured .mab-wp-actions{flex-direction:row;flex-wrap:wrap}
  .mab-wp-grid-featured .mab-wp-actions form,
  .mab-wp-grid-featured .mab-wp-secondary{width:auto;flex:1 1 140px}
  .mab-wp-card .mab-wp-media .mab-wp-pack-label{
    font-size:12px;padding:8px 12px;
  }
}


/* V1.5.3: Original Sekt- and Cabernet-Sauvignon photos in the HTML fallback.
   The main GD/Imagick montage is handled by image-builder.php. */
.mab-wp-auto-composite .mab-wp-bottles > img[alt*="Cabernet Sauvignon" i],
.mab-wp-auto-composite .mab-wp-bottles > img[alt*="Cabernet-Sauvignon" i]{
  transform:scale(1.20);
  transform-origin:center bottom;
}
.mab-wp-auto-composite .mab-wp-bottles > img[alt*="Sekt" i],
.mab-wp-auto-composite .mab-wp-bottles > img[alt*="Secco" i],
.mab-wp-auto-composite .mab-wp-bottles > img[alt*="Schaumwein" i]{
  transform:scale(1.14);
  transform-origin:center bottom;
}

/* 1.5.4 - Ajax package-add confirmation: stays on the listing, mobile first. */
.mab-wp-actions .mab-wp-ajax-feedback {
  flex: 1 1 100%;
  font-size: .88rem;
  line-height: 1.5;
  border-radius: 10px;
  padding: 10px 12px;
  background: #edf6f0;
  border: 1px solid #9cbfa8;
  color: #225b37;
}
.mab-wp-actions .mab-wp-ajax-feedback:empty { display:none; }
.mab-wp-actions .mab-wp-ajax-feedback.is-error {
  background: #fff1f0;
  border-color: #dba8a3;
  color: #8b2925;
}
.mab-wp-actions .mab-wp-ajax-feedback a {
  font-weight: 800;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mab-wp-actions .mab-wp-ajax-cart-form button[disabled] {
  cursor: wait;
  opacity: .7;
}
