/* =============================================================================
   G-Tech: Warenkorb & Preis Block  (gtech-atc-block)
   ============================================================================= */

/* ── Editor-Vorschau ──────────────────────────────────────────────────────── */
.gtech-atc-block--preview {
    padding: 1rem;
}

/* Normaler Preis (kein Sale) */
.gtech-atc-block .gtech-atc__price-wrap .price > .woocommerce-Price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
}

/* Sale: durchgestrichener Originalpreis */
.gtech-atc-block .gtech-atc__price-wrap .price del {
    display: block;
    font-size: 1rem;
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
    margin-bottom: 0.1rem;
}

/* Sale: neuer Preis */
.gtech-atc-block .gtech-atc__price-wrap .price ins {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
}

/* GZD: Rechtsinfos (MwSt., Einheitspreis, Versandkosten) */
.gtech-atc-block .gtech-atc__price-wrap .wc-gzd-additional-info,
.gtech-atc-block .gtech-atc__price-wrap p.wc-gzd-additional-info,
.gtech-atc-block .gtech-atc__price-wrap .woocommerce-Price-TaxInfo,
.gtech-atc-block .gtech-atc__price-wrap .tax_label {
    font-size: 0.75rem;
    color: #666;
    margin: 0.25rem 0 0;
    display: block;
}

.gtech-atc-block .gtech-atc__price-wrap .wc-gzd-additional-info a,
.gtech-atc-block .gtech-atc__price-wrap p.wc-gzd-additional-info a {
    color: #666;
    text-decoration: underline;
}

/* ── Variations-Label ────────────────────────────────────────────────────── */
.gtech-atc-block .variations th.label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kss-secondary-color);
    padding: 0 0 0.4rem 0;
    white-space: nowrap;
}

/* ── Variations-Dropdown ──────────────────────────────────────────────────── */
.gtech-atc-block .variations {
    border: none;
    width: 100%;
    margin-bottom: 0.25rem;
}

.gtech-atc-block .variations td,
.gtech-atc-block .variations th {
    padding: 0.2rem 0;
    text-align: left;
    vertical-align: middle;
    display: block;
}

/* Wrapper um das Select für die eigene Pfeil-Grafik */
.gtech-atc-block .variations .value {
    position: relative;
}

.gtech-atc-block .variations select {
    display: block;
    width: 100%;
    padding: 0.65rem 2.75rem 0.65rem 0.9rem;
    border: 1px solid #bbb !important;
    border-radius: 0;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    appearance: none;
    -webkit-appearance: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #222;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.5;
    box-shadow: none;
}

.gtech-atc-block .variations select:hover {
    border-color: #aaa;
}

.gtech-atc-block .variations select:focus {
    border-color: var(--kss-secondary-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--kss-secondary-color) 15%, transparent);
    outline: none;
}

/* "Zurücksetzen"-Link dezent unterm Select */
.gtech-atc-block .variations .reset_variations {
    font-size: 0.72rem;
    color: #aaa;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
}

.gtech-atc-block .variations .reset_variations:hover {
    color: var(--kss-secondary-color);
    text-decoration: underline;
}

/* ── Formular-Layout ─────────────────────────────────────────────────────── */
.gtech-atc-block form.cart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Menge: "Menge" Label + Button-Group [ − ][ 1 ][ + ] ─────────────────── */
.gtech-atc-block .quantity {
    display: flex;
    align-items: center;
    gap: 0;
}

/* "Menge" Label */
.gtech-atc-block .quantity::before {
    content: "Menge";
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kss-secondary-color);
    white-space: nowrap;
    margin-right: 0.85rem;
}

/* Minus-Button */
.gtech-atc-block .quantity .quantity__minus,
.gtech-atc-block .quantity button.minus,
.gtech-atc-block .quantity [data-quantity="minus"] {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #ccc;
    border-right: none;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    color: #333;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

/* Quantity-Input */
.gtech-atc-block .qty {
    width: 2.75rem;
    height: 2.25rem;
    text-align: center;
    border: 1px solid #ccc;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    border-radius: 0;
    background: #fff;
    color: #111;
    -moz-appearance: textfield;
    box-shadow: none;
    flex-shrink: 0;
}
.gtech-atc-block .qty::-webkit-outer-spin-button,
.gtech-atc-block .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Plus-Button */
.gtech-atc-block .quantity .quantity__plus,
.gtech-atc-block .quantity button.plus,
.gtech-atc-block .quantity [data-quantity="plus"] {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #ccc;
    border-left: none;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    color: #333;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.gtech-atc-block .quantity .quantity__minus:hover,
.gtech-atc-block .quantity button.minus:hover,
.gtech-atc-block .quantity .quantity__plus:hover,
.gtech-atc-block .quantity button.plus:hover {
    background-color: #f5f5f5;
}

/* ── Warenkorb-Button ────────────────────────────────────────────────────── */
.gtech-atc-block .single_add_to_cart_button {
    width: 100% !important;
    background-color: var(--kss-secondary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.9rem 1.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none !important;
    margin-top: 1rem;
}

/* Warenkorb-Icon vor dem Button-Text */
.gtech-atc-block .single_add_to_cart_button::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpolyline points='1 1 5 1 8 13 20 13 23 4 7 4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.gtech-atc-block .single_add_to_cart_button:hover {
    background-color: #8a0014 !important;
}

.gtech-atc-block .single_add_to_cart_button:disabled,
.gtech-atc-block .single_add_to_cart_button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

/* ── Merkliste / Wishlist-Button ──────────────────────────────────────────── */
/* Kompatibel mit: WC GZD, YITH WCWL, WooCommerce core wishlist */
.gtech-atc-block .yith-wcwl-add-to-wishlist,
.gtech-atc-block .wc-gzd-add-to-cart-wishlist,
.gtech-atc-block .wl-btn-wrap,
.gtech-atc-block .woocommerce-wishlist {
    margin-top: 0.4rem;
    width: 100%;
}

.gtech-atc-block .add_to_wishlist,
.gtech-atc-block .yith-wcwl-add-button a,
.gtech-atc-block .wc-gzd-wishlist-button,
.gtech-atc-block [class*="wishlist"] a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem !important;
    background-color: transparent !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.gtech-atc-block .add_to_wishlist:hover,
.gtech-atc-block .yith-wcwl-add-button a:hover,
.gtech-atc-block .wc-gzd-wishlist-button:hover,
.gtech-atc-block [class*="wishlist"] a:hover {
    border-color: var(--kss-secondary-color) !important;
    color: var(--kss-secondary-color) !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .gtech-atc-block .gtech-atc__price-wrap .price ins,
    .gtech-atc-block .gtech-atc__price-wrap .price > .woocommerce-Price-amount {
        font-size: 1.6rem;
    }
}

.woocommerce-variation-add-to-cart .quantity  {
    margin-bottom: 1rem !important;
}

.gtech-atc__price-wrap .price {
    display: block;
}
html .gtech-atc__price-wrap .price ins:not(#fakeId),
html .gtech-atc__price-wrap .price del:not(#fakeId) {
    display: block;
    font-size: unset;
}

html .gtech-atc__price-wrap .price del:not(#fakeId) bdi{
    font-size:24px;
    font-weight: 500;
    color: #bbb;
}

.woocommerce div.product form.cart div.quantity .qty {
    margin-right: 0;
}