/* ============================================
   MamamToyShop - Styles
   Color Palette: Purple #6b46c1, Yellow #fbbf24, Lavender #f5f0ff
   Fonts: Baloo 2 (headings) + Inter (body)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --purple: #6b46c1;
  --purple-dark: #553c9a;
  --purple-light: #805ad5;
  --yellow: #fbbf24;
  --yellow-light: #fcd34d;
  --yellow-dark: #f59e0b;
  --lavender: #f5f0ff;
  --lavender-dark: #ede5ff;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --font-heading: 'Baloo 2', cursive;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--lavender);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

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

.section {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--yellow);
  color: var(--gray-900);
  border-color: var(--yellow);
}

.btn-primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.btn-small:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
}

.navbar.scrolled {
  background: var(--white);
  border-bottom-color: var(--lavender-dark);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
}

.logo-icon {
  font-size: 1.6rem;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--purple);
  background: var(--lavender);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 24px;
  height: 2.5px;
  background: var(--purple);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 40%, #9f7aea 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('images/shop-cover.jpg') center/cover no-repeat;
  opacity: 0.12;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- About --- */
.about {
  background: var(--white);
}

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

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text {
  font-size: 1.05rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.reseller-note {
  background: var(--lavender);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--yellow);
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--purple);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* --- Categories --- */
.categories {
  background: var(--lavender);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-image {
  height: 200px;
  overflow: hidden;
}

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

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

.category-content {
  padding: 1.25rem;
}

.category-content h3 {
  font-size: 1.3rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.category-content p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.category-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--gray-900);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Featured Products --- */
.featured {
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--lavender);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

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

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

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #ef4444;
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-info {
  padding: 1rem 1.25rem 1.25rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* --- Why Choose Us --- */
.why-us {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: var(--white);
}

.why-us .section-title {
  color: var(--white);
}

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

.feature-card {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(5px);
  transition: all var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* --- Contact --- */
.contact {
  background: var(--lavender);
}

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

.contact-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  font-size: 1.2rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.contact-link {
  display: inline-block;
  color: var(--purple);
  font-weight: 600;
  margin-top: 0.25rem;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--purple-dark);
  text-decoration: underline;
}

.contact-detail {
  font-size: 0.8rem !important;
  color: var(--gray-600) !important;
  margin-top: 0.25rem;
}

.order-note {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.order-note h3 {
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 1.5rem;
}

.order-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.order-step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  color: var(--gray-900);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.order-step p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-icon {
  font-size: 1.4rem;
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-200);
}

.footer-location {
  font-size: 0.85rem !important;
  color: var(--gray-600) !important;
}

.footer-links h4,
.footer-social h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links li,
.footer-social li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-social a {
  font-size: 0.9rem;
  color: var(--gray-200);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Navbar mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    gap: 0;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    display: block;
  }

  .nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero mobile */
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badges {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

  /* About mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image img {
    height: 280px;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  /* Categories mobile */
  .categories-grid {
    grid-template-columns: 1fr;
  }

  /* Products mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Contact mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .order-steps {
    flex-direction: column;
    align-items: center;
  }

  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
