/* ══════════════════════════════════════════════════════════════
   SHOP.CSS — Refurbished-Shop Seite
   Jemke Solutions | 2026
   Ergänzt /shared/page.css und /shared/styles.css
══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Property Bridge (Briefinganforderung) ── */
:root {
  --color-primary:      var(--wa,      #34d399);
  --color-primary-dark: var(--accent-strong, #059669);
  --color-bg:           var(--bg-0,    #000);
  --color-bg-soft:      var(--bg-1,    #070d10);
  --color-text:         var(--text,    #ebf8f0);
  --color-muted:        var(--muted,   #8da89a);
  --radius-card:        18px;
  --shadow-soft:        0 8px 32px rgba(0,0,0,0.28);
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.shop-hero {
  padding: 7rem 1.6rem 4rem;
  text-align: center;
}

.shop-hero__inner {
  max-width: 820px;
  margin: 0 auto;
}

.shop-hero__h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem) !important;
  margin-bottom: 1rem !important;
  color: var(--color-text);
}

.shop-hero__lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--color-muted);
  max-width: 680px;
  margin: 0 auto 1rem;
}

.shop-hero__sub {
  font-size: 0.97rem;
  line-height: 1.74;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  opacity: 0.82;
}

.shop-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.8rem;
}

/* ══════════════════════════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════════════════════════ */
.shop-trust-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

@media (max-width: 1100px) { .shop-trust-bar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .shop-trust-bar { grid-template-columns: repeat(2, 1fr); } }

.shop-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.4rem 1rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  text-align: center;
}

.shop-trust-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--wa-dim, rgba(52,211,153,0.1));
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.shop-trust-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.shop-trust-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════════════════════════════ */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
}

@media (max-width: 600px) { .shop-product-grid { grid-template-columns: 1fr; } }

/* ── Product Card ── */
.shop-product-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.shop-product-card:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 18px 46px rgba(0,0,0,0.32);
  transform: translateY(-3px);
}

/* Image placeholder */
.shop-product-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-product-img__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: var(--color-muted);
  opacity: 0.45;
  font-size: 0.78rem;
  text-align: center;
  font-family: var(--font-heading);
}

.shop-product-img__placeholder svg {
  width: 38px;
  height: 38px;
  opacity: 0.6;
}

/* Badge */
.shop-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-badge--refurbished {
  background: rgba(52,211,153,0.18);
  border: 1px solid rgba(52,211,153,0.4);
  color: var(--color-primary);
}

.shop-badge--new {
  background: rgba(129,140,248,0.18);
  border: 1px solid rgba(129,140,248,0.4);
  color: #818cf8;
}

/* Card body */
.shop-product-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.shop-product-tagline {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0;
}

.shop-product-name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.shop-product-desc {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--color-muted);
  margin: 0;
}

/* Tech specs list */
.shop-product-specs {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.shop-product-specs li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--color-muted);
}

.shop-product-specs li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.38rem;
  opacity: 0.7;
}

/* Delivery time */
.shop-product-delivery {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  background: var(--wa-dim, rgba(52,211,153,0.08));
  border: 1px solid rgba(52,211,153,0.15);
  margin-top: auto;
}

.shop-product-delivery svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* CTA */
.shop-product-cta {
  margin-top: 0.7rem;
  width: 100%;
  text-align: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--color-primary);
  color: #06090d;
  box-shadow: 0 5px 18px var(--wa-glow, rgba(52,211,153,0.22));
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease !important;
}

.shop-product-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 26px var(--wa-glow, rgba(52,211,153,0.34));
}

.shop-product-cta--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid rgba(52,211,153,0.4);
  box-shadow: none;
}

.shop-product-cta--ghost:hover {
  background: var(--wa-dim, rgba(52,211,153,0.08));
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════
   PROCESS STEPS — zusätzliches Hinweis-Callout
══════════════════════════════════════════════════════════════ */
.shop-hint {
  margin-top: 2rem;
  padding: 1.3rem 1.6rem;
  border-radius: 14px;
  border: 1px solid var(--wa-dim, rgba(52,211,153,0.18));
  background: var(--wa-dim, rgba(52,211,153,0.06));
  border-left: 3px solid var(--color-primary);
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.shop-hint strong {
  color: var(--color-text);
  font-family: var(--font-heading);
}

/* ══════════════════════════════════════════════════════════════
   EXTRAS / SERVICES GRID
══════════════════════════════════════════════════════════════ */
.shop-extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}

@media (max-width: 560px) { .shop-extras-grid { grid-template-columns: 1fr; } }

.shop-extra-card {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.028);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.shop-extra-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.shop-extra-name {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.shop-extra-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}

.shop-extra-hint {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-muted);
  opacity: 0.72;
  font-style: italic;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   WARUM REFURBISHED
══════════════════════════════════════════════════════════════ */
.shop-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

@media (max-width: 520px) { .shop-why-grid { grid-template-columns: 1fr; } }

.shop-why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.2rem 1.3rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.shop-why-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--wa-dim, rgba(52,211,153,0.1));
  border: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.shop-why-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.shop-why-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}

.shop-why-text strong {
  display: block;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.18rem;
}

.shop-hashtags {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-hashtag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(52,211,153,0.25);
  background: rgba(52,211,153,0.06);
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════════ */
.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.shop-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.shop-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #06090d;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  padding: 2.2rem 2.4rem 2.4rem;
  transform: translateY(20px);
  transition: transform .35s cubic-bezier(.2,1,.4,1);
}

.shop-modal.is-open .shop-modal__dialog {
  transform: none;
}

.shop-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(240,246,255,0.6);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background .15s, color .15s !important;
}
.shop-modal__close:hover { background: rgba(255,255,255,0.12); color: #f0f6ff; }

.shop-modal__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.4rem;
  padding-right: 2rem;
}

.shop-modal__sub {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 1.8rem;
  line-height: 1.6;
}

/* ── Form ── */
.shop-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.shop-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 480px) { .shop-form__row { grid-template-columns: 1fr; } }

.shop-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shop-form__label {
  font-family: var(--font-heading);
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.shop-form__label--req::after {
  content: " *";
  color: var(--color-primary);
  font-weight: 700;
}

.shop-form__input,
.shop-form__select,
.shop-form__textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.93rem;
  outline: none;
  transition: border-color .2s ease, background .2s ease !important;
}

.shop-form__input:focus,
.shop-form__select:focus,
.shop-form__textarea:focus {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.06);
}

.shop-form__select option {
  background: #06090d;
  color: var(--color-text);
}

.shop-form__textarea {
  resize: vertical;
  min-height: 90px;
}

/* Radio group */
.shop-form__radio-group,
.shop-form__check-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.shop-form__radio,
.shop-form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.shop-form__radio input,
.shop-form__check input {
  margin-top: 0.18rem;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

/* Section divider within form */
.shop-form__section-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 0.3rem;
}

/* Privacy notice */
.shop-form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.55;
  cursor: pointer;
}

.shop-form__privacy input {
  margin-top: 0.18rem;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.shop-form__privacy a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit button */
.shop-form__submit {
  width: 100%;
  padding: 0.88rem 1rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--color-primary);
  color: #06090d;
  box-shadow: 0 6px 22px var(--wa-glow, rgba(52,211,153,0.22));
  transition: transform .22s ease, box-shadow .22s ease !important;
  margin-top: 0.4rem;
}

.shop-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--wa-glow, rgba(52,211,153,0.34));
}

.shop-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success state */
.shop-form__success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.shop-form__success.is-visible { display: block; }

.shop-form__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-dim, rgba(52,211,153,0.12));
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.shop-form__success-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.shop-form__success h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.7rem;
}

.shop-form__success p {
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--color-muted);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES
══════════════════════════════════════════════════════════════ */
html[data-theme="light"] .shop-trust-item,
html[data-theme="light"] .shop-product-card,
html[data-theme="light"] .shop-extra-card,
html[data-theme="light"] .shop-why-item {
  border-color: rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.7);
}

html[data-theme="light"] .shop-trust-item:hover,
html[data-theme="light"] .shop-product-card:hover {
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

html[data-theme="light"] .shop-product-img {
  background: rgba(0,0,0,0.05);
  border-bottom-color: rgba(0,0,0,0.08);
}

html[data-theme="light"] .shop-hint {
  border-color: rgba(5,150,105,0.22);
  background: rgba(5,150,105,0.07);
  border-left-color: var(--color-primary);
}

html[data-theme="light"] .shop-modal__dialog {
  background: #f8fff9;
  border-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .shop-form__input,
html[data-theme="light"] .shop-form__select,
html[data-theme="light"] .shop-form__textarea {
  border-color: rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.9);
  color: var(--color-text);
}

html[data-theme="light"] .shop-form__input:focus,
html[data-theme="light"] .shop-form__select:focus,
html[data-theme="light"] .shop-form__textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
}

html[data-theme="light"] .shop-form__select option {
  background: #f8fff9;
  color: #122820;
}

html[data-theme="light"] .shop-form__section-title {
  border-top-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .shop-badge--refurbished {
  background: rgba(5,150,105,0.12);
  border-color: rgba(5,150,105,0.35);
  color: #059669;
}

html[data-theme="light"] .shop-badge--new {
  background: rgba(79,70,229,0.1);
  border-color: rgba(79,70,229,0.35);
  color: #4f46e5;
}

html[data-theme="light"] .shop-product-delivery {
  background: rgba(5,150,105,0.08);
  border-color: rgba(5,150,105,0.18);
}

html[data-theme="light"] .shop-modal {
  background: rgba(0,0,0,0.55);
}

html[data-theme="light"] .shop-modal__close {
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.05);
  color: rgba(13,17,23,0.55);
}
html[data-theme="light"] .shop-modal__close:hover {
  background: rgba(0,0,0,0.1);
  color: #0d1117;
}

html[data-theme="light"] .shop-hashtag {
  border-color: rgba(5,150,105,0.3);
  background: rgba(5,150,105,0.08);
  color: #059669;
}

/* ── Responsive nav spacing ── */
@media (max-width: 480px) {
  .shop-modal__dialog {
    padding: 1.6rem 1.4rem 1.8rem;
    border-radius: 16px;
  }
  .shop-hero { padding: 6rem 1.2rem 3rem; }
}
