/*
 * Einheitliches Store-Design (Store, Artikel, Warenkorb, Checkout, Bestellungen).
 * Public/index.php laedt die Datei nur auf diesen Seiten und legt .store-page um
 * den Seiteninhalt. Alle Regeln haengen daran, Topbar, Navigation und Footer
 * bleiben unberuehrt. Farben und Radien nur ueber die Variablen setzen.
 */

.store-page {
    --store-ink: #111827;
    --store-text: #4b5563;
    --store-muted: #6b7280;
    --store-line: #e5e7eb;
    --store-line-strong: #d1d5db;
    --store-surface: #f9fafb;
    --store-accent: #2563eb;
    --store-accent-dark: #1d4ed8;
    --store-ok: #15803d;
    --store-warn: #b45309;
    --store-bad: #b91c1c;
    --store-radius: 6px;
    --store-width: 1280px;
    --store-gutter: 24px;

    flex: 1 0 auto;
    min-width: 0;
    color: var(--store-text);
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .store-page {
        --store-gutter: 16px;
    }
}

/* - - - Grundlagen - - - */

.store-page h1,
.store-page h2,
.store-page h3,
.store-page h4,
.store-page h5 {
    color: var(--store-ink);
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
}

.store-page a {
    color: var(--store-accent);
}

.store-page a:hover {
    color: var(--store-accent-dark);
    text-decoration: underline;
}

.store-page hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--store-line);
}

.store-page .text-muted {
    color: var(--store-muted) !important;
}

.store-page dt,
.store-page dd {
    margin: 0;
    padding: 0;
    border: 0;
}

.store-page .alert {
    border-radius: var(--store-radius);
}

.store-page .shop-toolbar,
.store-page .autocomplete-box {
    display: none;
}

.store-page #message-box:empty {
    display: none;
}

.store-shell {
    max-width: var(--store-width);
    margin: 0 auto;
    padding: 0 var(--store-gutter);
}

.store-page .page-title {
    margin: 0 0 28px;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--store-line);
    background: #fff;
}

.store-page .page-title .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 24px;
    max-width: var(--store-width);
    padding: 0 var(--store-gutter);
}

.store-page .page-title .column {
    display: block;
    padding: 0;
    text-align: left;
}

.store-page .page-title h1 {
    margin: 0;
    font-size: 22px;
}

.store-page #NaviMainSection {
    margin-left: 8px;
    color: var(--store-muted);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
}

.store-page .breadcrumbs {
    margin: 0;
    padding: 0;
    font-size: 13px;
    text-align: left;
}

.store-page .breadcrumbs a {
    color: var(--store-muted);
}

.store-page .breadcrumbs > li:first-child,
.store-page .breadcrumbs > li:first-child > a {
    margin-left: 0;
    padding-left: 0;
}

.store-section {
    margin-top: 48px;
}

.store-section-title {
    margin: 0 0 16px;
    font-size: 20px;
}

.store-panel {
    padding: 24px;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: var(--store-surface);
}

/* - - - Buttons - - - */

.store-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--store-radius);
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}

.store-page .btn:hover {
    text-decoration: none;
}

.store-page .btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.store-page .btn-lg {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
}

.store-page .btn-primary {
    border-color: var(--store-accent);
    background: var(--store-accent);
    color: #fff;
}

.store-page .btn-primary:hover,
.store-page .btn-primary:focus {
    border-color: var(--store-accent-dark);
    background: var(--store-accent-dark);
    color: #fff;
}

.store-page .btn-secondary,
.store-page .btn-outline-secondary,
.store-page .btn-slate {
    border-color: var(--store-line-strong);
    background: #fff;
    color: var(--store-ink);
}

.store-page .btn-secondary:hover,
.store-page .btn-secondary:focus,
.store-page .btn-outline-secondary:hover,
.store-page .btn-outline-secondary:focus,
.store-page .btn-slate:hover,
.store-page .btn-slate:focus {
    border-color: var(--store-line-strong);
    background: var(--store-surface);
    color: var(--store-ink);
}

.store-page .btn-outline-primary {
    border-color: var(--store-accent);
    background: #fff;
    color: var(--store-accent);
}

.store-page .btn-outline-primary:hover,
.store-page .btn-outline-primary:focus {
    background: var(--store-accent);
    color: #fff;
}

.store-page .btn-warning,
.store-page .btn-danger {
    border-color: var(--store-line-strong);
    background: #fff;
}

.store-page .btn-warning {
    color: var(--store-warn);
}

.store-page .btn-danger {
    color: var(--store-bad);
}

.store-page .btn:disabled,
.store-page .btn[disabled] {
    border-color: var(--store-line);
    background: var(--store-line);
    color: var(--store-muted);
    cursor: not-allowed;
    opacity: 1;
}

.store-page .btn:focus-visible,
.store-icon-button:focus-visible,
.store-category:focus-visible,
.store-filter-toggle:focus-visible {
    outline: 2px solid var(--store-accent);
    outline-offset: 2px;
}

.store-icon-button {
    margin-left: 4px;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--store-muted);
    font-size: 13px;
    cursor: pointer;
}

.store-icon-button:hover {
    color: var(--store-accent);
}

.store-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--store-accent);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.store-link-button:hover {
    color: var(--store-accent-dark);
    text-decoration: underline;
}

/* - - - Formulare - - - */

.store-page .form-control,
.store-page select,
.store-page textarea,
.store-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--store-line-strong);
    border-radius: var(--store-radius);
    background-color: #fff;
    box-shadow: none;
    color: var(--store-ink);
    font-size: 14px;
    line-height: 1.4;
}

.store-page select {
    padding-right: 36px;
}

.store-page textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
}

.store-page .form-control:focus,
.store-page select:focus,
.store-page textarea:focus,
.store-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus {
    border-color: var(--store-accent);
    box-shadow: 0 0 0 1px var(--store-accent);
    outline: 0;
}

.store-page select:disabled,
.store-page input:disabled {
    background-color: var(--store-surface);
    color: var(--store-muted);
}

.store-page input[type="checkbox"] {
    border-color: var(--store-line-strong);
    border-radius: 3px;
    color: var(--store-accent);
}

.store-page .form-group {
    margin-bottom: 20px;
}

.store-page .form-group label,
.store-label {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    color: var(--store-ink);
    font-size: 14px;
    font-weight: 500;
}

.store-page .form-group input,
.store-page .form-group select,
.store-page .form-group textarea {
    width: 100%;
}

/* - - - Status - - - */

.store-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.store-status::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.store-status--ok {
    color: var(--store-ok);
}

.store-status--warn {
    color: var(--store-warn);
}

.store-status--bad {
    color: var(--store-bad);
}

/* - - - Tabellen (auch DataTables) - - - */

.store-page .table,
.store-page table.dataTable {
    width: 100% !important;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
}

.store-page .table thead th,
.store-page table.dataTable thead th {
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid var(--store-line);
    color: var(--store-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
}

.store-page .table td,
.store-page table.dataTable tbody td {
    padding: 16px 12px;
    border: 0;
    border-top: 1px solid var(--store-line);
    background: #fff !important;
    vertical-align: top;
}

.store-page table.dataTable.no-footer {
    border-bottom: 1px solid var(--store-line);
}

.store-page .table td a {
    text-decoration: none;
}

.store-table-name {
    color: var(--store-ink);
    font-weight: 500;
}

.store-page .dataTables_wrapper {
    font-size: 13px;
}

.store-page .dataTables_length,
.store-page .dataTables_filter,
.store-page .dataTables_info,
.store-page .dataTables_paginate {
    margin: 12px 0;
    padding: 0;
    color: var(--store-muted);
    font-size: 13px;
}

.store-page .dataTables_length select {
    display: inline-block;
    width: auto;
    height: 32px;
    margin: 0 4px;
    padding: 0 28px 0 8px;
    font-size: 13px;
    background-position: right 4px center;
}

.store-page .dataTables_filter input {
    width: 200px;
    height: 32px !important;
    margin-left: 6px;
    font-size: 13px !important;
}

.store-page .dataTables_paginate .paginate_button {
    min-width: 32px;
    margin: 0 0 0 4px;
    padding: 5px 8px !important;
    border: 1px solid transparent !important;
    border-radius: var(--store-radius);
    background: none !important;
    box-shadow: none !important;
    color: var(--store-text) !important;
}

.store-page .dataTables_paginate .paginate_button:hover {
    border-color: var(--store-line-strong) !important;
    background: var(--store-surface) !important;
    color: var(--store-ink) !important;
}

.store-page .dataTables_paginate .paginate_button.current,
.store-page .dataTables_paginate .paginate_button.current:hover {
    border-color: var(--store-accent) !important;
    background: var(--store-accent) !important;
    color: #fff !important;
}

.store-page .dataTables_paginate .paginate_button.disabled,
.store-page .dataTables_paginate .paginate_button.disabled:hover {
    border-color: transparent !important;
    background: none !important;
    color: var(--store-line-strong) !important;
}

/* - - - Store: Aufbau und Seitenleiste - - - */

.store-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-bottom: 64px;
}

.store-sidebar .widget {
    margin: 0 0 28px;
    padding: 0;
}

.store-sidebar-title {
    display: block;
    margin: 0 0 8px;
    color: var(--store-ink);
    font-size: 13px;
    font-weight: 600;
}

.store-filter-block {
    margin-bottom: 20px;
}

.store-filter-block:last-child {
    margin-bottom: 0;
}

.store-filter-block:has(> div:empty) {
    display: none;
}

.store-sidebar a[onclick] {
    cursor: pointer;
}

.store-sidebar #widget-categories-manufacturer ul {
    margin-top: 8px;
}

.store-back-link {
    display: none;
    margin-bottom: 20px;
}

.store-sidebar .widget-categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.store-sidebar .widget-categories ul > li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.store-sidebar .widget-categories ul > li > a {
    display: inline;
    color: var(--store-text);
    font-size: 14px;
    font-weight: 400;
}

.store-sidebar .widget-categories ul > li > a:hover {
    color: var(--store-accent);
    text-decoration: none;
}

.store-sidebar .widget-categories .text-muted,
.store-sidebar .custom-control .text-muted {
    font-size: 12px;
}

.store-sidebar .sub-category-link {
    font-weight: 600;
}

.store-sidebar #shop-nav-filter-manufacturers {
    max-height: 280px;
    overflow-y: auto;
}

.store-sidebar .custom-control {
    min-height: 0;
    margin-bottom: 4px;
    padding: 0;
}

.store-sidebar .custom-control label {
    margin: 0;
    color: var(--store-text);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.store-sidebar .custom-control label:hover {
    color: var(--store-accent);
}

.store-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    margin-bottom: 16px;
    border: 1px solid var(--store-line-strong);
    border-radius: var(--store-radius);
    background: #fff;
    color: var(--store-ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

@media (max-width: 991px) {
    .store-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .store-filter-toggle {
        display: flex;
    }

    .store-sidebar {
        display: none;
        margin-bottom: 16px;
        padding: 16px;
        border: 1px solid var(--store-line);
        border-radius: var(--store-radius);
        background: var(--store-surface);
    }

    .store-sidebar.is-open {
        display: block;
    }

    .store-sidebar .widget:last-child {
        margin-bottom: 0;
    }
}

/* - - - Store: Startseite - - - */

.store-promos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.store-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: var(--store-surface);
}

.store-promo-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.store-promo h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.store-promo h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.store-promo p {
    margin: 0;
    font-size: 14px;
}

.store-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.store-promo img {
    flex: none;
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.store-promo--product {
    background: #fff;
    color: var(--store-text) !important;
    transition: border-color .15s;
}

.store-promo--product:hover {
    border-color: var(--store-accent);
    text-decoration: none !important;
}

.store-promo--product img {
    width: 96px;
    height: 96px;
}

.store-promo-link {
    margin-top: 8px;
    color: var(--store-accent);
    font-size: 14px;
    font-weight: 500;
}

.store-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 12px;
}

.store-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: #fff;
    color: var(--store-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.store-category:hover {
    border-color: var(--store-accent);
    color: var(--store-accent);
}

.store-category img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.store-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.store-product {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: #fff;
    transition: border-color .15s;
}

.store-product:hover {
    border-color: var(--store-accent);
}

.store-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 12px;
    object-fit: contain;
}

.store-page .store-product-title {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.store-product-title a {
    color: var(--store-ink);
}

.store-product-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.store-product-price {
    margin: auto 0 0;
    color: var(--store-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.store-product-price small {
    color: var(--store-muted);
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 1199px) {
    .store-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .store-section {
        margin-top: 32px;
    }

    .store-promos {
        grid-template-columns: minmax(0, 1fr);
    }

    .store-promo img {
        width: 80px;
        height: 80px;
    }

    .store-categories {
        display: flex;
        margin: 0 calc(var(--store-gutter) * -1);
        padding: 0 var(--store-gutter) 4px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .store-category {
        flex: 0 0 112px;
        scroll-snap-align: start;
    }

    .store-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .store-product {
        padding: 12px;
    }
}

/* - - - Store: Artikelliste - - - */

.store-page #loading-progress {
    max-width: 480px;
    text-align: center;
}

.store-progress-track {
    height: 6px;
    margin: 8px 0;
    overflow: hidden;
    border-radius: 3px;
    background: var(--store-line);
}

.store-progress-bar {
    width: 0;
    height: 100%;
    background: var(--store-accent);
    transition: width .3s ease;
}

.store-list-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--store-text);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.store-page .productFilter {
    width: auto;
    height: 32px;
    margin: 0 8px 8px 0;
    font-size: 13px;
}

.store-page #products-section {
    overflow: visible;
}

.store-page #shop-products-list {
    table-layout: fixed;
}

.store-page #shop-products-list thead th:first-child {
    width: 136px !important;
}

.store-page #shop-products-list thead th:last-child {
    width: 216px !important;
}

.store-list-thumb {
    display: block;
    width: 112px;
    height: 112px;
}

.store-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-page .store-list-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.store-list-title a {
    color: var(--store-ink);
}

.store-list-meta {
    margin: 0 0 8px;
    color: var(--store-muted);
    font-size: 13px;
}

.store-list-text {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--store-text);
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.store-list-states {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.store-list-price {
    margin: 0;
    color: var(--store-ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.store-list-price small {
    color: var(--store-muted);
    font-size: 12px;
    font-weight: 400;
}

.store-list-rates {
    margin: 4px 0 0;
    color: var(--store-muted);
    font-size: 12px;
    line-height: 1.5;
}

.product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

@media (max-width: 767px) {
    .store-page .dataTables_length,
    .store-page .dataTables_filter,
    .store-page .dataTables_info,
    .store-page .dataTables_paginate {
        float: none;
        text-align: left;
    }

    .store-page .dataTables_filter input {
        width: calc(100% - 56px);
    }

    .store-page #shop-products-list:not(.hidden),
    .store-page #shop-products-list tbody {
        display: block !important;
    }

    .store-page #shop-products-list thead {
        display: none;
    }

    .store-page #shop-products-list tbody tr {
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 8px 12px;
        padding: 16px 0;
        border-top: 1px solid var(--store-line);
    }

    .store-page #shop-products-list tbody td {
        display: block;
        padding: 0;
        border: 0;
    }

    .store-page #shop-products-list tbody td:first-child {
        grid-row: span 2;
    }

    .store-page #shop-products-list tbody td:last-child {
        grid-column: 2;
    }

    .store-list-thumb {
        width: 80px;
        height: 80px;
    }

    .store-list-text {
        display: none;
    }
}

/* - - - Fehlermeldung aus dem Store (nur mit Admin-Recht) - - - */

#modalContainer .modal-content {
    position: relative;
    align-self: flex-start;
    width: 95%;
    max-width: 600px;
    margin: 160px 0 24px;
    padding: 24px;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: #fff;
    color: var(--store-text);
}

#modalContainer {
    align-items: flex-start;
    overflow-y: auto;
}

#modalContainer .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--store-line);
}

#modalContainer .modal-header h2 {
    margin: 0;
    font-size: 18px;
}

#modalContainer .modal-header button {
    padding: 4px;
    border: 0;
    background: none;
    color: var(--store-muted);
    cursor: pointer;
}

#modalContainer .modal-header button:hover {
    color: var(--store-ink);
}

#modalContainer .close-icon {
    width: 24px;
    height: 24px;
}

.screenshot-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 100px;
    padding: 24px;
    border: 1px dashed var(--store-line-strong);
    border-radius: var(--store-radius);
    color: var(--store-muted);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}

.screenshot-area:hover {
    border-color: var(--store-accent);
    background: var(--store-surface);
}

.screenshot-preview {
    max-width: 100%;
    max-height: 150px;
    margin-top: 10px;
    border-radius: var(--store-radius);
    object-fit: contain;
}

.screenshot-wrapper,
.attachment-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.remove-btn {
    padding: 8px 16px;
    border: 1px solid var(--store-line-strong);
    border-radius: var(--store-radius);
    background: #fff;
    color: var(--store-bad);
    font-size: 13px;
    cursor: pointer;
}

.remove-btn:hover {
    background: var(--store-surface);
}

.form-message {
    margin: -8px 0 24px;
    padding: 12px;
    border-radius: var(--store-radius);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.submit-button {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--store-radius);
    background: var(--store-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.submit-button:hover {
    background: var(--store-accent-dark);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* - - - Artikelseite - - - */

.store-back {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--store-muted) !important;
    font-size: 14px;
    cursor: pointer;
}

.store-back:hover {
    color: var(--store-accent) !important;
}

@media (min-width: 1024px) {
    .store-gallery {
        position: sticky;
        top: 170px;
    }
}

.store-page #product-name {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
}

.store-buybox-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 16px;
}

.store-page .store-buybox-price strong {
    color: var(--store-ink);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.store-buybox-price small {
    margin-left: -8px;
    font-size: 13px;
}

.store-page #product-availability {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
}

.store-meta {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 2px 16px;
    margin: 16px 0 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--store-line);
    font-size: 13px;
}

.store-meta dt {
    color: var(--store-muted);
    font-weight: 400;
}

.store-meta dd {
    margin: 0;
    color: var(--store-ink);
}

.store-page #product-manufacturer-logo {
    max-height: 32px;
}

.store-page .buy-option-selector,
.store-page .buy-option-selector-modal {
    color: var(--store-ink);
    font-size: 14px;
    font-weight: 500;
}

.store-page .ring-blue-500 {
    --tw-ring-color: var(--store-accent) !important;
}

.store-page .border-blue-500 {
    border-color: var(--store-accent) !important;
}

.store-page .description {
    font-size: 14px;
    line-height: 1.6;
}

.store-page .description li {
    display: list-item;
    margin-bottom: 4px;
    text-align: -webkit-match-parent;
    unicode-bidi: isolate;
}

.store-page .description ul {
    display: block;
    margin: 8px 0 16px;
    padding-left: 20px;
    list-style-type: disc;
    unicode-bidi: isolate;
}

.store-page .description ul ul {
    margin: 4px 0;
    list-style-type: circle;
}

.store-page .description h1,
.store-page .description h2,
.store-page .description h3 {
    display: block;
    margin: 16px 0 8px;
    font-size: 15px;
    font-weight: 600;
    unicode-bidi: isolate;
}

.store-tabs {
    overflow-x: auto;
}

.store-page .tab-link {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-size: 14px;
}

.product-htmlmainspecs,
.product-htmlspecs {
    margin: 24px 0 0;
    font-size: 14px;
}

.ITSg {
    margin: 16px 0 8px;
    color: var(--store-ink);
    font-weight: 600;
}

.ITSr0,
.ITSr1 {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid var(--store-line);
}

.ITSn {
    color: var(--store-muted);
    overflow-wrap: anywhere;
}

.ITSv {
    color: var(--store-ink);
}

.store-page #accessoriesTable td:last-child {
    text-align: center;
    white-space: nowrap;
}

.accessory-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.store-page #image-zoom-modal {
    z-index: 2000;
    background-color: rgba(17, 24, 39, .6);
}

.store-page #main-zoom-image {
    will-change: transform;
}

.thumbnail-item {
    display: block;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--store-radius);
    background: #fff;
    cursor: pointer;
    object-fit: contain;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline-color .15s;
}

.thumbnail-item.ring-blue-500 {
    outline-color: var(--store-accent);
}

/* Bisher nur ueber das Tailwind-CDN verfuegbar, fehlen in ambiel.css */
.store-page .flex-shrink {
    flex-shrink: 1;
}

.store-page .left-3 {
    left: .75rem;
}

.store-page .right-3 {
    right: .75rem;
}

.store-page .top-3 {
    top: .75rem;
}

.store-page .max-h-full {
    max-height: 100%;
}

.store-page .w-px {
    width: 1px;
}

.store-page .z-20 {
    z-index: 20;
}

/* - - - Warenkorb und Checkout - - - */

.store-funnel {
    padding-bottom: 64px;
}

.store-funnel-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 40px;
    align-items: start;
}

.store-summary-title {
    margin: 0 0 16px;
    font-size: 16px;
}

.store-summary {
    margin: 0;
    font-size: 14px;
}

.store-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}

.store-summary-row dt {
    font-weight: 400;
}

.store-summary-row dd {
    margin: 0;
    color: var(--store-ink);
    font-weight: 500;
    text-align: right;
}

.store-summary-row--total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--store-line);
    color: var(--store-ink);
    font-size: 16px;
    font-weight: 600;
}

.store-summary-row--total dt,
.store-summary-row--total dd {
    font-weight: 600;
}

.store-summary-rate {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--store-line);
}

.store-summary-rate p {
    margin: 2px 0 0;
    font-size: 13px;
}

.store-summary-rate-title {
    color: var(--store-ink);
    font-weight: 600;
}

.store-empty {
    padding: 48px 24px;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: var(--store-surface);
    color: var(--store-text);
    text-align: center;
}

.store-cart-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--store-line);
}

.store-cart-list:empty {
    border: 0;
}

.store-cart-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 8px 20px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--store-line);
}

.store-cart-item-image {
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.store-page .store-cart-item-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.store-cart-item-title a {
    color: var(--store-ink);
}

.store-cart-item-meta {
    margin: 0 0 8px;
    color: var(--store-muted);
    font-size: 13px;
}

.store-cart-item-price {
    margin: 0 0 8px;
    color: var(--store-ink);
    font-size: 15px;
    font-weight: 600;
}

.store-cart-item-price small {
    display: block;
    color: var(--store-muted);
    font-size: 12px;
    font-weight: 400;
}

.store-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-page .store-cart-item-actions select {
    width: 72px;
}

.store-section-heading {
    margin: 0 0 16px;
    font-size: 16px;
}

.store-page .checkout-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding: 24px 0 0;
    border: 0;
    border-top: 1px solid var(--store-line);
    border-radius: 0;
    background: none;
}

.store-page .checkout-footer .column {
    display: block;
    padding: 0;
}

.store-page .widget-order-summary {
    margin: 0;
}

@media (max-width: 991px) {
    .store-funnel-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 575px) {
    .store-cart-item {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        gap: 8px 12px;
    }

    .store-cart-item-image {
        width: 72px;
        height: 72px;
    }

    .store-cart-item-actions {
        grid-column: 3;
        grid-row: 1;
        flex-direction: column;
    }

    .store-page .checkout-footer .column,
    .store-page .checkout-footer .btn {
        width: 100%;
    }

    .store-page .checkout-footer {
        flex-direction: column-reverse;
    }
}

/* - - - Bestellungen - - - */

.order-card {
    margin-bottom: 16px;
    padding: 20px 24px;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: #fff;
}

.order-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--store-line);
    font-size: 14px;
}

.store-order-facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 2px 16px;
    margin: 0;
}

.store-order-facts dt {
    color: var(--store-muted);
    font-weight: 400;
}

.store-order-facts dd {
    margin: 0;
    color: var(--store-ink);
}

.store-order-facts .price-highlight {
    font-weight: 600;
}

.order-details {
    display: none;
    margin-top: 16px;
}

.order-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.order-product-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
    background: var(--store-surface);
    font-size: 13px;
}

.order-product-card img {
    flex: none;
    width: 72px;
    height: 72px;
    background: #fff;
    object-fit: contain;
}

.order-product-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--store-ink);
    font-size: 14px;
    font-weight: 500;
}

.order-product-card .price-highlight {
    color: var(--store-ink);
    font-weight: 600;
}

.download-invoice-button {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .order-products-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
