/*
Theme Name: Jeanies Magnificent Soaps - Child Theme
Theme URI: https://jeaniesmagnificentsoaps.com
Description: Minimalist, elegant child theme for Jeanies Magnificent Soaps & Creams
Author: Jeanie's Magnificent Soaps
Author URI: https://jeaniesmagnificentsoaps.com
Template: generatepress
Version: 1.0
Text Domain: jeanies-soaps
Domain Path: /languages
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =============================================================================
   ROOT VARIABLES & COLOR SYSTEM
   ============================================================================= */

:root {
  /* Primary Palette */
  --cream: #faf6f0;
  --sand: #f0e8d8;
  --terracotta: #c8755a;
  --terra-dark: #a85c43;
  --rose: #e8b4b8;
  --coral: #f4a582;
  --sage: #8faa8b;
  --sage-dark: #6b8a67;
  --charcoal: #2c2420;
  --white: #fefdfb;
  --gray: #e8e0d8;
  --text-light: #7a6a60;

  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 5rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 36, 32, 0.08);
  --shadow-lg: 0 12px 32px rgba(44, 36, 32, 0.12);
}

/* =============================================================================
   RESET & BASE STYLES
   ============================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  font-weight: var(--font-weight-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-normal);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--terra-dark);
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */

nav {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(44, 36, 32, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo img {
  height: 54px;
  width: auto;
}

.site-logo .site-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: var(--font-weight-semibold);
  color: var(--charcoal);
}

.site-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-navigation a {
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.3s ease;
}

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

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--cream) 0%, var(--sand) 60%, #d9c8b0 100%);
  padding: 8rem 5% 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 170, 139, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 340px;
  margin: 0 auto 2rem;
  display: block;
}

.hero h1 {
  margin-bottom: 1.2rem;
  color: var(--charcoal);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: var(--font-weight-light);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: var(--terracotta);
  color: white;
}

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

.section {
  padding: 6rem 5%;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: var(--font-weight-light);
  max-width: 600px;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

.section.white {
  background: var(--white);
}

.section.cream {
  background: var(--cream);
}

.section.sand {
  background: var(--sand);
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================================
   WOOCOMMERCE PRODUCT GRID
   ============================================================================= */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}

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

.product:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 2rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.product-price {
  font-size: 1.4rem;
  color: var(--terracotta);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
}

.product-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-meta {
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: var(--font-weight-semibold);
  border-top: 1px solid var(--gray);
  padding-top: 0.8rem;
}

/* =============================================================================
   WOOCOMMERCE SINGLE PRODUCT PAGE
   ============================================================================= */

.single-product {
  background: var(--white);
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.product-gallery-thumb {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  aspect-ratio: 1;
  background: var(--cream);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-gallery-thumb:hover img {
  transform: scale(1.05);
}

.product-gallery-thumb.active {
  border-color: var(--terracotta);
}

.product-summary {
  padding: 2rem 0;
}

.product-summary h1 {
  margin-bottom: 1rem;
}

.product-summary .price {
  font-size: 2rem;
  color: var(--terracotta);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1.5rem;
}

.product-summary .description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.product-meta-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray);
}

.product-meta-group h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terracotta);
  margin-bottom: 0.8rem;
}

.product-meta-group ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* =============================================================================
   WOOCOMMERCE CART & CHECKOUT
   ============================================================================= */

.woocommerce-form {
  background: var(--cream);
  padding: 2rem;
  border-radius: 8px;
}

.woocommerce-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--charcoal);
}

.woocommerce-form input,
.woocommerce-form select,
.woocommerce-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.woocommerce-form input:focus,
.woocommerce-form select:focus,
.woocommerce-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 117, 90, 0.1);
}

.woocommerce-form button {
  background: var(--terracotta);
  color: white;
  padding: 0.9rem 2.4rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background 0.3s ease;
}

.woocommerce-form button:hover {
  background: var(--terra-dark);
}

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

.site-footer {
  background: var(--charcoal);
  color: rgba(250, 246, 240, 0.7);
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-section a {
  color: rgba(250, 246, 240, 0.7);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  color: rgba(250, 246, 240, 0.5);
}

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

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-navigation {
    display: none;
  }

  .hero {
    padding: 4rem 5% 2rem;
  }

  .hero-logo {
    width: 200px;
  }

  .section {
    padding: 3rem 5%;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .product-gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-meta-info {
    grid-template-columns: 1fr;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
    display: block;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.75rem 5%;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-logo {
    width: 150px;
    margin-bottom: 1rem;
  }

  .section {
    padding: 2rem 5%;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .product-gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}
