/* =====================================================================
   AMBERGFOTO – Shop-Styles
   Ergänzt das Crafto-Theme um Warenkorb, Kasse, Varianten & Toast.
   Nutzt die Theme-Variablen/Farben (Dark-Gray #232323, Akzent etc.).
   ===================================================================== */

/* ---------- Varianten-Auswahl (Produktseite) ---------- */
.variant-label-row { display: flex; align-items: center; margin-bottom: 8px; }
.variant-label-row .label-text { font-weight: 600; color: #232323; font-size: 14px; min-width: 80px; }
.variant-label-row .label-value { font-size: 14px; color: #232323; }

.variant-select-wrap { position: relative; margin-bottom: 15px; }
.variant-select-wrap select {
  width: 100%; padding: 12px 40px 12px 14px;
  border: 1px solid #d0d0d0; border-radius: 5px;
  font-size: 14px; color: #232323; background-color: #fff;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font-family: inherit; transition: border-color .2s;
}
.variant-select-wrap select:focus { outline: none; border-color: #232323; }
.variant-select-wrap::after {
  content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid #232323; pointer-events: none;
}

.size-btn-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px; margin-bottom: 20px;
}
.size-btn {
  padding: 8px 6px; border: 1px solid #d0d0d0; border-radius: 5px;
  font-size: 13px; color: #232323; background: #fff; cursor: pointer;
  text-align: center; font-family: inherit; transition: all .15s;
}
.size-btn:hover { border-color: #232323; background: #f5f5f5; }
.size-btn.active { background: #232323; color: #fff; border-color: #232323; }
.size-btn.unavailable {
  opacity: .35; cursor: not-allowed; text-decoration: line-through; pointer-events: none;
}
#variant-section-size { display: none; }

/* ---------- Mengen-Stepper NUR auf der Warenkorb-Seite ----------
   (Die Produktseiten nutzen weiterhin den Theme-eigenen Stepper.) */
.cart-row .quantity { display: inline-flex; align-items: stretch; border: 1px solid #e4e4e4; border-radius: 5px; overflow: hidden; position: relative; }
.cart-row .quantity .qty-minus,
.cart-row .quantity .qty-plus {
  position: static; transform: none; margin: 0; top: auto; left: auto; right: auto;
  width: 38px; height: auto; border: 0; background: #f7f7f7; color: #232323; font-size: 18px;
  line-height: 1; cursor: pointer; transition: background .15s;
}
.cart-row .quantity .qty-minus:hover, .cart-row .quantity .qty-plus:hover { background: #ececec; }
.cart-row .quantity .qty-text {
  width: 46px; height: auto; border: 0; border-left: 1px solid #e4e4e4; border-right: 1px solid #e4e4e4;
  border-radius: 0; text-align: center; font-size: 14px; color: #232323; background: #fff;
}
.cart-row .quantity .qty-text:focus { outline: none; }

/* ---------- Verwandte Motive (Bootstrap-Raster statt Masonry) ---------- */
.related-grid .shop-box { transition: box-shadow .35s ease; }
.related-grid .shop-image { overflow: hidden; border-radius: 4px; position: relative; }
.related-grid .shop-image img { transition: transform .6s cubic-bezier(.165,.84,.44,1); display: block; }
.related-grid .shop-box:hover .shop-image img { transform: scale(1.05); }

/* ---------- Page-Header (Breadcrumb-Style Titel) ---------- */
.shop-page-title { padding: 42px 0 8px; }
.shop-page-title h1 { font-size: 34px; letter-spacing: -1px; }

/* ================= WARENKORB-SEITE ================= */
.cart-table { border: 1px solid #ededed; border-radius: 8px; overflow: hidden; }
.cart-head,
.cart-row {
  display: grid;
  grid-template-columns: 1fr 120px 140px 120px;
  align-items: center;
}
.cart-head {
  background: #f7f7f7; padding: 14px 24px;
  font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
  font-weight: 600; color: #6b6b6b;
}
.cart-head > div:nth-child(2),
.cart-head > div:nth-child(3),
.cart-head > div:nth-child(4) { text-align: center; }
.cart-row { padding: 20px 24px; border-top: 1px solid #ededed; }
.cart-row:first-of-type { border-top: 0; }

.cart-row-product { display: flex; align-items: center; gap: 18px; }
.cart-row-thumb {
  width: 84px; height: 84px; flex: 0 0 84px; border-radius: 6px; overflow: hidden;
  background: #f2f2f2; display: block;
}
.cart-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info { display: flex; flex-direction: column; gap: 3px; }
.cart-row-name { font-size: 17px; line-height: 1.3; }
.cart-row-variant { font-size: 13px; color: #585858; }
.cart-row-sku { font-size: 12px; color: #9a9a9a; }
.cart-row-remove { font-size: 12px; color: #c0392b; margin-top: 4px; width: fit-content; }
.cart-row-remove:hover { color: #922b21; text-decoration: underline; }

.cart-row-price,
.cart-row-subtotal { text-align: center; font-size: 15px; color: #232323; }
.cart-row-subtotal { font-weight: 700; }
.cart-row-qty { display: flex; justify-content: center; }

/* Summenbox */
.cart-summary { display: flex; justify-content: flex-end; margin-top: 30px; }
.cart-summary-box { width: 380px; max-width: 100%; background: #f7f7f7; border-radius: 8px; padding: 30px; }
.cart-summary-line { display: flex; justify-content: space-between; font-size: 15px; color: #444; margin-bottom: 12px; }
.cart-summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 20px; font-weight: 700; color: #232323;
  border-top: 1px solid #e0e0e0; padding-top: 16px; margin-top: 6px;
}

/* ================= KASSE / CHECKOUT ================= */
.checkout-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: start; }

.co-field { margin-bottom: 18px; }
.co-field label { display: block; font-size: 13px; font-weight: 600; color: #232323; margin-bottom: 7px; }
.co-field label .req { color: #c0392b; }
.co-field input,
.co-field textarea {
  width: 100%; padding: 12px 15px; border: 1px solid #d8d8d8; border-radius: 6px;
  font-size: 14px; color: #232323; font-family: inherit; background: #fff; transition: border-color .15s;
}
.co-field input:focus,
.co-field textarea:focus { outline: none; border-color: #232323; }
.co-field textarea { resize: vertical; min-height: 90px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.co-row-zip { grid-template-columns: 130px 1fr; }

/* AGB-Pflicht-Häkchen */
.co-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: #444; line-height: 1.5; font-weight: 400; }
.co-check input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; accent-color: #232323; cursor: pointer; }
.co-check a { color: #232323; text-decoration: underline; }
.co-check a:hover { color: #000; }
.co-agb-field { margin-bottom: 6px; }
.co-section-title { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #9a9a9a; font-weight: 700; margin: 30px 0 16px; }
.co-section-title:first-child { margin-top: 0; }

/* Bestellübersicht (Sidebar) */
.co-summary-box { background: #f7f7f7; border-radius: 10px; padding: 32px; position: sticky; top: 30px; }
.co-item { display: flex; align-items: center; gap: 15px; padding: 14px 0; border-bottom: 1px solid #e8e8e8; }
.co-item:first-child { padding-top: 0; }
.co-item-thumb { position: relative; width: 60px; height: 60px; flex: 0 0 60px; border-radius: 6px; overflow: hidden; background: #ececec; }
.co-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-item-badge {
  position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px;
  background: #232323; color: #fff; border-radius: 11px; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.co-item-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.co-item-name { font-size: 14px; line-height: 1.3; }
.co-item-variant { font-size: 12px; color: #6b6b6b; }
.co-item-price { font-size: 14px; font-weight: 700; color: #232323; white-space: nowrap; }

.co-line { display: flex; justify-content: space-between; font-size: 14px; color: #444; padding: 9px 0; }
.co-line:first-of-type { padding-top: 18px; }
.co-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 19px; font-weight: 700; color: #232323;
  border-top: 1px solid #e0e0e0; padding-top: 16px; margin-top: 6px;
}

.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #6b6b6b; }
.trust-row i { color: #2e7d32; }

/* ================= DANKE-SEITE ================= */
.thankyou-icon {
  width: 92px; height: 92px; border-radius: 50%; background: #eaf6ec;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 26px;
}
.thankyou-icon i { font-size: 44px; color: #2e7d32; }
.order-card { max-width: 560px; margin: 30px auto 0; background: #f7f7f7; border-radius: 10px; padding: 32px; text-align: left; }

/* ================= TOAST ================= */
.af-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: #232323; color: #fff; padding: 14px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 500; max-width: 90vw; box-shadow: 0 12px 40px rgba(0,0,0,.28);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 100000;
}
.af-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.af-toast-error { background: #c0392b; }

/* Shop-Inhalt exakt unter dem Logo ausrichten (= header-Padding + Spalten-Padding) */
.shop-container { padding-left:60px; padding-right:60px; }
@media (max-width:1199px){ .shop-container{ padding-left:50px; padding-right:50px; } }
@media (max-width:991px){ .shop-container{ padding-left:30px; padding-right:30px; } }
@media (max-width:575px){ .shop-container{ padding-left:15px; padding-right:15px; } }

/* ================= SHOP-ÜBERSICHTSSEITE ================= */
.shop-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:18px; margin-bottom:28px; border-bottom:1px solid #ededed; }
.shop-toolbar .count { font-size:14px; color:#7a7a7a; }
.shop-toolbar .count strong { color:#232323; font-weight:600; }

.shop-sidebar { position:sticky; top:24px; }
.shop-widget { margin-bottom:34px; }
.shop-widget h3 { font-size:13px; letter-spacing:1px; text-transform:uppercase; color:#9a9a9a; font-weight:700; margin:0 0 16px; }
.shop-cat-list { list-style:none; margin:0; padding:0; }
.shop-cat-list li { margin-bottom:2px; }
.shop-cat-list button { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; background:none; border:0; padding:9px 12px; border-radius:7px; font-size:15px; color:#444; cursor:pointer; font-family:inherit; text-align:left; transition:background .15s,color .15s; }
.shop-cat-list button:hover { background:#f5f5f5; color:#232323; }
.shop-cat-list button.active { background:#232323; color:#fff; }
.shop-cat-list button .num { font-size:12px; color:#9a9a9a; }
.shop-cat-list button.active .num { color:rgba(255,255,255,.7); }

.shop-info-list { list-style:none; margin:0; padding:0; }
.shop-info-list li { display:flex; align-items:center; gap:10px; font-size:14.5px; color:#444; padding:7px 0; }
.shop-info-list li i { color:#232323; font-size:15px; }
.shop-info-list li .pr { white-space:nowrap; color:#9a9a9a; font-size:13px; margin-left:auto; }

.tag-cloud { display:flex; flex-wrap:wrap; gap:8px; }
.tag-cloud a { font-size:12.5px; color:#555; background:#f4f4f4; padding:6px 13px; border-radius:30px; text-decoration:none; transition:background .15s,color .15s; }
.tag-cloud a:hover { background:#232323; color:#fff; }

.shop-help { background:var(--blue-whale,#1f2d3d); background:#0e2433; border-radius:12px; padding:26px 24px; color:#fff; }
.shop-help h4 { font-size:17px; margin:0 0 8px; color:#fff; }
.shop-help p { font-size:13.5px; color:rgba(255,255,255,.7); margin:0 0 16px; line-height:1.6; }

.shop-grid .shop-box { transition:transform .35s ease; }
.shop-grid .shop-image { overflow:hidden; border-radius:4px; position:relative; }
.shop-grid .shop-image img { transition:transform .6s cubic-bezier(.165,.84,.44,1); display:block; width:100%; }
.shop-grid .shop-box:hover .shop-image img { transform:scale(1.05); }
.shop-grid .shop-overlay { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.12)); opacity:0; transition:opacity .3s; }
.shop-grid .shop-box:hover .shop-overlay { opacity:1; }
.shop-grid .lable { position:absolute; top:14px; left:14px; background:#232323; color:#fff; font-size:11px; letter-spacing:.5px; font-weight:600; padding:4px 11px; border-radius:30px; }
.shop-grid .shop-card.is-hidden { display:none; }
.shop-grid .shop-card { margin-bottom:42px; }
.shop-grid .shop-footer { padding-bottom:4px; }

@media (max-width: 991px) {
  .shop-sidebar { position:static; margin-bottom:30px; }
}

/* ================= RECHTSSEITEN (Datenschutz, AGB, Impressum) ================= */
.legal-wrap { max-width: 880px; margin: 0 auto; }
.legal-lead { font-size: 16px; line-height: 1.85; color: #555; margin-bottom: 10px; }
.legal-updated { font-size: 13px; color: #9a9a9a; margin-bottom: 36px; }

.legal-toc { background: #f7f7f7; border-radius: 10px; padding: 26px 30px; margin-bottom: 46px; }
.legal-toc h2 { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #9a9a9a; font-weight: 700; margin: 0 0 16px; }
.legal-toc ol { columns: 2; column-gap: 40px; margin: 0; padding-left: 18px; }
.legal-toc li { margin-bottom: 7px; font-size: 14px; break-inside: avoid; }
.legal-toc a { color: #232323; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

.legal-section { margin-bottom: 38px; scroll-margin-top: 30px; }
.legal-section h3 { font-size: 21px; color: #232323; font-weight: 700; margin: 0 0 14px; letter-spacing: -.3px; }
.legal-section p { font-size: 15px; line-height: 1.85; color: #555; margin-bottom: 14px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0 0 14px; padding-left: 20px; }
.legal-section ul li { font-size: 15px; line-height: 1.8; color: #555; margin-bottom: 7px; }
.legal-section a { color: #232323; text-decoration: underline; word-break: break-word; }
.legal-section a:hover { color: #000; }
.legal-section strong { color: #232323; font-weight: 600; }

.legal-card { background: #f7f7f7; border-radius: 10px; padding: 24px 28px; margin-bottom: 14px; }
.legal-card p { margin-bottom: 4px; }

@media (max-width: 767px) {
  .legal-toc ol { columns: 1; }
}

/* ================= MOBILE-FEINSCHLIFF (Startseite & global) ================= */
/* Startseiten-Produktraster */
.home-grid .shop-card { margin-bottom: 30px; }
.home-grid .shop-image { overflow: hidden; border-radius: 4px; }
.home-grid .shop-image img { width: 100%; display: block; transition: transform .6s cubic-bezier(.165,.84,.44,1); }
.home-grid .shop-box:hover .shop-image img { transform: scale(1.05); }

@media (max-width: 767px) {
  /* Header-Innenabstand auf dem Handy verkleinern (Logo war zu weit innen) */
  header .navbar > .container-fluid { padding-left: 18px !important; padding-right: 18px !important; }
  /* Topbar-Hinweis etwas kleiner */
  .header-top-bar .fs-13 { font-size: 11px !important; }
  /* Startseiten-Raster: etwas enger */
  .home-grid { --bs-gutter-x: 14px; }
  .home-grid .shop-footer .fs-19 { font-size: 17px; }
  /* Feature-Boxen (Versand/Herz/Zahlung/Support) zentrieren & Abstand */
  .icon-with-text-style-01 { text-align: center; margin-bottom: 26px; }
  .icon-with-text-style-01 .feature-box { justify-content: center; }
  /* „Bereits gedruckt für" Logos-Slider nicht zu hoch */
  .clients-style-08 img { max-height: 42px; width: auto; }
}

@media (max-width: 575px) {
  .home-grid .shop-footer { text-align: center !important; }
}

/* ================= COOKIE-CONSENT ================= */
.af-consent {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 100001;
  background: #fff; border: 1px solid #e4e4e4; border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(24px); transition: opacity .3s ease, transform .3s ease;
  max-width: 1080px; margin: 0 auto;
}
.af-consent-show { opacity: 1; transform: translateY(0); }
.af-consent-inner {
  display: flex; align-items: center; gap: 26px; padding: 22px 26px;
}
.af-consent-text { font-size: 13.5px; line-height: 1.6; color: #555; }
.af-consent-title { display: block; font-family: inherit; font-weight: 700; color: #232323; font-size: 15px; margin-bottom: 4px; }
.af-consent-text a { color: #232323; text-decoration: underline; }
.af-consent-text strong { color: #232323; font-weight: 600; }
.af-consent-btns { display: flex; gap: 10px; flex: 0 0 auto; }
.af-consent-btn {
  border: 0; border-radius: 7px; padding: 12px 24px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap; transition: all .15s;
}
.af-consent-decline { background: #f0f0f0; color: #444; }
.af-consent-decline:hover { background: #e4e4e4; }
.af-consent-accept { background: #232323; color: #fff; }
.af-consent-accept:hover { background: #000; }

@media (max-width: 767px) {
  .af-consent { left: 12px; right: 12px; bottom: 12px; }
  .af-consent-inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .af-consent-btns { flex-direction: column-reverse; }
  .af-consent-btn { width: 100%; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .checkout-grid { grid-template-columns: 1fr; gap: 36px; }
  .co-summary-box { position: static; order: -1; }
}
@media (max-width: 767px) {
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 1fr; gap: 14px; padding: 18px; position: relative; }
  .cart-row-price { text-align: left; }
  .cart-row-price::before { content: 'Preis: '; color: #9a9a9a; }
  .cart-row-qty { justify-content: flex-start; }
  .cart-row-subtotal { text-align: left; }
  .cart-row-subtotal::before { content: 'Summe: '; color: #9a9a9a; font-weight: 400; }
  .cart-summary-box { width: 100%; }
  .co-row { grid-template-columns: 1fr; }
}
