/* Shop (vorher im Admin-Template unter admin/shop und admin/products) */

.header-abstand-shop {
    margin-top: 165px;
}

@media (max-width: 767px) {
    .header-abstand-shop {
        margin-top: 125px;
    }
}

@media (min-width: 1300px) {
    .container-shop-v7 {
        max-width: 1315px !important;
    }
}

@media (min-width: 768px) {
    .container-shop-v7 {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

.container-shop-v7 {
    font-size: 14px;
    color: #fff;
}

.container-shop-v7 a {
    word-break: normal;
}

/* ---------- Kopf ---------- */
.shop-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 25px;
}

.shop-head .ueberschrift {
    margin-bottom: 0;
}

.shop-head-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shop-head-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    background-color: #252525;
    color: var(--template-color, #faffa9);
}

.shop-head-links a:hover,
.shop-head-links a:focus {
    background-color: #1d1d1d;
    color: #fff;
    text-decoration: none;
}

.shop-badge {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    background-color: var(--template-color, #faffa9);
    color: #131313;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.shop-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    background-color: #1d1d1d;
    border-left: 4px solid;
}

.shop-alert ul {
    margin: 0;
    padding-left: 18px;
}

.shop-alert-ok {
    border-color: #6fdc6f;
    color: #6fdc6f;
}

.shop-alert-error {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.shop-alert-info {
    border-color: var(--template-color, #faffa9);
    color: #ddd;
}

.shop-alert-info i {
    margin-right: 6px;
    color: var(--template-color, #faffa9);
}

.shop-alert-info a {
    margin-left: 6px;
    font-weight: 700;
}

/* ---------- Kästen ---------- */
.shop-box {
    margin-bottom: 25px;
    background-color: #1d1d1d;
    border-bottom: 1px solid #47483a;
}

.shop-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    color: #9a9a9a;
}

.shop-muted {
    color: #9a9a9a;
    font-size: 13px;
}

.shop-h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--template-color, #faffa9);
}

/* ---------- Kategorien ---------- */
.shop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.shop-categories a {
    padding: 7px 14px;
    background-color: #1d1d1d;
    border-bottom: 2px solid transparent;
    color: #fff;
}

.shop-categories a:hover,
.shop-categories a:focus,
.shop-categories a.active {
    border-bottom-color: var(--template-color, #faffa9);
    color: var(--template-color, #faffa9);
    text-decoration: none;
}

/* ---------- Produktliste ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    background-color: #1d1d1d;
    border-bottom: 1px solid #47483a;
    color: #fff;
    transition: background-color .2s;
}

.shop-card:hover,
.shop-card:focus {
    background-color: #252525;
    color: #fff;
    text-decoration: none;
}

.shop-card-image,
.shop-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background-color: #181818;
    overflow: hidden;
}

.shop-card-image img,
.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-card-image i,
.shop-product-image i {
    font-size: 64px;
    color: #333;
}

.shop-card-body {
    padding: 14px 16px 16px;
}

.shop-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.shop-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--template-color, #faffa9);
}

.shop-price-big {
    font-size: 26px;
}

/* ---------- Produktseite ---------- */
.shop-product {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 30px;
    padding: 24px;
}

.shop-product-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.shop-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #ddd;
}

.shop-description p:last-child {
    margin-bottom: 0;
}

.shop-add {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

/* ---------- Formularelemente ---------- */
.shop-input {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #47483a;
    background-color: #131313;
    color: #fff;
    font-size: 14px;
}

.shop-input:focus {
    outline: none;
    border-color: var(--template-color, #faffa9);
}

.shop-qty {
    width: 80px;
}

.shop-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--template-color, #faffa9);
    background-color: var(--template-color, #faffa9);
    color: #131313 !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.shop-button:hover,
.shop-button:focus {
    filter: brightness(.9);
    text-decoration: none;
}

.shop-button:disabled {
    opacity: .5;
    cursor: default;
}

.shop-button-secondary {
    background-color: #252525;
    border-color: #47483a;
    color: #fff !important;
}

.shop-icon-button {
    width: 32px;
    height: 32px;
    border: 1px solid #47483a;
    background-color: #252525;
    color: #fff;
    cursor: pointer;
}

.shop-icon-button:hover,
.shop-icon-button:focus {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* ---------- Tabellen ---------- */
.shop-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-table th {
    padding: 10px 14px;
    background-color: #252525;
    border-bottom: 1px solid #47483a;
    color: var(--template-color, #faffa9);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
}

.shop-table td {
    padding: 10px 14px;
    border-top: 1px solid #262626;
    vertical-align: middle;
}

.shop-table-compact td {
    padding: 6px 0;
}

.shop-num {
    text-align: right !important;
    white-space: nowrap;
}

.shop-table td.shop-num .shop-qty {
    display: inline-block;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.shop-item img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background-color: #131313;
}

.shop-totals {
    margin-left: auto;
    min-width: 280px;
    border-collapse: collapse;
}

.shop-totals th,
.shop-totals td {
    padding: 4px 0;
    font-weight: 400;
}

.shop-totals td {
    padding-left: 24px;
    text-align: right;
    white-space: nowrap;
}

.shop-total th,
.shop-total td {
    padding-top: 10px;
    border-top: 1px solid #47483a;
    font-size: 16px;
    font-weight: 700;
    color: var(--template-color, #faffa9);
}

.shop-cart-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 14px;
    border-top: 1px solid #262626;
}

.shop-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 14px;
    border-top: 1px solid #262626;
}

/* ---------- Kasse ---------- */
.shop-form {
    padding: 22px;
}

.shop-form .shop-actions {
    padding: 16px 0 0;
    margin-top: 16px;
}

.shop-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.shop-field {
    margin-bottom: 14px;
}

.shop-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.shop-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
}

.shop-method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background-color: #131313;
    border: 1px solid #47483a;
    cursor: pointer;
}

.shop-method:has(input:checked) {
    border-color: var(--template-color, #faffa9);
}

.shop-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    line-height: 1.5;
}

.shop-terms input {
    margin-top: 4px;
}

.shop-order-note {
    margin: 10px 0 0;
    color: #9a9a9a;
    font-size: 13px;
}

/* ---------- Bestellung ---------- */
.shop-order-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shop-order-head .shop-h2 {
    margin: 0;
}

.shop-status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.shop-status-paid {
    background-color: #1e5e2a;
    color: #fff;
}

.shop-status-open {
    background-color: #5e4a1e;
    color: #fff;
}

.shop-status-sent {
    background-color: #1e3f5e;
    color: #fff;
}

/* ---------- Handy ---------- */
@media (max-width: 767px) {
    .shop-product {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .shop-form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .shop-form {
        padding: 16px;
    }

    .shop-totals {
        min-width: 0;
        width: 100%;
    }

    /* Tabellen als Karten */
    .shop-table thead {
        display: none;
    }

    .shop-table tr {
        display: block;
        padding: 10px 14px;
        border-top: 1px solid #262626;
    }

    .shop-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 4px 0;
        border: 0;
    }

    .shop-table td[data-label]::before {
        content: attr(data-label);
        color: #9a9a9a;
    }

    .shop-table-compact tr {
        padding: 6px 0;
    }
}
