/*
Theme Name: Astra Child - Anny Baker
Theme URI: https://ab.cloudsq.io
Description: Warm, artisanal bakery theme inspired by handcrafted elegance
Author: Anny Baker
Template: astra
Version: 1.0.0
*/

/* Import parent theme styles */
@import url('../astra/style.css');

/* ============================================
   COLOR PALETTE - Warm Artisanal Bakery
   ============================================ */
:root {
  /* Primary warm browns */
  --ab-brown-dark: #5D4037;
  --ab-brown-medium: #795548;
  --ab-brown-light: #A1887F;
  
  /* Soft pastels */
  --ab-cream: #FFF8E1;
  --ab-peach: #FFE0B2;
  --ab-blush: #FFE4E1;
  
  /* Neutral base */
  --ab-white: #FFFFFF;
  --ab-off-white: #FAFAF8;
  --ab-gray-light: #F5F5F3;
  
  /* Accent earthy tones */
  --ab-terracotta: #D4A574;
  --ab-sage: #B8C5A0;
  --ab-honey: #F4C430;
  
  /* Text colors */
  --ab-text-dark: #3E2723;
  --ab-text-medium: #6D4C41;
  --ab-text-light: #8D6E63;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

/* Elegant serif for headings */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--ab-text-dark);
  background-color: var(--ab-off-white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.site-title {
  font-family: 'Playfair Display', serif;
  color: var(--ab-brown-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 2rem;
  line-height: 1.4;
}

/* Italic section headers */
.section-header,
.wp-block-heading.italic-header {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ab-text-medium);
  font-size: 1.8rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background-color: var(--ab-white);
  box-shadow: 0 2px 8px rgba(61, 39, 35, 0.08);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1rem 0;
}

.main-navigation a {
  color: var(--ab-text-dark);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
}

.main-navigation a:hover {
  color: var(--ab-brown-medium);
  background-color: var(--ab-cream);
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */

.btn,
.button,
.wp-block-button__link,
.ast-button {
  background-color: var(--ab-brown-dark);
  color: var(--ab-white);
  padding: 1rem 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover,
.button:hover,
.wp-block-button__link:hover,
.ast-button:hover {
  background-color: var(--ab-brown-medium);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 64, 55, 0.3);
}

/* ============================================
   PRODUCT SECTIONS
   ============================================ */

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.woocommerce ul.products li.product {
  background: var(--ab-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--ab-brown-dark);
  color: var(--ab-cream);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: var(--ab-cream);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--ab-terracotta);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}


/* ============================================
   FIX: Override Astra dark global color palette
   ast-global-color-6 and -8 were set to #111111
   ============================================ */
:root {
  --ast-global-color-0: #5D4037;
  --ast-global-color-1: #795548;
  --ast-global-color-2: #3E2723;
  --ast-global-color-3: #6D4C41;
  --ast-global-color-4: #FFFFFF;
  --ast-global-color-5: #FFF8E1;
  --ast-global-color-6: #FAFAF8;
  --ast-global-color-7: #EDE8E3;
  --ast-global-color-8: #FAFAF8;
}
