/*
Theme Name: KidShop Pro
Theme URI: https://kidshoppro.com
Author: KidShop Pro Team
Author URI: https://kidshoppro.com
Description: A vibrant, animated kids and baby products theme inspired by FirstCry. Features mega menu, Elementor compatibility, WooCommerce integration, and playful animations perfect for children's e-commerce stores.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kidshop-pro
Tags: e-commerce, woocommerce, elementor, kids, baby, animated, mega-menu, responsive
*/

/* ========================================
   CSS CUSTOM PROPERTIES
======================================== */
:root {
  --primary: #FF4D8D;
  --primary-dark: #E0366F;
  --primary-light: #FFB3CF;
  --secondary: #00C9E0;
  --secondary-dark: #009DB0;
  --secondary-light: #B3EEF5;
  --accent-yellow: #FFD700;
  --accent-orange: #FF8C42;
  --accent-purple: #9B59B6;
  --accent-green: #2ECC71;
  --bg-light: #FFF9FC;
  --bg-section: #FFF0F6;
  --text-dark: #2C1A2E;
  --text-medium: #5A3D5C;
  --text-light: #9B7EA0;
  --white: #FFFFFF;
  --border-light: #F0D6E8;
  --shadow-sm: 0 2px 12px rgba(255, 77, 141, 0.12);
  --shadow-md: 0 8px 32px rgba(255, 77, 141, 0.18);
  --shadow-lg: 0 16px 48px rgba(255, 77, 141, 0.24);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;
  --font-display: 'Nunito', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  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; }

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }

p { color: var(--text-medium); line-height: 1.7; }

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,77,141,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255,77,141,0.5);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,201,224,0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,201,224,0.5);
  color: var(--white);
}

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

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

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

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

/* ========================================
   CONTAINER
======================================== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   SECTION STYLES
======================================== */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-lg { padding: 100px 0; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .label {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-light); max-width: 520px; margin: 0 auto; }

/* ========================================
   ANIMATIONS
======================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.float { animation: float 3s ease-in-out infinite; }
.float-delay { animation: float 3s ease-in-out infinite 1s; }
.wiggle { animation: wiggle 2s ease-in-out infinite; }

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

/* ========================================
   TOP BAR
======================================== */
.top-bar {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.top-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
  background-size: 200% 100%;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.top-bar-marquee span {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

.top-bar-links { display: flex; gap: 20px; align-items: center; flex-shrink: 0; }
.top-bar-links a { color: rgba(255,255,255,0.9); font-size: 12px; transition: var(--transition); }
.top-bar-links a:hover { color: var(--accent-yellow); }

/* ========================================
   HEADER
======================================== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-main {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 24px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: wiggle 4s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(255,77,141,0.3);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  -webkit-text-fill-color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Search Bar */
.header-search {
  flex: 1;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
}

.header-search input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,77,141,0.1);
}

.header-search input::placeholder { color: var(--text-light); }

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: var(--transition-bounce);
  font-size: 16px;
}

.search-btn:hover { transform: translateY(-50%) scale(1.1); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-family: var(--font-body);
}

.header-action-btn:hover {
  background: var(--bg-section);
  color: var(--primary);
}

.header-action-btn .icon {
  font-size: 22px;
  position: relative;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-in 0.5s ease;
}

.header-action-btn .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-medium);
}

/* ========================================
   MEGA MENU NAVIGATION
======================================== */
.nav-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative;
  z-index: 999;
}

.nav-inner {
  display: flex;
  align-items: center;
  overflow: visible;
}

.nav-all-categories {
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 0 22px;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-all-categories:hover { background: #FFC800; }
.nav-all-categories .icon { font-size: 18px; }

/* Main Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  height: 50px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-item.active > .nav-link {
  color: var(--white);
  background: rgba(255,255,255,0.15);
  border-bottom-color: var(--accent-yellow);
}

.nav-link .arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.nav-item:hover .arrow { transform: rotate(180deg); }

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 700px;
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
  border-top: 3px solid var(--primary);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-col-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-col ul { display: flex; flex-direction: column; gap: 6px; }

.mega-col ul li a {
  font-size: 13px;
  color: var(--text-medium);
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}

.mega-col ul li a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.mega-col ul li a::before {
  content: '›';
  color: var(--primary);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}

.mega-col ul li a:hover::before { opacity: 1; }

/* Mega Menu Banner */
.mega-banner {
  grid-column: span 1;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-height: 150px;
}

.mega-banner .emoji { font-size: 40px; animation: float 3s ease-in-out infinite; }
.mega-banner h4 { font-size: 15px; color: var(--primary-dark); }
.mega-banner .btn { font-size: 12px; padding: 8px 16px; }

/* Simple Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 998;
  border-top: 3px solid var(--primary);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--text-medium);
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--bg-section);
  color: var(--primary);
  padding-left: 28px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--white);
  padding: 8px;
}

/* ========================================
   HERO SLIDER
======================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF0F6 0%, #F0FAFF 50%, #FFF8E1 100%);
}

.hero-slide {
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,77,141,0.08) 0%, transparent 70%);
}

/* Floating shapes */
.hero-shapes span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 4s ease-in-out infinite;
}

.hero-shapes span:nth-child(1) { width: 80px; height: 80px; background: var(--primary); top: 15%; left: 5%; }
.hero-shapes span:nth-child(2) { width: 50px; height: 50px; background: var(--secondary); top: 60%; left: 8%; animation-delay: 1s; }
.hero-shapes span:nth-child(3) { width: 100px; height: 100px; background: var(--accent-yellow); top: 20%; right: 10%; animation-delay: 2s; }
.hero-shapes span:nth-child(4) { width: 60px; height: 60px; background: var(--accent-purple); bottom: 20%; right: 15%; animation-delay: 0.5s; }
.hero-shapes span:nth-child(5) { width: 40px; height: 40px; background: var(--accent-green); bottom: 15%; left: 20%; animation-delay: 1.5s; }

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 20px;
  animation: bounce-in 0.6s ease;
}

.hero-text h1 {
  margin-bottom: 18px;
  animation: slide-up 0.7s ease 0.1s both;
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 17px;
  margin-bottom: 30px;
  animation: slide-up 0.7s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: slide-up 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  animation: slide-up 0.7s ease 0.4s both;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.hero-stat span { font-size: 12px; color: var(--text-light); }

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-main {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-xl);
  animation: float 4s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bounce-in 0.8s ease;
}

.hero-badge.badge-1 { top: 10%; right: 0; }
.hero-badge.badge-2 { bottom: 15%; left: 0; animation-delay: 0.3s; }

.hero-badge .b-icon { font-size: 28px; }
.hero-badge .b-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-dark); }
.hero-badge .b-text span { font-size: 11px; color: var(--text-light); }

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,77,141,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  width: 28px;
  background: var(--primary);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  z-index: 10;
}

.slider-arrow:hover { background: var(--primary); color: var(--white); transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* ========================================
   OFFER BANNERS STRIP
======================================== */
.offer-strip {
  background: var(--white);
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
}

.offer-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.offer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--bg-section), var(--white));
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition-bounce);
  cursor: pointer;
}

.offer-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.offer-icon { font-size: 30px; flex-shrink: 0; }
.offer-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.offer-card p { font-size: 11px; color: var(--text-light); margin: 0; }

/* ========================================
   CATEGORY GRID
======================================== */
.categories-section { background: var(--bg-section); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.category-card:hover::before { opacity: 0.3; }

.category-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  transition: var(--transition-bounce);
}

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

.category-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.category-card p {
  font-size: 11px;
  color: var(--text-light);
  margin: 0;
}

/* Color variants */
.cat-pink .category-icon-wrap { background: linear-gradient(135deg, #FFB3CF, #FF4D8D20); }
.cat-blue .category-icon-wrap { background: linear-gradient(135deg, #B3EEF5, #00C9E020); }
.cat-yellow .category-icon-wrap { background: linear-gradient(135deg, #FFE566, #FFD70020); }
.cat-purple .category-icon-wrap { background: linear-gradient(135deg, #D7B3F5, #9B59B620); }
.cat-green .category-icon-wrap { background: linear-gradient(135deg, #A8F5C8, #2ECC7120); }
.cat-orange .category-icon-wrap { background: linear-gradient(135deg, #FFD4A8, #FF8C4220); }

/* ========================================
   FEATURED PRODUCTS
======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-bounce);
  border: 2px solid transparent;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.product-image-wrap {
  position: relative;
  background: var(--bg-section);
  overflow: hidden;
  aspect-ratio: 1;
}

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

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

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
}

.badge-sale { background: var(--primary); color: white; }
.badge-new { background: var(--accent-green); color: white; }
.badge-hot { background: var(--accent-orange); color: white; }

.product-actions {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 12px;
  transition: bottom 0.3s ease;
}

.product-card:hover .product-actions { bottom: 0; }

.product-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-addcart {
  background: var(--primary);
  color: white;
  flex: 2;
}

.btn-addcart:hover { background: var(--primary-dark); }

.btn-wishlist {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--border-light) !important;
}

.btn-wishlist:hover { background: var(--primary); color: white; }

.product-info { padding: 16px; }

.product-brand {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars { color: var(--accent-yellow); font-size: 12px; }
.rating-count { font-size: 11px; color: var(--text-light); }

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-current {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}

.price-original {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(46,204,113,0.1);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* ========================================
   PROMO BANNERS
======================================== */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.promo-banner {
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.promo-banner:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

.promo-banner h3 {
  font-size: 24px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.promo-banner p {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  font-size: 14px;
}

.promo-banner .btn { position: relative; z-index: 1; align-self: flex-start; }

.promo-deco {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  opacity: 0.15;
  animation: float 4s ease-in-out infinite;
}

.promo-1 {
  background: linear-gradient(135deg, #FF4D8D, #FF8C42);
  color: white;
}

.promo-1 h3, .promo-1 p { color: white; }

.promo-2 {
  background: linear-gradient(135deg, #00C9E0, #9B59B6);
  color: white;
}

.promo-2 h3, .promo-2 p { color: white; }

/* ========================================
   BRAND LOGOS
======================================== */
.brands-section { background: var(--white); }

.brands-track {
  display: flex;
  gap: 30px;
  align-items: center;
  overflow: hidden;
}

.brands-inner {
  display: flex;
  gap: 30px;
  align-items: center;
  animation: brands-scroll 20s linear infinite;
  flex-shrink: 0;
}

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.brand-logo {
  background: var(--bg-section);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-medium);
  transition: var(--transition);
  white-space: nowrap;
}

.brand-logo:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--white);
  transform: scale(1.05);
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonials-section { background: var(--bg-section); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition-bounce);
  border: 2px solid transparent;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 60px;
  font-family: Georgia, serif;
  color: var(--primary-light);
  line-height: 1;
}

.testimonial-stars { color: var(--accent-yellow); font-size: 16px; margin-bottom: 14px; }
.testimonial-text { font-size: 14px; color: var(--text-medium); line-height: 1.7; margin-bottom: 20px; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 14px; }
.author-meta { font-size: 12px; color: var(--text-light); }

/* ========================================
   NEWSLETTER
======================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.newsletter-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-content h2, .newsletter-content p { color: white; }
.newsletter-content p { opacity: 0.85; font-size: 16px; margin: 12px 0 30px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.newsletter-form input:focus { box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 0 3px rgba(255,255,255,0.3); }

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand .logo-text { -webkit-text-fill-color: white; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin: 16px 0 24px; line-height: 1.7; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-bounce);
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.15);
  text-decoration: none;
}

.social-btn:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.15) translateY(-2px); }

.footer-col h4 {
  color: white;
  font-size: 15px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; }

.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-icon {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ========================================
   INNER PAGE STYLES
======================================== */
/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--bg-section), var(--secondary-light));
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: attr(data-emoji);
  position: absolute;
  font-size: 200px;
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 17px; max-width: 560px; margin: 0 auto 24px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { color: var(--border-light); }

/* Sidebar */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

.sidebar {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1.5px solid var(--border-light);
  position: sticky;
  top: 100px;
}

.sidebar-section { margin-bottom: 28px; }
.sidebar-section:last-child { margin-bottom: 0; }

.sidebar-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Filter Options */
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-medium);
  transition: color 0.2s;
}

.filter-option:hover { color: var(--primary); }

.filter-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.result-count { font-size: 14px; color: var(--text-light); }

.sort-select {
  padding: 10px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  cursor: pointer;
  outline: none;
}

/* ========================================
   CART PAGE
======================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  margin-bottom: 16px;
  transition: var(--transition);
}

.cart-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }

.cart-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.cart-item-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.cart-item-brand { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-section);
  border-radius: var(--radius-full);
  padding: 4px;
  width: fit-content;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.qty-btn:hover { background: var(--primary); color: white; }
.qty-input { width: 40px; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 15px; }

/* Order Summary */
.order-summary {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1.5px solid var(--border-light);
  position: sticky;
  top: 100px;
}

.order-summary h3 { margin-bottom: 24px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.summary-row:last-of-type { border-bottom: none; }
.summary-row.total { font-weight: 800; font-size: 18px; color: var(--text-dark); }
.summary-row.total .price { color: var(--primary); }

.coupon-input {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.coupon-input input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}

.coupon-input input:focus { border-color: var(--primary); }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-image { order: -1; }
  .hero-image-main { max-width: 320px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge { display: none; }
  .promo-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .offer-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-menu { min-width: 500px; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .top-bar-links { display: none; }
  .header-main { flex-wrap: wrap; }
  .header-search { order: 3; flex: 1 1 100%; }
  .nav-menu { display: none; }
  .mobile-menu-toggle { display: flex; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 50px 0; }
  .hero-slide { min-height: 400px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .offer-strip-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ========================================
   SCROLL TO TOP BUTTON
======================================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
}

.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: scale(1.15) translateY(-3px); }

/* ========================================
   LOADING SKELETON
======================================== */
.skeleton {
  background: linear-gradient(90deg, #f0e6ee 25%, #ffe0f0 50%, #f0e6ee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ========================================
   QUICK VIEW MODAL
======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,26,46,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-overlay.active .modal-box { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-section);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--primary); color: white; }

/* ========================================
   WISHLIST & COMPARE
======================================== */
.wishlist-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--white);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  z-index: 2;
}

.wishlist-icon:hover { background: var(--primary); color: white; transform: scale(1.15); }

/* ========================================
   ELEMENTOR COMPATIBILITY
======================================== */
.elementor-section { padding: 0; }
.elementor-kit-section { all: unset; }

/* ========================================
   CUSTOM CURSOR
======================================== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s ease;
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
  transform: translate(-50%, -50%);
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-section { background: var(--bg-section) !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .align-center { align-items: center; }
.gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-md); }
