/*
Global CSS for Tinyracks Kidswear WordPress Theme
*/

/* Top Bar */
.top-bar {
  background: var(--brand-plum);
  color: #FFF9F2;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.top-bar .pill-code {
  background: var(--brand-gold);
  color: var(--brand-plum);
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(78, 87, 255, 0.1);
  padding: 14px 28px;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-logo img {
  height: 84px;
  max-height: 88px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.08));
  transition: transform 0.2s ease;
}

/* Search Pill */
.search-pill {
  flex: 1;
  max-width: 500px;
  position: relative;
}
.search-pill input {
  width: 100%;
  padding: 12px 20px 12px 48px;
  border-radius: 30px;
  border: 2px solid var(--border-subtle);
  background: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
  transition: all 0.3s;
}
.search-pill input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(78, 87, 255, 0.15);
}
.search-pill svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--brand-blue);
  stroke-width: 2.5;
}

/* Header Nav & Cart */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-link {
  color: #0F172A;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--brand-blue);
}
.cart-btn-brand {
  background: var(--brand-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(78, 87, 255, 0.28);
  transition: all 0.3s;
}
.cart-btn-brand:hover {
  background: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 57, 59, 0.35);
}
.cart-badge {
  background: var(--brand-yellow);
  color: #0F172A;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--brand-blue);
  border-radius: 2px;
}

/* Section Row Head */
.section-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.section-row-head.center {
  text-align: center;
  justify-content: center;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-blue);
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}
.view-all-link {
  color: var(--brand-red);
  font-weight: 800;
  font-size: 0.95rem;
}
.view-all-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 800;
  box-shadow: var(--shadow-hover);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(231, 57, 59, 0.35);
}
.btn-ghost {
  display: inline-block;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: var(--brand-blue);
  color: #fff;
}
.btn-gold {
  display: inline-block;
  background: var(--brand-yellow);
  color: #0F172A;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 800;
  transition: all 0.2s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
}

/* Floating WhatsApp Button */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.2s ease;
}
.float-whatsapp:hover {
  transform: scale(1.1);
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #12163A 0%, #1A205C 60%, #12163A 100%);
  border-top: 4px solid var(--brand-blue);
  color: #fff;
  margin-top: 60px;
}
.footer-top {
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
}
.footer-brand-name span {
  color: var(--brand-gold);
}
.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 14px 0 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  color: var(--brand-gold);
}
.footer-col-title {
  color: var(--brand-gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--brand-coral);
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  opacity: 0.85;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.8;
}
.footer-legal-links {
  display: flex;
  gap: 20px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.drawer-inner {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  padding: 24px;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  float: right;
}
.drawer-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-weight: 700;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .header-nav .nav-link {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
