@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Inter:wght@400;500;600&family=Poppins:wght@600&display=swap');

:root {
  /* Play Colors */
  --sky-blue: #38BDF8;
  --bright-yellow: #FACC15;
  --candy-pink: #FB7185;
  --mint-green: #34D399;
  --neon-purple: #A78BFA;

  /* Background Colors */
  --bg-dark: #0F172A;
  --bg-light: #1E293B;

  /* Glass Colors */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-hover: rgba(255, 255, 255, 0.2);

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #D1D5DB;

  /* Fonts */
  --font-heading: 'Fredoka', sans-serif;
  --font-subheading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Easing */
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-light));
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Blobs */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: float 15s infinite alternate ease-in-out;
}

.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--candy-pink); }
.blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: var(--sky-blue); animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 40vw; height: 40vw; background: var(--neon-purple); animation-delay: -10s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, -10%) scale(0.95); }
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; }
h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-family: var(--font-subheading); font-size: 1.5rem; margin-bottom: 0.75rem; }
p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1rem; }

.text-gradient {
  background: linear-gradient(45deg, var(--bright-yellow), var(--candy-pink), var(--sky-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientText 5s linear infinite;
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-subheading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--bounce);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(45deg, var(--candy-pink), var(--neon-purple));
}

.btn-secondary {
  background: linear-gradient(45deg, var(--sky-blue), var(--mint-green));
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  z-index: -1;
  transition: opacity 0.3s;
  opacity: 0;
}

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(251, 113, 133, 0.4);
}

.btn:hover::before { opacity: 1; }

.btn-secondary:hover { box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4); }

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

header.scrolled .glass-panel {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0 0 24px 24px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span { color: var(--bright-yellow); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-subheading);
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--bright-yellow); }

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background: var(--bright-yellow);
  bottom: -5px;
  left: 0;
  border-radius: 5px;
  transition: width 0.3s var(--bounce);
}

.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s var(--bounce);
}

.cart-btn:hover { transform: scale(1.2) rotate(-10deg); color: var(--sky-blue); }

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--candy-pink);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 { font-size: 4rem; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; }

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
  animation: floatUp 6s ease-in-out infinite alternate;
}

.hero-image img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: 4px solid var(--glass-border);
}

.floating-icon {
  position: absolute;
  font-size: 3rem;
  animation: bounce 3s infinite var(--bounce);
}

.icon-1 { top: -20px; left: -20px; animation-delay: 0.2s; }
.icon-2 { bottom: -20px; right: -20px; animation-delay: 0.5s; font-size: 4rem; }

@keyframes floatUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.1); }
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--bounce);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--sky-blue);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.2);
}

.product-image {
  width: 100%;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

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

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

.product-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.product-price { 
  font-size: 1.5rem; 
  font-weight: bold; 
  color: var(--bright-yellow); 
  margin-bottom: 1rem;
}

.add-to-cart {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 12px;
  background: var(--glass-bg);
  color: var(--text-primary);
  font-family: var(--font-subheading);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--glass-border);
}

.add-to-cart:hover {
  background: var(--sky-blue);
  color: var(--bg-dark);
}

/* Categories Section */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.category-card {
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s var(--bounce);
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--glass-hover);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s var(--bounce);
}

.category-card:hover .category-icon { transform: scale(1.2) rotate(10deg); }

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--mint-green), var(--sky-blue));
  box-shadow: 0 10px 20px rgba(52, 211, 153, 0.3);
}

/* Footer */
footer {
  margin-top: 5rem;
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--bright-yellow); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--candy-pink); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

/* Slide-in Cart */
.cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.cart-sidebar {
  position: fixed;
  top: 0; right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: right 0.4s var(--bounce);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.close-cart {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.close-cart:hover { transform: rotate(90deg); color: var(--candy-pink); }

.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
  display: flex;
  gap: 1rem;
  background: var(--glass-bg);
  padding: 1rem;
  border-radius: 12px;
  align-items: center;
}

.cart-item img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 1rem; font-weight: bold; }
.cart-item-price { color: var(--bright-yellow); }

.remove-item {
  background: transparent;
  border: none;
  color: var(--candy-pink);
  font-size: 1.25rem;
  cursor: pointer;
}

.cart-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Page Specific & Inner Pages */
.page-header {
  text-align: center;
  padding: 4rem 0 2rem;
}

.single-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.product-gallery img {
  width: 100%;
  border-radius: 24px;
  border: 4px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.product-details h1 { font-size: 3rem; margin-bottom: 1rem; }
.product-details .price { font-size: 2.5rem; color: var(--bright-yellow); font-weight: bold; margin-bottom: 1.5rem; }
.product-details p { font-size: 1.1rem; margin-bottom: 2rem; }

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--sky-blue);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
}

.legal-content h2 { margin-top: 2rem; color: var(--sky-blue); }
.legal-content ul { margin-left: 2rem; margin-bottom: 1.5rem; color: var(--text-secondary); }
.legal-content li { margin-bottom: 0.5rem; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3rem; }
  .single-product { gap: 2rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-links.active { max-height: 400px; border-bottom: 1px solid var(--glass-border); }
  .nav-links li { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.05); }
  
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .single-product { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}