/**
 * Architequus_Gebinde – Gebinde-Kacheln und Mengen-Stepper
 *
 * Farben zentral über die Variablen unten anpassen (z. B. im Design/Theme-Chat).
 */
.gebinde,
.arch-stepper {
    --arch-accent: #6c4f9c;          /* Lila des Warenkorb-Buttons */
    --arch-accent-soft: #f5f2fa;     /* Hintergrund der gewählten Kachel */
    --arch-border: #d9d6de;
    --arch-text: #333333;
    --arch-muted: #767676;
    --arch-saving: #4e7a4b;          /* ruhiges Grün für „Du sparst …“ */
}

/* ---------- Gebinde-Kacheln ---------- */

.gebinde {
    margin: 0 0 20px;
    color: var(--arch-text);
}

.gebinde__heading {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
}

.gebinde__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.gebinde__tile {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.gebinde__radio {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
}

.gebinde__tile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    height: 100%;
    box-sizing: border-box;
    padding: 12px 8px 11px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--arch-border);
    border-radius: 8px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.gebinde__tile:hover .gebinde__tile-inner {
    border-color: #b3a6cb;
}

.gebinde__radio:checked + .gebinde__tile-inner {
    border-color: var(--arch-accent);
    box-shadow: inset 0 0 0 1px var(--arch-accent);
    background: var(--arch-accent-soft);
}

.gebinde__radio:focus-visible + .gebinde__tile-inner {
    outline: 2px solid var(--arch-accent);
    outline-offset: 2px;
}

.gebinde__size {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.gebinde__price {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.3;
}

.gebinde__baseprice {
    font-size: 12px;
    line-height: 1.3;
    color: var(--arch-muted);
}

.gebinde__saving,
.gebinde__soldout {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
}

.gebinde__saving {
    color: var(--arch-saving);
}

.gebinde__soldout {
    color: var(--arch-muted);
}

.gebinde__tile.is-disabled {
    cursor: not-allowed;
}

.gebinde__tile.is-disabled .gebinde__tile-inner {
    background: #fafafa;
    opacity: .55;
}

.gebinde__tile.is-disabled:hover .gebinde__tile-inner {
    border-color: var(--arch-border);
}

/* ---------- Preisblock unter den Kacheln ---------- */

.gebinde__summary {
    margin: 20px 0 16px;
}

.gebinde__summary-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.gebinde__summary-price {
    font-size: 30px;
    line-height: 1.2;
}

.gebinde__summary-regular {
    font-size: 16px;
    color: var(--arch-muted);
    text-decoration: line-through;
}

.gebinde__summary-baseprice,
.gebinde__summary-hint {
    font-size: 13px;
    color: var(--arch-muted);
    line-height: 1.5;
}

.gebinde__summary-hint a {
    color: inherit;
    text-decoration: underline;
}

.gebinde__summary-saving {
    margin-top: 2px;
    font-size: 13px;
    color: var(--arch-saving);
    line-height: 1.5;
}

.gebinde__summary-regular:empty,
.gebinde__summary-baseprice:empty,
.gebinde__summary-saving:empty {
    display: none;
}

/* ---------- Mengenfeld der Gebinde-Auswahl ---------- */

.gebinde__qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

.gebinde__qty-label {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
}

/* ---------- Mengen-Stepper (überall) ---------- */

.arch-stepper {
    display: inline-flex;
    align-items: stretch;
    vertical-align: middle;
    background: #fff;
    border: 1px solid var(--arch-border);
    border-radius: 6px;
    overflow: hidden;
}

.arch-stepper > input.qty {
    width: 3em !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 15px;
    -moz-appearance: textfield;
}

.arch-stepper__btn {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    min-width: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f4f2f7;
    color: var(--arch-accent);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease;
}

.arch-stepper__btn:hover {
    background: #e9e4f1;
}

.arch-stepper__btn:disabled {
    background: #f7f7f7;
    color: #c4c4c4;
    cursor: default;
}

.arch-stepper__btn:focus-visible {
    outline: 2px solid var(--arch-accent);
    outline-offset: -2px;
}

.arch-stepper.is-updating {
    opacity: .5;
    pointer-events: none;
}

/* Minicart: etwas kompakter */
.arch-stepper--minicart > input.qty {
    height: 32px !important;
    font-size: 14px;
}

.arch-stepper--minicart .arch-stepper__btn {
    width: 32px;
    min-width: 32px;
    font-size: 17px;
}

/* Papierkorb statt „−“ bei Menge 1 (Warenkorb / Minicart) */
.arch-stepper__btn.is-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a6f6f;
}

.arch-stepper__btn.is-remove:hover {
    background: #f3e9e9;
    color: #9b3d3d;
}
