/* The Pozz Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

/* Custom animations for speed lines */
@keyframes speed-line {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.speed-line {
  animation: speed-line 3s ease-in-out infinite;
}

.speed-line:nth-child(2) {
  animation-delay: 0.5s;
}

.speed-line:nth-child(3) {
  animation-delay: 1s;
}

/* Custom hover effects */
.hover-glow:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  transition: box-shadow 0.3s ease;
}

/* Product image hover effect */
.product-image {
  transition: transform 0.5s ease;
}

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

/* Cart slide animation */
.cart-open {
  transform: translateX(0) !important;
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #374151;
  border-top: 4px solid #ef4444;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: #ef4444;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

/* Button animations */
.btn-primary {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Hero section styling */
.hero-bg {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(0, 0, 0, 0.9));
}

/* Product grid responsive */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Size selector styling */
.size-button {
  transition: all 0.3s ease;
  border: 2px solid #374151;
}

.size-button:hover {
  border-color: #6b7280;
  background-color: #1f2937;
}

.size-button.selected {
  border-color: #ef4444;
  background-color: #ef4444;
  color: white;
}

/* Newsletter section */
.newsletter-section {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .nav-mobile {
    backdrop-filter: blur(10px);
  }
}

/* Product detail image gallery */
.image-gallery {
  display: grid;
  gap: 1rem;
}

.main-image {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #374151;
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
}

.thumbnail {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #374151;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail:hover {
  border-color: #6b7280;
}

.thumbnail.active {
  border-color: #ef4444;
}

/* Quantity controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1f2937;
  border-radius: 8px;
  padding: 0.5rem;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  background: #374151;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.quantity-btn:hover {
  background: #4b5563;
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1f2937;
  border: 2px solid #ef4444;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

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

.toast.success {
  border-color: #10b981;
}

.toast.error {
  border-color: #ef4444;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}