/* =========================================
   Shop Landing / Premium ruhiger Look
========================================= */
.shop-home{
  position:relative;
}

.shop-hero{
  padding:42px 0 26px;
}

.shop-hero__inner{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(320px,420px);
  gap:20px;
  align-items:stretch;
}

@media (max-width:980px){
  .shop-hero__inner{
    grid-template-columns:1fr;
  }
}

.shop-hero__content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:100%;
}

.shop-kicker{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  margin-bottom:16px;
  background:rgba(139,92,246,.12);
  border:1px solid rgba(139,92,246,.20);
  color:#d8c9ff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
}

.shop-shell{
  padding:22px 0 42px;
}

.shop-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.shop-head__text h1,
.shop-head__text h2{
  margin-bottom:6px;
}

.shop-head__text p{
  margin:0;
  color:var(--muted);
}

/* =========================================
   Gemeinsame Form Controls im Shop / ACP
========================================= */
.shop-shell input[type="text"],
.shop-shell input[type="email"],
.shop-shell input[type="password"],
.shop-shell input[type="number"],
.shop-shell input[type="url"],
.shop-shell input[type="file"],
.shop-shell select,
.shop-shell textarea{
  width:100%;
  min-height:46px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(19,22,30,.98) 0%, rgba(13,15,21,.98) 100%);
  color:#eef2f7;
  font:inherit;
  line-height:1.4;
  outline:none;
  box-shadow:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.shop-shell textarea{
  min-height:140px;
  resize:vertical;
}

.shop-shell input::placeholder,
.shop-shell textarea::placeholder{
  color:#95a0ae;
  opacity:1;
}

.shop-shell input:focus,
.shop-shell textarea:focus,
.shop-shell select:focus{
  border-color:rgba(139,92,246,.42);
  box-shadow:
    0 0 0 3px rgba(139,92,246,.12),
    0 0 0 1px rgba(139,92,246,.18) inset;
}

/* =========================================
   Schöne Selects / Dropdowns
========================================= */
.shop-shell select,
.shop-variant-select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:44px;
  background-image:
    linear-gradient(180deg, rgba(19,22,30,.98) 0%, rgba(13,15,21,.98) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d5dbe4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat,no-repeat;
  background-position:left top,right 14px center;
  background-size:100% 100%,18px 18px;
  cursor:pointer;
}

.shop-shell select option,
.shop-variant-select option{
  background:#161a22;
  color:#eef2f7;
}

.shop-shell select option:disabled,
.shop-variant-select option:disabled{
  background:#242933;
  color:#8f98a6;
}

/* spezieller Variant Select */
.shop-variant-select{
  max-width:340px;
}

/* =========================================
   Kategorien Dropdown
========================================= */
.dropdown-group{
  padding:4px 0 8px;
}

.dropdown-group + .dropdown-group{
  margin-top:6px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.06);
}

.dropdown-group__title{
  padding:0 12px 8px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#aeb7c2;
}

.dropdown-empty{
  padding:10px 12px;
  color:#aeb7c2;
  font-size:14px;
}

/* =========================================
   Cart Trigger
========================================= */
.cart-trigger{
  position:relative;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#eef2f7;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
  flex:0 0 auto;
}

.cart-trigger:hover{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.16);
}

.cart-trigger i{
  font-size:16px;
}

.cart-badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#ff4d4f;
  color:#fff;
  font-size:11px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid #0f1218;
  line-height:1;
}

/* =========================================
   Produkt Grid
========================================= */
.shop-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

@media (max-width:980px){
  .shop-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:680px){
  .shop-grid{
    grid-template-columns:1fr;
  }
}

.shop-card{
  height:100%;
}

.shop-card .card__body{
  display:flex;
  flex-direction:column;
  height:100%;
}

.shop-card__media{
  aspect-ratio:1/1;
  width:100%;
  border-radius:16px;
  overflow:hidden;
  background:#0f1218;
  border:1px solid rgba(255,255,255,.06);
  margin-bottom:16px;
}

.shop-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.shop-card__title{
  margin:0 0 8px;
  font-size:21px;
  font-weight:750;
  line-height:1.18;
}

.shop-card__desc{
  margin:0 0 16px;
  color:var(--muted);
  flex:1 1 auto;
  font-size:14px;
  line-height:1.55;
}

.shop-card__meta{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin:0 0 16px;
}

.shop-price{
  font-size:24px;
  font-weight:800;
  letter-spacing:-.01em;
}

.shop-stock{
  font-size:13px;
  color:#c0c6cf;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
}

.shop-empty{
  text-align:center;
}

/* =========================================
   Produktdetailseite
========================================= */
.shop-product{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(340px,470px);
  gap:22px;
  align-items:start;
}

@media (max-width:920px){
  .shop-product{
    grid-template-columns:1fr;
  }
}

.shop-product__gallery{
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(19,22,30,.96) 0%, rgba(13,15,21,.96) 100%);
  box-shadow:var(--shadow-md);
}

.shop-product__gallery img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}

.shop-product__panel{
  border-radius:22px;
  padding:24px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(22,25,34,.98) 0%, rgba(15,18,24,.98) 100%);
  box-shadow:var(--shadow-md);
}

.shop-product__panel h1{
  margin-bottom:10px;
  font-size:clamp(30px, 4vw, 42px);
}

.shop-product__sku{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  color:#c3cad4;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  margin-bottom:16px;
}

.shop-product__price{
  font-size:34px;
  font-weight:850;
  letter-spacing:-.02em;
  margin-bottom:12px;
}

.shop-product__desc{
  margin-top:18px;
  padding:18px 18px;
  border-radius:18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.02) 100%);
  border:1px solid rgba(255,255,255,.06);
  color:#d8dde5;
  line-height:1.7;
}

.shop-product__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

/* =========================================
   Info / Beschreibungskästen
========================================= */
.shop-info-panel{
  padding:20px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.015) 100%);
}

.shop-info-panel h3{
  margin-bottom:8px;
}

.shop-info-panel p:last-child{
  margin-bottom:0;
}

/* =========================================
   User trigger / Avatar
========================================= */
.account-trigger{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.account-trigger__avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  overflow:hidden;
  background:rgba(139,92,246,.14);
  border:1px solid rgba(255,255,255,.08);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#f3ecff;
  font-size:13px;
  font-weight:700;
  flex:0 0 auto;
}

.account-trigger__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.account-trigger__text{
  max-width:160px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Lesbares Account Dropdown */
.account-dropdown{
  min-width:280px;
  padding:8px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(22,25,34,.98) 0%, rgba(15,18,24,.98) 100%);
  box-shadow:0 20px 40px rgba(0,0,0,.32);
}

.account-dropdown a,
.account-dropdown button{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  border-radius:12px;
  color:#e9edf3;
  background:transparent;
  border:1px solid transparent;
  text-align:left;
  font:inherit;
}

.account-dropdown a:hover,
.account-dropdown button:hover{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.06);
}

.account-dropdown .dropdown-sep{
  height:1px;
  margin:8px 0;
  background:rgba(255,255,255,.08);
}

/* =========================================
   Account page
========================================= */
.account-layout{
  display:grid;
  gap:18px;
}

.account-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

@media (max-width:900px){
  .account-grid{
    grid-template-columns:1fr;
  }
}

.account-avatar-box{
  margin-bottom:16px;
}

.account-avatar-large{
  width:140px;
  height:140px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}

.account-avatar-large--placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:42px;
  font-weight:800;
  color:#f3ecff;
  background:rgba(139,92,246,.12);
}

/* =========================================
   ACP Layout
========================================= */
.acp-layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:20px;
  align-items:start;
}

@media (max-width:980px){
  .acp-layout{
    grid-template-columns:1fr;
  }
}

.acp-sidebar{
  position:sticky;
  top:96px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(22,25,34,.98) 0%, rgba(15,18,24,.98) 100%);
  box-shadow:var(--shadow-md);
  padding:18px;
}

.acp-sidebar__head{
  margin-bottom:14px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.acp-sidebar__title{
  font-size:20px;
  font-weight:800;
  margin-bottom:8px;
}

.acp-menu{
  display:grid;
  gap:8px;
}

.acp-menu a{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:0 14px;
  border-radius:14px;
  color:#dde2ea;
  border:1px solid transparent;
  background:transparent;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}

.acp-menu a i{
  width:18px;
  text-align:center;
  opacity:.9;
}

.acp-menu a:hover{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.06);
}

.acp-menu a.is-active{
  background:rgba(139,92,246,.12);
  border-color:rgba(139,92,246,.20);
  color:#f3ecff;
}

.acp-main{
  min-width:0;
}

/* =========================================
   ACP Userbox
========================================= */
.acp-userbox{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:8px;
}

.acp-userbox__avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  overflow:hidden;
  flex:0 0 52px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(139,92,246,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#f3ecff;
  font-size:18px;
  font-weight:800;
}

.acp-userbox__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.acp-userbox__meta{
  min-width:0;
}

.acp-userbox__name{
  font-size:18px;
  font-weight:700;
  color:#eef2f7;
  line-height:1.2;
  word-break:break-word;
}

.acp-userbox__role{
  margin-top:4px;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
}

/* =========================================
   ACP Übersicht
========================================= */
.acp-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}

@media (max-width:1100px){
  .acp-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:680px){
  .acp-stats{
    grid-template-columns:1fr;
  }
}

.acp-stat{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(21,24,33,.98) 0%, rgba(14,16,22,.98) 100%);
  padding:20px;
  box-shadow:var(--shadow-sm);
}

.acp-stat__label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#a9b1bc;
  margin-bottom:8px;
}

.acp-stat__value{
  font-size:30px;
  font-weight:850;
  letter-spacing:-.02em;
}

/* =========================================
   Login / Konto Panels
========================================= */
.auth-shell{
  max-width:560px;
  margin:0 auto;
}

.auth-card .card__body{
  padding:28px;
}

/* =========================================
   Tabellen
========================================= */
.acp-table-wrap{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.015);
  overflow:auto;
}

.acp-table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}

.acp-table th,
.acp-table td{
  padding:14px 12px;
  text-align:left;
  vertical-align:middle;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.acp-table thead th{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#a9b1bc;
  background:rgba(255,255,255,.02);
}

.acp-table tbody tr:last-child td{
  border-bottom:0;
}

.acp-table th:first-child,
.acp-table td:first-child{
  padding-left:18px;
}

.acp-table th:last-child,
.acp-table td:last-child{
  padding-right:18px;
}

/* =========================================
   ACP Buttons / Aktionen / Badges
========================================= */
.acp-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.acp-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  border:1px solid transparent;
  white-space:nowrap;
}

.acp-badge--ok{
  color:#92f2b4;
  background:rgba(34,197,94,.12);
  border-color:rgba(34,197,94,.20);
}

.acp-badge--warn{
  color:#ffd28f;
  background:rgba(245,158,11,.12);
  border-color:rgba(245,158,11,.20);
}

.acp-badge--danger{
  color:#ff9fa0;
  background:rgba(239,68,68,.12);
  border-color:rgba(239,68,68,.20);
}

/* =========================================
   Kleine Helfer für Shop Produktseite
========================================= */
.shop-product .note{
  color:#aeb7c2;
}

.shop-product .note span{
  color:#dbe1e8;
}

/* =========================================
   Responsive Feinschliff
========================================= */
@media (max-width:680px){
  .shop-product__panel{
    padding:18px;
  }

  .shop-product__price{
    font-size:30px;
  }

  .shop-card__title{
    font-size:19px;
  }
}

/* =========================================
   Secret Codes im ACP
========================================= */
.secret-code-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.secret-code{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:#eef2f7;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:13px;
  letter-spacing:.08em;
  white-space:nowrap;
}

.secret-code.is-masked{
  filter:blur(6px);
  user-select:none;
  transition:filter .18s ease, opacity .18s ease;
  opacity:.9;
}

.secret-code.is-visible{
  filter:none;
  opacity:1;
}

.secret-code-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.btn--xs{
  min-height:34px;
  padding:0 12px;
  font-size:12px;
}