/* shop.css - Specific styles for shop page */

/* ---------------- Shop Page Specific Styles ---------------- */

/* Shop Hero */
.shop-hero {
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
}

.shop-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.shop-hero-badge {
  display: inline-block;
  background: rgba(31, 143, 255, 0.1);
  color: var(--accent1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(31, 143, 255, 0.3);
}

.shop-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.shop-hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(31, 143, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(31, 143, 255, 0.1), rgba(255, 77, 77, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(31, 143, 255, 0.3),
              0 0 0 1px rgba(31, 143, 255, 0.2);
  border-color: rgba(31, 143, 255, 0.3);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #000;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(31, 143, 255, 0.4);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-content {
  padding: 25px;
  position: relative;
}

.product-category {
  display: inline-block;
  background: rgba(31, 143, 255, 0.1);
  color: var(--accent1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(31, 143, 255, 0.2);
}

.product-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.product-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.product-feature {
  background: rgba(31, 143, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--accent1);
  border: 1px solid rgba(31, 143, 255, 0.2);
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.price {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Orbitron', sans-serif;
}

.original-price {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 8px;
}

.discount {
  background: linear-gradient(135deg, var(--accent2), #ff6b6b);
  color: #000;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

/* How it Works Section */
.how-it-works {
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(31, 143, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 77, 77, 0.05) 0%, transparent 50%);
  z-index: -1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
  padding: 40px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(31, 143, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-10px);
  border-color: rgba(31, 143, 255, 0.3);
  box-shadow: 0 20px 40px rgba(31, 143, 255, 0.15);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(31, 143, 255, 0.4);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: rgba(31, 143, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid rgba(31, 143, 255, 0.2);
}

.step-icon i {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-card h3 {
  color: var(--text);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.step-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: rgba(11, 12, 16, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(31, 143, 255, 0.2);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 25px;
  border-bottom: 1px solid rgba(31, 143, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  color: var(--text);
  font-size: 1.5rem;
}

.close-cart {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.close-cart:hover {
  background: rgba(31, 143, 255, 0.1);
  color: var(--accent1);
}

.cart-items {
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  margin-bottom: 15px;
  border: 1px solid rgba(31, 143, 255, 0.1);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-details h4 {
  color: var(--text);
  margin-bottom: 5px;
  font-size: 1rem;
}

.cart-item-price {
  color: var(--accent1);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.quantity-btn {
  width: 25px;
  height: 25px;
  background: rgba(31, 143, 255, 0.1);
  border: 1px solid rgba(31, 143, 255, 0.2);
  border-radius: 5px;
  color: var(--accent1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: rgba(31, 143, 255, 0.2);
}

.remove-item {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.2);
  color: var(--accent2);
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-item:hover {
  background: rgba(255, 77, 77, 0.2);
}

.cart-total {
  padding: 20px;
  border-top: 1px solid rgba(31, 143, 255, 0.1);
  margin-top: auto;
}

.total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
}

.total-line.final {
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(31, 143, 255, 0.1);
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 143, 255, 0.4);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Shop CTA */
.shop-cta {
  background: linear-gradient(135deg, rgba(31, 143, 255, 0.1), rgba(255, 77, 77, 0.1));
  padding: 80px 20px;
  text-align: center;
  border-radius: var(--radius);
  margin: 80px auto;
  max-width: var(--container);
  border: 1px solid rgba(31, 143, 255, 0.2);
}

.shop-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.shop-cta p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Shop Page */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-card:hover {
    transform: translateY(-8px) scale(1.01);
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .shop-cta {
    padding: 60px 20px;
    margin: 60px auto;
  }
  
  .shop-cta h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .shop-hero {
    padding: 100px 12px 60px;
  }
  
  .product-content {
    padding: 20px;
  }
  
  .product-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .step-card {
    padding: 30px 20px;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
  }
  
  .step-icon i {
    font-size: 1.5rem;
  }
}
/* Enhanced Cart Styles */
.cart-badge.has-items {
    animation: cartPulse 0.6s ease-in-out;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.add-to-cart.added {
    background: linear-gradient(135deg, #00ff88, #00cc66) !important;
    transform: scale(0.95);
}

.cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cart-item-category {
    font-size: 0.8rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 8px;
}

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

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-cart p {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.empty-cart small {
    font-size: 0.9rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(31, 143, 255, 0.3);
    border-radius: var(--radius);
    padding: 15px 20px;
    color: var(--text);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-color: rgba(0, 255, 136, 0.3);
}

.notification-warning {
    border-color: rgba(255, 193, 7, 0.3);
}

.notification-error {
    border-color: rgba(255, 77, 77, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #00ff88;
}

.notification-warning .notification-content i {
    color: #ffc107;
}

.notification-error .notification-content i {
    color: var(--accent2);
}

/* Enhanced quantity buttons */
.quantity-btn {
    width: 28px;
    height: 28px;
    background: rgba(31, 143, 255, 0.1);
    border: 1px solid rgba(31, 143, 255, 0.2);
    border-radius: 6px;
    color: var(--accent1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.quantity-btn:hover {
    background: rgba(31, 143, 255, 0.2);
    transform: scale(1.1);
}

.quantity {
    margin: 0 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: var(--accent2);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.remove-item:hover {
    background: rgba(255, 77, 77, 0.2);
    transform: scale(1.05);
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
