/* ==========================================================
   GLOBAL FIXES
   ========================================================== */

html, body {
  overflow-x: hidden;
}



/* ==========================================================
   TYPOGRAFIE, Überschriften, 
   ========================================================== */

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #111;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.amatri-product-title {
  font-size: 32px;
  letter-spacing: -0.03em;
}
.amatri-product-text {
  line-height: 1.8;
  color: #222;
}


/* ==========================================================
   STARTSEITE - HOMEPAGE LAYOUT (TEXT LINKS / ARTIKEL RECHTS)
   ========================================================== */

.homepage-layout {
  display: flex;
  gap: 40px;

  width: 100%;
  max-width: 1400px;

  margin: 40px auto;
  padding: 30px 40px;

  box-sizing: border-box;
}

/* Linker Textbereich */
.homepage-text {
  flex: 3;
  font-size: 18px;
  line-height: 1.7;

  padding: 25px;
  background: #f7f7f7;

  border-radius: 12px;
  box-sizing: border-box;
}

/* Rechter Artikelbereich */
.homepage-products {
  flex: 1;

  padding: 25px;
  background: #ffffff;

  border-radius: 12px;
  border: 1px solid #ddd;

  box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.08);

  box-sizing: border-box;
}

/* Überschriften */
.homepage-text h2 {
  margin-top: 0;
  font-size: 28px;
}

.homepage-products h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 20px;
}

/* Artikel Boxen rechts */
.homepage-product-box {
  padding: 15px;
  margin-bottom: 15px;

  border-radius: 10px;
  border: 1px solid #eee;

  background: #fafafa;
  transition: 0.2s ease;
}

.homepage-product-box:hover {
  transform: translateY(-2px);
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.08);
}

/* Startseite Responsive */
@media (max-width: 900px) {
  .homepage-layout {
    flex-direction: column;
    padding: 20px 15px;
    margin: 20px auto;
  }

  .homepage-text,
  .homepage-products {
    width: 100%;
  }
}


/* ==========================================================
   FEATURED PRODUCTS - AMATRI LANDINGPAGE STYLE
   (ps_featuredproducts.tpl Ausgabe)
   ========================================================== */

.amatri-featured-products {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px;
  box-sizing: border-box;
}


/* ==========================================================
   FEATURED PRODUCTS - PRODUKT BLOCK (TEXT + PRODUKT BOX)
   ========================================================== */

/* Produktblock Container */
.amatri-product-row {
  display: flex;
  gap: 40px;
  align-items: center;

  background: #f7f7f7;
  padding: 35px;
  border-radius: 18px;

  margin-top: 40px;
  margin-bottom: 60px;

  border: 1px solid #e5e5e5;
  box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.06);
}

/* Wechsel Layout (rechts/links) */
.amatri-product-row.amatri-reverse {
  flex-direction: row-reverse;
}

/* Textblock */
.amatri-product-text {
  flex: 3;
  background: transparent;
  padding: 0;
  font-size: 18px;
  line-height: 1.7;
}

/* Titel */
.amatri-product-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 30px;
  font-weight: 700;
}

/* Beschreibung */
.amatri-product-desc {
  margin-bottom: 20px;
}

/* Button */
.amatri-product-btn {
  display: inline-block;
  padding: 12px 18px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.amatri-product-btn:hover {
  opacity: 0.75;
  color: #fff;
}


/* Produktbox (Bild + Preis) */
.amatri-product-box {
  flex: 1;
  background: #fff;
  padding: 0px;
  border-radius: 14px;
  border: 1px solid #ddd;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.08);
}

/* Produktbild */
.amatri-product-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Preis */
.amatri-product-price {
  margin-top: 15px;
  font-size: 22px;
  font-weight: 700;
}

/* Footer Button "Alle Produkte" */
.amatri-featured-footer {
  text-align: center;
  margin-top: 20px;
}

.amatri-all-products-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  border: 2px solid #000;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.amatri-all-products-btn:hover {
  background: #000;
  color: #fff;
}

/* Featured Products Responsive */
@media (max-width: 900px) {
  .amatri-featured-products {
    padding: 20px 15px;
  }

  .amatri-product-row,
  .amatri-product-row.amatri-reverse {
    flex-direction: column;
  }

  .amatri-product-text {
    font-size: 16px;
  }

  .amatri-product-title {
    font-size: 24px;
  }
}


/* ==========================================================
   BANNER STANDARD (amatri-hero + amatri-between-banner)
   ========================================================== */

.amatri-hero,
.amatri-between-banner {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.amatri-hero img,
.amatri-between-banner img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 14px;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.12);
}

/* Banner Standard Responsive */
@media (max-width: 900px) {
  .amatri-hero,
  .amatri-between-banner {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 10px;
  }

  .amatri-hero img,
  .amatri-between-banner img {
    border-radius: 10px;
  }
}


/* ==========================================================
   HERO BANNER EXTRA (amatri-hero-full)
   (wenn du einen größeren Banner oben willst)
   ========================================================== */

.amatri-hero-full {
  width: 90%;
  max-width: none;
  margin: 30px auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.amatri-hero-full img {
  width: 90%;
  height: auto;
  display: block;

  border-radius: 14px;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.12);
}

/* Hero Full Responsive */
@media (max-width: 900px) {
  .amatri-hero-full {
    width: 90%;
    left: 0;
    transform: none;
    margin-left: 30px;
  }

  .amatri-hero-full img {
    border-radius: 10px;
  }
}


/* ==========================================================
   BETWEEN BANNER - FULLWIDTH TRENNLINIEN (oben/unten)
   ========================================================== */

.amatri-between-banner {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Fullwidth Linie oben */
.amatri-between-banner::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  border-top: 2px solid #e0e0e0;
}

/* Fullwidth Linie unten */
.amatri-between-banner::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  border-top: 2px solid #e0e0e0;
}

.amatri-between-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.12);
}

/* Between Banner Responsive */
@media (max-width: 900px) {
  .amatri-between-banner {
    margin: 40px auto;
    padding: 0 10px;
  }

  .amatri-between-banner::before {
    top: -20px;
  }

  .amatri-between-banner::after {
    bottom: -20px;
  }

  .amatri-between-banner img {
    border-radius: 10px;
  }
}

/* ==========================================================
   SOFT HOVER AUF PRODUKTBILDER
   ========================================================== */

.amatri-product-box {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.amatri-product-box:hover {
  transform: translateY(-4px);
  box-shadow: 0px 10px 28px rgba(0, 0, 0, 0.16);
}

.amatri-product-img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.amatri-product-box:hover .amatri-product-img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

button.add-to-cart:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.color-variants .color-variant:first-child .color {
  position: relative;
  border: 2px solid #000 !important;
  overflow: hidden;
}

.color-variants .color-variant:first-child .color::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 2px;
  background: red;
  top: 50%;
  left: -20%;
  transform: rotate(-45deg);
}






body {
  background: linear-gradient(180deg, #f8f8f8 0%, #efefef 100%);
}

/* Content nicht zu breit + schöner Abstand */
#wrapper {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* Alle Container bleiben clean */
.container,
.container-md {
  max-width: 1200px;
}

/* Karten / Boxen leicht premium machen */
.card,
.product,
.cart-summary,
.step,
.featured-products,
.page-content {
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Mobile weniger Radius */
@media (max-width: 768px) {
  .card,
  .product,
  .cart-summary,
  .step,
  .featured-products,
  .page-content {
    border-radius: 12px;
  }
}
.product__infos {
  background: #ffffff !important;
  border-radius: 18px;
  padding: 10px;
  margin-top: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}



/* ==========================================================
   CHECKOUT STEPS - BUTTON NICHT AM RAND
   ========================================================== */

.step {
  padding: 25px !important;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Content Abstand */
.step__content {
  padding: 20px 0;
}

/* Footer Abstand nach unten */
.step .form-footer {
  padding-top: 20px;
  padding-bottom: 15px;
}

/* Button nicht am Rand */
.step .form-footer .continue {
  margin-top: 15px;
}
/* ==========================================================
   GLOBAL CONTENT PADDING (CMS / AGB / IMPRESSUM / DSGVO usw.)
   ========================================================== */

.wrapper__content {
  padding: 30px 40px !important;
  box-sizing: border-box;
}

/* CMS Textseiten */
.page-content {
  padding: 25px 35px !important;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Überschriften bisschen Luft */
.page-header {
  margin-bottom: 25px;
}
@media (max-width: 900px) {
  .wrapper__content {
    padding: 20px 15px !important;
  }

  .page-content {
    padding: 18px 15px !important;
    border-radius: 14px;
  }
}

/* ==========================================================
   CHECKOUT – STABILES PAYMENT LAYOUT (FINAL FIX)
   ========================================================== */

/* Hauptcontainer */
.payment__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 15px !important;
  flex-wrap: nowrap !important;
}

/* Zurück-Button links fixieren */
.payment__actions .js-back {
  flex: 0 0 auto !important;
}

/* Rechter Bereich bündig rechts */
#payment-confirmation,
#paypal-buttons,
#paypal-sepa {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  width: auto !important;
  min-width: 0 !important;
}

/* ----------------------------------------------------------
   PAYPAL GHOST FIX (kein 0px Container mehr)
----------------------------------------------------------- */

/* Wenn PayPal noch nicht sichtbar → komplett aus Layout entfernen */
#paypal-buttons[style*="height: 0"],
#paypal-buttons[style*="display: none"],
#paypal-buttons[style*="opacity: 0"],
#paypal-sepa[style*="height: 0"],
#paypal-sepa[style*="display: none"],
#paypal-sepa[style*="opacity: 0"] {
  display: none !important;
}

/* Falls leerer Wrapper */
#paypal-buttons:empty,
#paypal-sepa:empty {
  display: none !important;
}

/* ----------------------------------------------------------
   MOBILE
----------------------------------------------------------- */

@media (max-width: 768px) {
  .payment__actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  #payment-confirmation,
  #paypal-buttons,
  #paypal-sepa {
    margin-left: 0 !important;
    width: 100% !important;
  }
}