/* SHOP CSS - NEXUS E-COMMERCE */
:root {
  --shop-bg: #0a0a0f;
  --shop-card: rgba(20, 20, 25, 0.8);
  --shop-primary: #00f5c4;
  --shop-secondary: #9900ff;
  --shop-accent: #ff4d6d;
  --shop-text: #e8e8f0;
}

body.shop-mode {
  background: var(--shop-bg);
  color: var(--shop-text);
  font-family: 'Sora', sans-serif;
  margin: 0;
  padding-top: 80px; /* Space for fixed nav */
}

.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.shop-header {
  text-align: center;
  margin-bottom: 50px;
}
.shop-header h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.shop-header h1 span {
  color: var(--shop-primary);
  text-shadow: 0 0 20px rgba(0,245,196,0.4);
}
.shop-header p {
  color: #8b8b9e;
  font-size: 1.1rem;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--shop-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--shop-primary);
  box-shadow: 0 10px 30px rgba(0,245,196,0.15);
}

.product-img {
  height: 220px;
  background: linear-gradient(45deg, #1a1a28, #0a0a0f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}
.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--shop-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.product-desc {
  font-size: 0.9rem;
  color: #8b8b9e;
  margin-bottom: 20px;
  flex: 1;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.price-current {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--shop-primary);
  font-family: 'Rajdhani', sans-serif;
}
.price-old {
  font-size: 1rem;
  color: #555;
  text-decoration: line-through;
  margin-left: 10px;
}

.btn-add-cart {
  width: 100%;
  padding: 12px;
  background: rgba(0,245,196,0.1);
  color: var(--shop-primary);
  border: 1px solid var(--shop-primary);
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.btn-add-cart:hover {
  background: var(--shop-primary);
  color: #000;
}
.btn-add-cart.added {
  background: #333;
  color: #fff;
  border-color: #333;
  pointer-events: none;
}

/* SLIDING CART (PANIER) */
.cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0; right: -400px;
  width: 100%; max-width: 400px;
  height: 100%;
  background: #111118;
  z-index: 9999;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  border-left: 1px solid rgba(255,255,255,0.05);
}
.cart-panel.active {
  right: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  margin: 0;
}
.close-cart {
  background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.empty-cart-msg {
  color: #8b8b9e;
  text-align: center;
  margin-top: 50px;
}

.cart-item {
  display: flex;
  gap: 15px;
  background: rgba(255,255,255,0.02);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  position: relative;
}
.cart-item-icon {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.cart-item-details { flex: 1; }
.cart-item-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 5px; }
.cart-item-price { color: var(--shop-primary); font-weight: bold; }
.remove-item {
  background: none; border: none; color: #ff4d6d;
  cursor: pointer; font-size: 0.8rem;
  position: absolute; right: 15px; top: 15px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.2);
}
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 1.2rem; font-weight: bold; margin-bottom: 20px;
}
.btn-checkout {
  display: block; width: 100%;
  padding: 15px; background: var(--shop-primary); color: #000;
  text-align: center; text-decoration: none;
  border-radius: 8px; font-weight: bold; font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem; letter-spacing: 1px;
}
.btn-checkout:hover {
  box-shadow: 0 0 20px rgba(0,245,196,0.4);
}

/* FLOATING CART BUTTON */
.floating-cart-btn {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 60px; height: 60px;
  background: var(--shop-primary);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,245,196,0.4);
  z-index: 9997;
  transition: 0.3s;
}
.floating-cart-btn:hover { transform: scale(1.1); }
.cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: #ff4d6d; color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.7rem; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}
