/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Huschkusch Snail Mail – Child Theme für Bricks.
               Enthält ausschließlich gezielte Korrekturen für
               WooCommerce-Seiten (Warenkorb, Checkout, Bestellbestätigung,
               Mein Konto). Alle anderen Seiten bleiben vollständig unberührt.
 Author:       Bricks / Huschkusch
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.5
 Text Domain:  bricks
*/


/* ============================================================
   ABSCHNITT 1 – WOOCOMMERCE-SEITEN: LAYOUT-KORREKTUREN
   Betrifft: Warenkorb, Checkout, Bestellbestätigung, Mein Konto
   Nicht betroffen: alle anderen Seiten des Shops
   ============================================================ */

/* --- 1a. Sticky Header – Abstand nach oben ---
   Der Bricks-Header ist sticky/fixed und ragt sonst
   über den Seitenanfang. Gilt für alle Bildschirmgrößen. */
body.woocommerce-cart #brx-content,
body.woocommerce-checkout #brx-content,
body.woocommerce-order-received #brx-content,
body.woocommerce-account #brx-content {
    padding-top: 100px;
    box-sizing: border-box;
}

/* --- 1b. Mobile Layout – volle Breite ---
   Bricks setzt #brx-content auf 1100px feste Breite.
   Wir korrigieren das gezielt nur unter 768px. */
@media (max-width: 768px) {
    body.woocommerce-cart #brx-content,
    body.woocommerce-checkout #brx-content,
    body.woocommerce-order-received #brx-content,
    body.woocommerce-account #brx-content {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- 1c. Radio Buttons & Checkboxen ---
   Bricks' --bricks-woo-input-height trifft auch Radio/Checkbox
   und verzerrt deren Darstellung. Gezielter Reset. */
body.woocommerce-checkout .wc-block-components-radio-control__input,
body.woocommerce-checkout input[type="checkbox"].wc-block-components-checkbox__input,
body.woocommerce-cart .wc-block-components-radio-control__input,
body.woocommerce-cart input[type="checkbox"].wc-block-components-checkbox__input {
    padding-left: 0;
    padding-right: 0;
    width: 20px;
    height: 20px;
    line-height: 1;
}


/* ============================================================
   ABSCHNITT 2 – PRODUKTDETAILSEITE: FORMULAR & BUTTON
   Gilt nur auf Single-Product-Seiten (.single-product)
   ============================================================ */

/* Formular-Container: Hintergrund & Abstände */
.single-product .cart {
    background-color: #f5f0eb;
    padding: 32px 24px;
    border-radius: 12px;
}

/* Warenkorb-Button: Schwarz, Pill-Form */
.single-product .single_add_to_cart_button.button {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background-color: #111111;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

/* Button Hover */
.single-product .single_add_to_cart_button.button:hover {
    background-color: #333333;
}


/* ============================================================
   ABSCHNITT 3 – KINDERDATEN-FELDER
   Vorname, Nachname, Lieblingsfarbe, Geburtstag
   Gilt nur auf Single-Product-Seiten (.single-product)
   ============================================================ */

/* Haupt-Container */
.huschkusch-kind-felder {
    margin-bottom: 24px;
}

/* Einzelne Feld-Gruppe (Label + Input) */
.hk-feld-gruppe {
    margin-bottom: 20px;
}

/* Labels */
.hk-feld-gruppe label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #111;
}

/* Pflichtfeld-Sternchen */
.hk-pflicht {
    color: #E63946;
    margin-left: 2px;
}

/* Textfelder: nur untere Linie */
.hk-feld-gruppe input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #111;
    border-radius: 0;
    padding: 8px 0;
    font-size: 15px;
    outline: none;
}

.hk-feld-gruppe input[type="text"]:focus {
    border-bottom: 2px solid #111;
}

/* Farb-Dropdown + Farbkreis nebeneinander */
.hk-farb-select-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hk-farb-select-wrapper select {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #111;
    border-radius: 0;
    padding: 8px 0;
    font-size: 15px;
    outline: none;
}

/* Farbkreis-Vorschau (wird per JS eingefärbt) */
.hk-farb-kreis {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.1);
}

/* Geburtstag: Tag, Monat, Jahr nebeneinander */
.hk-geburtstag-wrapper {
    display: flex;
    gap: 12px;
}

.hk-geburtstag-wrapper select {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #111;
    border-radius: 0;
    padding: 8px 0;
    font-size: 15px;
    outline: none;
}
