/* =========================================================
   shop.css – Gemeinsame Styles für Profil, Kasse, Warenkorb
   ========================================================= */

/* --- Page Wrapper --- */
.shop-page {
    background-color: #f7f7f7;
    padding-bottom: 40px;
}

.shop-page h2 {
    text-transform: uppercase;
    margin-top: 50px;
}

/* --- Layout --- */
.shop-content-row {
    padding-top: 30px;
}

.shop-col-left {
    padding-right: 30px;
    border-right: 1px solid #bbb;
}

.shop-col-right {
    padding-left: 30px;
}

/* --- Section Labels --- */
.shop-section-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.shop-section-label--mb8 {
    margin-bottom: 8px;
}

/* --- Alerts --- */
.shop-alert {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-left-width: 3px;
    border-left-style: solid;
}

.shop-alert--success {
    background: #d4edda;
    border-left-color: #155724;
    color: #155724;
}

.shop-alert--error {
    background: #f8d7da;
    border-left-color: #721c24;
    color: #721c24;
}

.shop-alert-row {
    margin-top: 16px;
}

/* --- Form Hilfsklassen --- */
.shop-form-row-mt {
    margin-top: 16px;
}

.shop-form-row-mt-sm {
    margin-top: 8px;
}

/* =========================================================
   KASSE
   ========================================================= */

/* Auth Tabs (Gast / Login / Registrieren) */
.checkout-auth-tabs {
    display: flex;
    margin-bottom: 28px;
    border: 1px solid #ccc;
}

.checkout-auth-tab {
    flex: 1;
    padding: 13px 18px;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.checkout-auth-tab--active {
    background: #101B3C;
    color: #fff;
    font-weight: 500;
}

.checkout-auth-tab--inactive {
    background: #fff;
    color: #5D5D5D;
    border-left: 1px solid #ccc;
    display: block;
    text-decoration: none;
}

/* Eingeloggt-Info */
.checkout-user-info {
    margin-bottom: 20px;
    color: #5D5D5D;
    font-size: 0.9rem;
}

.checkout-user-info a {
    color: #5D5D5D;
    margin-left: 8px;
}

/* Abweichende Lieferadresse */
.checkout-shipping-section {
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 16px;
}

.checkout-shipping-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #5D5D5D;
    user-select: none;
}

.checkout-shipping-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.checkout-shipping-fields {
    margin-top: 16px;
}

/* Zahlungsart */
.checkout-payment-label {
    text-transform: uppercase;
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.checkout-payment-option-ml {
    margin-left: 16px;
}

.checkout-prepayment-info {
    background: #f9f9f9;
    border-left: 3px solid #101B3C;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* AGB / Datenschutz Checkboxen */
.checkout-legal-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #5D5D5D;
    cursor: pointer;
    line-height: 1.4;
}

.checkout-legal-label input[type="checkbox"] {
    margin-top: 2px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkout-legal-label a {
    color: #101B3C;
    text-decoration: underline;
}

.checkout-paypal-container {
    margin-top: 16px;
}

.checkout-submit-row {
    margin-top: 24px;
}

/* Bestellübersicht rechts */
.checkout-order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ccc;
}

.checkout-order-item-name {
    font-size: 0.85rem;
}

.checkout-order-item-meta {
    color: #777;
}

.checkout-order-item-price {
    white-space: nowrap;
    font-weight: 600;
    text-align: right;
}

.checkout-price-original {
    display: block;
    color: #bbb;
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: line-through;
}

.checkout-price-sale {
    color: red;
}

.checkout-order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    font-weight: 700;
    font-size: 1.05rem;
}

.checkout-order-shipping-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
}

/* =========================================================
   PROFIL
   ========================================================= */

/* Nutzer-Info */
.profile-meta {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 20px;
}

.profile-meta a {
    color: #5D5D5D;
}

/* Passwort-Accordion */
.profile-accordion {
    border-top: 1px solid #ccc;
    padding-top: 18px;
    margin-top: 10px;
}

.profile-accordion-toggle {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

.profile-accordion-body {
    margin-top: 16px;
}

.profile-pw-link {
    font-size: 0.8rem;
    color: #888;
}

/* Bestellhistorie leer */
.profile-orders-empty {
    color: #666;
    font-size: 0.88rem;
    margin-top: 8px;
}

/* Order Card */
.order-card {
    border: 1px solid #ccc;
    background: #fff;
    margin-bottom: 10px;
}

.order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
}

.order-card__id {
    font-size: 0.88rem;
    color: #101B3C;
}

.order-card__date {
    color: #999;
    font-size: 0.8rem;
    margin-left: 10px;
}

.order-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-card__total {
    font-weight: 700;
    font-size: 0.95rem;
}

.order-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.72rem;
    white-space: nowrap;
}

.order-badge--paid {
    background: #d4edda;
    color: #155724;
}

.order-badge--failed {
    background: #f8d7da;
    color: #721c24;
}

.order-badge--pending {
    background: #fff3cd;
    color: #856404;
}

.order-card__arrow {
    color: #999;
    font-size: 0.85rem;
}

.order-card__body {
    border-top: 1px solid #eee;
    padding: 16px;
}

.order-card__empty {
    color: #999;
    font-size: 0.82rem;
}

/* Order Item Zeile */
.order-item {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.order-item__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.order-item__thumb img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
}

.order-item__thumb-empty {
    font-size: 0.65rem;
    color: #ccc;
    text-align: center;
    padding: 4px;
}

.order-item__info {
    flex: 1;
    min-width: 0;
}

.order-item__name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.order-item__article {
    font-size: 0.76rem;
    color: #999;
    margin-top: 3px;
}

.order-item__qty {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.order-item__prices {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.order-price-label {
    font-size: 0.72rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-price-label--mt {
    margin-top: 5px;
}

.order-price-original {
    color: #bbb;
    text-decoration: line-through;
    font-size: 0.78rem;
}

.order-price-sale {
    color: red;
    font-weight: 700;
    font-size: 0.88rem;
}

.order-price-normal {
    font-weight: 600;
    font-size: 0.88rem;
}

.order-total-sale {
    color: red;
    font-weight: 700;
    font-size: 0.9rem;
}

.order-total-normal {
    font-weight: 700;
    font-size: 0.9rem;
}

.order-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 4px;
}

.order-item-footer__payment {
    font-size: 0.78rem;
    color: #888;
}

.order-item-footer__total {
    font-weight: 700;
    font-size: 1rem;
}

/* =========================================================
   WARENKORB
   ========================================================= */

/* Empty cart */
.cart-empty {
    padding: 80px 0;
    text-align: center;
}

.cart-empty__icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 24px;
    display: block;
}

.cart-empty__text {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 28px;
}

/* Cart items wrapper */
.cart-items-wrap {
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cart row (single item) */
.cart-row {
    background: #fff;
    margin-bottom: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

/* Cart item image */
.cart-item__image {
    flex: 0 0 100px;
    height: 100px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item__image-placeholder {
    font-size: 2rem;
    color: #ddd;
}

/* Cart item info */
.cart-item__info {
    flex: 1;
    min-width: 0;
}

.cart-item__name {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.88rem;
    margin: 0 0 4px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item__article {
    color: #999;
    font-size: 0.78rem;
    margin: 0 0 8px;
}

.cart-item__price {
    color: #444;
    font-size: 0.9rem;
    margin: 0;
}

.cart-item__price-original {
    color: #bbb;
    font-size: 0.8rem;
    text-decoration: line-through;
    margin-right: 6px;
}

.cart-item__price-sale {
    color: #c0392b;
    font-weight: 700;
}

.cart-item__vat {
    color: #bbb;
    font-size: 0.75rem;
    margin-left: 4px;
}

/* Cart quantity controls */
.cart-qty {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    border-radius: 2px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-val {
    width: 26px;
    height: 26px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart line total + remove */
.cart-item__total {
    flex: 0 0 100px;
    text-align: right;
}

.cart-line-total {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 10px;
}

.cart-line-total__original {
    display: block;
    color: #bbb;
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: line-through;
}

.cart-line-total__sale {
    color: #c0392b;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 0;
    transition: color .15s;
}

.cart-remove-btn:hover {
    color: #666;
}

.cart-remove-btn i {
    margin-right: 3px;
}

/* Continue shopping link */
.cart-continue {
    margin-top: 20px;
}

.cart-continue a {
    font-size: 0.88rem;
    color: #101B3C;
    text-decoration: none;
    letter-spacing: .03em;
}

.cart-continue a i {
    margin-right: 8px;
}

/* Order summary sidebar */
.cart-summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 32px;
    position: sticky;
    top: 20px;
}

.cart-summary__label {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 24px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary__subtotal {
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.cart-summary__subtotal-label {
    color: #555;
    font-size: 0.95rem;
}

.cart-summary__subtotal-value {
    font-weight: 600;
    font-size: 1rem;
}

.cart-summary__shipping {
    margin-bottom: 24px;
}

.cart-summary__shipping-text {
    color: #aaa;
    font-size: 0.85rem;
}

.cart-summary__total {
    padding: 16px 0;
    border-top: 2px solid #101B3C;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.cart-summary__total-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: .06em;
}

.cart-summary__total-value {
    font-weight: 700;
    font-size: 1.2rem;
}

.cart-summary__vat {
    font-size: 0.75rem;
    color: #bbb;
    margin-bottom: 28px;
}

.cart-summary__checkout {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 0.9rem;
    letter-spacing: .1em;
}

/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .shop-col-left {
        border-right: none;
        padding-right: 15px;
    }
    .shop-col-right {
        padding-left: 15px;
        padding-top: 20px;
    }
    .checkout-auth-tabs {
        flex-direction: column;
    }
    .checkout-auth-tab {
        border-left: none;
        border-top: 1px solid #ccc;
    }
    .checkout-auth-tab:first-child {
        border-top: none;
    }
    /* Cart: stack image and info vertically on small screens */
    .cart-row {
        flex-wrap: wrap;
    }
    .cart-item__image {
        flex: 0 0 80px;
        height: 80px;
    }
    .cart-item__total {
        flex: 0 0 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
        margin-top: 4px;
    }
    .cart-summary {
        position: static;
    }
}
