:root {
  /* Colors */
  --toy-orange: #FF8C42;
  --toy-yellow: #FFC857;
  --toy-blue: #22577A;
  --toy-blue-dark: #1B435D;
  --toy-green: #80ED99;
  --toy-pink: #FF99AC;
  --toy-white: #FFFFFF;
  --toy-bg: #F8F9FA;
  --toy-text: #2D3436;
  --toy-text-muted: #636E72;
  --toy-border: #E9ECEF;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-body);
  color: var(--toy-text);
  background-color: var(--toy-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4rem);
}

section {
  margin-top: var(--space-xl);
  padding: var(--space-md) 0;
}

main > :first-child {
  margin-top: 0;
}

/* Header & Nav */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--toy-border);
}

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

.logo {
  height: 40px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100%;
  width: auto;
}

.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 2px solid var(--toy-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--toy-orange);
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--toy-text-muted);
}

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

.nav-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--toy-blue);
}

.nav-action-item svg {
  margin-bottom: 2px;
}

.nav-bottom {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.8rem 0;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-bottom a:hover {
  color: var(--toy-orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  font-family: var(--font-heading);
}

.btn-primary {
  background: var(--toy-orange);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 140, 66, 0.3);
}

.btn-secondary {
  background: var(--toy-blue);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(34, 87, 122, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--toy-blue);
  color: var(--toy-blue);
}

.btn-outline:hover {
  background: var(--toy-blue);
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #FFF9EB 0%, #FFF0F5 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2rem 0;
}

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

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--toy-blue);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--toy-text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

.hero-image-container {
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.hero-shape {
  position: absolute;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.6;
}

.shape-1 {
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: var(--toy-yellow);
  border-radius: 50%;
  animation: float 10s infinite alternate;
}

.shape-2 {
  bottom: -10%;
  left: -10%;
  width: 250px;
  height: 250px;
  background: var(--toy-pink);
  border-radius: 50%;
  animation: float 8s infinite alternate-reverse;
}

@keyframes float {
  from { transform: translate(0, 0); }
  to { transform: translate(20px, 40px); }
}

/* Featured Categories */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--toy-blue);
  margin-bottom: 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
}

.category-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.category-overlay span {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { justify-content: center; }
  .nav-bottom { display: none; }
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--toy-border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--toy-orange);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--toy-orange);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.product-image-wrap {
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fdfdfd;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: 600;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--toy-blue);
}

.product-rating {
  color: #FFD700;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--toy-text);
  margin-bottom: 1.2rem;
}

.product-card .btn-add {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.9rem;
}

/* Why Choose Section */
.why-section {
  background: var(--toy-blue);
  color: white;
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.why-item svg {
  color: var(--toy-yellow);
  margin-bottom: 1.5rem;
}

.why-item h3 {
  margin-bottom: 1rem;
}

.why-item p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Social Proof */
.testimonials {
  padding: var(--space-xl) 0;
}

.testimonial-card {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--toy-border);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: var(--toy-pink);
  overflow: hidden;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--toy-blue);
}

/* Instagram */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

.insta-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Newsletter */
.newsletter {
  background: var(--toy-yellow);
  padding: var(--space-lg) 0;
  margin-bottom: -1px;
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 768px) {
  .newsletter-content { flex-direction: column; text-align: center; }
}

.newsletter-text h2 {
  color: var(--toy-blue);
  margin-bottom: 0.5rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex: 1;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
}

/* Utility / Page Specific */
.text-orange { color: var(--toy-orange); }
.text-muted { color: var(--toy-text-muted); }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-fit { width: fit-content; }
.static { position: static; }
.border-y { border-top: 1px solid var(--toy-border); border-bottom: 1px solid var(--toy-border); padding: 1.5rem 0; }
.rating-stars { color: #FFD700; }
.breadcrumb { margin-top: 2rem; font-size: 0.9rem; opacity: 0.7; }
.footer-social { display: flex; gap: 1rem; margin-top: 2rem; }
.footer-desc { opacity: 0.6; line-height: 1.8; }
.no-border { border: none !important; }

/* Footer */
footer {
  background: #111;
  color: white;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: var(--space-xl);
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-logo {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--toy-orange);
  margin-bottom: 1.5rem;
  display: block;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  opacity: 0.6;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--toy-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* Placeholder for images */
.placeholder-image.square {
  aspect-ratio: 1;
}

.placeholder-avatar {
  width: 100%;
  height: 100%;
  background: #eee;
}

/* Popup */
.exit-popup {
  display: none; /* Hide by default in CSS, simulate with a page version if needed */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

/* Product Page Specifics */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: var(--space-lg);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: white;
  border: 1px solid var(--toy-border);
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.thumb-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
}

.thumb-item.active {
  border-color: var(--toy-orange);
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-size: 3rem;
  color: var(--toy-blue);
}

.product-price-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--toy-orange);
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #27ae60;
}

.stock-status.low {
  color: #e67e22;
}

.buy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.product-tabs {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--toy-border);
}

.tab-nav {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--toy-border);
}

.tab-item {
  font-weight: 700;
  cursor: pointer;
  position: relative;
  color: var(--toy-text-muted);
}

.tab-item.active {
  color: var(--toy-blue);
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1.6rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--toy-orange);
}

.tab-content {
  padding: 2rem 0;
}

/* Sticky Mobile Bar */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .sticky-mobile-bar { display: flex; }
  .product-detail-grid { grid-template-columns: 1fr; }
}
