/*
Theme Name: Dandelion Aroma
Theme URI: https://dandelionaroma.com
Author: Dandelion Aroma
Author URI: https://dandelionaroma.com
Description: A soft pastel aromatherapy shop theme with WooCommerce support. Standalone custom theme carrying the Dandelion Aroma design language across the front page, shop, cart, checkout and account pages.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dandelion-aroma
Tags: e-commerce, custom-menu, featured-images, translation-ready, block-styles, wide-blocks, accessibility-ready
WC requires at least: 9.0
WC tested up to: 11.0
*/

:root {
  --cream: #fdf8f0;
  --blush: #f7d9d4;
  --petal: #f5c6cf;
  --lavender: #ddd4ee;
  --sage: #cfe0cf;
  --sky: #cfe3ee;
  --dandelion: #f6dd8e;
  --honey: #eec766;
  --ink: #5a4f55;
  --ink-soft: #897e84;
  --white: #fffdfa;
  --shadow: rgba(150, 120, 130, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* soft atmospheric background mesh */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 15% 12%, var(--blush) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 18%, var(--lavender) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 78% 82%, var(--sage) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 18% 88%, var(--sky) 0%, transparent 55%),
    var(--cream);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* floating dandelion seeds */
.seeds { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.seed {
  position: absolute;
  width: 14px; height: 14px;
  opacity: 0;
  animation: drift linear infinite;
}
.seed svg { width: 100%; height: 100%; }
@keyframes drift {
  0%   { transform: translateY(110vh) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-15vh) translateX(60px) rotate(220deg); opacity: 0; }
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* nav */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-size: 1.5rem; text-decoration: none; color: var(--ink); }
.logo span { color: var(--honey); }
.site-nav-links { display: flex; gap: 34px; list-style: none; align-items: center; }
.site-nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500;
  font-size: 0.95rem; transition: color 0.3s; position: relative;
}
.site-nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--honey); border-radius: 2px; transition: width 0.3s;
}
.site-nav-links a:hover { color: var(--ink); }
.site-nav-links a:hover::after { width: 100%; }

/* cart link in nav */
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--honey); color: var(--on-honey); border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.cart-link::after { display: none; }

/* hero */
.hero { text-align: center; padding: 80px 0 90px; position: relative; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-bottom: 24px;
  padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.05; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--honey); }
.hero p { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; margin: 0 auto 38px; }
.btn {
  display: inline-block; font-family: 'Quicksand', sans-serif; font-weight: 600;
  font-size: 1rem; padding: 16px 38px; border-radius: 999px; text-decoration: none;
  cursor: pointer; border: none; transition: transform 0.3s, box-shadow 0.3s; line-height: 1.2;
}
.btn-primary {
  background: var(--honey); color: var(--on-honey);
  box-shadow: 0 12px 30px rgba(238, 199, 102, 0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(238, 199, 102, 0.55); }
.btn-ghost { background: transparent; color: var(--ink); margin-left: 10px; border: 1.5px solid rgba(90,79,85,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.6); transform: translateY(-3px); }

.hero-bloom {
  width: clamp(150px, 22vw, 240px); margin: 56px auto 0; display: block;
  animation: sway 6s ease-in-out infinite;
}
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* section heading */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .eyebrow { background: rgba(255,255,255,0.45); }
.sec-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 14px; }
.sec-head p { color: var(--ink-soft); max-width: 480px; margin: 0 auto; }

.hero + section, #shop, #why, #story, #join { padding: 70px 0; }

/* products */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: 28px; padding: 34px 28px; text-align: center;
  box-shadow: 0 16px 40px var(--shadow); transition: transform 0.4s, box-shadow 0.4s;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.card::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px;
  border-radius: 50%; opacity: 0.5; transition: transform 0.5s;
}
.card:nth-child(1)::before { background: var(--blush); }
.card:nth-child(2)::before { background: var(--sage); }
.card:nth-child(3)::before { background: var(--lavender); }
.card:nth-child(4)::before { background: var(--sky); }
.card:nth-child(5)::before { background: var(--dandelion); }
.card:nth-child(6)::before { background: var(--petal); }
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 52px var(--shadow); }
.card:hover::before { transform: scale(1.4); }
.bottle { font-size: 3rem; margin-bottom: 18px; position: relative; z-index: 1; }
.card .thumb { position: relative; z-index: 1; margin-bottom: 18px; }
.card .thumb img { width: 100%; height: 200px; object-fit: cover; border-radius: 20px; }
.card h3 { font-size: 1.4rem; margin-bottom: 8px; position: relative; z-index: 1; }
.card h3 a { color: inherit; text-decoration: none; }
.card .note { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; position: relative; z-index: 1; }
.card .desc { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 20px; position: relative; z-index: 1; flex-grow: 1; }
.price { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--honey); position: relative; z-index: 1; margin-bottom: 18px; }
.price del { color: var(--ink-soft); font-size: 1.1rem; margin-right: 8px; opacity: 0.7; }
.card .btn { position: relative; z-index: 1; align-self: center; padding: 12px 30px; }

/* benefits */
.benefits { background: rgba(255,255,255,0.5); border-radius: 40px; padding: 64px 40px; backdrop-filter: blur(8px); }
.ben-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.ben { text-align: center; }
.ben .icon { font-size: 2.2rem; margin-bottom: 14px; }
.ben h3 { font-size: 1.15rem; margin-bottom: 8px; }
.ben p { font-size: 0.9rem; color: var(--ink-soft); }

/* story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-art {
  aspect-ratio: 1/1; border-radius: 36px;
  background:
    radial-gradient(circle at 50% 38%, var(--white) 0 14%, transparent 14.5%),
    radial-gradient(circle at 30% 30%, var(--dandelion) 0 6%, transparent 6.5%),
    radial-gradient(circle at 70% 30%, var(--dandelion) 0 6%, transparent 6.5%),
    radial-gradient(circle at 35% 62%, var(--dandelion) 0 6%, transparent 6.5%),
    radial-gradient(circle at 65% 62%, var(--dandelion) 0 6%, transparent 6.5%),
    linear-gradient(150deg, var(--blush), var(--lavender), var(--sage));
  box-shadow: 0 20px 50px var(--shadow);
  position: relative;
}
.story-art::after {
  content: '\1F33C'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem;
  animation: sway 7s ease-in-out infinite;
}
.story h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 20px; }
.story h2 em { font-style: italic; color: var(--honey); }
.story p { color: var(--ink-soft); margin-bottom: 18px; }

/* newsletter */
.signup { text-align: center; }
.signup-box {
  background: linear-gradient(150deg, var(--dandelion), var(--honey));
  border-radius: 40px; padding: 64px 40px; color: var(--on-honey);
  box-shadow: 0 22px 50px rgba(238, 199, 102, 0.4);
}
.signup-box h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.signup-box p { max-width: 440px; margin: 0 auto 32px; opacity: 0.95; }
.form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.form input {
  flex: 1; min-width: 220px; padding: 16px 24px; border: none; border-radius: 999px;
  font-family: 'Quicksand', sans-serif; font-size: 1rem; color: var(--ink); outline: none;
}
.form .btn { background: var(--ink); color: var(--white); }
.form .btn:hover { transform: translateY(-3px); }

/* footer */
.site-footer { padding: 60px 0 40px; text-align: center; }
.foot-links { display: flex; gap: 28px; justify-content: center; list-style: none; margin: 22px 0; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; transition: color 0.3s; }
.foot-links a:hover { color: var(--honey); }
.copy { font-size: 0.82rem; color: var(--ink-soft); }

/* reveal animation */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .site-nav-links { gap: 18px; }
  .site-nav-links .hide-mobile { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .ben-grid { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .ben-grid { grid-template-columns: 1fr; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}

/* ============================================================
   WooCommerce pages: shop, product, cart, checkout, account
   Styled to inherit the Dandelion Aroma pastel design language
   ============================================================ */

.woo-page { padding-top: 40px; padding-bottom: 90px; min-height: 50vh; }
.woo-page .sec-head { margin-bottom: 40px; }

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--white); border: none; border-left: 4px solid var(--honey-deep);
  border-radius: 16px; box-shadow: 0 10px 30px var(--shadow); color: var(--ink);
  padding: 18px 24px; margin-bottom: 28px; list-style: none;
}
.woocommerce-error { border-left-color: #b04a5a; }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { color: var(--honey); }

/* Buttons everywhere in WooCommerce */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--honey); color: var(--on-honey); font-family: 'Quicksand', sans-serif;
  font-weight: 600; border-radius: 999px; padding: 14px 32px; border: none;
  box-shadow: 0 12px 30px rgba(238, 199, 102, 0.4); transition: transform 0.3s, box-shadow 0.3s;
  text-shadow: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--honey); transform: translateY(-3px); box-shadow: 0 18px 38px rgba(238, 199, 102, 0.5);
}

/* Shop product loop */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; }
.woocommerce ul.products li.product {
  background: var(--white); border-radius: 28px; padding: 24px; text-align: center;
  box-shadow: 0 16px 40px var(--shadow); transition: transform 0.4s, box-shadow 0.4s;
  width: auto; margin: 0; float: none;
}
.woocommerce ul.products li.product:hover { transform: translateY(-8px); box-shadow: 0 24px 52px var(--shadow); }
.woocommerce ul.products li.product img { border-radius: 20px; margin-bottom: 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: 'Fraunces', serif; font-size: 1.3rem; padding: 0 0 8px; color: var(--ink); }
.woocommerce ul.products li.product .price { color: var(--honey); font-family: 'Fraunces', serif; }
.woocommerce ul.products li.product .button { margin-top: 8px; }

/* Single product */
.woocommerce div.product .product_title { font-family: 'Fraunces', serif; color: var(--ink); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--honey); font-family: 'Fraunces', serif; font-size: 1.8rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--cream); border-radius: 999px 999px 0 0; }
.woocommerce span.onsale {
  background: var(--petal); color: var(--ink); border-radius: 999px; font-family: 'Quicksand', sans-serif;
  font-weight: 700; min-height: auto; min-width: auto; padding: 8px 16px; line-height: 1;
}
.woocommerce .quantity input.qty { border-radius: 12px; border: 1.5px solid rgba(90,79,85,0.42); padding: 10px; font-family: 'Quicksand', sans-serif; }

/* Cart and checkout tables */
.woocommerce table.shop_table {
  border-radius: 24px; border: none; box-shadow: 0 16px 40px var(--shadow); overflow: hidden; background: var(--white);
}
.woocommerce table.shop_table th { background: var(--cream); font-family: 'Quicksand', sans-serif; color: var(--ink); }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #customer_details {
  background: var(--white); border-radius: 24px; box-shadow: 0 16px 40px var(--shadow); padding: 28px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout select {
  border-radius: 12px; border: 1.5px solid rgba(90,79,85,0.42); padding: 12px 16px;
  font-family: 'Quicksand', sans-serif; background: var(--white);
}

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li {
  background: var(--white); border-radius: 14px; margin-bottom: 10px; box-shadow: 0 8px 22px var(--shadow);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 14px 20px; text-decoration: none; color: var(--ink); font-weight: 500; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active { background: var(--honey); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--on-honey); }
.woocommerce-form-login,
.woocommerce-form-register {
  background: var(--white); border-radius: 24px; box-shadow: 0 16px 40px var(--shadow); padding: 32px;
}

@media (max-width: 860px) {
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

/* ============================================================
   v1.1.0 additions
   Accessibility, mobile navigation, editorial pages, comments
   and the WooCommerce Cart/Checkout blocks.
   ============================================================ */

/* ---- Readable colour tokens -------------------------------
   The original honey (#eec766) sits at 1.59:1 against white,
   which fails WCAG AA for text. The honey is kept as the brand
   fill; text on it now uses --ink, and honey text on light
   backgrounds uses --honey-deep. Revert by pointing
   --on-honey back at --white and --honey-deep at --honey.
   ------------------------------------------------------------ */
:root {
  --honey-deep: #8a6414;
  --on-honey: #4a4045;
  --ink-soft: #6f646a;
  --focus: #4a4045;
}

/* ---- Accessibility helpers ---- */
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; white-space: nowrap;
}
.skip-link:focus {
  clip-path: none; height: auto; width: auto; margin: 0; padding: 14px 24px;
  position: fixed; top: 12px; left: 12px; z-index: 9999;
  background: var(--white); color: var(--ink); border-radius: 999px;
  box-shadow: 0 10px 30px var(--shadow); text-decoration: none; font-weight: 600;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .seeds { display: none; }
}

/* ---- Contrast corrections ---- */
.btn-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt { color: var(--on-honey); }

.btn-primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { color: var(--on-honey); }

.price,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--honey-deep); }

.hero h1 em,
.story h2 em,
.logo span { color: var(--honey-deep); }

.signup-box { color: var(--on-honey); }
.signup-box p { opacity: 1; }
.signup-box .btn { background: var(--ink); color: var(--white); }

.foot-links a:hover,
.woocommerce-message::before,
.woocommerce-info::before { color: var(--honey-deep); }

/* ---- Navigation, including the mobile menu ---- */
.site-nav { gap: 20px; flex-wrap: wrap; }
.logo.custom img { max-height: 56px; width: auto; }
.nav-area { display: flex; align-items: center; gap: 34px; }
.nav-utils { display: flex; list-style: none; align-items: center; gap: 18px; margin: 0; padding: 0; }
.site-nav-links { margin: 0; padding: 0; }
.site-nav-links .sub-menu {
  position: absolute; left: 0; top: 130%; min-width: 200px; list-style: none;
  background: var(--white); border-radius: 18px; padding: 10px;
  box-shadow: 0 16px 40px var(--shadow); display: none; z-index: 20;
}
.site-nav-links li { position: relative; }
.site-nav-links li:hover > .sub-menu,
.site-nav-links li:focus-within > .sub-menu { display: block; }
.site-nav-links .sub-menu a { display: block; padding: 8px 14px; }
.site-nav-links .sub-menu a::after { display: none; }
.site-nav-links .current-menu-item > a { color: var(--ink); }

.nav-toggle {
  display: none; background: var(--white); border: none; cursor: pointer;
  width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 8px 22px var(--shadow);
  align-items: center; justify-content: center;
}
.nav-toggle-bars { display: grid; gap: 5px; }
.nav-toggle-bars span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-area {
    order: 4; width: 100%; display: none; flex-direction: column; align-items: stretch;
    gap: 6px; background: var(--white); border-radius: 22px; padding: 14px;
    box-shadow: 0 16px 40px var(--shadow); margin-bottom: 10px;
  }
  .nav-area.is-open { display: flex; }
  /* Without JS the toggle cannot work, so show the menu and hide the button. */
  .no-js .nav-toggle { display: none; }
  .no-js .nav-area { display: flex; }
  .site-nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav-links .hide-mobile { display: list-item; }
  .site-nav-links li a { display: block; padding: 12px 14px; font-size: 1rem; }
  .site-nav-links a::after { display: none; }
  .site-nav-links .sub-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 14px; }
  .nav-utils { padding: 10px 14px 4px; border-top: 1px solid rgba(90,79,85,0.12); }
}

/* ---- Editorial pages: posts, Contact, Privacy, Terms ---- */
.entry {
  background: var(--white); border-radius: 28px; padding: 44px;
  box-shadow: 0 16px 40px var(--shadow); max-width: 780px; margin: 0 auto;
}
.entry-thumb img { width: 100%; border-radius: 20px; margin-bottom: 28px; }
.entry-content > * { margin-bottom: 20px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.9rem; margin-top: 36px; }
.entry-content h3 { font-size: 1.4rem; margin-top: 28px; }
.entry-content a { color: var(--honey-deep); }
.entry-content ul,
.entry-content ol { padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 4px solid var(--honey-deep); padding: 6px 0 6px 22px;
  color: var(--ink-soft); font-style: italic;
}
.entry-content img,
.entry-content figure img { border-radius: 18px; height: auto; }
.entry-content figure { margin: 28px 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { padding: 10px 12px; border-bottom: 1px solid rgba(90,79,85,0.12); text-align: left; }
.entry-content pre {
  background: var(--cream); padding: 18px; border-radius: 16px; overflow-x: auto; font-size: 0.9rem;
}
.entry-content .alignwide { max-width: min(100%, 1000px); margin-left: auto; margin-right: auto; }
.entry-content .alignfull { max-width: 100%; }
.entry-meta { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--ink-soft); }
.entry-meta a { color: var(--honey-deep); }

.card-title { font-family: 'Fraunces', serif; font-size: 1.4rem; margin-bottom: 8px; position: relative; z-index: 1; }
.card-title a { color: inherit; text-decoration: none; }
.placeholder-note {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 4px;
}

.section-cta { text-align: center; margin-top: 48px; }
.centre-block { max-width: 560px; margin: 0 auto; text-align: center; }
.empty-note { text-align: center; color: var(--ink-soft); }
.search-form { margin-bottom: 28px; }
.search-form .search-field {
  flex: 1; min-width: 200px; padding: 14px 22px; border-radius: 999px;
  border: 1.5px solid rgba(90,79,85,0.42); font-family: 'Quicksand', sans-serif;
  font-size: 1rem; background: var(--white); color: var(--ink);
}

/* ---- Pagination and post navigation ---- */
.pagination-wrap { text-align: center; margin-top: 48px; }
.pagination-wrap .page-numbers,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  background: var(--white); border-radius: 999px; box-shadow: 0 8px 22px var(--shadow);
  color: var(--ink); text-decoration: none; margin: 0 4px; border: none;
}
.pagination-wrap .page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--honey); color: var(--on-honey); font-weight: 700;
}
.woocommerce nav.woocommerce-pagination ul { border: none; display: flex; justify-content: center; gap: 4px; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.post-nav { max-width: 780px; margin: 32px auto 0; }
.post-nav a { color: var(--honey-deep); text-decoration: none; }

/* ---- Comments ---- */
.comments-area { max-width: 780px; margin: 48px auto 0; background: var(--white);
  border-radius: 28px; padding: 40px; box-shadow: 0 16px 40px var(--shadow); }
.comments-title { font-family: 'Fraunces', serif; font-size: 1.6rem; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list li { margin-bottom: 24px; }
.comment-list .children { list-style: none; padding-left: 24px; margin-top: 20px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid rgba(90,79,85,0.42); font-family: 'Quicksand', sans-serif;
  background: var(--white); color: var(--ink);
}
.comment-form p { margin-bottom: 16px; }

/* ---- WooCommerce Cart and Checkout blocks (Woo 8.3+ default) ---- */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout { --wc-primary: var(--honey); }
.wc-block-components-sidebar,
.wc-block-components-order-summary,
.wp-block-woocommerce-checkout-order-summary-block {
  background: var(--white); border-radius: 24px; padding: 24px;
  box-shadow: 0 16px 40px var(--shadow); border: none;
}
.wc-block-components-button:not(.is-link) {
  background: var(--honey); color: var(--on-honey); border-radius: 999px;
  font-family: 'Quicksand', sans-serif; font-weight: 600; border: none;
  box-shadow: 0 12px 30px rgba(238, 199, 102, 0.4);
}
.wc-block-components-button:not(.is-link):hover { background: var(--honey); transform: translateY(-2px); }
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__container {
  border-radius: 12px; border: 1.5px solid rgba(90,79,85,0.42);
  font-family: 'Quicksand', sans-serif; background: var(--white);
}
.wc-block-components-totals-item__value,
.wc-block-formatted-money-amount { color: var(--honey-deep); font-family: 'Fraunces', serif; }
.wc-block-components-notice-banner {
  border-radius: 16px; box-shadow: 0 10px 30px var(--shadow); border-left: 4px solid var(--honey-deep);
}

/* ---- Small screens ---- */
@media (max-width: 520px) {
  .entry, .comments-area { padding: 28px 22px; border-radius: 22px; }
  .post-nav .nav-links { flex-direction: column; }
}

/* ---- Core navigation markup (pagination, comments, post nav) ----
   the_posts_pagination(), the_comments_pagination() and
   the_post_navigation() all emit <nav><div class="nav-links">. Those must
   not inherit the site menu layout, which is why the site menu uses
   .site-nav-links instead. These rules set them straight. */
.pagination-wrap .navigation,
.comments-area .navigation,
.post-nav .navigation { display: block; padding: 0; }
.pagination-wrap .nav-links,
.comments-area .nav-links { display: block; text-align: center; }
.post-nav .nav-links { display: flex; width: 100%; justify-content: space-between; gap: 20px; }

/* ---- Wide alignments inside editorial pages ---- */
.entry { max-width: 1084px; padding-left: clamp(22px, 5vw, 60px); padding-right: clamp(22px, 5vw, 60px); }
.entry-content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide,
.entry-content > .alignfull { max-width: 100%; }
.comments-area > * { max-width: 780px; margin-left: auto; margin-right: auto; }

/* ---- Newsletter placeholder feedback ----
   The form is intercepted by main.js. Without JS it would POST and silently
   discard the address, so it is hidden and a <noscript> note takes its place. */
.no-js #dandelion-signup { display: none; }
.signup-note { margin-top: 16px; font-weight: 600; min-height: 1.4em; }
