/* OVERLAY (Hintergrund-Dunkellayer) */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 2000;
  transform: none;
}

/* Overlay aktiv */

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* =====================================================   CART DRAWER (SEITENPANEL)===================================================== */

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  height: 100%;
  background: #fff;
  /*FIX: über Overlay;*/
  z-index: 1100;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}

/* Drawer sichtbar */

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

/* =====================================================   HEADER===================================================== */

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

/* =====================================================   CART CONTENT===================================================== */

.cart-items {
  flex: 1;
  /*FIX: Scroll sauber im Drawer;*/
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

/* =====================================================   CART ITEM===================================================== */

.cart-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}

.cart-item .title {
  font-weight: bold;
  font-size: 13px;
  color: black;
}

/* =====================================================   FOOTER===================================================== */

.cart-footer {
  border-top: 1px solid #eee;
  padding: 15px;
}

.subtotal {
  margin-bottom: 10px;
}

/* =====================================================   BUTTONS (GENERIC)===================================================== */

.btn {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* Checkout Button */

.checkout {
  background: #ffb400;
}

/* Secondary Button */

.view {
  background: #eee;
}

/* =====================================================   FLOATING CART BAR===================================================== */

.cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffb400;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 1100;
}

/* =====================================================   ICON BUTTON===================================================== */

.icon-button {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
}

/* =====================================================   CHECKOUT PAGE===================================================== */

.checkout-header {
  padding: 50px 0 25px;
}

.card-modern {
  border: none;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

/* FORM CONTROLS */

.form-control, .form-select {
  border-radius: 12px;
  padding: .8rem 1rem;
  border: 1px solid #dfe5ec;
}

/* Focus state */

.form-control:focus, .form-select:focus {
  box-shadow: none;
  border-color: #0d6efd;
}

/* =====================================================   ORDER ITEMS===================================================== */

.product-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eceff4;
}

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

.product-image {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: 14px;
}

.product-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.product-info {
  color: #6c757d;
  font-size: .9rem;
}

.price {
  font-weight: 700;
  white-space: nowrap;
}

/* =====================================================   SUMMARY===================================================== */

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.total {
  font-size: 1.3rem;
  font-weight: 700;
}

.btn-checkout {
  border-radius: 14px;
  padding: 14px;
  font-weight: 600;
  font-size: 1rem;
}

/* =====================================================   STEPPER (CHECKOUT PROGRESS)===================================================== */

.stepper {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.step {
  color: #adb5bd;
  font-weight: 600;
}

.step.active {
  color: #0d6efd;
}

/* =====================================================   STICKY SUMMARY===================================================== */

.sticky-summary {
  position: sticky;
  top: 30px;
}

/* FIX: mobile fallback */

@media (max-width: 991px) {
  .sticky-summary {
    position: relative;
    top: 0;
  }
}

/* =====================================================   BADGE===================================================== */

.badge-custom {
  background: #eef5ff;
  color: #0d6efd;
  padding: 7px 12px;
  border-radius: 50px;
}

/* =====================================================   CHECKOUT ORDER CONTAINER===================================================== */

#orderContainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =====================================================   SHOP SECTION===================================================== */

.shop-section {
  padding: 80px 0;
}

.shop-header {
  text-align: center;
  margin-bottom: 60px;
}

.shop-subtitle {
  opacity: .8;
  line-height: 1.8;
}

.shop-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.shop-info span {
  opacity: .8;
}

.product-price {
  color: #ff0000;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* =====================================================   PRODUCT CARD===================================================== */

.product-card {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  transition: .3s;
  height: 100%;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* =====================================================   SHOP CONTAINER===================================================== */

.shop-container {
  width: min(1100px, 90%);
  margin: auto;
}

.shop-button:hover {
  background-color: rgb(255, 0, 0) !important;
  border-color: rgb(255, 0, 0) !important;
  color: #000 !important;
}

.pulse {
  animation: pulse 1.5s infinite;
  display: inline-block;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

