/*
Theme Name: Simple Pleasures (Hello Elementor Child)
Template: hello-elementor
Version: 1.1.0
Description: Child theme for Simple Pleasures Natural Products. Built by VWS.
Text Domain: sp-child
*/
:root{--sp-forest:#11370A;--sp-deep:#0F2508;--sp-cream:#FAF9EC;--sp-ivory:#FFFEF8;--sp-sage:#E8EDDC;--sp-gold:#CFA679;--sp-ink:#1A2A14}
body{background:var(--sp-cream);color:var(--sp-ink);font-family:"Nunito Sans",sans-serif}
h1,h2,h3,h4{font-family:"Fraunces",serif;color:var(--sp-forest)}
.sp-pending{background:#fff3cd;color:#6b4e00;border:1px dashed #cfa679;padding:.15em .5em;border-radius:4px;font-size:.85em}

/*
  Simple Pleasures — custom CSS
  Matches mockup/styles.css (palette, type, buttons, cards, product loops).

  Use either:
    1) Paste into the Hello Elementor child theme style.css (after the theme header), or
    2) Appearance / Elementor Site Settings → Custom CSS.

  Fonts: Fraunces + Nunito Sans. The child theme in
  build/hello-elementor-child/functions.php already enqueues them from Google Fonts.
  If you only paste this into Elementor Site Settings, also add those two families
  under Site Settings → Global Fonts (or keep the child-theme enqueue).

  Template CSS classes used in build/elementor/*.json are prefixed sp-.
  WooCommerce loop styles target the default [products] / [product_categories] markup.
*/

:root {
  --forest: #11370A;
  --forest-deep: #0F2508;
  --leaf: #5F7E50;
  --sage: #718154;
  --cream: #FAF9EC;
  --ivory: #FFFEF8;
  --gold: #CFA679;
  --wood: #73541F;
  --amber: #914411;
  --lavender: #7D6A8B;
  --ink: #1A2A14;
  --muted: #4A5840;
  --line: #D8DCC8;
  --sage-wash: #E8EDDC;
  --why-text: #E4E8D4;
}

/* -------------------------------------------------------------------------
   Base (Hello Elementor child)
   ------------------------------------------------------------------------- */

body {
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3, h4, .elementor-heading-title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Kickers (heading widgets styled as small caps) */
.sp-hero .elementor-widget-heading p,
.sp-page-hero .elementor-widget-heading p,
.sp-skins .elementor-widget-heading p,
.sp-featured .elementor-widget-heading p,
.sp-why .elementor-widget-heading p,
.sp-about-teaser .elementor-widget-heading p,
.sp-about .elementor-widget-heading p,
.sp-contact .elementor-widget-heading p,
.sp-faq .elementor-widget-heading p,
.sp-shop-group .elementor-widget-heading p {
  font-family: "Nunito Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 10px;
}

.sp-why .elementor-widget-heading p {
  color: var(--gold);
}

/* -------------------------------------------------------------------------
   Buttons (Elementor button widget)
   ------------------------------------------------------------------------- */

.elementor-button,
.elementor-button-wrapper .elementor-button {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px !important;
  padding: 14px 24px;
  transition: background 0.15s, color 0.15s;
}

.elementor-button:hover,
.elementor-button:focus {
  background-color: var(--forest-deep) !important;
  color: var(--cream) !important;
}

/* Ghost / outline buttons: forest text, transparent fill */
.elementor-button.elementor-button-link[style],
.sp-skin-card .elementor-button,
.sp-btns .elementor-widget-button + .elementor-widget-button .elementor-button {
  /* second button in a row is the ghost style when the widget sets a transparent bg */
}

body .elementor-widget-button .elementor-button:not(.elementor-button-primary, [class*="elementor-button-"]):hover {
  /* keep specificity low; hover already handled */
}

/* WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.added_to_cart,
.button.alt,
.wp-element-button {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--forest);
  color: var(--cream);
  border: 1.5px solid var(--forest);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.button.alt:hover,
.wp-element-button:hover {
  background: var(--forest-deep);
  color: var(--cream);
  border-color: var(--forest-deep);
}

/* -------------------------------------------------------------------------
   Header / footer (theme chrome — refine once Theme Builder or the child
   header is in place). These rules are safe no-ops until the markup exists.
   ------------------------------------------------------------------------- */

.site-header,
header.site,
.sp-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.site-footer,
footer.site,
.sp-footer {
  background: var(--forest-deep);
  color: var(--why-text);
}

/* -------------------------------------------------------------------------
   Page sections (Elementor containers with sp-* classes)
   ------------------------------------------------------------------------- */

.sp-page-hero {
  border-bottom: 1px solid var(--line);
}

.sp-hero-photo img,
.sp-about-photo img,
.sp-about-teaser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.sp-hero-photo img {
  border-radius: 0;
  object-position: center 60%;
}

.sp-skin-card,
.sp-why-card {
  border-radius: 18px;
}

.sp-skin-card {
  border: 1px solid var(--line);
  min-height: 220px;
}

.sp-skin-card .elementor-heading-title {
  font-size: 20px;
}

.sp-skin-card .elementor-widget-text-editor {
  font-size: 14.5px;
}

.sp-photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  border: 1px dashed var(--leaf);
  text-align: center;
}

.sp-contact-form,
.email-placeholder {
  /* the pending-email note is a text-editor widget; keep the mockup callout look */
}

.sp-faq .elementor-icon-list-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.sp-faq .elementor-icon-list-text {
  color: var(--muted);
}

/* About / contact icon lists */
.elementor-widget-icon-list .elementor-icon-list-icon {
  color: var(--forest);
}

/* -------------------------------------------------------------------------
   WooCommerce product loops (home featured + shop landing shortcodes)
   ------------------------------------------------------------------------- */

.woocommerce ul.products,
ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}

.woocommerce columns-3 ul.products,
.woocommerce ul.products.columns-3,
ul.products.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.woocommerce ul.products.columns-4,
ul.products.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.woocommerce ul.products li.product,
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: 0 0 18px;
}

.woocommerce ul.products li.product a img,
ul.products li.product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--forest);
  padding: 16px 16px 0;
  margin: 0;
}

.woocommerce ul.products li.product .price,
ul.products li.product .price {
  padding: 8px 16px 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.woocommerce ul.products li.product .button,
ul.products li.product .button {
  margin: 12px 16px 0;
}

/* Category tiles from [product_categories] */
.woocommerce ul.products li.product-category,
ul.products li.product-category {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
ul.products li.product-category h2,
ul.products li.product-category mark {
  font-family: Fraunces, Georgia, serif;
  color: var(--forest);
  background: transparent;
}

/* Single product (after the CSV import; no Elementor product template yet) */
.woocommerce div.product .product_title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  color: var(--forest);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}

.woocommerce div.product .woocommerce-variation,
.woocommerce div.product table.variations {
  margin: 16px 0;
}

.woocommerce div.product table.variations select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  color: var(--ink);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
  background: var(--sage-wash);
  border-top: 0;
  border-left: 3px solid var(--leaf);
  color: var(--muted);
  border-radius: 0 12px 12px 0;
}

/* Pending-confirmation callout that leads every product short description */
.woocommerce-product-details__short-description,
.woocommerce-LoopProduct-link + .description {
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   Forms (when a real form replaces the contact shortcode)
   ------------------------------------------------------------------------- */

.elementor-field-group input,
.elementor-field-group select,
.elementor-field-group textarea,
.comment-form input,
.comment-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  color: var(--ink);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .woocommerce ul.products,
  ul.products,
  .woocommerce ul.products.columns-4,
  ul.products.columns-4,
  .woocommerce ul.products.columns-3,
  ul.products.columns-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-hero-photo img {
    min-height: 380px;
  }
}

@media (max-width: 600px) {
  .woocommerce ul.products,
  ul.products,
  .woocommerce ul.products.columns-4,
  ul.products.columns-4,
  .woocommerce ul.products.columns-3,
  ul.products.columns-3 {
    grid-template-columns: 1fr;
  }
}
