/* =========================================================
   PRODUCT REPO – GRUNDEINSTELLUNGEN / WRAPPER
   ========================================================= */

.productrepo-wrapper {
  padding: 40px 24px;
  background: #fff;
  color: #111;
  max-width: 1400px;
  margin: 0 auto;
}

.productrepo-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.productrepo-title {
  margin: 0;
}

.productrepo-quote-status {
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #f8f9fb;
}

.productrepo-quote-status-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 6px;
}

.productrepo-quote-status-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  color: #111;
}

.productrepo-quote-status-link {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #0b5ed7;
  font-weight: 700;
}

.productrepo-backlink {
  margin-bottom: 24px;
}

.productrepo-backlink a {
  text-decoration: none;
  color: #0b5ed7;
  font-weight: 600;
}


/* =========================================================
   SPRACHUMSCHALTER
   ========================================================= */

.productrepo-language-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.productrepo-language-link {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  background: #fff;
  font-weight: 700;
}

.productrepo-language-link.active {
  background: #0b5ed7;
  color: #fff;
  border-color: #0b5ed7;
}


/* =========================================================
   DRUCK-/PDF-HEADER
   ========================================================= */

.productrepo-print-header {
  display: none;
}

.productrepo-print-header-left {
  flex: 0 0 auto;
}

.productrepo-print-header-right {
  flex: 1 1 auto;
}

.productrepo-print-logo {
  max-width: 220px;
  max-height: 70px;
  width: auto;
  height: auto;
  display: block;
}


/* =========================================================
   DETAILANSICHT – LAYOUT
   ========================================================= */

.productrepo-detail {
  max-width: 1280px;
  margin: 0 auto;
}

.productrepo-detail-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 40px;
  align-items: start;
}


/* =========================================================
   DETAILANSICHT – BILDBEREICH / GALERIE
   ========================================================= */

.productrepo-gallery-box {
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.productrepo-main-image-link {
  display: block;
}

.productrepo-main-image {
  width: 100%;
  max-width: 100%;
  max-height: 680px;
  object-fit: contain;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
}

.productrepo-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.productrepo-thumb {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.productrepo-thumb:hover {
  border-color: #0b5ed7;
  transform: translateY(-2px);
}


/* =========================================================
   DETAILANSICHT – INFOSPALTE
   ========================================================= */

.productrepo-detail-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.productrepo-detail-name {
  margin: 0;
  font-size: 38px;
  line-height: 1.2;
}

.productrepo-article-box {
  padding: 10px 14px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #f8f9fb;
  min-width: 180px;
}

.productrepo-article-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 4px;
}

.productrepo-article-value {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.productrepo-price {
  font-size: 24px;
  margin: 0 0 20px 0;
  color: #111;
}

.productrepo-price strong {
  color: #111;
}

.productrepo-categories-box {
  margin: 0 0 28px 0;
}

.productrepo-categories-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.productrepo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.productrepo-badge-link,
.productrepo-badge-link:visited {
  color: #1f2937;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 16px;
  font-weight: 500;
}

.productrepo-badge-link:hover,
.productrepo-badge-link:focus {
  color: #0b5ed7;
}

.productrepo-add-box {
  margin-top: 24px;
}

.productrepo-add-button,
.productrepo-add-button:visited,
.productrepo-add-button:hover,
.productrepo-add-button:focus,
.productrepo-add-button:active {
  display: inline-block;
  padding: 14px 18px;
  border-radius: 10px;
  background: #0b5ed7;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}


/* =========================================================
   DETAILANSICHT – TABS / TEXTINHALT
   ========================================================= */

.productrepo-tabs-box {
  margin-top: 40px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.productrepo-tab-button {
  padding: 16px 24px;
  border: 0;
  background: #f3f5f7;
  color: #1f2937;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.productrepo-tab-button.active {
  background: #0b5ed7;
  color: #fff;
}

.productrepo-tab-content {
  padding: 32px;
  line-height: 1.7;
  font-size: 17px;
}

.productrepo-tab-content a,
.productrepo-tab-content a:visited,
.productrepo-tab-content a:hover,
.productrepo-tab-content a:focus,
.productrepo-tab-content a:active {
  color: #111;
  text-decoration: none;
}

.productrepo-tab-content strong,
.productrepo-tab-content h1,
.productrepo-tab-content h2,
.productrepo-tab-content h3,
.productrepo-tab-content h4,
.productrepo-tab-content h5,
.productrepo-tab-content h6,
.productrepo-tab-content p,
.productrepo-tab-content li {
  color: #111;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.productrepo-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  padding: 30px;
}

.productrepo-lightbox-overlay.is-open {
  display: block;
}

.productrepo-lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productrepo-lightbox-close,
.productrepo-lightbox-prev,
.productrepo-lightbox-next {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111;
  cursor: pointer;
  z-index: 10001;
}

.productrepo-lightbox-close {
  top: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  font-size: 28px;
  line-height: 1;
}

.productrepo-lightbox-prev,
.productrepo-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 28px;
}

.productrepo-lightbox-prev {
  left: 10px;
}

.productrepo-lightbox-next {
  right: 10px;
}

.productrepo-lightbox-inner {
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.productrepo-lightbox-link {
  display: block;
}

.productrepo-lightbox-image {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.productrepo-lightbox-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  flex-wrap: wrap;
}

.productrepo-lightbox-counter {
  font-size: 16px;
  font-weight: 700;
}

.productrepo-lightbox-download {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
}


/* =========================================================
   ÜBERSICHT – SUCHE / FILTER
   ========================================================= */

.productrepo-search-form {
  margin-bottom: 18px;
}

.productrepo-search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.productrepo-search-input {
  flex: 1 1 320px;
  min-width: 260px;
  padding: 12px 16px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  font-size: 16px;
}

.productrepo-search-button {
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #0b5ed7;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.productrepo-reset-link {
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  background: #f3f5f7;
  color: #1f2937;
  font-weight: 700;
}

.productrepo-filter-bar {
  margin-bottom: 28px;
}

.productrepo-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.productrepo-filter-link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #d0d7de;
  background: #fff;
  color: #1f2937;
}

.productrepo-filter-link.active {
  border-color: #0b5ed7;
  background: #0b5ed7;
  color: #fff;
}


/* =========================================================
   ÜBERSICHT – PRODUKTGRID / PRODUKTKARTEN
   ========================================================= */

.productrepo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.productrepo-card-link {
  text-decoration: none;
  color: inherit;
}

.productrepo-card {
  border: 1px solid #dfe3e8;
  padding: 22px;
  border-radius: 16px;
  background: #ffffff;
  height: 100%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.productrepo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.10);
  border-color: #b8cffc;
}

.productrepo-card-image-wrap {
  margin-bottom: 18px;
}

.productrepo-card-image {
  width: 100%;
  max-width: 240px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 10px;
  padding: 10px;
}

.productrepo-card-title {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.35;
}

.productrepo-card-article {
  margin: 0 0 10px 0;
  color: #374151;
  line-height: 1.5;
}

.productrepo-card-price {
  margin: 0 0 14px 0;
  font-size: 18px;
  color: #111;
}

.productrepo-card-categories {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.productrepo-card-add-row {
  margin-top: 16px;
}

.productrepo-card-add-button,
.productrepo-card-add-button:visited,
.productrepo-card-add-button:hover,
.productrepo-card-add-button:focus,
.productrepo-card-add-button:active {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f3f5f7;
  color: #0b5ed7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #d0d7de;
}


/* =========================================================
   ANGEBOT – TABELLENANSICHT
   ========================================================= */

.productrepo-print-actions {
  margin-bottom: 20px;
}

.productrepo-print-button {
  display: inline-block;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: #0b5ed7;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.productrepo-quote-table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
}

.productrepo-quote-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

.productrepo-quote-table th,
.productrepo-quote-table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
}

.productrepo-quote-table th {
  background: #f8f9fb;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.productrepo-quote-table tbody tr:hover {
  background: #fafcff;
}

.productrepo-quote-table tfoot td {
  background: #fbfcfe;
  font-weight: 700;
}

.productrepo-quote-total-label {
  text-align: right;
  white-space: nowrap;
}

.productrepo-quote-total-value {
  color: #111;
  font-size: 16px;
  white-space: nowrap;
}

.productrepo-quote-cell-image {
  width: 110px;
}

.productrepo-quote-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 10px;
  padding: 6px;
}

.productrepo-quote-product-link {
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.productrepo-quote-product-link:hover {
  color: #0b5ed7;
  text-decoration: underline;
}

.productrepo-quote-shortdesc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: #6b7280;
}

.productrepo-quote-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.productrepo-quote-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  background: #f8f9fb;
  color: #111;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.productrepo-quote-icon-button:hover {
  border-color: #0b5ed7;
  color: #0b5ed7;
}

.productrepo-quote-trash {
  font-size: 18px;
}

.productrepo-quote-qty {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  color: #111;
}


/* =========================================================
   LEERE ZUSTÄNDE
   ========================================================= */

.productrepo-empty {
  margin-top: 20px;
}


/* =========================================================
   RESPONSIVE SCREEN
   ========================================================= */

@media screen and (max-width: 980px) {
  .productrepo-quote-table,
  .productrepo-quote-table thead,
  .productrepo-quote-table tbody,
  .productrepo-quote-table tfoot,
  .productrepo-quote-table tr,
  .productrepo-quote-table th,
  .productrepo-quote-table td {
    display: block;
  }

  .productrepo-quote-table {
    min-width: 100%;
  }

  .productrepo-quote-table thead {
    display: none;
  }

  .productrepo-quote-table tbody tr,
  .productrepo-quote-table tfoot tr {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px;
  }

  .productrepo-quote-table td {
    border-bottom: 0;
    padding: 10px 0;
  }

  .productrepo-quote-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 700;
  }

  .productrepo-quote-table tfoot td::before {
    content: none;
  }

  .productrepo-quote-total-label {
    text-align: left;
    padding-top: 18px;
  }

  .productrepo-quote-total-value {
    white-space: nowrap;
    font-size: 15px;
  }

  .productrepo-quote-cell-image {
    width: auto;
  }
}

@media (max-width: 768px) {
  .productrepo-wrapper {
    padding: 24px 16px;
  }

  .productrepo-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .productrepo-detail-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .productrepo-detail-name {
    font-size: 28px;
  }

  .productrepo-price {
    font-size: 20px;
  }

  .productrepo-tab-content {
    padding: 20px;
    font-size: 16px;
  }

  .productrepo-main-image {
    max-height: 420px;
  }

  .productrepo-card {
    padding: 18px;
  }
}


/* =========================================================
   PRINT – EIGENER HEADER + SAUBERE TABELLE
   ========================================================= */

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  html,
  body {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .productrepo-print-actions,
  .productrepo-quote-icon-button,
  .productrepo-topbar .productrepo-quote-status,
  .productrepo-language-switcher,
  .productrepo-print-header-left,
  .productrepo-print-logo {
    display: none !important;
  }

  .productrepo-print-header {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9d9d9;
  }

  .productrepo-print-header-right {
    width: 100% !important;
    text-align: right !important;
    font-size: 11px;
    line-height: 1.45;
    color: #111 !important;
  }

  .productrepo-wrapper {
    display: block !important;
    visibility: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .productrepo-quote-table-wrap {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .productrepo-quote-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
    display: table !important;
    font-size: 11px;
  }

  .productrepo-quote-table thead {
    display: table-header-group !important;
  }

  .productrepo-quote-table tbody {
    display: table-row-group !important;
  }

  .productrepo-quote-table tfoot {
    display: table-footer-group !important;
  }

  .productrepo-quote-table tr {
    display: table-row !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .productrepo-quote-table th,
  .productrepo-quote-table td {
    display: table-cell !important;
    padding: 8px 6px !important;
    border-bottom: 1px solid #d9d9d9 !important;
    vertical-align: top;
    word-break: break-word;
  }

  .productrepo-quote-table td::before {
    content: none !important;
  }

  .productrepo-quote-table th {
    background: #f3f3f3 !important;
    color: #111 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
  }

  .productrepo-quote-table th:nth-child(3),
  .productrepo-quote-table td:nth-child(3),
  .productrepo-quote-table th:nth-child(7),
  .productrepo-quote-table td:nth-child(7),
  .productrepo-quote-table th:nth-child(8),
  .productrepo-quote-table td:nth-child(8) {
    display: none !important;
  }

  .productrepo-quote-table th:nth-child(1),
  .productrepo-quote-table td:nth-child(1) {
    width: 50px;
  }

  .productrepo-quote-table th:nth-child(2),
  .productrepo-quote-table td:nth-child(2) {
    width: 44%;
  }

  .productrepo-quote-table th:nth-child(4),
  .productrepo-quote-table td:nth-child(4) {
    width: 14%;
    white-space: nowrap;
  }

  .productrepo-quote-table th:nth-child(5),
  .productrepo-quote-table td:nth-child(5) {
    width: 8%;
    text-align: center;
  }

  .productrepo-quote-table th:nth-child(6),
  .productrepo-quote-table td:nth-child(6) {
    width: 18%;
    white-space: nowrap;
  }

  .productrepo-quote-total-label,
  .productrepo-quote-total-value {
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  .productrepo-quote-total-label {
    text-align: right !important;
  }

  .productrepo-quote-thumb {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain;
    padding: 2px !important;
  }

  .productrepo-quote-product-link {
    color: #111 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
  }

  .productrepo-quote-shortdesc {
    color: #444 !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    margin-top: 4px !important;
  }
}