﻿/*
Theme Name: Ember Within
Theme URI: https://emberwithin.shop
Author: Ember Within
Description: Custom WooCommerce theme converted from the Ember Within HTML mockups.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ember-within
*/
:root {
  --black: #0d0c0a;
  --black-soft: #141310;
  --black-card: #111009;
  --gold: #c8a96e;
  --gold-light: #e2c88a;
  --gold-dim: #8a6e3e;
  --cream: #f0e8d8;
  --cream-dim: #9a9080;
  --white: #faf7f2;
  --border: rgba(200,169,110,0.14);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--cream); font-family: var(--font-body); font-weight: 300; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; }

.announcement { background: #1a1916; text-align: center; padding: 9px 20px; font-size: 10px; letter-spacing: .16em; color: var(--cream-dim); text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.announcement span { display: flex; align-items: center; gap: 10px; }
.announcement span::before { content: '\00b7'; color: var(--gold); font-size: 16px; line-height: 1; }
.announcement span:first-child::before { display: none; }

.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 20px 60px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(13,12,10,.97); backdrop-filter: blur(14px); z-index: 100; }
.nav-left, .nav-right { display: flex; gap: 28px; align-items: center; }
.nav-left a, .nav-right a { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-dim); transition: color .2s; }
.nav-left a:hover, .nav-right a:hover { color: var(--gold); }
.nav-logo { font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: .12em; color: var(--white); text-transform: uppercase; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.nav-logo sup { font-size: 9px; color: var(--gold); }

.section { padding: 100px 60px; }
.section-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section-heading { font-family: var(--font-display); font-size: clamp(36px,4vw,58px); font-weight: 300; color: var(--white); line-height: 1.1; margin: 0; }
.section-heading em { color: var(--gold); font-style: italic; }
.section-sub { color: var(--cream-dim); max-width: 560px; font-size: 14px; }
.section-split { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-centered { text-align: center; margin-bottom: 50px; }
.btn-primary, .button, button.single_add_to_cart_button { background: var(--gold); color: var(--black); border: 0; padding: 14px 28px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; transition: background .2s; }
.btn-primary:hover, .button:hover, button.single_add_to_cart_button:hover { background: var(--gold-light); color: var(--black); }
.btn-ghost { color: var(--cream-dim); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 82vh; align-items: center; padding: 0 60px; gap: 60px; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(200,169,110,.06), transparent 60%); pointer-events: none; }
.hero-text { position: relative; padding: 60px 0; }
.hero-eyebrow { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.hero-headline { font-family: var(--font-display); font-size: clamp(52px,6vw,88px); font-weight: 300; line-height: 1.05; color: var(--white); margin: 0 0 12px; }
.hero-headline em { color: var(--gold); font-style: italic; display: block; }
.hero-sub { font-size: 13px; line-height: 1.8; color: var(--cream-dim); max-width: 420px; margin: 24px 0 44px; }
.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-image { position: relative; height: 580px; display: flex; align-items: center; justify-content: center; }
.hero-img-placeholder, .look-image, .process-image, .main-image, .product-img-inner, .cat-img { background: linear-gradient(145deg,#16120a,#201a0c 45%,#0d0c0a); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-img-placeholder { width: 100%; height: 100%; position: relative; }
.hero-img-placeholder::after, .main-image::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 55% 50%, rgba(200,169,110,.16), transparent 60%); pointer-events: none; }
.hero-candle-icon { font-size: 100px; opacity: .38; }
.hero-badge { position: absolute; bottom: 40px; left: 40px; background: rgba(13,12,10,.86); border: 1px solid var(--border); padding: 16px 22px; backdrop-filter: blur(8px); }
.hero-badge p { margin: 0; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); }
.hero-badge strong { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--gold); display: block; }
.trust-bar { display: flex; justify-content: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--black-soft); overflow-x: auto; }
.trust-item { flex: 1; min-width: 180px; text-align: center; padding: 20px 30px; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--cream-dim); border-right: 1px solid var(--border); white-space: nowrap; }

.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-item { min-height: 260px; border: 1px solid var(--border); background: var(--black-card); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.cat-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.cat-img { flex: 1; min-height: 170px; font-size: 54px; }
.cat-label { padding: 20px; border-top: 1px solid var(--border); }
.cat-label h3 { margin: 0 0 4px; font-family: var(--font-display); color: var(--white); font-size: 24px; font-weight: 300; }
.cat-label p { margin: 0; color: var(--cream-dim); font-size: 12px; }
.shop-look { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; background: var(--black-soft); }
.look-image { min-height: 460px; font-size: 90px; }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.process-image { min-height: 430px; font-size: 90px; }
.process-step { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--border); }
.step-num { color: var(--gold); font-family: var(--font-display); font-size: 30px; }
.process-step h3 { margin: 0 0 6px; color: var(--white); font-family: var(--font-display); font-size: 28px; font-weight: 300; }
.process-step p { margin: 0; color: var(--cream-dim); }
.email-section { text-align: center; background: var(--black-soft); }
.email-section .section-sub { margin: 14px auto 28px; }

.breadcrumb { padding: 28px 60px 0; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold-dim); }
.page-title { padding: 28px 60px 48px; }
.page-title h1 { font-family: var(--font-display); font-size: clamp(56px,7vw,96px); font-weight: 300; color: var(--white); letter-spacing: 0; line-height: 1; margin: 0; }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; padding: 0 60px 100px; align-items: start; }
.sidebar { padding-right: 50px; }
.filter-group { margin-bottom: 32px; border-top: 1px solid var(--border); padding-top: 20px; color: var(--cream-dim); font-size: 12px; }
.filter-title, .widget-title { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--white); font-weight: 500; margin-bottom: 16px; }
.filter-group ul { list-style: none; padding: 0; margin: 0; }
.filter-group li { display: flex; justify-content: space-between; margin-bottom: 10px; }
.shop-main { min-width: 0; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; color: var(--cream-dim); font-size: 12px; }
.woocommerce-ordering select { background: transparent; color: var(--cream); border: 1px solid var(--border); padding: 10px 34px 10px 12px; }
.woocommerce-result-count { margin: 0; }
.products, .products-grid, .woocommerce ul.products { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .product-card { width: auto !important; margin: 0 !important; float: none !important; background: transparent; color: var(--cream); }
.product-card-link { display: block; }
.product-img-wrap { position: relative; aspect-ratio: 1 / 1.22; margin-bottom: 14px; }
.product-img-inner { width: 100%; height: 100%; font-size: 54px; }
.product-img-inner img { width: 100%; height: 100%; object-fit: cover; }
.sale-badge, .onsale { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--black); padding: 5px 9px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; border-radius: 0; min-height: 0; line-height: 1; }
.product-category, .also-cat { margin: 0 0 4px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dim); }
.product-category a { color: var(--gold-dim); }
.product-name, .woocommerce-loop-product__title { margin: 0 0 4px !important; padding: 0 !important; color: var(--white); font-family: var(--font-display); font-size: 23px !important; font-weight: 300; line-height: 1.2; }
.product-scent { margin: 0 0 8px; color: var(--cream-dim); font-size: 12px; min-height: 36px; }
.product-pricing, .price { color: var(--cream) !important; font-size: 13px !important; font-weight: 400 !important; }
.product-pricing del, .price del { color: var(--cream-dim); opacity: .65; margin-right: 8px; }
.product-pricing ins, .price ins { color: var(--gold); text-decoration: none; }
.product-card .add_to_cart_button { width: 100%; margin-top: 12px; }

.product-section { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 0 40px; padding: 40px 60px 80px; align-items: start; }
.thumb-col { display: flex; flex-direction: column; gap: 10px; }
.thumb { width: 68px; height: 68px; padding: 0; background: var(--black-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: .7; }
.thumb.active, .thumb:hover { border-color: var(--gold); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.main-image { aspect-ratio: 1 / 1; position: relative; }
.main-image img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.main-icon { font-size: 180px; opacity: .28; }
.product-info-panel { padding-top: 4px; }
.product-category-label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.product-category-label a { color: var(--gold); }
.product-title { font-family: var(--font-display); font-size: clamp(38px,4vw,58px); font-weight: 300; color: var(--white); line-height: 1.05; margin: 0 0 18px; }
.product-price-main { font-size: 18px; color: var(--cream); font-weight: 400; margin: 0 0 24px; }
.product-desc { color: var(--cream-dim); font-size: 14px; margin-bottom: 24px; }
.trust-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.trust-pill { border: 1px solid var(--border); padding: 12px; min-height: 76px; }
.trust-pill strong { display: block; color: var(--white); font-size: 12px; }
.trust-pill span { display: block; color: var(--cream-dim); font-size: 11px; }
.cta-stack form.cart { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.quantity .qty { width: 72px; min-height: 44px; background: transparent; border: 1px solid var(--border); color: var(--cream); text-align: center; }
.variations { width: 100%; margin-bottom: 12px; }
.variations th, .variations td { display: block; text-align: left; padding: 0 0 8px; }
.variations label { color: var(--gold); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.variations select { width: 100%; background: var(--black-card); border: 1px solid var(--border); color: var(--cream); padding: 12px; }
.accordion { border-top: 1px solid var(--border); margin-top: 24px; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-header { width: 100%; background: transparent; border: 0; color: var(--white); display: flex; justify-content: space-between; padding: 18px 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.accordion-body { display: none; color: var(--cream-dim); font-size: 13px; padding: 0 0 18px; }
.accordion-item.open .accordion-body { display: block; }
.share-row { margin-top: 24px; color: var(--cream-dim); }
.also-love { border-top: 1px solid var(--border); }
.also-love-header { margin-bottom: 34px; text-align: center; }
.also-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.also-heading { font-family: var(--font-display); font-size: 42px; font-weight: 300; margin: 6px 0 0; color: var(--white); }
.sticky-bar { position: sticky; bottom: 0; z-index: 90; display: flex; justify-content: space-between; align-items: center; padding: 12px 60px; background: rgba(13,12,10,.96); border-top: 1px solid var(--border); backdrop-filter: blur(12px); }
.sticky-product { display: flex; align-items: center; gap: 12px; }
.sticky-dot { width: 36px; height: 36px; background: var(--gold); border-radius: 50%; display: block; }
.sticky-name, .sticky-price { margin: 0; }
.sticky-name { color: var(--white); font-size: 13px; }
.sticky-price { color: var(--cream-dim); font-size: 12px; }
.sticky-btn { background: var(--gold); color: var(--black); padding: 12px 28px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }

.site-footer { border-top: 1px solid var(--border); background: var(--black-soft); padding: 60px 60px 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 42px; }
.footer-brand-name { font-family: var(--font-display); font-size: 24px; letter-spacing: .12em; color: var(--white); text-transform: uppercase; }
.footer-brand p, .footer-col a, .footer-bottom { color: var(--cream-dim); font-size: 12px; }
.footer-col h4 { margin: 0 0 14px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 46px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-payments { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-payments span { border: 1px solid var(--border); padding: 3px 8px; }

.page-content { max-width: 960px; margin: 0 auto; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--black-soft); color: var(--cream); border-top-color: var(--gold); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--gold); }

@media (max-width: 980px) {
  .site-nav { padding: 18px 24px; flex-wrap: wrap; gap: 18px; }
  .nav-logo { position: static; transform: none; order: -1; width: 100%; text-align: center; }
  .nav-left, .nav-right { justify-content: center; flex: 1 1 100%; gap: 18px; flex-wrap: wrap; }
  .hero, .shop-look, .process-grid, .shop-layout, .product-section { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; }
  .hero-image { height: 420px; }
  .section, .page-title, .breadcrumb, .site-footer, .sticky-bar { padding-left: 24px; padding-right: 24px; }
  .categories-grid, .products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { padding-right: 0; margin-bottom: 34px; }
  .thumb-col { flex-direction: row; order: 2; }
  .main-image { order: 1; }
  .product-info-panel { order: 3; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .announcement { gap: 10px; }
  .hero-headline { font-size: 48px; }
  .section { padding-top: 70px; padding-bottom: 70px; }
  .section-split, .shop-toolbar, .sticky-bar { align-items: flex-start; flex-direction: column; }
  .categories-grid, .products, .woocommerce ul.products, .trust-pills, .footer-top { grid-template-columns: 1fr; }
  .hero-badge { left: 20px; bottom: 20px; }
  .page-title h1 { font-size: 54px; }
  .sticky-btn { width: 100%; text-align: center; justify-content: center; }
}


/* Elementor editing support */
.page-main,
.elementor-front-page,
.elementor-full-width-page {
  min-height: 50vh;
}

.page-content-area > .elementor,
.elementor-front-page > .elementor,
.elementor-full-width-page > .elementor {
  width: 100%;
}

body.elementor-page .page-main,
body.elementor-page .elementor-front-page,
body.elementor-page .elementor-full-width-page {
  background: var(--black);
}

.standard-page-title {
  padding-bottom: 28px;
}

