/* PrestiGio Shop – Styles (aus Prototyp shop-prototype-2026-09-17.html ausgelagert, Step 1) */

:root[data-theme="dark"] {
  --bg: #09090b;
  --card-bg: rgba(18, 18, 22, 0.95);
  --card-border: rgba(255, 255, 255, 0.08);
  --input-bg: #0f0f13;
  --input-border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: #8e8e99;
  --wood-gold: #d4a373;
  --wood-gradient: linear-gradient(135deg, #f3d5b5 0%, #d4a373 50%, #a3704c 100%);
  --body-gradient: radial-gradient(at 50% 0%, rgba(212, 163, 115, 0.12) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(140, 88, 53, 0.08) 0px, transparent 50%);
  --footer-bg: #060608;
  --drawer-bg: #0e0e12;
  --danger: #ef4444;
}

:root[data-theme="light"] {
  --bg: #f8f9fa;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(0, 0, 0, 0.08);
  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, 0.14);
  --text: #18181b;
  --text-muted: #71717a;
  --wood-gold: #b07d4d;
  --wood-gradient: linear-gradient(135deg, #d4a373 0%, #b07d4d 50%, #8c5835 100%);
  --body-gradient: radial-gradient(at 50% 0%, rgba(212, 163, 115, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(140, 88, 53, 0.05) 0px, transparent 50%);
  --footer-bg: #e9ecef;
  --drawer-bg: #ffffff;
  --danger: #dc2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }

body {
  background-color: var(--bg);
  background-image: var(--body-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrapper { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
}

.brand-group { display: flex; align-items: center; gap: 12px; text-decoration: none; }

/* LOGO-STYLING: Alles maximal fett (weight 900), P und G grösser, RESTI und IO kleiner aber gleich fett */
.logo-text {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--wood-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: baseline;
}
.logo-big { font-size: 1.4rem; font-weight: 900; }

.header-actions { display: flex; gap: 10px; align-items: center; }
.action-btn {
  background: rgba(128, 128, 128, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.action-btn:hover { border-color: var(--wood-gold); background: rgba(212, 163, 115, 0.08); }

main {
  margin: 50px auto 80px auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 880px) { main { grid-template-columns: 1fr; margin: 30px auto; gap: 35px; } }

.image-showcase {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.slide img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--card-border);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: var(--wood-gold); color: #120e0a; border-color: var(--wood-gold); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: var(--wood-gold); width: 22px; border-radius: 4px; }

.product-details {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  padding: 35px 30px;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.badge-unikat {
  display: inline-block;
  background: rgba(212, 163, 115, 0.12);
  border: 1px solid rgba(212, 163, 115, 0.3);
  color: var(--wood-gold);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.product-details h1 { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 6px; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.price { font-size: 1.8rem; font-weight: 700; }
.shipping-note { font-size: 0.85rem; color: var(--text-muted); }
.description { color: var(--text-muted); margin-bottom: 25px; font-size: 0.95rem; line-height: 1.7; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 25px;
  padding: 14px;
  background: rgba(128, 128, 128, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}
.trust-item {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}
.trust-item span.emoji { font-size: 1.3rem; }
.trust-item strong { font-weight: 600; font-size: 0.82rem; color: var(--text); }
.trust-item small { font-size: 0.78rem; color: var(--text-muted); }

.btn-buy {
  background: var(--wood-gradient);
  color: #120e0a;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 10px 25px rgba(212, 163, 115, 0.25);
  margin-bottom: 25px;
}
.btn-buy:hover { transform: translateY(-2px); }
.btn-buy:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* PRODUKT-ÜBERSICHT (mehrere sichtbare Artikel) */
.shop-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 25px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}
.card:hover { border-color: var(--wood-gold); }
.card-img img { width: 100%; height: 260px; object-fit: cover; display: block; background: #000; }
.card-body { padding: 20px; }
.card-body h2 { font-size: 1.3rem; margin: 8px 0; }
.card-body .price { font-size: 1.4rem; }
.card-stock { display: inline-block; margin-top: 10px; font-size: 0.8rem; font-weight: 600; }
.card-stock.ok { color: var(--wood-gold); }
.card-stock.out { color: var(--danger); }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--wood-gold); text-decoration: none; font-size: 0.9rem; font-weight: 600; }

.accordion-item { border-top: 1px solid var(--card-border); }
.accordion-header { padding: 14px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 0.92rem; font-weight: 600; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; font-size: 0.88rem; color: var(--text-muted); }
.accordion-content p { padding-bottom: 14px; }
.accordion-item.active .accordion-content { max-height: 220px; }

footer { background: var(--footer-bg); border-top: 1px solid var(--card-border); padding: 60px 0 30px 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 0.88rem; text-decoration: none; line-height: 1.8; display: block; }
.footer-bottom { border-top: 1px solid var(--card-border); padding-top: 25px; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

/* CART DRAWER */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); display: none; z-index: 120; }
.overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: -460px; width: 100%; max-width: 440px; height: 100%; background: var(--drawer-bg); border-left: 1px solid var(--card-border); transition: right 0.35s ease; z-index: 130; display: flex; flex-direction: column; padding: 35px 30px; }
.cart-drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--card-border); padding-bottom: 16px; margin-bottom: 20px; }
.close-btn { background: rgba(128,128,128,0.1); border: 1px solid var(--card-border); color: var(--text); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--card-border); }
.item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { background: rgba(128, 128, 128, 0.1); border: 1px solid var(--card-border); color: var(--text); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; }
.qty-input { width: 45px; height: 28px; background: var(--bg); border: 1px solid var(--card-border); border-radius: 6px; color: var(--text); text-align: center; font-size: 0.9rem; font-weight: 600; outline: none; }
.qty-input:focus { border-color: var(--wood-gold); }

.delete-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.delete-btn:hover { background: var(--danger); color: #fff; }

.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.cart-total { border-top: 1px solid var(--card-border); padding-top: 14px; margin-top: 10px; display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 700; }

/* CUSTOM ALERT MODAL */
.custom-alert-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.custom-alert-overlay.open { display: flex; }
.custom-alert-box {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; width: 100%; max-width: 380px; padding: 30px 25px;
  text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.custom-alert-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--wood-gold); }
.custom-alert-box p { font-size: 0.92rem; color: var(--text); margin-bottom: 20px; }
.custom-alert-btn {
  background: var(--wood-gradient); color: #120e0a; border: none;
  font-weight: 700; font-size: 0.9rem; padding: 10px 24px; border-radius: 8px;
  cursor: pointer; width: 100%;
}

/* CHECKOUT MODAL */
.checkout-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; z-index: 150; padding: 20px;
}
.checkout-modal-overlay.open { display: flex; }
.checkout-modal {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 20px; width: 100%; max-width: 540px; max-height: 90vh;
  overflow-y: auto; padding: 35px; box-shadow: 0 40px 80px rgba(0,0,0,0.6); position: relative;
}
.checkout-close {
  position: absolute; top: 20px; right: 20px; background: rgba(128,128,128,0.1);
  border: 1px solid var(--card-border); color: var(--text); width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.checkout-modal h2 { font-size: 1.4rem; margin-bottom: 20px; border-bottom: 1px solid var(--card-border); padding-bottom: 12px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; }
.form-group input { width: 100%; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 8px; padding: 11px; color: var(--text); font-size: 0.92rem; outline: none; }
.form-group input:focus { border-color: var(--wood-gold); }
