/*
Theme Name: A Gentle Space
Theme URI: https://agentlespacewellness.com
Description: Custom child theme for A Gentle Space — wellness brand. Built on Twenty Twenty-Five.
Author: Ezy Web Pro
Author URI: https://ezywebpro.com
Template: twentytwentyfive
Version: 1.0.0
Text Domain: ags-theme
*/

/* ═══════════════════════════════════════════
   A GENTLE SPACE — BRAND SYSTEM
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  --ags-green-dark: #1B3C2D;
  --ags-green-mid: #2F5B3F;
  --ags-cream: #F1EBDF;
  --ags-cream-light: #F7F3EB;
  --ags-white: #FFFFFF;
  --ags-text: #3A3A3A;
  --ags-font-display: 'DM Serif Display', serif;
  --ags-font-body: 'DM Sans', sans-serif;
}

/* ═══ GLOBAL RESET ═══ */
body {
  font-family: var(--ags-font-body) !important;
  background: var(--ags-cream) !important;
  color: var(--ags-text) !important;
  margin: 0;
  overflow-x: hidden;
}

/* Hide default TT5 header/footer */
.wp-site-blocks > header,
.wp-site-blocks > footer,
header.wp-block-template-part,
footer.wp-block-template-part {
  display: none !important;
}

/* ═══ CUSTOM NAV ═══ */
.ags-nav {
  position: fixed; top: 0; width: 100%; z-index: 900;
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(241,235,223,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.4s, padding 0.4s;
  box-sizing: border-box;
}
.ags-nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.06); padding: 0.6rem 2rem; }
.ags-nav-logo img { height: 48px; transition: height 0.4s; }
.ags-nav.scrolled .ags-nav-logo img { height: 36px; }
.ags-nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; margin: 0; padding: 0; }
.ags-nav-links a { text-decoration: none; color: var(--ags-green-dark); font-size: 0.9rem; font-weight: 500; position: relative; }
.ags-nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--ags-green-dark); transition: width 0.3s; }
.ags-nav-links a:hover::after { width: 100%; }
.ags-nav-cta { background: var(--ags-green-dark) !important; color: var(--ags-cream) !important; padding: 0.6rem 1.4rem; border-radius: 50px; font-size: 0.85rem !important; }
.ags-nav-cta::after { display: none !important; }
.ags-mobile-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.ags-mobile-btn span { display: block; width: 24px; height: 2px; background: var(--ags-green-dark); }
.ags-mobile-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--ags-cream); z-index: 99999; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; }
.ags-mobile-overlay.open { display: flex; }
.ags-mobile-overlay a { text-decoration: none; color: var(--ags-green-dark); font-size: 1.3rem; font-family: var(--ags-font-display); }
.ags-mobile-close { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.ags-mobile-close::before, .ags-mobile-close::after { content: ''; position: absolute; width: 26px; height: 2.5px; background: var(--ags-green-dark); border-radius: 2px; }
.ags-mobile-close::before { transform: rotate(45deg); }
.ags-mobile-close::after { transform: rotate(-45deg); }

/* ═══ WOOCOMMERCE SHOP PAGE ═══ */
.woocommerce-page .wp-site-blocks { padding-top: 5rem; }

.woocommerce .ags-shop-hero {
  background: var(--ags-green-dark); text-align: center; padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.woocommerce .ags-shop-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--ags-green-dark) 0%, var(--ags-green-mid) 50%, var(--ags-green-dark) 100%);
  background-size: 200% 200%; animation: agsGrad 10s ease infinite;
}
.woocommerce .ags-shop-hero > * { position: relative; z-index: 1; }
.woocommerce .ags-shop-hero h1 {
  font-family: var(--ags-font-display) !important; font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--ags-cream) !important; margin: 0 0 0.8rem; line-height: 1.15;
}
.woocommerce .ags-shop-hero p {
  font-size: 1.1rem; color: rgba(241,235,223,0.65); font-weight: 300; max-width: 600px; margin: 0 auto;
}

/* Product Grid */
.woocommerce ul.products {
  max-width: 1000px; margin: 3rem auto !important; padding: 0 2rem;
  display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.woocommerce ul.products li.product {
  background: var(--ags-white); border-radius: 20px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s; border: 1px solid rgba(27,60,45,0.06);
  margin: 0 !important; padding: 0 !important; width: 100% !important; float: none !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}
.woocommerce ul.products li.product a img {
  width: 100% !important; height: 300px !important; object-fit: cover; margin: 0 !important;
  border-radius: 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ags-font-display) !important; font-size: 1.3rem !important;
  color: var(--ags-green-dark) !important; padding: 1.2rem 1.5rem 0.3rem !important;
}
.woocommerce ul.products li.product .price {
  font-family: var(--ags-font-display) !important; font-size: 1.4rem !important;
  color: var(--ags-green-dark) !important; padding: 0 1.5rem !important;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
  background: var(--ags-green-dark) !important; color: var(--ags-cream) !important;
  border-radius: 50px !important; padding: 0.7rem 1.5rem !important;
  font-family: var(--ags-font-body) !important; font-size: 0.85rem !important;
  font-weight: 500 !important; margin: 1rem 1.5rem 1.5rem !important;
  transition: all 0.3s !important; display: inline-block !important;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--ags-green-mid) !important; transform: translateY(-2px);
}

/* ═══ SINGLE PRODUCT ═══ */
.woocommerce div.product {
  max-width: 1100px; margin: 2rem auto !important; padding: 5rem 2rem 3rem;
}
.woocommerce div.product div.images,
.woocommerce div.product .woocommerce-product-gallery {
  width: 50% !important; float: left;
}
.woocommerce div.product div.images img {
  border-radius: 16px !important;
}
.woocommerce div.product .woocommerce-product-gallery__image img {
  border-radius: 16px !important;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img {
  border-radius: 8px !important;
}
.woocommerce div.product div.summary {
  width: 45% !important; float: right; padding-left: 2rem;
}
.woocommerce div.product .product_title {
  font-family: var(--ags-font-display) !important; font-size: 2rem !important;
  color: var(--ags-green-dark) !important; margin-bottom: 0.5rem !important;
}
.woocommerce div.product .price {
  font-family: var(--ags-font-display) !important; font-size: 1.8rem !important;
  color: var(--ags-green-dark) !important; margin-bottom: 1rem !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 0.95rem; line-height: 1.7; color: var(--ags-text); font-weight: 300; margin-bottom: 1.5rem;
}
.woocommerce div.product .woocommerce-product-details__short-description ul {
  list-style: none; padding: 0; margin: 1rem 0;
}
.woocommerce div.product .woocommerce-product-details__short-description li {
  padding: 0.3rem 0 0.3rem 1.2rem; position: relative; font-size: 0.9rem; line-height: 1.6;
}
.woocommerce div.product .woocommerce-product-details__short-description li::before {
  content: ''; position: absolute; left: 0; top: 0.65rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ags-green-mid); opacity: 0.4;
}
.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button {
  background: var(--ags-green-dark) !important; color: var(--ags-cream) !important;
  border-radius: 50px !important; padding: 1rem 2.5rem !important;
  font-family: var(--ags-font-body) !important; font-size: 1rem !important;
  font-weight: 500 !important; border: none !important; cursor: pointer;
  transition: all 0.3s !important;
}
.woocommerce div.product form.cart .button:hover {
  background: var(--ags-green-mid) !important; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,60,45,0.25);
}
.woocommerce div.product .quantity .qty {
  border-radius: 8px !important; border: 1.5px solid rgba(27,60,45,0.15) !important;
  padding: 0.5rem !important; font-family: var(--ags-font-body) !important;
}

/* ═══ REVIEWS ═══ */
.woocommerce #reviews h2 {
  font-family: var(--ags-font-display) !important; color: var(--ags-green-dark) !important;
}
.woocommerce #reviews .comment-text {
  border-radius: 12px !important; border-color: rgba(27,60,45,0.08) !important;
}
.woocommerce #review_form #respond .form-submit input {
  background: var(--ags-green-dark) !important; color: var(--ags-cream) !important;
  border-radius: 50px !important; padding: 0.8rem 2rem !important;
  font-family: var(--ags-font-body) !important; border: none !important;
}

/* ═══ CART & CHECKOUT ═══ */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 1000px; margin: 0 auto; padding: 6rem 2rem 3rem;
}
.woocommerce table.shop_table {
  border-radius: 12px !important; overflow: hidden; border: 1px solid rgba(27,60,45,0.08) !important;
}
.woocommerce table.shop_table th {
  background: var(--ags-green-dark) !important; color: var(--ags-cream) !important;
  font-family: var(--ags-font-body) !important; font-weight: 500;
}
.woocommerce .checkout .form-row input,
.woocommerce .checkout .form-row textarea,
.woocommerce .checkout .form-row select {
  border-radius: 8px !important; border: 1.5px solid rgba(27,60,45,0.15) !important;
  padding: 0.7rem 1rem !important; font-family: var(--ags-font-body) !important;
}
.woocommerce #place_order,
.woocommerce .cart .button,
.woocommerce .checkout .button {
  background: var(--ags-green-dark) !important; color: var(--ags-cream) !important;
  border-radius: 50px !important; font-family: var(--ags-font-body) !important;
  font-weight: 500 !important; padding: 1rem 2.5rem !important; border: none !important;
}

/* ═══ TABS ═══ */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important; margin: 2rem 0 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-radius: 8px 8px 0 0 !important; background: var(--ags-cream-light) !important;
  border-color: rgba(27,60,45,0.08) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--ags-white) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--ags-font-body) !important; color: var(--ags-green-dark) !important;
  font-weight: 500 !important;
}
.woocommerce div.product .woocommerce-tabs .panel {
  border-radius: 0 0 12px 12px !important; border-color: rgba(27,60,45,0.08) !important;
  background: var(--ags-white) !important;
}

/* ═══ CUSTOM FOOTER ═══ */
.ags-footer {
  background: var(--ags-green-dark); padding: 2.5rem 2rem; text-align: center;
}
.ags-footer-inner { max-width: 1100px; margin: 0 auto; }
.ags-footer img { height: 36px; filter: brightness(10); margin-bottom: 0.8rem; }
.ags-footer-copy { color: rgba(241,235,223,0.35); font-size: 0.78rem; line-height: 1.8; }
.ags-footer-copy a { color: rgba(241,235,223,0.5); text-decoration: none; }

/* ═══ WHATSAPP ═══ */
.ags-whatsapp {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 800;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform 0.3s; text-decoration: none;
}
.ags-whatsapp:hover { transform: scale(1.1); }
.ags-whatsapp svg { width: 32px; height: 32px; fill: #fff; }

/* ═══ ANIMATIONS ═══ */
@keyframes agsGrad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 700px) {
  .ags-nav-links { display: none; }
  .ags-mobile-btn { display: flex; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; padding: 0 1rem; }
  .woocommerce div.product div.images,
  .woocommerce div.product .woocommerce-product-gallery { width: 100% !important; float: none; }
  .woocommerce div.product div.summary { width: 100% !important; float: none; padding: 1.5rem 0 0; }
}
