/* Lothi – Ergaenzungen 25.11.2026: Shop-Seiten, Produktseite, Startseite mobil, Cookie-Banner mobil */

/* Shop- und Kategorieseiten: gleiche Breite wie Menue und Startseite */
body.archive.woocommerce .site-main{max-width:1120px;margin-left:auto;margin-right:auto;}
body.archive.woocommerce .site-main h1.page-title{font-size:clamp(2.2rem,4.5vw,3.2rem);margin-bottom:8px;}
.lothi-shop-intro{max-width:640px;margin:0 0 28px;color:#6b5040;font-size:1.05rem;line-height:1.6;}
ul.products li.product .price{font-size:1.05rem !important;font-weight:600 !important;color:#3b2614 !important;}

/* Shop-Uebersicht: Kategorie-Kacheln mit Namen auf dem Bild */
ul.products li.product-category a{position:relative;display:block;border-radius:16px;overflow:hidden;box-shadow:0 6px 20px rgba(59,38,20,.10);transition:transform .25s ease,box-shadow .25s ease;}
ul.products li.product-category a:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(59,38,20,.18);}
ul.products li.product-category a img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;margin:0 !important;border-radius:0 !important;}
ul.products li.product-category .woocommerce-loop-category__title{position:absolute;left:0;right:0;bottom:0;margin:0 !important;padding:48px 16px 14px !important;background:linear-gradient(to top,rgba(45,30,15,.82),rgba(45,30,15,0));color:#fff !important;font-family:'Josefin Slab',serif;font-size:1.25rem !important;font-weight:600;text-align:left;}
ul.products li.product-category .woocommerce-loop-category__title mark.count{background:none;color:#fff;opacity:.85;font-size:.8em;font-family:'Cabin',sans-serif;}
.lothi-shop-popular{margin-top:56px;}
.lothi-shop-popular > h2{font-family:'Josefin Slab',serif;font-size:2rem;color:#3b2614;margin:0 0 20px;}

/* Startseite: Galerie-Bilder als Links */
.lothi-showcase-link{display:block;width:100%;height:100%;}

/* Produktseite: Beispiele einklappbar */
#lothiPers,#lothiVarBox{scroll-margin-top:110px;}
.lothi-pers-hints.lothi-collapsible .lothi-pers-hint-title{cursor:pointer;user-select:none;display:flex;align-items:center;gap:6px;}
.lothi-pers-hints.lothi-collapsible .lothi-pers-hint-title::after{content:'\25BE';margin-left:auto;transition:transform .2s ease;}
.lothi-pers-hints.lothi-collapsible.is-closed .lothi-pers-hint-title::after{transform:rotate(-90deg);}
.lothi-pers-hints.lothi-collapsible.is-closed .lothi-pers-hint-title{margin-bottom:0;}
.lothi-pers-hints.lothi-collapsible.is-closed .lothi-pers-hint-grid{display:none;}

/* Produktseite mobil: feste Leiste mit Preis und Warenkorb */
.lothi-sticky-cta{display:none;}
@media (max-width:768px){
  .lothi-sticky-cta{position:fixed;left:0;right:0;bottom:0;z-index:900;display:flex;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fffaf3;border-top:1px solid #e0d8cc;box-shadow:0 -6px 20px rgba(59,38,20,.12);transform:translateY(110%);transition:transform .25s ease;}
  .lothi-sticky-cta.is-visible{transform:translateY(0);}
  .lothi-sticky-cta__info{flex:1;min-width:0;}
  .lothi-sticky-cta__name{font-family:'Cabin',sans-serif;font-size:12px;color:#6b5040;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .lothi-sticky-cta__price{font-family:'Cabin',sans-serif;font-size:17px;font-weight:700;color:#3b2614;}
  .lothi-sticky-cta__btn{flex:0 0 auto;border:0;border-radius:8px;background:#d9a54c;color:#3b2614;font-family:'Cabin',sans-serif;font-weight:700;font-size:15px;padding:12px 18px;cursor:pointer;}
  body.lothi-has-sticky{padding-bottom:76px;}
  body.lothi-has-sticky #cmplz-manage-consent .cmplz-manage-consent{bottom:76px !important;}

  /* Startseite mobil: Hero kompakter */
  .hero{padding-top:118px !important;padding-bottom:48px !important;}
  .hero-inner{gap:28px !important;}
  .hero-img-frame{aspect-ratio:4/3 !important;}
  .hero-img-frame img{width:100%;height:100%;object-fit:cover;}
}

/* Shop mobil: Kategorie-Kacheln mit kleinerer Schrift */
@media (max-width:600px){
  ul.products li.product-category .woocommerce-loop-category__title{font-size:.95rem !important;line-height:1.2;padding:30px 10px 9px !important;}
  ul.products li.product-category .woocommerce-loop-category__title mark.count{display:none;}
  .lothi-shop-popular{margin-top:40px;}
  .lothi-shop-popular > h2{font-size:1.6rem;}
}

/* Cookie-Banner mobil: kompakter */
@media (max-width:600px){
  .cmplz-cookiebanner{padding:12px 14px !important;}
  .cmplz-cookiebanner .cmplz-title{font-size:15px !important;}
  .cmplz-cookiebanner .cmplz-message{font-size:12px !important;line-height:1.45 !important;}
  .cmplz-cookiebanner .cmplz-buttons{flex-direction:row !important;flex-wrap:wrap !important;gap:8px !important;}
  .cmplz-cookiebanner .cmplz-buttons .cmplz-btn{flex:1 1 calc(50% - 4px) !important;min-width:0 !important;padding:9px 8px !important;height:auto !important;}
  .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences{flex-basis:100% !important;padding:4px 8px !important;border:0 !important;text-decoration:underline;}
}
