/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme
Author: Patrick Grimmenstein
Author URI: https://giniware-life.com
Template: astra
Version: 1.0.0
*/

/* In: /astra-child/style.css */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding-left: 20px !important;
}


/* =============================================
   Mobile Ansicht - Bestellübersicht Komplett Fix
   ============================================= */

@media ( max-width: 768px ) {

    /* Tabelle zurücksetzen und neu aufbauen */
    .woocommerce-checkout-review-order-table {
        width: 100% !important;
        table-layout: auto !important;      /* ← NICHT mehr fixed */
        border-collapse: collapse !important;
        word-wrap: break-word !important;
    }

    /* Kein horizontales Scrollen */
    #order_review,
    .woocommerce-checkout-review-order {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Produktspalte - nimmt so viel Platz wie möglich */
    .woocommerce-checkout-review-order-table td.product-name,
    .woocommerce-checkout-review-order-table th:first-child {
        width: auto !important;
        max-width: unset !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    /* Preisspalte - nur so breit wie nötig */
    .woocommerce-checkout-review-order-table td.product-total,
    .woocommerce-checkout-review-order-table th:last-child {
        width: auto !important;
        white-space: nowrap !important;
        text-align: right !important;
        padding-right: 10px !important;
    }

    /* Produktbild kleiner */
    .woocommerce-checkout-review-order-table .product-thumbnail img {
        width: 50px !important;
        height: auto !important;
    }

    /* =============================================
       Pinke Trennlinie - volle Breite erzwingen
       ============================================= */

    /* Linie auf TR-Ebene statt TD-Ebene */
    .woocommerce-checkout-review-order-table tbody tr,
    .woocommerce-checkout-review-order-table tfoot tr {
        border-bottom: 1px solid #ff69b4 !important;
        display: table-row !important;
        width: 100% !important;
    }

    /* TD-Borders entfernen damit keine Dopplung */
    .woocommerce-checkout-review-order-table td,
    .woocommerce-checkout-review-order-table th {
        border-bottom: none !important;
        border-top: none !important;
    }
}

/* =============================================
   Desktop - Pinke Linie ebenfalls korrigieren
   ============================================= */

.woocommerce-checkout-review-order-table {
    border-collapse: collapse !important;
}

.woocommerce-checkout-review-order-table tbody tr,
.woocommerce-checkout-review-order-table tfoot tr {
    border-bottom: 1px solid #ff69b4 !important;
}

.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    border-bottom: none !important;
}


/* =============================================
   Shop Filter – Kategorie, Farbe, Größe
   ============================================= */

.giniware-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1rem 0 12px 0;
    width: fit-content;
    clear: both;
    padding: 8px 22px;
    background: #D045B9;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.giniware-filter-toggle:hover {
    background: #611773;
}

.giniware-filter-toggle .toggle-icon {
    font-style: normal;
    font-size: 16px;
    line-height: 1;
}

.giniware-filter-bar {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: #FAFAFA;
    border: 1px solid #D045B9;
    border-radius: 12px;
    clear: both;
}

.giniware-filter-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.giniware-filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.giniware-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.giniware-filter-group select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #D045B9;
    border-radius: 50px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    appearance: auto;
}

.giniware-filter-group select:focus {
    outline: none;
    border-color: #611773;
}

.giniware-filter-buttons {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

.giniware-filter-submit {
    height: 40px;
    padding: 0 22px;
    background: #D045B9;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.giniware-filter-submit:hover {
    background: #611773;
}

.giniware-filter-reset {
    height: 40px;
    padding: 0 18px;
    background: transparent;
    color: #D045B9;
    border: 1px solid #D045B9;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.giniware-filter-reset:hover {
    background: #D045B9;
    color: #fff;
}

@media (max-width: 600px) {
    .giniware-filter-group {
        min-width: 100%;
    }
    .giniware-filter-buttons {
        width: 100%;
    }
    .giniware-filter-submit {
        flex: 1;
    }
}


.giniware-widerruf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.giniware-widerruf-svg {
    width: 28px;
    height: 28px;
    stroke: #6a1b9a; /* gleiche Farbe wie dein Warenkorb */
    transition: 0.2s ease;
}

.giniware-widerruf-icon:hover .giniware-widerruf-svg {
    stroke: #9c27b0;
    transform: scale(1.1);
}

