/*
Theme Name: Flatsome Child - Pet Products Edition
Description: Modern, premium pet products child theme for Flatsome
Author: UX Themes (Modified for Pet Store)
Template: flatsome
Version: 4.0
*/

/*************** GOOGLE FONTS ***************/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/*************** CSS VARIABLES - PET THEME COLOR PALETTE ***************/
:root {
  /* Primary Colors - Vibrant Pet Theme */
  --color-primary: #FF6B6B;
  /* Coral Pink - Energetic */
  --color-primary-dark: #EE5A52;
  /* Darker Coral */
  --color-primary-light: #FF8E8E;
  /* Light Coral */

  /* Secondary Colors */
  --color-secondary: #4ECDC4;
  /* Teal - Fresh */
  --color-secondary-dark: #3DB8AF;
  /* Darker Teal */
  --color-secondary-light: #6FD9D1;
  /* Light Teal */

  /* Accent Colors */
  --color-accent: #FFE66D;
  /* Golden Yellow - Playful */
  --color-accent-orange: #FF9A3D;
  /* Warm Orange - Dogs */
  --color-accent-purple: #A78BFA;
  /* Soft Purple - Cats */
  --color-accent-green: #6BCF7F;
  /* Fresh Green - General Pets */

  /* Neutral Colors */
  --color-dark: #2D3748;
  /* Charcoal */
  --color-gray: #718096;
  /* Medium Gray */
  --color-light-gray: #E2E8F0;
  /* Light Gray */
  --color-white: #FFFFFF;
  --color-off-white: #F7FAFC;

  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #FF9A3D 100%);
  --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #6FD9D1 100%);
  --gradient-hero: linear-gradient(135deg, #FFE66D 0%, #FF9A3D 50%, #FF6B6B 100%);
  --gradient-purple: linear-gradient(135deg, #A78BFA 0%, #6366F1 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 20px rgba(255, 107, 107, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/*************** GLOBAL TYPOGRAPHY ***************/
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-font,
.header-nav,
.nav-uppercase>li>a {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1,
.h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
}

h2,
.h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h3,
.h3 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

h4,
.h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

/*************** HEADER & NAVIGATION ***************/
.header {
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}

.header-nav a {
  font-weight: 500;
  transition: color var(--transition-base);
}

.header-nav a:hover {
  color: var(--color-primary) !important;
  transform: translateY(-2px);
  transition: all var(--transition-base);
}

.logo {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.05);
}

/*************** BUTTONS - PREMIUM STYLE ***************/
.button,
.button-primary,
.add_to_cart_button,
.single_add_to_cart_button,
.woocommerce-Button {
  font-family: var(--font-heading) !important;
  font-weight: 600;
  border-radius: var(--radius-lg) !important;
  padding: 1rem 2rem !important;
  transition: all var(--transition-base) !important;
  position: relative;
  overflow: hidden;
  border: none !important;
  box-shadow: var(--shadow-md);
}

.button.primary,
.button-primary,
.add_to_cart_button,
.single_add_to_cart_button {
  background: var(--gradient-primary) !important;
  color: white !important;
}

.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: var(--shadow-lg), var(--shadow-glow) !important;
}

.button.secondary {
  background: var(--gradient-secondary) !important;
  color: white !important;
}

/*************** HERO SECTION ***************/
.section-bg,
.banner {
  position: relative;
  overflow: hidden;
}

.section-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  opacity: 0.15;
  z-index: 0;
}

.slider .img.has-hover>img {
  transition: transform var(--transition-slow);
}

.slider .img.has-hover:hover>img {
  transform: scale(1.05);
}

/*************** PRODUCT CARDS - GLASSMORPHISM ***************/
.product,
.col-inner,
.box-text {
  border-radius: var(--radius-md) !important;
  transition: all var(--transition-base);
}

.product {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--color-primary-light);
}

.product-small .box-image {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

.product-small img {
  transition: transform var(--transition-slow);
}

.product-small:hover img {
  transform: scale(1.1);
}

/*************** BADGES & LABELS ***************/
.badge,
.callout-badge,
.onsale {
  background: var(--gradient-primary) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  padding: 0.4rem 0.8rem !important;
  box-shadow: var(--shadow-md);
}

.badge.new {
  background: var(--gradient-secondary) !important;
}

.badge.featured {
  background: var(--color-accent) !important;
  color: var(--color-dark) !important;
}

/*************** PRODUCT CATEGORIES ***************/
.category-image,
.category-link img {
  border-radius: var(--radius-lg) !important;
  transition: transform var(--transition-slow), filter var(--transition-base);
  overflow: hidden;
}

.category-link:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.category-title {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

/*************** ICONS & DECORATIONS ***************/
.icon-box {
  transition: transform var(--transition-base);
}

.icon-box:hover {
  transform: translateY(-5px);
}

.icon-box i,
.icon-box .icon {
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.icon-box:hover i,
.icon-box:hover .icon {
  color: var(--color-accent-orange);
  transform: scale(1.1);
}

/*************** PRICING ***************/
.price {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  font-size: 1.5rem !important;
}

.price del {
  color: var(--color-gray) !important;
  opacity: 0.6;
}

.price ins {
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*************** FORMS & INPUTS ***************/
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
  border-radius: var(--radius-sm) !important;
  border: 2px solid var(--color-light-gray) !important;
  transition: all var(--transition-base);
  font-family: var(--font-body);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
  outline: none;
}

/*************** ANIMATIONS ***************/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.animated-on-scroll {
  animation: fadeInUp 0.6s ease-out;
}

/*************** CART & CHECKOUT ***************/
.cart-icon strong {
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
}

.cart_item {
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  background: var(--color-off-white);
  margin-bottom: var(--spacing-sm);
  transition: background var(--transition-base);
}

.cart_item:hover {
  background: white;
  box-shadow: var(--shadow-sm);
}

/*************** FOOTER ***************/
.footer {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a202c 100%);
  color: var(--color-light-gray);
}

.footer a {
  color: var(--color-light-gray);
  transition: color var(--transition-base);
}

.footer a:hover {
  color: var(--color-primary-light);
}

/*************** UTILITY CLASSES ***************/
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
}

.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/*************** PET-SPECIFIC STYLING ***************/
/* Dog Category */
.dog-category,
.product-category-dogs {
  accent-color: var(--color-accent-orange);
}

.dog-category .category-title,
.product-category-dogs h3 {
  color: var(--color-accent-orange);
}

/* Cat Category */
.cat-category,
.product-category-cats {
  accent-color: var(--color-accent-purple);
}

.cat-category .category-title,
.product-category-cats h3 {
  color: var(--color-accent-purple);
}

/* General Pets */
.pet-category,
.product-category-pets {
  accent-color: var(--color-accent-green);
}

/*************** TABLET STYLES ***************/
@media only screen and (max-width: 64em) {

  h1,
  .h1 {
    font-size: 2.5rem;
  }

  h2,
  .h2 {
    font-size: 2rem;
  }

  h3,
  .h3 {
    font-size: 1.5rem;
  }

  .button {
    padding: 0.875rem 1.5rem !important;
  }
}

/*************** MOBILE STYLES ***************/
@media only screen and (max-width: 48em) {

  h1,
  .h1 {
    font-size: 2rem;
  }

  h2,
  .h2 {
    font-size: 1.75rem;
  }

  h3,
  .h3 {
    font-size: 1.25rem;
  }

  .button {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important;
  }

  .product:hover {
    transform: translateY(-4px);
  }

  /* Reduce glass effects on mobile for performance */
  .glass,
  .product {
    backdrop-filter: none;
    background: white;
  }

  /* Simpler animations on mobile */
  .animated-on-scroll {
    animation: none;
  }
}

/*************** ACCESSIBILITY ***************/
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*************** CUSTOM ADDITIONS BELOW ***************/

/* === MODERN DESIGN SYSTEM (PHASE C) === */
:root {
  /* === TYPOGRAPHY === */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-headings: 'Poppins', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */

  /* === COLORS === */
  /* Neutral Base Palette */
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;

  /* Accent Color (Warm Orange) - Overrides previous */
  --color-primary: #F97316;
  --color-primary-light: #FB923C;
  --color-primary-dark: #EA580C;

  /* Semantic Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;

  /* === SPACING === */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */
  --space-24: 6rem;
  /* 96px */

  /* === BORDERS === */
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* === TRANSITIONS === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BUTTON STYLES === */
.button,
.btn,
.button-primary {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.button-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
}

.button-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* === CARD STYLES === */
.product-card,
.category-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

/* === FIXES FOR CONTRAST & COLORS === */

/* Ensure headings in dark/light sections respect the setting */
.text-light h1,
.text-light h2,
.text-light h3,
.text-light p,
.dark h1,
.dark h2,
.dark h3,
.dark p,
[text_color="light"] h1,
[text_color="light"] h2,
[text_color="light"] p {
  color: #FFFFFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* improved readability */
}

/* Force Primary Buttons to Orange */
.button.primary,
.button-primary,
button.primary,
button.button-primary,
.button[class*="primary"] {
  background-color: var(--color-primary) !important;
  background: var(--color-primary) !important;
  color: #FFFFFF !important;
  border: none !important;
}

.button.primary:hover,
.button-primary:hover {
  background-color: var(--color-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4) !important;
}