/* Shop-spezifische Stile */

.shop-hero {
  padding: calc(var(--header-h) + 64px) 0 72px;
  background:
    radial-gradient(circle at 20% 20%, rgba(43, 158, 214, 0.035), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(201, 162, 39, 0.04), transparent 30%),
    linear-gradient(180deg, #f2eee7, var(--bg));
  border-bottom: 1px solid var(--border);
}

.shop-hero-content {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.shop-hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--text);
}

.shop-lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Shop Layout */
.shop-layout {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, var(--bg), #f3f0ea);
  min-height: calc(100vh - var(--header-h));
}

.shop-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
}

/* Sidebar Filter */
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  height: fit-content;
}

.filter-group {
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(11, 34, 51, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,248,243,0.96));
  box-shadow: 0 14px 34px rgba(11,34,51,0.06);
}

.filter-title {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.filter-subtitle {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.filter-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.filter-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.filter-label:hover {
  color: var(--text);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: var(--blue);
}

/* Price Range */
.price-range {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.price-slider {
  width: 100%;
  cursor: pointer;
}

.price-display {
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 700;
}

/* Main Content */
.shop-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Search & Sort Bar */
.shop-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
  border-color: rgba(74, 159, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(74, 159, 212, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}

.sort-select {
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sort-select:hover {
  border-color: rgba(74, 159, 212, 0.55);
}

.sort-select:focus {
  outline: none;
  border-color: rgba(74, 159, 212, 0.55);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(11, 34, 51, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,248,241,0.96));
  box-shadow: 0 14px 34px rgba(11,34,51,0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(43, 158, 214, 0.18);
  box-shadow: 0 20px 44px rgba(11,34,51,0.11);
}

.product-image {
  width: 100%;
  height: 220px;
  margin-bottom: 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(43, 158, 214, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(246, 242, 236, 0.85), rgba(240, 236, 229, 0.78));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  text-align: center;
  overflow: hidden;
}

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

.product-category {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 159, 212, 0.2);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.product-description {
  margin: 0 0 16px;
  flex: 1;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
}

.product-price-old {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 4px;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #07101d;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.16);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--gold-light), #f1d75c);
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(201, 162, 39, 0.22);
}

/* Empty State */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Cart Panel (Offcanvas) */
.cart-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 380px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.cart-panel.open {
  right: 0;
}

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

.cart-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cart-items {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.cart-empty {
  margin: 0;
  text-align: center;
  color: var(--muted);
  padding-top: 40px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.cart-item-price {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.cart-item-qty input {
  width: 30px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.cart-item-remove {
  font-size: 0.8rem;
  color: #ff6b6b;
  cursor: pointer;
  margin-top: 4px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}

#checkout-btn {
  width: 100%;
}

.checkout-screen {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.checkout-screen h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

.checkout-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.checkout-message {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(74, 159, 212, 0.08);
  color: var(--text);
  font-weight: 600;
}

/* Cart Badge */
.cart-link {
  position: relative;
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  color: var(--text);
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  position: relative;
  box-shadow: 0 10px 24px rgba(11,34,51,0.06);
  overflow: visible;
}

.nav-cart::before {
  content: "";
  width: 19px;
  height: 19px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h-2l-1 2H2v2h2l3.6 7.59-1.35 2.44A2 2 0 0 0 8 21h11v-2H8l1.1-2h7.45a2 2 0 0 0 1.8-1.11L21 8H7.42L7 4Zm3.2 7 1.12-2h7.45l-1 2H10.2ZM9 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h-2l-1 2H2v2h2l3.6 7.59-1.35 2.44A2 2 0 0 0 8 21h11v-2H8l1.1-2h7.45a2 2 0 0 0 1.8-1.11L21 8H7.42L7 4Zm3.2 7 1.12-2h7.45l-1 2H10.2ZM9 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav-cart:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.26);
  background: linear-gradient(135deg, var(--surface), #faf6eb);
  box-shadow: 0 14px 28px rgba(11,34,51,0.09);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(11,34,51,0.08);
}

/* Responsive */
@media (max-width: 1040px) {
  .shop-container {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: relative;
    top: 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  .shop-layout {
    padding: 28px 0;
  }

  .shop-bar {
    flex-direction: column;
  }

  .search-box {
    min-width: auto;
  }

  .sort-select {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }

  .product-card {
    padding: 14px;
  }

  .product-image {
    height: 150px;
    margin-bottom: 10px;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .btn-add-cart {
    min-width: 0;
    width: 100%;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-cart {
    width: 44px;
    height: 44px;
  }

  .cart-panel {
    width: 100%;
    right: -100%;
  }
}
