/* OneStopShop - KuyaPads Network */
/* Universal service fee system integrated */

.shop-main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shop-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.shop-tabs button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.shop-tabs button.active,
.shop-tabs button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #facc15;
  transform: translateY(-2px);
}

.shop-market {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-market h2 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.product-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.product-title {
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price {
  color: #facc15;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.buy-btn, .cart-btn {
  background: linear-gradient(45deg, #facc15, #f59e0b);
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.buy-btn:hover, .cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(250, 204, 21, 0.4);
}

.cart-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.service-fee-notice {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #facc15;
  text-align: center;
  font-weight: 600;
}

.service-fee-notice i {
  margin-right: 0.5rem;
}

.payment-breakdown {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-breakdown h4 {
  color: white;
  margin-bottom: 0.5rem;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.payment-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 0.5rem;
  font-weight: 700;
  color: #facc15;
}

.cart-summary {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-summary h3 {
  color: white;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.cart-item-info {
  color: white;
}

.cart-item-price {
  color: #facc15;
  font-weight: 600;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(45deg, #facc15, #f59e0b);
  border: none;
  border-radius: 25px;
  padding: 1rem;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(250, 204, 21, 0.4);
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.ai-widget {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.ai-widget:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.ai-widget i {
  font-size: 2rem;
  color: #facc15;
  margin-bottom: 1rem;
}

.ai-widget h4 {
  color: white;
  margin-bottom: 0.5rem;
}

.ai-widget p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .shop-main {
    padding: 1rem;
  }
  
  .shop-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .ai-widgets {
    grid-template-columns: 1fr;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .shop-main {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }
}
