/* Red & Black World-Class Theme for AM SRI Pet Shop - Ultra Premium Edition */
:root {
  /* Primary Red Palette - Deep Crimson to Bright Scarlet */
  --red-primary: #dc2626;
  --red-secondary: #b91c1c;
  --red-accent: #ef4444;
  --red-bright: #f87171;
  --red-glow: rgba(220, 38, 38, 0.5);
  --red-glow-strong: rgba(239, 68, 68, 0.4);
  --red-glow-soft: rgba(248, 113, 113, 0.25);
  
  /* Black & Dark Theme - Pure black with deep charcoal layers */
  --black-pure: #000000;
  --black-deep: #0a0a0a;
  --charcoal: #171717;
  --charcoal-light: #262626;
  --gray-muted: #525252;
  --gray-light: #a3a3a3;
  --white-pure: #ffffff;
  --white-soft: #f5f5f5;
}

/* Add to Cart Flying Animation Styles */
.flying-product {
  position: fixed;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.6);
  animation: flyToCart 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flyToCart {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}

.cart-bounce {
  animation: cartBounce 0.4s ease;
}

@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Luxury Cart Drawer - Production-Grade Isolation & Styling */
#cartCanvas button {
  /* Force all cart buttons to completely override browser defaults */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Quantity pill controls - Modern dark theme */
#cartCanvas .quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #0a0a0a; /* neutral-950 */
  border: 1px solid #262626; /* neutral-800 */
  border-radius: 8px;
  padding: 4px;
  margin-top: 8px;
}

#cartCanvas .quantity-btn {
  color: #a3a3a3; /* neutral-400 */
  transition: color 0.2s ease;
  cursor: pointer;
  padding: 2px;
}

#cartCanvas .quantity-btn:hover {
  color: #ffffff; /* white */
}

/* Ensure cart images never have default browser spacing or borders */
#cartCanvas img {
  object-fit: contain;
  flex-shrink: 0;
}

/* Cart overlay - Dark ambient backdrop */
#cartOverlay {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background-color: rgba(0, 0, 0, 0.8);
  transition: opacity 0.3s ease;
}

/* Glassmorphism cart drawer backdrop */
#cartCanvas {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: rgba(10, 10, 10, 0.95);
}

/* Luxury Wishlist Drawer - Production-Grade Isolation & Styling */
#wishlistCanvas button {
  /* Force all wishlist buttons to completely override browser defaults */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Wishlist overlay - Dark ambient backdrop with blur */
#wishlistOverlay {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background-color: rgba(0, 0, 0, 0.8);
  transition: opacity 0.3s ease;
}

/* Glassmorphism wishlist drawer backdrop */
#wishlistCanvas {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: rgba(10, 10, 10, 0.98);
}

/* Wishlist items styling */
.wishlist-item {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  border: 1px solid var(--charcoal-light);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.wishlist-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-accent), var(--red-bright));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wishlist-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--red-glow-soft);
  border-color: var(--red-primary);
}

.wishlist-item:hover::before {
  opacity: 1;
}

.wishlist-item img {
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wishlist-item:hover img {
  transform: scale(1.05);
}

.wishlist-item .item-details {
  flex: 1;
  min-width: 0;
}

.wishlist-item .item-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white-pure);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-item .item-price {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red-primary), var(--red-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wishlist-item .remove-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--charcoal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--gray-light);
}

.wishlist-item .remove-btn:hover {
  background: var(--red-primary);
  color: var(--white-pure);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 15px var(--red-glow);
}

.wishlist-item .add-to-cart-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  color: var(--white-pure);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.wishlist-item .add-to-cart-btn:hover {
  background: linear-gradient(135deg, var(--red-accent), var(--red-primary));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--red-glow-strong);
}

.wishlist-item .add-to-cart-btn:active {
  transform: translateY(0);
}

/* Empty wishlist state */
#wishlistEmpty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--gray-muted);
}

#wishlistEmpty .empty-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--charcoal-light), var(--charcoal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-heart 2s ease-in-out infinite;
}

#wishlistEmpty .empty-icon i {
  font-size: 48px;
  color: var(--red-primary);
}

#wishlistEmpty .empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white-soft);
  margin-bottom: 8px;
}

#wishlistEmpty .empty-subtitle {
  font-size: 0.95rem;
  color: var(--gray-light);
  text-align: center;
  line-height: 1.5;
}

@keyframes pulse-heart {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--red-glow-soft);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px 10px var(--red-glow-soft);
  }
}

/* Wishlist header styling */
.wishlist-header {
  padding: 24px;
  border-bottom: 1px solid var(--charcoal-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.wishlist-header h5 {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--white-pure), var(--gray-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wishlist-header h5 i {
  color: var(--red-primary);
  animation: heartbeat 1.5s ease-in-out infinite;
}

.wishlist-header .close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--charcoal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 24px;
  color: var(--gray-light);
}

.wishlist-header .close-btn:hover {
  background: var(--red-primary);
  color: var(--white-pure);
  transform: rotate(90deg);
  box-shadow: 0 4px 15px var(--red-glow);
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
}

/* Wishlist items container */
#wishlistItems {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}

#wishlistItems::-webkit-scrollbar {
  width: 6px;
}

#wishlistItems::-webkit-scrollbar-track {
  background: var(--black-deep);
}

#wishlistItems::-webkit-scrollbar-thumb {
  background: var(--charcoal-light);
  border-radius: 3px;
}

#wishlistItems::-webkit-scrollbar-thumb:hover {
  background: var(--red-primary);
}

/* Wishlist count badge animation */
.wishlist-count-bounce {
  animation: wishlistCountBounce 0.4s ease;
}

@keyframes wishlistCountBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

/* Wishlist button active state */
.wishlist-btn.active {
  color: var(--red-primary) !important;
  animation: heartPop 0.3s ease;
}

.wishlist-btn.active i {
  fill: var(--red-primary);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Complete CSS Reset to eliminate browser default styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default list styles */
ul, ol {
  list-style: none;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

/* Remove default link styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Remove default input styles */
input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Remove default image spacing */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove default heading margins */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font: inherit;
}

/* Remove default paragraph margins */
p {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--black-pure) 0%, var(--black-deep) 25%, var(--charcoal) 50%, var(--black-deep) 75%, var(--black-pure) 100%);
  color: var(--white-soft);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Global cinematic red floating background effects - Ultra Premium */
body::before,
body::after,
body .bg-orb-1,
body .bg-orb-2 {
  content: "";
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 20s ease-in-out infinite;
}

body::before {
  top: -20%;
  left: -20%;
  background: radial-gradient(circle, var(--red-glow-strong), transparent 70%);
  animation-delay: 0s;
}

body::after {
  right: -25%;
  bottom: -20%;
  background: radial-gradient(circle, var(--red-glow), transparent 70%);
  animation-delay: -5s;
}

/* Third floating orb for extra depth */
body::before {
  box-shadow: 0 0 150px var(--red-glow-soft);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input {
  font-family: inherit;
}

/* Ultra Premium Keyframe Animations - World Class Effects */
@keyframes floatOrb {
  0%, 100% { transform: translate(0px, 0px) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.05); }
  50% { transform: translate(30px, 50px) scale(0.95); }
  75% { transform: translate(-40px, 20px) scale(1.02); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(1deg); }
}

@keyframes floatYDelayed {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(-0.5deg); }
}

@keyframes floatYDelayed2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(0.5deg); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinSlowReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseGlow {
  0%, 100% { 
    box-shadow: 0 0 20px var(--red-glow), 0 0 40px var(--red-glow-soft);
    opacity: 1;
  }
  50% { 
    box-shadow: 0 0 40px var(--red-glow-strong), 0 0 80px var(--red-glow);
    opacity: 0.8;
  }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(220, 38, 38, 0.3); }
  50% { border-color: rgba(239, 68, 68, 0.8); }
}

@keyframes textShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Floating animations for hero elements - staggered delays */
.animate-float {
  animation: floatY 7s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatYDelayed 6s ease-in-out infinite;
  animation-delay: -2s;
}

.animate-float-delayed-2 {
  animation: floatYDelayed2 6.5s ease-in-out infinite;
  animation-delay: -4s;
}

.animate-fade-in-up {
  animation: slideInUp 1s ease-out forwards;
}

/* Ultra Premium Glassmorphism with red glow effects */
.glass-panel {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(32px);
  border: 1px solid rgba(220, 38, 38, 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.25), 0 0 60px rgba(220, 38, 38, 0.1);
  transform: translateY(-8px);
}

/* Hover lift effect with red glow on lift */
.hover-lift {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(220, 38, 38, 0.3);
}

/* Pulse glow effect for CTA buttons */
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Heartbeat animation for heart icons */
.animate-heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* Border glow animation for featured cards */
.border-glow {
  animation: borderGlow 4s ease-in-out infinite;
}

/* Shining text effect for headings */
.text-shine {
  background: linear-gradient(90deg, var(--white-pure) 0%, var(--red-bright) 50%, var(--white-pure) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 5s linear infinite;
}

/* Responsive breakpoints - enhanced for modern devices */
@media (max-width: 1200px) {
  .hero-shell {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-copy h1 {
    font-size: 3rem !important;
  }
  
  .mini-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom scrollbar for modern browsers - Red themed */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--black-pure);
  border-left: 1px solid var(--charcoal);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red-secondary), var(--red-primary));
  border-radius: 6px;
  border: 2px solid var(--black-pure);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--red-accent), var(--red-bright));
}

/* Ultra Premium utility classes */
.bg-red-gradient {
  background: linear-gradient(135deg, var(--red-secondary) 0%, var(--red-primary) 50%, var(--red-accent) 100%);
}

.text-red-gradient {
  background: linear-gradient(90deg, var(--red-accent), var(--red-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shadow-red-glow {
  box-shadow: 0 10px 40px -10px var(--red-glow-strong), 0 0 60px var(--red-glow-soft);
}

.shadow-red-glow-strong {
  box-shadow: 0 20px 60px -15px var(--red-glow), 0 0 80px var(--red-glow-strong);
}

/* Responsive breakpoints - Enhanced */
@media (max-width: 1200px) {
  .hero-shell {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-copy h1 {
    font-size: 3rem !important;
  }
  
  .mini-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .newsletter-box { padding: 22px 18px; }
  .newsletter-form { 
    height: auto; 
    flex-direction: column; 
    border-radius: 18px; 
    overflow: hidden; 
  }
  .newsletter-form input, .newsletter-form button { 
    width: 100%; 
    min-height: 52px; 
    border-radius: 0; 
  }
}