/*
Theme Name:  DIY Naturals
Description: Lightweight natural beauty theme for DIY, soap, haircare & essential oil websites. Works standalone — no parent theme required.
Author:      Your Name
Version:     2.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diy-naturals
Tags:        custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce
*/

/* ================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================================ */
:root {
  --sage:         #6B8F6E;
  --sage-dk:      #3D5E40;
  --sage-lt:      #EBF2EB;
  --cream:        #FAF7F2;
  --cream-dk:     #F0EBE1;
  --terra:        #C4714A;
  --terra-lt:     #FBF0EB;
  --brown:        #8B6914;
  --text:         #2C2C2A;
  --text-md:      #5A5A57;
  --text-lt:      #9A9A97;
  --border:       rgba(107,143,110,0.15);
  --border-md:    rgba(107,143,110,0.30);
  --white:        #FFFFFF;
  --shadow-sm:    0 1px 4px rgba(44,44,42,0.08);
  --shadow-md:    0 4px 16px rgba(44,44,42,0.10);
  --shadow-lg:    0 8px 32px rgba(44,44,42,0.12);
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-pill:999px;
  --ease:  cubic-bezier(0.22,1,0.36,1);
  --dur:   0.25s;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max-w: 1240px;
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ================================================================
   GOOGLE FONTS
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem,5vw,3.6rem); }
h2 { font-size: clamp(1.5rem,3.5vw,2.6rem); }
h3 { font-size: clamp(1.1rem,2.5vw,1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.dn-container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.dn-section        { padding-block: 4rem; }
.dn-section--white { background: var(--white); }
.dn-section--cream { background: var(--cream); }
.dn-section--sage  { background: var(--sage-lt); }
.dn-section--dark  { background: var(--sage-dk); }

.dn-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }
.dn-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.5rem; }
.dn-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1.25rem; }

.dn-section-header { text-align: center; margin-bottom: 2.5rem; }
.dn-section-header .eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); display: block; margin-bottom: .4rem; }
.dn-section-header h2 { margin-bottom: .6rem; }
.dn-section-header p { color: var(--text-md); max-width: 520px; margin-inline: auto; font-size: .95rem; }

/* ================================================================
   BUTTONS
   ================================================================ */
.dn-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .75rem 1.75rem; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--dur) var(--ease); text-decoration: none; white-space: nowrap;
}
.dn-btn-primary  { background: var(--sage); color: var(--white); border-color: var(--sage); }
.dn-btn-primary:hover  { background: var(--sage-dk); border-color: var(--sage-dk); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dn-btn-outline  { background: transparent; color: var(--sage-dk); border-color: var(--sage); }
.dn-btn-outline:hover  { background: var(--sage); color: var(--white); transform: translateY(-2px); }
.dn-btn-white    { background: var(--white); color: var(--sage-dk); border-color: var(--white); }
.dn-btn-white:hover    { background: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ================================================================
   ANNOUNCEMENT BAR
   ================================================================ */
.dn-announce {
  background: var(--sage-dk); color: var(--white);
  text-align: center; padding: .55rem 1rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .04em;
}
.dn-announce a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }

/* ================================================================
   HEADER
   ================================================================ */
.dn-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 900;
  transition: box-shadow var(--dur) var(--ease);
}
.dn-header.scrolled { box-shadow: var(--shadow-md); }

.dn-header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .875rem;
}

/* Logo */
.dn-logo { display: flex; flex-direction: column; flex-shrink: 0; text-decoration: none; }
.dn-logo-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--sage-dk); line-height: 1; }
.dn-logo-tag  { font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.dn-logo img  { max-height: 52px; width: auto; }

/* Desktop nav */
.dn-nav { display: flex; align-items: center; gap: .125rem; flex: 1; justify-content: center; }
.dn-nav > li { position: relative; }
.dn-nav > li > a {
  display: block; padding: .45rem .8rem; font-size: .875rem; font-weight: 500;
  color: var(--text); border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
}
.dn-nav > li > a:hover,
.dn-nav > li.current-menu-item > a,
.dn-nav > li.current-menu-ancestor > a { color: var(--sage-dk); background: var(--sage-lt); }

/* Dropdown */
.dn-nav .sub-menu {
  position: absolute; top: calc(100% + .375rem); left: 0;
  background: var(--white); border: 1px solid var(--border-md);
  border-radius: var(--r-md); padding: .375rem; min-width: 180px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--dur) var(--ease);
}
.dn-nav > li:hover .sub-menu,
.dn-nav > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dn-nav .sub-menu li a {
  display: block; padding: .45rem .8rem; font-size: .82rem; font-weight: 500;
  border-radius: var(--r-sm); transition: all var(--dur) var(--ease);
}
.dn-nav .sub-menu li a:hover { background: var(--sage-lt); color: var(--sage-dk); }

/* Search */
.dn-search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--cream); border: 1px solid var(--border-md);
  border-radius: var(--r-pill); padding: .35rem .75rem .35rem 1rem;
  max-width: 210px; flex: 1;
}
.dn-search input { border: none; background: transparent; font-family: var(--font-body); font-size: .82rem; color: var(--text); outline: none; width: 100%; }
.dn-search input::placeholder { color: var(--text-lt); }
.dn-search button { border: none; background: transparent; cursor: pointer; color: var(--text-md); padding: 0; font-size: .875rem; line-height: 1; }

/* Header actions */
.dn-header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.dn-icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 1rem; transition: all var(--dur) var(--ease);
  text-decoration: none; position: relative;
}
.dn-icon-btn:hover { background: var(--sage-lt); color: var(--sage-dk); }
.dn-cart-count {
  position: absolute; top: 3px; right: 3px;
  background: var(--terra); color: var(--white);
  width: 15px; height: 15px; border-radius: 50%;
  font-size: .58rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Hamburger */
.dn-hamburger {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 38px; height: 38px;
  border: 1px solid var(--border-md); border-radius: var(--r-sm);
  background: transparent; cursor: pointer;
}
.dn-hamburger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--dur) var(--ease); }

/* ================================================================
   MOBILE NAV DRAWER
   ================================================================ */
.dn-drawer {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; visibility: hidden; pointer-events: none;
}
.dn-drawer.is-open { visibility: visible; pointer-events: auto; }

.dn-drawer-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.dn-drawer.is-open .dn-drawer-overlay { opacity: 1; }

.dn-drawer-panel {
  position: relative; z-index: 1; background: var(--white);
  width: min(320px, 90vw); height: 100%; overflow-y: auto;
  padding: 1.25rem;
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.dn-drawer.is-open .dn-drawer-panel { transform: translateX(0); }

.dn-drawer-top { display: flex; align-items: center; justify-content: space-between; }

.dn-drawer-nav li { border-bottom: 1px solid var(--border); }
.dn-drawer-nav li:last-child { border-bottom: none; }
.dn-drawer-nav li a { display: block; padding: .875rem 0; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--text); }
.dn-drawer-nav li a:hover { color: var(--sage-dk); }
.dn-drawer-nav .sub-menu { padding-left: 1rem; }
.dn-drawer-nav .sub-menu li a { font-family: var(--font-body); font-size: .9rem; font-weight: 500; padding: .5rem 0; }

/* ================================================================
   HERO
   ================================================================ */
.dn-hero {
  background: linear-gradient(130deg, var(--sage-lt) 0%, var(--cream) 55%, #FDF4E3 100%);
  padding-block: 5rem 4rem; overflow: hidden;
}
.dn-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.dn-hero-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--sage); color: var(--white);
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .875rem; border-radius: var(--r-pill); margin-bottom: 1rem;
}
.dn-hero h1 { margin-bottom: 1.1rem; }
.dn-hero h1 em { font-style: italic; color: var(--sage-dk); }
.dn-hero-sub { font-size: 1rem; color: var(--text-md); max-width: 440px; margin-bottom: 1.75rem; line-height: 1.8; }
.dn-hero-btns { display: flex; gap: .875rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.dn-hero-trust { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.dn-hero-trust-item { display: flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 500; color: var(--text-md); }

.dn-hero-img-wrap { position: relative; }
.dn-hero-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.dn-hero-float {
  position: absolute; bottom: 1.75rem; left: -1.25rem;
  background: var(--white); border-radius: var(--r-md);
  padding: .75rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .625rem; min-width: 170px;
}
.dn-hero-float-icon { width: 38px; height: 38px; background: var(--sage-lt); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.dn-hero-float strong { display: block; font-size: .8rem; font-weight: 600; }
.dn-hero-float span   { font-size: .7rem; color: var(--text-md); }

/* ================================================================
   CATEGORY TILES
   ================================================================ */
.dn-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 1rem; }

.dn-cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 1.25rem .75rem; border-radius: var(--r-lg); border: 1px solid transparent;
  text-decoration: none; text-align: center;
  transition: all var(--dur) var(--ease);
}
.dn-cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dn-cat-icon { width: 54px; height: 54px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: transform var(--dur) var(--ease); }
.dn-cat-tile:hover .dn-cat-icon { transform: scale(1.08); }
.dn-cat-name  { font-size: .82rem; font-weight: 600; }
.dn-cat-count { font-size: .68rem; color: var(--text-md); }

/* Per-category colors */
.dn-cat-beauty   { background: #FBF0F5; border-color: #F4C0D1; }
.dn-cat-beauty   .dn-cat-icon { background: #FBEAF0; }
.dn-cat-beauty   .dn-cat-name { color: #72243E; }
.dn-cat-blog     { background: #F4F4F2; border-color: #D3D1C7; }
.dn-cat-blog     .dn-cat-icon { background: #EEEDE8; }
.dn-cat-blog     .dn-cat-name { color: #3C3C38; }
.dn-cat-diy      { background: #FDF7EC; border-color: #F5C870; }
.dn-cat-diy      .dn-cat-icon { background: #FAEEDA; }
.dn-cat-diy      .dn-cat-name { color: #63380A; }
.dn-cat-haircare { background: #EBF5F1; border-color: #9FD9C4; }
.dn-cat-haircare .dn-cat-icon { background: #E1F2EB; }
.dn-cat-haircare .dn-cat-name { color: #0A4F3C; }
.dn-cat-eoil     { background: #FBF0EC; border-color: #F5C0A8; }
.dn-cat-eoil     .dn-cat-icon { background: #FAECE7; }
.dn-cat-eoil     .dn-cat-name { color: #71280C; }
.dn-cat-soap     { background: #F0EFFE; border-color: #CBCAF4; }
.dn-cat-soap     .dn-cat-icon { background: #EEEDFE; }
.dn-cat-soap     .dn-cat-name { color: #3A3389; }

/* ================================================================
   PRODUCT CARDS (WooCommerce loop override)
   ================================================================ */
.dn-product-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.dn-product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-md); }
.dn-product-img  { aspect-ratio: 1; overflow: hidden; background: var(--cream); position: relative; }
.dn-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.dn-product-card:hover .dn-product-img img { transform: scale(1.04); }
.dn-product-badge { position: absolute; top: .625rem; left: .625rem; background: var(--terra); color: var(--white); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: var(--r-pill); }
.dn-product-badge-new { background: var(--sage); }
.dn-product-body { padding: .875rem; }
.dn-product-cat  { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin-bottom: .25rem; }
.dn-product-title { font-family: var(--font-head); font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--text); margin-bottom: .25rem; }
.dn-product-stars { color: #E4A832; font-size: .72rem; margin-bottom: .5rem; }
.dn-product-footer { display: flex; align-items: center; justify-content: space-between; }
.dn-product-price { font-size: 1rem; font-weight: 700; color: var(--sage-dk); }
.dn-add-btn { background: var(--sage); color: var(--white); border: none; border-radius: var(--r-pill); padding: .4rem .875rem; font-size: .72rem; font-weight: 600; cursor: pointer; transition: all var(--dur) var(--ease); }
.dn-add-btn:hover { background: var(--sage-dk); }

/* ================================================================
   BLOG CARDS
   ================================================================ */
.dn-blog-card { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; transition: all var(--dur) var(--ease); }
.dn-blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dn-blog-img { aspect-ratio: 16/9; overflow: hidden; }
.dn-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.dn-blog-card:hover .dn-blog-img img { transform: scale(1.04); }
.dn-blog-body { padding: 1.125rem; }
.dn-blog-meta { display: flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-md); margin-bottom: .4rem; flex-wrap: wrap; }
.dn-blog-meta .sep { color: var(--text-lt); }
.dn-blog-cat-pill { font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .55rem; border-radius: var(--r-pill); }
.dn-blog-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; line-height: 1.3; margin-bottom: .4rem; }
.dn-blog-title a:hover { color: var(--sage-dk); }
.dn-blog-excerpt { font-size: .84rem; color: var(--text-md); line-height: 1.6; margin-bottom: .875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dn-read-more { font-size: .76rem; font-weight: 600; color: var(--sage-dk); text-transform: uppercase; letter-spacing: .05em; }
.dn-read-more:hover { color: var(--sage); }

/* ================================================================
   FEATURES GRID
   ================================================================ */
.dn-feature { background: var(--cream-dk); border-radius: var(--r-lg); padding: 1.5rem; border: 1px solid var(--border); }
.dn-feature-icon { font-size: 1.75rem; margin-bottom: .875rem; }
.dn-feature h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.dn-feature p  { font-size: .84rem; color: var(--text-md); margin: 0; line-height: 1.6; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.dn-testi { background: var(--white); border-radius: var(--r-lg); padding: 1.5rem; border: 1px solid var(--border); }
.dn-testi-stars { color: #E4A832; font-size: .875rem; margin-bottom: .75rem; }
.dn-testi-text  { font-family: var(--font-head); font-style: italic; font-size: .95rem; line-height: 1.65; color: var(--text); margin-bottom: .875rem; }
.dn-testi-author { display: flex; align-items: center; gap: .625rem; }
.dn-testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sage-lt); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; color: var(--sage-dk); flex-shrink: 0; }
.dn-testi-name { font-weight: 600; font-size: .84rem; }
.dn-testi-loc  { font-size: .72rem; color: var(--text-md); }

/* ================================================================
   NEWSLETTER
   ================================================================ */
.dn-newsletter { background: var(--sage-dk); border-radius: var(--r-xl); padding: 3rem 2rem; text-align: center; }
.dn-newsletter h2 { color: var(--white); margin-bottom: .625rem; }
.dn-newsletter p  { color: rgba(255,255,255,.75); max-width: 460px; margin-inline: auto; margin-bottom: 1.5rem; font-size: .9rem; }
.dn-nl-form { display: flex; gap: .625rem; max-width: 420px; margin-inline: auto; flex-wrap: wrap; }
.dn-nl-form input[type="email"] {
  flex: 1; min-width: 200px; border: none; border-radius: var(--r-pill);
  padding: .75rem 1.125rem; font-family: var(--font-body); font-size: .875rem;
  background: rgba(255,255,255,.14); color: var(--white);
  outline: 2px solid transparent; transition: outline var(--dur) var(--ease);
}
.dn-nl-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.dn-nl-form input[type="email"]:focus { outline-color: rgba(255,255,255,.4); }
.dn-nl-form button { background: var(--white); color: var(--sage-dk); border: none; border-radius: var(--r-pill); padding: .75rem 1.5rem; font-family: var(--font-body); font-size: .875rem; font-weight: 600; cursor: pointer; transition: all var(--dur) var(--ease); white-space: nowrap; }
.dn-nl-form button:hover { background: var(--cream); transform: translateY(-1px); }
.dn-nl-note { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: .75rem; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.dn-with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.dn-sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: 1.25rem; }
.dn-sidebar-widget:last-child { margin-bottom: 0; }
.dn-widget-title { font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-dk); padding-bottom: .625rem; border-bottom: 1px solid var(--border); margin-bottom: .875rem; }
.dn-cat-list li { border-bottom: 1px solid var(--border); }
.dn-cat-list li:last-child { border-bottom: none; }
.dn-cat-list a { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; font-size: .84rem; font-weight: 500; transition: color var(--dur); }
.dn-cat-list a:hover { color: var(--sage-dk); }
.dn-cat-count { background: var(--sage-lt); color: var(--sage-dk); font-size: .68rem; font-weight: 600; padding: .12rem .45rem; border-radius: var(--r-pill); }

/* ================================================================
   ENTRY / POST LAYOUT
   ================================================================ */
.dn-page-banner { background: linear-gradient(135deg, var(--sage-lt), var(--cream)); padding-block: 2.5rem; text-align: center; border-bottom: 1px solid var(--border); }
.dn-page-banner h1 { margin-bottom: .5rem; }
.dn-page-banner p { color: var(--text-md); max-width: 480px; margin-inline: auto; font-size: .95rem; }
.dn-breadcrumb { font-size: .75rem; color: var(--text-md); padding-block: .75rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; background: var(--cream-dk); border-bottom: 1px solid var(--border); }
.dn-breadcrumb a { color: var(--text-md); transition: color var(--dur); }
.dn-breadcrumb a:hover { color: var(--sage-dk); }
.dn-breadcrumb .sep { color: var(--text-lt); }
.dn-breadcrumb .current { color: var(--text); font-weight: 500; }

.dn-entry-header { margin-bottom: 1.5rem; }
.dn-entry-badge { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .7rem; border-radius: var(--r-pill); margin-bottom: .625rem; }
.dn-entry-title { font-size: clamp(1.6rem,4vw,2.8rem); margin-bottom: .875rem; }
.dn-entry-meta { display: flex; align-items: center; gap: .875rem; font-size: .76rem; color: var(--text-md); flex-wrap: wrap; }
.dn-featured-img { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 1.75rem; aspect-ratio: 16/8; }
.dn-featured-img img { width: 100%; height: 100%; object-fit: cover; }

.dn-entry-content { font-size: .975rem; line-height: 1.8; color: var(--text); }
.dn-entry-content h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: .75rem; }
.dn-entry-content h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.dn-entry-content p { margin-bottom: 1.125rem; }
.dn-entry-content ul,
.dn-entry-content ol { list-style: revert; padding-left: 1.5rem; margin-bottom: 1.125rem; }
.dn-entry-content li { margin-bottom: .3rem; }
.dn-entry-content a { color: var(--sage-dk); text-decoration: underline; text-underline-offset: 3px; }
.dn-entry-content a:hover { color: var(--sage); }
.dn-entry-content blockquote { border-left: 4px solid var(--sage); background: var(--sage-lt); padding: 1rem 1.25rem; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 1.5rem 0; font-family: var(--font-head); font-style: italic; color: var(--sage-dk); }
.dn-entry-content img { border-radius: var(--r-md); margin-block: 1.25rem; }

/* Author box */
.dn-author-box { background: var(--sage-lt); border-radius: var(--r-lg); padding: 1.25rem; display: flex; gap: .875rem; align-items: flex-start; margin-top: 2rem; }
.dn-author-av  { width: 52px; height: 52px; border-radius: 50%; background: var(--sage); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 600; flex-shrink: 0; }
.dn-author-box strong { display: block; font-weight: 600; margin-bottom: .25rem; }
.dn-author-box p { font-size: .84rem; color: var(--text-md); margin: 0; }

/* Post navigation */
.dn-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.dn-post-nav a { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem; display: block; transition: all var(--dur) var(--ease); }
.dn-post-nav a:hover { border-color: var(--border-md); box-shadow: var(--shadow-sm); color: var(--sage-dk); }
.dn-post-nav .nav-label { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-lt); display: block; margin-bottom: .25rem; }
.dn-post-nav .nav-title { font-size: .875rem; font-weight: 500; line-height: 1.3; }
.dn-post-nav .dn-prev { text-align: left; }
.dn-post-nav .dn-next { text-align: right; }

/* ================================================================
   FOOTER
   ================================================================ */
.dn-footer { background: var(--text); color: rgba(255,255,255,.65); }
.dn-footer-top { padding-block: 3.5rem 2.5rem; }
.dn-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.dn-footer-brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--white); display: block; margin-bottom: .4rem; }
.dn-footer-desc { font-size: .84rem; line-height: 1.7; max-width: 260px; }
.dn-footer-social { display: flex; gap: .4rem; margin-top: 1.25rem; flex-wrap: wrap; }
.dn-social-btn { width: 34px; height: 34px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: rgba(255,255,255,.65); transition: all var(--dur) var(--ease); text-decoration: none; }
.dn-social-btn:hover { background: var(--sage); color: var(--white); transform: translateY(-2px); }
.dn-footer-heading { font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: .875rem; }
.dn-footer-links { display: flex; flex-direction: column; gap: .45rem; }
.dn-footer-links a { font-size: .84rem; color: rgba(255,255,255,.6); transition: color var(--dur); }
.dn-footer-links a:hover { color: var(--white); }
.dn-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.125rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .76rem; color: rgba(255,255,255,.4); }

/* ================================================================
   WOOCOMMERCE — comprehensive overrides
   ================================================================ */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)) !important; gap: 1.25rem !important; margin: 0 !important; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all var(--dur) var(--ease); margin: 0 !important; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.woocommerce ul.products li.product a img { margin-bottom: 0; transition: transform .4s var(--ease); }
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-head) !important; font-size: .95rem !important; font-weight: 600 !important; padding: .875rem .875rem .25rem !important; color: var(--text) !important; }
.woocommerce ul.products li.product .price { font-size: .95rem !important; font-weight: 700 !important; color: var(--sage-dk) !important; padding: 0 .875rem .875rem !important; display: block !important; }
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button { background: var(--sage) !important; color: var(--white) !important; border: none !important; border-radius: var(--r-pill) !important; font-family: var(--font-body) !important; font-size: .76rem !important; font-weight: 600 !important; letter-spacing: .04em !important; text-transform: uppercase !important; padding: .5rem 1rem !important; transition: all var(--dur) var(--ease) !important; box-shadow: none !important; }
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--sage-dk) !important; color: var(--white) !important; }
.woocommerce ul.products li.product .button { margin: 0 .875rem .875rem !important; width: calc(100% - 1.75rem) !important; }
.woocommerce .single_add_to_cart_button { background: var(--sage) !important; color: var(--white) !important; border-radius: var(--r-pill) !important; border: none !important; padding: .875rem 2rem !important; font-size: .875rem !important; font-weight: 600 !important; }
.woocommerce .single_add_to_cart_button:hover { background: var(--sage-dk) !important; }
.woocommerce .woocommerce-message { border-top-color: var(--sage) !important; }
.woocommerce .woocommerce-message::before { color: var(--sage) !important; }
.single-product .product_title { font-family: var(--font-head); font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 700; }
.single-product .price { color: var(--sage-dk) !important; font-size: 1.4rem !important; font-weight: 700 !important; }
.woocommerce-tabs .tabs li.active a { color: var(--sage-dk) !important; border-bottom-color: var(--sage) !important; }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.dn-back-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 42px; height: 42px; border-radius: 50%; background: var(--sage); color: var(--white); border: none; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--dur) var(--ease); z-index: 400; }
.dn-back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dn-back-top:hover { background: var(--sage-dk); transform: translateY(-2px); }

/* ================================================================
   PAGINATION
   ================================================================ */
.dn-pagination,
.navigation.pagination { margin-top: 2rem; display: flex; justify-content: center; }
.dn-pagination .nav-links,
.navigation.pagination .nav-links { display: flex; gap: .375rem; flex-wrap: wrap; align-items: center; }
.dn-pagination .page-numbers,
.navigation.pagination .page-numbers { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-md); background: var(--white); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: .84rem; font-weight: 500; transition: all var(--dur); text-decoration: none; }
.dn-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current { background: var(--sage); color: var(--white); border-color: var(--sage); }
.dn-pagination .page-numbers:hover:not(.current),
.navigation.pagination .page-numbers:hover:not(.current) { background: var(--sage-lt); color: var(--sage-dk); }
.dn-pagination .page-numbers.dots { border: none; background: transparent; }

/* ================================================================
   REVEAL ANIMATIONS
   ================================================================ */
.dn-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.dn-reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   RESPONSIVE — Tablet
   ================================================================ */
@media (max-width: 1024px) {
  .dn-footer-grid { grid-template-columns: 1fr 1fr; }
  .dn-hero-inner  { gap: 2rem; }
  .dn-with-sidebar { grid-template-columns: 1fr; }
}

/* ================================================================
   RESPONSIVE — Mobile ≤768px
   ================================================================ */
@media (max-width: 768px) {
  .dn-section { padding-block: 2.75rem; }
  .dn-nav, .dn-search { display: none; }
  .dn-hamburger { display: flex; }
  .dn-hero { padding-block: 3rem 2.5rem; }
  .dn-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .dn-hero-sub  { margin-inline: auto; }
  .dn-hero-btns { justify-content: center; }
  .dn-hero-trust{ justify-content: center; }
  .dn-hero-img-wrap { order: -1; max-width: 360px; width: 100%; margin-inline: auto; }
  .dn-hero-img  { aspect-ratio: 4/3; }
  .dn-hero-float { display: none; }
  .dn-cat-grid  { grid-template-columns: repeat(3,1fr); }
  .dn-footer-grid { grid-template-columns: 1fr 1fr; }
  .dn-footer-brand { grid-column: 1/-1; }
  .dn-footer-bottom { flex-direction: column; text-align: center; }
  .dn-post-nav { grid-template-columns: 1fr; }
}

/* ================================================================
   RESPONSIVE — Small mobile ≤480px
   ================================================================ */
@media (max-width: 480px) {
  .dn-hero-btns { flex-direction: column; align-items: center; }
  .dn-btn { width: 100%; justify-content: center; }
  .dn-cat-grid  { grid-template-columns: repeat(2,1fr); }
  .dn-nl-form   { flex-direction: column; }
  .dn-nl-form input[type="email"],
  .dn-nl-form button { width: 100%; }
  .dn-footer-grid { grid-template-columns: 1fr; }
}
