/*
Theme Name:   NOCHE Child
Theme URI:    https://nocheart.shop
Description:  NOCHE premium sleep brand theme (Storefront child). Light cream luxury palette per BRAND_GUIDE.md (24.08.2026 Ivan update).
Author:       NOCHE / ToptodayAI Co.
Template:     storefront
Version:      2.1.0
*/

/* ─── NOCHE Brand palette (BRAND_GUIDE.md, light luxury, 24.08.2026) ───
   Background:  warm light cream #F5EFE3 (NOT white, NOT navy)
   Accent:      black #1A1A1A + gold #C9A15A (champagne, kept)
   Gold text:   text-shadow 1-2px black for premium foil effect
   Serif:       Cormorant Garamond (wordmark/headings)
   Sans:        Jost / Inter
   Reference:   mantasleep.com light scheme (structure + colors)
*/

:root {
  --noche-cream: #F5EFE3;
  --noche-cream-2: #EDE4D1;
  --noche-cream-3: #E3D7BE;
  --noche-card: #FBF7EF;
  --noche-header: #FAF6EC;
  --noche-ink: #1A1A1A;
  --noche-ink-soft: #3A342B;
  --noche-gold: #C9A15A;
  --noche-gold-light: #D4B872;
  --noche-text: #1A1A1A;
  --noche-muted: #6B6255;
  --noche-line: rgba(201, 161, 90, 0.45);
  --noche-gold-shadow: rgba(26, 26, 26, 0.55);
  --noche-serif: "Cormorant Garamond", Georgia, serif;
  --noche-sans: "Jost", "Inter", -apple-system, sans-serif;
}

body {
  background-color: var(--noche-cream);
  color: var(--noche-text);
  font-family: var(--noche-sans);
}

h1, h2, h3, h4, .site-title, .woocommerce-loop-product__title,
.entry-title, .widget-title {
  font-family: var(--noche-serif);
  color: var(--noche-ink);
  letter-spacing: 0.02em;
}

a { color: var(--noche-ink); }
a:hover { color: var(--noche-gold); }

/* Gold accent text gets a black shadow for a premium foil effect (BRAND_GUIDE). */
.noche-logo-text, .site-header .site-title, .site-footer .widget-title,
.woocommerce .price .amount, .woocommerce-loop-product__title .amount,
.noche-hero .noche-hero-badge, .noche-trust b, .noche-guarantee h3,
.noche-bundle-offer .price-note, .noche-feature h3,
.noche-logo-text em {
  color: var(--noche-gold);
  text-shadow: 1px 1px 2px var(--noche-gold-shadow);
}

/* Header — light, not dark */
.site-header {
  background: var(--noche-header);
  border-bottom: 1px solid var(--noche-line);
}
.site-header .site-branding { margin: 0.5em 0; }
.site-header .site-title { margin: 0; }
/* Slogan under the logo — kept crisp: no italic (thin serif renders fuzzy at small
   sizes), explicit font-weight, no text-shadow blur, uppercase with clear spacing. */
.site-header .site-description {
  color: var(--noche-muted);
  font-style: normal;
  font-weight: 500;
  font-family: var(--noche-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78em;
  text-shadow: none;
}

/* Navigation */
.main-navigation ul.menu > li > a { color: var(--noche-ink); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8em; }
.main-navigation ul.menu > li > a:hover { color: var(--noche-gold); }
.main-navigation ul.menu > li.current-menu-item > a { color: var(--noche-gold); }

/* Buttons / CTA — black bg + gold text (contrast ~9.2:1) */
button, input[type="submit"], .button, .wp-block-button__link,
.woocommerce #respond input#submit, .woocommerce a.button,
.woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt,
.woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--noche-ink);
  color: var(--noche-gold-light) !important;
  font-family: var(--noche-sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
button:hover, .button:hover, .woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
  background: var(--noche-gold);
  color: #1a1a1a !important;
  transform: translateY(-1px);
}

/* Product cards — light warm cards on cream */
ul.products li.product {
  background: var(--noche-card);
  border: 1px solid var(--noche-line);
  border-radius: 4px;
  padding: 12px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
ul.products li.product:hover {
  box-shadow: 0 8px 28px rgba(201, 161, 90, 0.30);
  transform: translateY(-3px);
}
ul.products li.product .woocommerce-loop-product__title { color: var(--noche-ink); }
ul.products li.product .price { color: var(--noche-ink); }
ul.products li.product .price .amount { font-size: 1.25em; }

/* Delivery estimate under "Add to cart" on cards (functions.php) */
.noche-delivery-est {
  margin: 0.6em 0 0;
  font-size: 0.8em;
  line-height: 1.5;
  color: var(--noche-ink-soft);
  text-align: center;
}
.noche-delivery-est b { color: var(--noche-gold); font-weight: 600; text-shadow: 1px 1px 2px var(--noche-gold-shadow); }
.noche-delivery-est .noche-warehouse { display: block; color: var(--noche-muted); font-size: 0.9em; letter-spacing: 0.06em; text-transform: uppercase; }

/* Product single */
.woocommerce div.product .product_title { color: var(--noche-ink); font-size: 2.2em; }
.woocommerce div.product p.price { color: var(--noche-gold); font-size: 1.8em; text-shadow: 1px 1px 2px var(--noche-gold-shadow); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--noche-ink-soft); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--noche-gold); }
.woocommerce div.product .woocommerce-tabs .panel { background: var(--noche-card); border: 1px solid var(--noche-line); border-radius: 4px; padding: 1.5em; }

/* Cart / Checkout */
.woocommerce table.shop_table { background: var(--noche-card); border-color: var(--noche-line); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--noche-line); color: var(--noche-text); }
.woocommerce .cart_totals, .woocommerce-checkout .woocommerce-billing-fields, .woocommerce-checkout #order_review {
  background: var(--noche-card);
  border: 1px solid var(--noche-line);
  border-radius: 4px;
  padding: 1.5em;
}
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
  background: var(--noche-cream-2);
  border-radius: 4px;
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--noche-card);
  border: 1px solid var(--noche-line);
  color: var(--noche-text);
}

/* Footer — light, not dark */
.site-footer { background: var(--noche-cream-2); border-top: 1px solid var(--noche-line); }
.site-footer .widget, .site-footer .widget a { color: var(--noche-ink-soft); }
.site-footer .widget-title { color: var(--noche-gold); }

/* NOCHE hero banner (home) — light warm */
.noche-hero {
  background: radial-gradient(1100px 560px at 70% 18%, #FBF7EF 0%, var(--noche-cream) 60%);
  border-bottom: 1px solid var(--noche-line);
  text-align: center;
  padding: 4.5em 1em 3.5em;
}
.noche-hero h1 { font-size: 3.2em; margin-bottom: 0.2em; color: var(--noche-ink); }
.noche-hero p { color: var(--noche-muted); font-size: 1.15em; max-width: 640px; margin: 0 auto 1.6em; }
.noche-hero .noche-hero-badge {
  display: inline-block;
  border: 1px solid var(--noche-gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.7em;
  padding: 0.5em 1.2em;
  margin-bottom: 1.4em;
  background: rgba(201, 161, 90, 0.08);
}

/* NOCHE trust bar */
.noche-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  padding: 1.6em 1em;
  border-bottom: 1px solid var(--noche-line);
  background: var(--noche-card);
}
.noche-trust span { color: var(--noche-muted); font-size: 0.85em; letter-spacing: 0.1em; text-transform: uppercase; }
.noche-trust b { color: var(--noche-gold); }

/* NOCHE feature blocks (product page) */
.noche-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2em;
  margin: 2em 0;
}
.noche-feature {
  background: var(--noche-card);
  border: 1px solid var(--noche-line);
  border-radius: 4px;
  padding: 1.4em;
}
.noche-feature h3 { margin: 0 0 0.4em; font-size: 1.15em; }
.noche-feature p { color: var(--noche-muted); margin: 0; font-size: 0.92em; }

/* NOCHE guarantee strip */
.noche-guarantee {
  border: 1px solid var(--noche-gold);
  border-radius: 4px;
  padding: 1.4em 1.6em;
  margin: 2em 0;
  text-align: center;
  background: rgba(201, 161, 90, 0.08);
}
.noche-guarantee h3 { margin: 0 0 0.4em; }
.noche-guarantee p { color: var(--noche-ink-soft); margin: 0; font-size: 0.95em; }

/* NOCHE bundle offer (checkout upsell) */
.noche-bundle-offer {
  border: 1px solid var(--noche-gold);
  border-radius: 6px;
  padding: 1.6em;
  margin: 2em 0;
  background: linear-gradient(135deg, rgba(201,161,90,0.14), rgba(251,247,239,0.6));
  text-align: center;
}
.noche-bundle-offer h3 { margin: 0 0 0.6em; font-size: 1.4em; }
.noche-bundle-offer p { color: var(--noche-ink-soft); }
.noche-bundle-offer .price-note { font-weight: 600; }

/* Reviews placeholder (TODO - real reviews pending) */
.noche-reviews-todo {
  border: 1px dashed var(--noche-line);
  border-radius: 4px;
  padding: 1.2em;
  color: var(--noche-muted);
  font-style: italic;
  text-align: center;
}

/* NOCHE FAQ (product page accordion) */
.noche-faq details { border-bottom: 1px solid var(--noche-line); padding: 0.8em 0; }
.noche-faq summary { color: var(--noche-ink); cursor: pointer; font-weight: 500; }
.noche-faq summary:hover { color: var(--noche-gold); }
.noche-faq p { color: var(--noche-muted); margin: 0.5em 0 0; }

/* NOCHE logo text (rem size — independent of Storefront .beta/title nesting) */
.noche-logo-text { font-family: var(--noche-serif); font-size: 2.2rem; letter-spacing: 0.18em; }
.noche-logo-text em { font-style: normal; }

/* Storefront default page wrappers */
.storefront-full-width-content .site-main, .storefront-align-wide .site-main { margin-top: 1.5em; }
.woocommerce-breadcrumb { color: var(--noche-muted); }
.woocommerce-breadcrumb a { color: var(--noche-ink); }
.woocommerce-breadcrumb a:hover { color: var(--noche-gold); }

/* NOCHE Promise (product page trust block) */
.noche-promise {
  border: 1px solid var(--noche-line);
  border-radius: 6px;
  background: var(--noche-card);
  padding: 1.4em 1.8em;
  margin: 2em 0;
}
.noche-promise h3 { margin: 0 0 0.6em; color: var(--noche-ink); }
.noche-promise ul { margin: 0; padding: 0; list-style: none; }
.noche-promise li {
  position: relative;
  padding: 0.35em 0 0.35em 1.6em;
  color: var(--noche-ink-soft);
  font-size: 0.95em;
}
.noche-promise li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--noche-gold);
}
.noche-promise a { color: var(--noche-gold); }

/* Payment / security badges on cart & checkout (truthful set) */
.noche-pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  justify-content: center;
  margin: 1.2em 0;
}
.noche-pay-badge {
  border: 1px solid var(--noche-line);
  border-radius: 3px;
  background: var(--noche-card);
  padding: 0.35em 0.9em;
  font-size: 0.78em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--noche-ink-soft);
}

/* Bundles page grid (shortcode) */
.noche-bundles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4em; margin: 1.5em 0; }
.noche-bundles-grid .noche-bundle-offer { margin: 0; }

/* Guarantee / Returns page */
.noche-guarantee-page h2 { color: var(--noche-ink); margin-top: 1.6em; }
.noche-guarantee-page p { color: var(--noche-ink-soft); max-width: 720px; }
.noche-guarantee-page a { color: var(--noche-gold); }

/* Footer trust line */
.noche-footer-trust {
  text-align: center;
  font-size: 0.82em;
  letter-spacing: 0.06em;
  color: var(--noche-muted);
  padding: 0.4em 0 1.4em;
}
.noche-footer-trust a { color: var(--noche-gold); }

