/*
Theme Name: Simple Meadow
Theme URI: https://simplemeadow.com
Author: Simple Meadow
Author URI: https://simplemeadow.com
Description: A soft, dreamy boho theme for selling social media templates and digital downloads. Designed to work beautifully with WooCommerce.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-meadow
Tags: woocommerce, boho, digital-downloads, shop, minimal
*/

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

:root {
  --cream:    #faf6f0;
  --blush:    #e8c9bc;
  --rose:     #d4a899;
  --sage:     #b5c4b1;
  --dusty:    #c9b8c4;
  --text:     #4a3f3a;
  --muted:    #8a7a75;
  --white:    #ffffff;
  --font-ser: 'Cormorant Garamond', serif;
  --font-san: 'Jost', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: var(--font-san); font-weight: 300; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { font-family: var(--font-ser); font-weight: 300; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: 1.3rem; }
p { color: var(--muted); line-height: 1.9; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
section { padding: 5rem 5%; }
.section-label { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--rose); display: block; margin-bottom: 0.75rem; font-family: var(--font-san); }
em { font-style: italic; color: var(--rose); }

/* ── BUTTONS ── */
.btn, button.btn, a.btn, input[type="submit"] {
  display: inline-block; padding: 0.9rem 2.4rem;
  border-radius: 3rem; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: all 0.25s;
  font-family: var(--font-san); cursor: pointer; border: none;
}
.btn-primary, input[type="submit"] { background: var(--rose); color: var(--white); }
.btn-primary:hover, input[type="submit"]:hover { background: #c4998a; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,168,153,0.4); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--blush); }
.btn-outline:hover { background: var(--blush); }

/* ── NAVIGATION ── */
/* Header is managed by Elementor Header & Footer Builder plugin.
   These styles ensure the plugin's sticky header sits above Elementor content. */
#hfe-header, .hfe-header { z-index: 9999 !important; }
.elementor-location-header { z-index: 9999 !important; }

/* ── HERO ── */
.hero-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem;
  background: linear-gradient(160deg, #fdf9f4 0%, #f5ece6 50%, #ede4ee 100%);
}
.hero-tag { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--rose); margin-bottom: 1.5rem; display: block; }
.hero-section h1 { color: var(--text); margin-bottom: 1.5rem; }
.hero-section .hero-sub { font-size: 1rem; max-width: 480px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── MARQUEE ── */
.marquee-bar { background: var(--sage); padding: 0.75rem 0; overflow: hidden; }
.marquee-inner { display: flex; gap: 3rem; animation: marqueeScroll 18s linear infinite; white-space: nowrap; width: max-content; }
.marquee-inner span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── PRODUCT GRID (WooCommerce) ── */
.shop-section { max-width: 1200px; margin: 0 auto; }
.shop-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; }
ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.8rem; list-style: none !important; padding: 0 !important; margin: 0 !important; }
ul.products li.product { background: var(--white); border-radius: 12px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
ul.products li.product:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(74,63,58,0.1); }
ul.products li.product a img { width: 100%; height: 240px; object-fit: cover; }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-ser); font-size: 1.15rem; color: var(--text); padding: 1rem 1.4rem 0.4rem; font-weight: 300; }
ul.products li.product .price { display: block; padding: 0 1.4rem 1rem; font-size: 1rem; font-weight: 500; color: var(--text); }
ul.products li.product .price del { color: var(--muted); font-weight: 300; font-size: 0.85rem; }
ul.products li.product .button { margin: 0 1.4rem 1.4rem; display: block; text-align: center; background: var(--cream); border: 1px solid var(--blush); color: var(--text); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius: 2rem; transition: all 0.2s; font-family: var(--font-san); }
ul.products li.product .button:hover { background: var(--rose); color: white; border-color: var(--rose); }
.onsale { background: var(--rose) !important; color: white !important; border-radius: 2rem !important; font-size: 0.65rem !important; letter-spacing: 0.1em !important; padding: 0.25rem 0.7rem !important; }

/* ── SINGLE PRODUCT ── */
.single-product .product { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; max-width: 1100px; margin: 7rem auto 0; padding: 4rem 5%; }
.single-product .woocommerce-product-gallery__image img { border-radius: 16px; }
.single-product .product_title { font-family: var(--font-ser); font-size: 2.4rem; color: var(--text); margin-bottom: 1rem; font-weight: 300; }
.single-product .price { font-size: 1.4rem; font-weight: 500; color: var(--text); margin-bottom: 1.5rem; display: block; }
.single-product .woocommerce-product-details__short-description { color: var(--muted); line-height: 1.9; margin-bottom: 2rem; }
.single-product .single_add_to_cart_button { background: var(--rose); color: white; font-family: var(--font-san); }
.single-product .single_add_to_cart_button:hover { background: #c4998a; }

/* ── CATEGORIES ── */
.categories-section { background: linear-gradient(160deg, #f7f0f5 0%, #f0f5ee 100%); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.cat-card { border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 3/2; display: flex; align-items: flex-end; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card-inner { position: absolute; inset: 0; background: linear-gradient(to top, rgba(74,63,58,0.55), transparent); display: flex; align-items: flex-end; }
.cat-label { padding: 1.2rem; color: white; }
.cat-label h3 { font-family: var(--font-ser); font-size: 1.4rem; font-weight: 300; }
.cat-label p { font-size: 0.72rem; opacity: 0.85; margin-top: 0.2rem; color: rgba(255,255,255,0.8); }

/* ── WHY SECTION ── */
.why-section .why-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-visual { height: 500px; border-radius: 16px; background: linear-gradient(160deg, #f2e8ee, #e4ecdf); display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.why-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.why-points { display: flex; flex-direction: column; gap: 1.2rem; margin: 2rem 0; }
.why-point { display: flex; gap: 1rem; align-items: flex-start; }
.why-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--blush); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.why-point-text h4 { font-size: 0.88rem; font-weight: 500; margin-bottom: 0.2rem; color: var(--text); font-family: var(--font-san); }
.why-point-text p { font-size: 0.82rem; line-height: 1.6; margin: 0; }

/* ── TESTIMONIALS ── */
.testimonials-section { background: var(--text); }
.testimonials-section .section-label { color: var(--blush); }
.testimonials-section h2 { color: var(--white); margin-bottom: 3.5rem; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.testi-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 2rem; }
.testi-stars { color: var(--blush); font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.testi-card blockquote { color: rgba(255,255,255,0.75); font-size: 0.88rem; line-height: 1.8; font-style: italic; margin-bottom: 1.2rem; }
.testi-author { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blush); }

/* ── NEWSLETTER ── */
.newsletter-section { text-align: center; }
.newsletter-section .newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter-section p { margin-bottom: 2rem; }
.email-form { display: flex; gap: 0.75rem; }
.email-form input[type="email"] { flex: 1; padding: 0.85rem 1.4rem; border: 1px solid var(--blush); border-radius: 3rem; background: var(--white); font-family: var(--font-san); font-size: 0.88rem; color: var(--text); outline: none; }
.email-form input[type="email"]:focus { border-color: var(--rose); }
.email-form input[type="email"]::placeholder { color: var(--muted); }

/* ── FOOTER ── */
.site-footer { background: var(--text); color: rgba(255,255,255,0.6); padding: 4rem 5% 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-logo { font-family: var(--font-ser); font-size: 1.6rem; font-weight: 300; color: var(--white); display: block; margin-bottom: 1rem; }
.footer-logo span { color: var(--blush); font-style: italic; }
.footer-brand p { font-size: 0.82rem; line-height: 1.8; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blush); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 0.83rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--blush); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { font-size: 0.75rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: rgba(255,255,255,0.5); font-size: 0.75rem; letter-spacing: 0.1em; transition: color 0.2s; }
.footer-social a:hover { color: var(--blush); }

/* ── WOOCOMMERCE OVERRIDES ── */
.woocommerce-notices-wrapper, .woocommerce-message { background: var(--blush); color: var(--text); border: none; border-radius: 8px; padding: 1rem 1.5rem; margin-bottom: 1.5rem; }
.woocommerce-cart-form table { width: 100%; border-collapse: collapse; }
.woocommerce-cart-form td, .woocommerce-cart-form th { padding: 1rem; border-bottom: 1px solid var(--blush); }
.woocommerce-checkout #order_review { background: var(--white); border-radius: 12px; padding: 2rem; }

/* ── PAGE CONTENT ── */
.page-content { max-width: 800px; margin: 8rem auto 4rem; padding: 0 5%; }
.page-content h1 { margin-bottom: 2rem; }
.page-content p { margin-bottom: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .why-section .why-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .single-product .product { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .main-nav { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .shop-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
