/*
 * Inline-<style>-Bloecke des Live-Shops saubere-loesungen.at (A365), in Reihenfolge der Live-Seiten,
 * dedupliziert. Wo live dieselbe Regel mehrfach steht, ist hier die wirksame Zusammenfassung
 * (spaetere Werte gewinnen, Eigenschaften nur aus der frueheren Fassung bleiben erhalten).
 * Wird nach styles.css geladen, wie live (Inline-Styles stehen dort im body).
 */

/* Produktseite: Bildergalerie */
.picture-gallery .picture img {
    max-width: 100%;
    height: auto;
    display: block;
}

.picture-gallery .picture {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .picture-gallery {
        width: 100%;
    }
}

/* Produktseite: Menge und Kaufen je Variante (live 3x identisch) */
.modern-inline-cart .add-to-cart-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.modern-inline-cart .qty-label {
    font-weight: 500;
}

.modern-inline-cart .qty-input,
.modern-inline-cart .qty-dropdown {
    width: 70px;
    padding: 5px;
}

.custom-add-to-cart-btn {
    background-color: #248ece;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-add-to-cart-btn:hover {
    background-color: #1c6fa3;
}

.min-qty-notification {
    color: #d9534f;
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* Produktseite: Gesamtcontainer */
.page.product-details-page,
.page.product-details-page .page-body {
    overflow-x: hidden;
}

.product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.product-gallery,
.product-info {
    flex: 1 1 420px;
    min-width: 280px;
    max-width: 100%;
    box-sizing: border-box;
}

.product-info { text-align: left; }

.product-info h1 {
    font-size: 1.8rem;
    margin: 0 0 10px;
    line-height: 1.2;
}

.short-description {
    margin: 10px 0;
    line-height: 1.5;
    text-align: left;
}

/* Produktseite: Tabs (live zweimal definiert, hier die wirksame Fassung: untereinander) */
.product-tabs { margin-top: 30px; }

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.tab-button {
    background-color: #248ece;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    min-width: 160px;
    width: 100%;
    text-align: left;
    transition: background 0.3s;
}

.tab-button:hover { background: #1c6da4; }

.tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 15px;
    background: #fff;
    text-align: left !important;
    overflow-wrap: break-word;
}

.tab-content.active { display: block; }

/* Ueberschreibt auch Admin-HTML (z. B. <p style="text-align:center">) */
.tab-content p,
.tab-content h1,
.tab-content h2,
.tab-content h3,
.tab-content h4,
.tab-content h5,
.tab-content h6,
.tab-content div {
    text-align: left !important;
}

/* Produktseite: Varianten */
.product-variants { margin-top: 20px; }

.variant {
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: #fafafa;
}

/* Produktseite: Bilder */
.product-gallery img {
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
    display: block;
}

/* Pfeil nach oben (alle Seiten; live zwei Bloecke, hier die wirksame Zusammenfassung) */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    font-size: 24px;
    background: #333;
    color: #fff;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    opacity: 0.7;
    transition: opacity 0.3s;
}

#scrollTopBtn:hover {
    background: #1c6da4;
    transform: scale(1.1);
    opacity: 1;
}

/* Produktraster: Preis und Kaufen-Buttons je Zeile auf gleicher Hoehe, egal wie lang der Titel ist */
.product-grid .item-grid { display: flex; flex-wrap: wrap; }
.product-grid .item-grid:after { display: none; }
.product-grid .item-box { display: flex; flex-direction: column; }
.product-grid .item-box .product-item { flex: 1; display: flex; flex-direction: column; }
.product-grid .item-box .details { flex: 1; display: flex; flex-direction: column; }
.product-grid .item-box .add-info { margin-top: auto; }

/* Handy: Einwilligungstexte (Registrierung, Kasse) umbrechen statt seitlich ueberlaufen */
.accept-consent label { white-space: normal; }

/* Handy: Eingabefelder mit 16 px, sonst zoomt iOS Safari beim Antippen hinein */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], select, textarea { font-size: 16px; }
}
