/* =========================================
   TINY TOTS — Global Design System
   Theme: Logo Background Cream (#FAF7F4)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Lato:wght@300;400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Logo background & badge as primary theme */
  --bg-main:        #F7F4EC;
  --bg-card:        #FFFFFF;
  --bg-section-alt: #EFECE3;
  --bg-cream-deep:  #E3DDD2;

  /* Brand Palette (Derived from new Bear & Scalloped Badge Logo) */
  --blue:           #98B1BA; /* Dusty Sage Blue (Main background in logo) */
  --orange:         #9F5038; /* Terracotta / Rust (Logo font color) */
  --yellow:         #D9A043; /* Soft Warm Gold */
  --teal:           #5B8A99; /* Deep Slate Teal */
  --taupe:          #B7A696; /* Warm Bear Taupe */
  --pink:           #C47B70; /* Soft Dusty Rose */
  --yarn-pink:      #B56B60;

  /* Text */
  --text-dark:      #383533; /* Deep Charcoal Earth */
  --text-mid:       #68625E; /* Warm Slate Body */
  --text-light:     #98908A; /* Light Muted Earth */
  --text-white:     #FFFFFF;

  /* Semantic */
  --primary:        #98B1BA;
  --primary-dark:   #7A96A0;
  --secondary:      #9F5038;
  --success:        #5B8A99;
  --danger:         #C47B70;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(56,53,51,0.06);
  --shadow-md:  0 8px 24px rgba(56,53,51,0.10);
  --shadow-lg:  0 20px 60px rgba(56,53,51,0.14);
  --shadow-3d:  0 30px 80px rgba(56,53,51,0.18);

  /* Borders */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;
  --radius-full: 9999px;

  /* Spacing */
  --nav-height: 72px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-family: 'Nunito', sans-serif; font-weight: 800; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { color: var(--text-mid); font-size: 1rem; }

/* ---- Layout ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Nunito', sans-serif; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius-full);
  transition: var(--transition);
  font-size: 0.95rem; letter-spacing: 0.3px;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%); transition: transform 0.3s ease;
}
.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 16px rgba(152,177,186,0.4);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(152,177,186,0.5); }

.btn-secondary {
  background: var(--orange); color: #fff;
  box-shadow: 0 4px 16px rgba(159,80,56,0.4);
}
.btn-secondary:hover { background: #823C27; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(159,80,56,0.5); }

.btn-outline {
  background: transparent; color: var(--text-dark);
  border: 2px solid var(--bg-cream-deep);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* ---- Section Titles ---- */
.section-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px; display: block;
}
.section-title { margin-bottom: 16px; }
.section-subtitle { color: var(--text-mid); font-size: 1.05rem; max-width: 560px; }

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center;
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.5px;
  padding: 4px 12px; border-radius: var(--radius-full);
}
.badge-blue   { background: rgba(152,177,186,0.18); color: var(--blue); }
.badge-orange { background: rgba(159,80,56,0.15); color: var(--orange); }
.badge-teal   { background: rgba(91,138,153,0.15); color: var(--teal); }
.badge-pink   { background: rgba(196,123,112,0.15); color: var(--pink); }
.badge-yellow { background: rgba(217,160,67,0.18); color: #B37D2A; }

/* ---- Stars ---- */
.stars { display: flex; gap: 2px; }
.star { color: var(--yellow); font-size: 0.9rem; }
.star.empty { color: var(--bg-cream-deep); }

/* ---- Nav ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(247,244,236,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(227,221,210,0.6);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(247,244,236,0.98);
}
.navbar .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 14px 6px 8px; border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--bg-cream-deep);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.nav-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.nav-logo img {
  height: 40px; width: 40px;
  border-radius: 50%; object-fit: cover;
}
.nav-logo-text {
  font-family: 'Nunito', sans-serif; font-weight: 900;
  font-size: 1.4rem; letter-spacing: -0.5px;
  display: flex; align-items: center;
}
.logo-t1 { color: #98B1BA; }
.logo-i  { color: #9F5038; }
.logo-n  { color: #B7A696; }
.logo-y  { color: #5B8A99; }
.logo-space { margin-right: 5px; }
.logo-t2 { color: #9F5038; }
.logo-o  { color: #98B1BA; }
.logo-t3 { color: #B7A696; }
.logo-s  { color: #5B8A99; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  font-family: 'Nunito', sans-serif; font-weight: 600;
  font-size: 0.92rem; padding: 8px 14px;
  color: var(--text-mid); border-radius: var(--radius-sm);
  transition: var(--transition); position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--blue); border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { left: 14px; right: 14px; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); transition: var(--transition);
  font-size: 1.1rem; position: relative;
}
.nav-icon-btn:hover { background: var(--bg-section-alt); color: var(--blue); }

.cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--orange); color: #fff;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
}
.cart-badge.hidden { display: none; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  justify-content: center; align-items: center;
  transition: var(--transition);
}
.nav-hamburger:hover { background: var(--bg-section-alt); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-dark); border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--bg-cream-deep);
  padding: 16px 24px; z-index: 999;
  flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { width: 100%; padding: 12px 16px; }

/* ---- Footer ---- */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer .nav-logo {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 16px;
  display: inline-flex;
}
.footer .nav-logo img {
  height: 48px; width: 48px;
  border-radius: 50%; object-fit: cover;
  filter: none !important; opacity: 1 !important;
}
.footer .nav-logo-text {
  font-size: 1.5rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.92rem; line-height: 1.7; max-width: 320px;
}
.footer-col h5 {
  font-family: 'Nunito', sans-serif; font-weight: 800;
  color: #fff; font-size: 0.95rem; margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.7);
  font-size: 0.9rem; margin-bottom: 10px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--yellow); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; text-align: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
}
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.9rem;
  transition: var(--transition); margin-bottom: 0;
}
.footer-social a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }

/* ---- Floating Elements ---- */
@keyframes float { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-12px) rotate(5deg)} }
@keyframes float2 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-8px) rotate(-3deg)} }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideRight { from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:translateX(0)} }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

.animate-float  { animation: float  3s ease-in-out infinite; }
.animate-float2 { animation: float2 4s ease-in-out infinite; }
.animate-pulse  { animation: pulse  2s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Modal & Forms ---- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(46,31,15,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  padding: 20px;
}

.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 580px;
  padding: 36px;
  box-shadow: var(--shadow-3d);
  transform: scale(0.92) translateY(20px);
  transition: var(--transition);
  max-height: 90vh; overflow-y: auto;
  border: 1px solid var(--bg-cream-deep);
  position: relative;
}

.modal-backdrop.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-cream-deep);
}

.modal-title { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--text-dark); }

.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-section-alt); color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition);
  cursor: pointer; border: none;
}
.modal-close:hover { background: var(--pink); color: #fff; transform: rotate(90deg); }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 0.88rem; color: var(--text-dark); margin-bottom: 8px;
  letter-spacing: 0.2px;
}

/* Modern Form Input Controls */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea,
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--bg-cream-deep);
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(46,31,15,0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(107,174,214,0.2);
}

input::placeholder { color: var(--text-light); font-weight: 400; }

/* File Input Dropzone */
.file-dropzone {
  border: 2px dashed var(--blue);
  border-radius: var(--radius-md);
  padding: 24px; text-align: center;
  background: rgba(107,174,214,0.05);
  cursor: pointer; transition: var(--transition);
  position: relative; overflow: hidden;
}
.file-dropzone:hover {
  background: rgba(107,174,214,0.12);
  border-color: var(--primary-dark);
}
.file-dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-dropzone-icon { font-size: 2.2rem; margin-bottom: 8px; display: block; }
.file-dropzone-text { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.92rem; color: var(--text-dark); }
.file-dropzone-subtext { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }
.file-preview-img { max-height: 120px; border-radius: var(--radius-sm); margin-top: 12px; object-fit: cover; }

/* ---- Toast Notification ---- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast {
  background: var(--text-dark); color: #fff;
  padding: 14px 20px; border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: slideRight 0.3s ease;
  max-width: 320px;
}
.toast.success { border-left: 4px solid var(--teal); }
.toast.error   { border-left: 4px solid var(--pink); }
.toast.info    { border-left: 4px solid var(--blue); }

/* ---- Skeleton Loader ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-section-alt) 25%, var(--bg-cream-deep) 50%, var(--bg-section-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-bottom: 32px; }
.breadcrumb a { color: var(--text-light); transition: var(--transition); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text-mid); }
.breadcrumb-sep { color: var(--text-light); }

/* ---- Divider ---- */
.divider { height: 1px; background: var(--bg-cream-deep); margin: 48px 0; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--bg-cream-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ---- Page Header ---- */
.page-header {
  background: var(--bg-section-alt);
  padding: 120px 0 60px;
  position: relative; overflow: hidden;
}
/* ---- Floating WhatsApp Widget ---- */
.whatsapp-float-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-whatsapp 2.5s infinite;
  text-decoration: none;
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.6);
  background: #20BA5A;
}

.whatsapp-tooltip {
  background: #FFFFFF;
  color: var(--text-dark);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid var(--bg-cream-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideRight 0.4s ease;
  white-space: nowrap;
}

.whatsapp-tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 1.5s infinite;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 768px) {
  .whatsapp-tooltip { display: none; }
  .whatsapp-float-wrap { bottom: 20px; right: 20px; }
  .whatsapp-float-btn { width: 54px; height: 54px; font-size: 1.6rem; }
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { font-size: 1.1rem; color: var(--text-mid); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
