/*
Theme Name: Fragrome
Theme URI: https://fragrome.villagetrain.gr
Description: Fragrome - a lightweight child theme built on the GeneratePress parent theme for the Fragrome WooCommerce store (perfumery raw materials for makers). Branding is centralized in CSS custom properties (see :root) and theme.json design tokens, so colors and typography can be re-branded from one place once final brand assets are ready. Neutral, professional starting point tuned for a serious, educational materials shop.
Author: Fragrome
Author URI: https://fragrome.villagetrain.gr
Template: generatepress
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fragrome
Tags: e-commerce, woocommerce, minimal, custom-colors, block-styles
*/

/* ==========================================================================
   Fragrome design tokens
   --------------------------------------------------------------------------
   Change branding here. Rules below reference these variables, so updating a
   token re-skins the store. Keep in sync with theme.json. Palette is a
   neutral, professional placeholder (branding TBD): calm slate + a muted
   botanical/lab teal accent - reads "serious materials partner", not luxury
   and not cosmetics-DIY.
   ========================================================================== */
:root {
  /* Neutrals */
  --fragrome-color-ink:         #1f2933; /* primary text / slate */
  --fragrome-color-muted:       #66727d; /* secondary text */
  --fragrome-color-bg:          #ffffff; /* page background */
  --fragrome-color-surface:     #f5f6f5; /* subtle panels */
  --fragrome-color-surface-2:   #eceeed; /* deeper panel */
  --fragrome-color-border:      #e0e3e2; /* hairlines */

  /* Brand accents (placeholder) */
  --fragrome-color-primary:     #1f2933; /* primary action = slate ink */
  --fragrome-color-primary-ink: #ffffff;
  --fragrome-color-accent:      #2f5d5b; /* muted botanical teal */
  --fragrome-color-accent-ink:  #ffffff;
  --fragrome-color-accent-soft: #e6efee; /* accent tint for badges/notes */
  --fragrome-color-link:        #2f5d5b;
  --fragrome-color-link-hover:  #1f2933;

  /* Typography - clean, readable, professional (no luxury serif) */
  --fragrome-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fragrome-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fragrome-font-weight-heading: 650;
  --fragrome-letterspacing-heading: -0.01em;
  --fragrome-line-height-body: 1.65;

  /* Rhythm */
  --fragrome-radius: 6px;
  --fragrome-maxwidth: 1140px;
}

/* ==========================================================================
   Base typography (mapped to tokens)
   ========================================================================== */
body,
button,
input,
select,
textarea {
  font-family: var(--fragrome-font-body);
  color: var(--fragrome-color-ink);
}

body {
  background-color: var(--fragrome-color-bg);
  line-height: var(--fragrome-line-height-body);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.woocommerce-loop-product__title,
.product_title {
  font-family: var(--fragrome-font-heading);
  font-weight: var(--fragrome-font-weight-heading);
  letter-spacing: var(--fragrome-letterspacing-heading);
  color: var(--fragrome-color-ink);
}

a {
  color: var(--fragrome-color-link);
}
a:hover,
a:focus {
  color: var(--fragrome-color-link-hover);
}

/* GeneratePress content width alignment */
.grid-container {
  max-width: var(--fragrome-maxwidth);
}

/* ==========================================================================
   Buttons (GeneratePress + WooCommerce) mapped to tokens
   ========================================================================== */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--fragrome-color-primary);
  color: var(--fragrome-color-primary-ink);
  border-radius: var(--fragrome-radius);
  border: 0;
  text-shadow: none;
  transition: background-color 0.15s ease-in-out;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: var(--fragrome-color-accent);
  color: var(--fragrome-color-accent-ink);
}

/* WooCommerce primary call-to-action (alt buttons: add to cart, place order) */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background-color: var(--fragrome-color-accent);
  color: var(--fragrome-color-accent-ink);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: var(--fragrome-color-ink);
}

/* ==========================================================================
   Surfaces & structure
   ========================================================================== */
.site-header {
  background-color: var(--fragrome-color-bg);
  border-bottom: 1px solid var(--fragrome-color-border);
}

.site-footer,
.site-info {
  background-color: var(--fragrome-color-surface);
  color: var(--fragrome-color-muted);
}
.site-footer a,
.site-info a {
  color: var(--fragrome-color-ink);
}

/* WooCommerce store notice / info messages use the accent tint */
.woocommerce-info,
.woocommerce-store-notice {
  border-top-color: var(--fragrome-color-accent);
  background-color: var(--fragrome-color-accent-soft);
  color: var(--fragrome-color-ink);
}
.woocommerce-info::before {
  color: var(--fragrome-color-accent);
}

/* Product cards: calm, catalog-like separation (materials, not luxury) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid var(--fragrome-color-border);
  border-radius: var(--fragrome-radius);
  padding: 0.9em;
  background: var(--fragrome-color-bg);
}

/* On-sale / category badge tone */
.woocommerce span.onsale {
  background-color: var(--fragrome-color-accent);
  color: var(--fragrome-color-accent-ink);
}
