/*
Theme Name: Ravenstone
Theme URI: https://example.com
Author: Morgana Black
Description: Cozy-fantasy author theme for the Oakleys / Ravenstone Hexen series.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ravenstone
*/

:root{
  --plum:#8a5a42;
  --plum-dark:#6b4433;
  --sage:#a3b18a;
  --sage-light:#eef1e3;
  --blush:#f2c9a0;
  --cream:#fdf3e7;
  --gold:#dba54c;
  --ink:#4a3728;
  --pumpkin:#d68a56;
  --card-bg:#fffaf2;
  --panel-bg:#fbeee0;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
[id]{scroll-margin-top:150px;}

/* Falling autumn leaves (side margins only, wide viewports) */
.leaf-fall{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:1;display:none;}
@media (min-width:1300px){.leaf-fall{display:block;}}
.leaf{
  position:absolute;top:-40px;font-size:1.7rem;opacity:.75;
  animation-name:leafFall;animation-timing-function:linear;animation-iteration-count:infinite;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.08));
}
@keyframes leafFall{
  0%{transform:translateY(-10vh) translateX(0) rotate(0deg);}
  25%{transform:translateY(25vh) translateX(18px) rotate(90deg);}
  50%{transform:translateY(50vh) translateX(-14px) rotate(180deg);}
  75%{transform:translateY(75vh) translateX(16px) rotate(270deg);}
  100%{transform:translateY(110vh) translateX(-8px) rotate(360deg);}
}
body{
  margin:0;
  background-color:var(--cream);
  background-image:url('assets/img/bg-leaves-frame.png');
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
  background-attachment:fixed;
  color:var(--ink);
  font-family:'Nunito', -apple-system, sans-serif;
  line-height:1.6;
}
h1,h2,h3,h4{
  font-family:'Cormorant Garamond', Georgia, serif;
  font-weight:600;
  margin:0 0 .5em;
  color:var(--plum-dark);
}
a{color:inherit;}
img{max-width:100%;display:block;}
.container{max-width:1100px;margin:0 auto;padding:0 24px;}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  border-bottom:1px solid rgba(107,68,51,.1);
}
.site-header-bg{
  position:absolute;inset:0;z-index:-1;
  background:linear-gradient(to bottom, rgb(216,154,113) 0%, rgb(156,116,126) 100%);
  backdrop-filter:blur(6px);
}
.site-header .container{overflow:hidden;}
@media (max-width:900px){.site-header .container{overflow:visible;}}
.header-deco{
  position:absolute;top:50%;font-size:1.5rem;opacity:.3;
  pointer-events:none;transform-origin:50% 80%;
  animation:iconSway 4s ease-in-out infinite;
}
.header-deco-left{left:14px;margin-top:-14px;}
.header-deco-right{right:14px;margin-top:-10px;animation-delay:1.5s;}
@media (max-width:900px){.header-deco{display:none;}}
.site-header .container{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;
  padding-top:14px;padding-bottom:14px;
}
.site-logo{position:relative;display:inline-block;text-decoration:none;justify-self:start;}
.site-logo .logo-img{height:64px;width:auto;mix-blend-mode:multiply;}
.logo-cat{
  position:absolute;left:18%;top:70%;font-size:.85rem;
  animation:catBob 2.6s ease-in-out infinite;transform-origin:50% 80%;
}
@keyframes catBob{
  0%,100%{transform:translateY(0) rotate(-4deg);}
  50%{transform:translateY(-5px) rotate(4deg);}
}
.header-end{
  justify-self:end;display:flex;align-items:center;gap:14px;
  margin-left:12px;padding-left:12px;border-left:1px solid rgba(107,68,51,.2);
  align-self:stretch;
}
.cart-link{display:inline-flex;align-items:center;gap:7px;color:var(--plum-dark) !important;text-decoration:none !important;}
.cart-link:hover{color:var(--cream) !important;}
.cart-icon-wrap{position:relative;display:inline-flex;align-items:center;transform:translateY(-6px);}
.cart-icon{width:26px;height:26px;fill:currentColor;transform-origin:50% 85%;animation:iconSway 3.6s ease-in-out infinite;}
.cart-text{display:flex;flex-direction:column;line-height:1.2;}
.cart-label{
  font-family:'Dancing Script',cursive;font-weight:700;white-space:nowrap;
  font-size:1.1rem;letter-spacing:.01em;
}
.cart-total{font-size:.75rem;font-weight:700;white-space:nowrap;opacity:.85;}
.cart-count{
  position:absolute;top:-10px;right:-8px;min-width:18px;height:18px;padding:0 4px;
  border-radius:999px;background:var(--pumpkin);color:#fff;font-size:.68rem;font-weight:800;
  display:flex;align-items:center;justify-content:center;line-height:1;
}
.main-nav{justify-self:center;min-width:0;max-width:100%;overflow:hidden;}
.main-nav ul{list-style:none;display:flex;gap:10px;margin:0;padding:0;}
.main-nav a{
  display:inline-flex;align-items:center;text-decoration:none;color:var(--plum-dark);white-space:nowrap;
  font-family:'Dancing Script',cursive;font-weight:700;font-size:1.1rem;letter-spacing:.01em;
}
.nav-label{white-space:nowrap;}
.main-nav a:hover{color:var(--cream);}
.nav-book{
  display:inline-block;width:1.1em;height:1.1em;margin-right:3px;
  fill:currentColor;transform-origin:50% 85%;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:38px;height:38px;padding:0;border:none;background:transparent;cursor:pointer;
  flex-shrink:0;
}
.nav-toggle span{
  display:block;width:100%;height:2px;background:var(--plum-dark);border-radius:2px;
  transition:transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.is-open span:nth-child(2){opacity:0;}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ≤900px: collapse into hamburger dropdown */
@media (max-width:900px){
  .site-header .container{grid-template-columns:auto 1fr;gap:10px;}
  .site-logo .logo-img{height:52px;}
  .nav-toggle{display:flex;}
  .header-end{margin-left:8px;padding-left:8px;gap:10px;}
  .cart-text{display:none;}
  .main-nav{
    justify-self:auto;position:fixed;top:80px;left:0;right:0;
    max-width:100%;max-height:calc(100vh - 80px);overflow-y:auto;
    background:var(--cream);border-bottom:1px solid rgba(107,68,51,.15);
    box-shadow:0 12px 24px rgba(107,68,51,.12);
    z-index:49;
    opacity:0;visibility:hidden;pointer-events:none;
    transform:translateY(-8px);
    transition:opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .main-nav.is-open{
    opacity:1;visibility:visible;pointer-events:auto;
    transform:translateY(0);
    transition:opacity .25s ease, transform .25s ease;
  }
  .main-nav ul{flex-direction:column;gap:0;padding:8px 0;}
  .main-nav li{width:100%;border-bottom:1px solid rgba(107,68,51,.08);}
  .main-nav a{width:100%;padding:14px 24px;font-size:1.2rem;}
  .main-nav a:hover{color:var(--ink);background:rgba(107,68,51,.06);}
}
@media (max-width:480px){
  .site-logo .logo-img{height:44px;}
  .cart-icon{width:23px;height:23px;}
  .header-end{gap:8px;}
}

/* per-item idle animations */
.icon-home{animation:iconBounce 2.4s ease-in-out infinite;}
.icon-book{animation:iconSway 3.2s ease-in-out infinite;}
.icon-star{animation:iconTwinkle 2.2s ease-in-out infinite;}
.icon-quill{animation:iconWiggle 2.8s ease-in-out infinite;}
.icon-bag{animation:iconSwing 2.6s ease-in-out infinite;transform-origin:50% 0%;}
.icon-cat{animation:iconTailFlick 2.4s ease-in-out infinite;}
.icon-pen{animation:iconScribble 2.4s ease-in-out infinite;}

.main-nav li:nth-child(2n) .nav-book{animation-delay:.3s;}
.main-nav li:nth-child(3n) .nav-book{animation-delay:.6s;}
.main-nav li:nth-child(4n) .nav-book{animation-delay:.9s;}
.main-nav li:nth-child(5n) .nav-book{animation-delay:1.2s;}

@keyframes iconBounce{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-4px);}
}
@keyframes iconSway{
  0%,100%{transform:rotate(-10deg);}
  50%{transform:rotate(10deg);}
}
@keyframes iconTwinkle{
  0%,100%{transform:scale(1) rotate(0deg);opacity:1;}
  50%{transform:scale(1.25) rotate(15deg);opacity:.75;}
}
@keyframes iconWiggle{
  0%,100%{transform:rotate(-6deg);}
  50%{transform:rotate(8deg);}
}
@keyframes iconSwing{
  0%,100%{transform:rotate(-8deg);}
  50%{transform:rotate(8deg);}
}
@keyframes iconTailFlick{
  0%,50%,100%{transform:rotate(0deg);}
  25%{transform:rotate(-8deg);}
  75%{transform:rotate(8deg);}
}
@keyframes iconScribble{
  0%,100%{transform:translateX(0) rotate(0deg);}
  25%{transform:translateX(-1px) rotate(-6deg);}
  75%{transform:translateX(1px) rotate(6deg);}
}

.main-nav a:hover .nav-book{animation:bookFlip .6s ease;}
@keyframes bookFlip{
  0%{transform:rotate(0) scale(1);}
  30%{transform:rotate(-20deg) scale(1.3);}
  60%{transform:rotate(16deg) scale(1.3);}
  100%{transform:rotate(0) scale(1);}
}
.link-icon{display:inline-block;width:1em;height:1em;margin-right:6px;fill:currentColor;vertical-align:-0.15em;flex-shrink:0;}

.lang-switch{display:flex;gap:8px;margin-left:24px;font-size:.85rem;}
.lang-switch a{opacity:.5;text-decoration:none;padding:2px 6px;border-radius:4px;}
.lang-switch a.active{opacity:1;font-weight:700;background:var(--sage-light);}

/* Hero */
.hero{
  position:relative;
  padding:70px 0 50px;
  text-align:center;
  background:radial-gradient(ellipse at top,var(--sage-light) 0%,var(--cream) 65%);
  overflow:hidden;
}
.hero .eyebrow{
  display:inline-block;font-size:.8rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--sage);font-weight:700;margin-bottom:12px;
}
.hero h1{margin-bottom:18px;}
.hero h1 .accent{color:var(--pumpkin);font-style:italic;}
.hero-wordmark{max-width:520px;height:210px;overflow:hidden;margin:0 auto 4px;display:flex;align-items:center;justify-content:center;}
.hero-wordmark img{width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply;}
.hero p.lede{max-width:560px;margin:0 auto 32px;font-size:1.15rem;color:var(--plum);}
.hero-badges{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:8px;}
.badge{
  background:var(--card-bg);border:1px solid rgba(107,68,51,.15);border-radius:999px;
  padding:8px 18px;font-size:.85rem;color:var(--plum);
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;padding:13px 28px;border-radius:999px;
  text-decoration:none;font-weight:700;font-size:.95rem;letter-spacing:.02em;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn-primary{background:var(--plum-dark);color:#fff;}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(107,68,51,.3);}
.btn-outline{background:transparent;border:1.5px solid var(--plum-dark);color:var(--plum-dark);}
.btn-outline:hover{background:var(--plum-dark);color:#fff;}
.btn-gold{background:var(--gold);color:#fff;}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(201,154,74,.35);}
.btn-sm{padding:9px 20px;font-size:.85rem;}

/* 404 / empty search results */
.not-found-block{text-align:center;}
.not-found-img{max-width:520px;width:100%;height:auto;margin:0 auto 28px;display:block;}
.not-found-text{font-size:1.1rem;color:var(--plum-dark);max-width:520px;margin:0 auto 28px;}

/* Section */
.section{padding:80px 0;}
.section-alt{background:var(--panel-bg);}
.section-head{text-align:center;max-width:640px;margin:0 auto 48px;}
.section-head .eyebrow{font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;color:var(--sage);font-weight:700;}
.section-head h2{font-size:clamp(1.9rem,3.5vw,2.6rem);margin-top:8px;}

/* Books section background decoration */
.books-section{position:relative;overflow:hidden;}
.books-section > .container{position:relative;z-index:1;}
.bg-deco{position:absolute;mix-blend-mode:multiply;opacity:.8;pointer-events:none;z-index:0;}
.deco-jack{width:150px;top:40px;left:-30px;transform:rotate(-8deg);}
.deco-latte{width:110px;bottom:60px;right:-10px;transform:rotate(6deg);}
.deco-hat{width:130px;bottom:-20px;left:6%;transform:rotate(4deg);}
@media (max-width:900px){.bg-deco{display:none;}}

.section-tight{position:relative;overflow:hidden;}
.deco-side-1{width:100px;top:40px;left:-25px;transform:rotate(-6deg);}
.deco-side-2{width:90px;top:420px;right:-20px;transform:rotate(8deg);}
.deco-side-3{width:110px;top:820px;left:-30px;transform:rotate(4deg);}
.deco-side-4{width:95px;top:1220px;right:-25px;transform:rotate(-10deg);}
.deco-side-5{width:85px;top:1600px;left:-20px;transform:rotate(6deg);}

/* Book cards */
.books-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;}
@media (max-width:820px){.books-grid{grid-template-columns:1fr;}}
.book-card{
  background:var(--card-bg);border-radius:20px;overflow:hidden;
  box-shadow:0 10px 40px rgba(107,68,51,.1);
  display:flex;flex-direction:column;
}
.book-card{position:relative;}
.book-card .cover-wrap{
  position:relative;
  background:linear-gradient(160deg,var(--sage-light),var(--cream));
  padding:36px;display:flex;justify-content:center;
}
.book-card.pumpkin .cover-wrap{background:linear-gradient(160deg,#f5ddc0,var(--cream));}
.book-card img.cover{width:190px;border-radius:6px;box-shadow:0 18px 34px rgba(0,0,0,.22);}
.sticker{position:absolute;mix-blend-mode:multiply;pointer-events:none;}
.sticker-pumpkin{width:120px;top:6px;left:6px;}
.sticker-latte{width:78px;bottom:10px;right:14px;}
.book-card .book-body{padding:28px 30px 32px;flex:1;display:flex;flex-direction:column;}
.book-tag{
  align-self:flex-start;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;padding:5px 12px;border-radius:999px;margin-bottom:12px;
}
.book-card.spring .book-tag{background:var(--sage-light);color:#5e7048;}
.book-card.pumpkin .book-tag{background:#f6e3cd;color:#9c5a2e;}
.book-card h3{font-size:1.7rem;margin-bottom:6px;}
.book-card .subtitle{font-size:.9rem;color:var(--plum);opacity:.75;margin-bottom:14px;}
.book-card p.blurb{font-size:.97rem;color:var(--ink);opacity:.85;flex:1;}
.book-card .release{font-size:.85rem;color:var(--pumpkin);font-weight:700;margin:14px 0;}
.book-card .preorder-bonus{
  display:inline-block;font-size:.82rem;color:var(--plum-dark);
  background:var(--sage-light);padding:6px 14px;border-radius:999px;margin:0 0 14px;
}
.book-card .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px;}

/* About */
.about-wrap{display:grid;grid-template-columns:280px 1fr;gap:56px;align-items:center;}
@media (max-width:760px){.about-wrap{grid-template-columns:1fr;}}
.about-photo{
  aspect-ratio:1;border-radius:50%;overflow:hidden;
  background:linear-gradient(160deg,var(--blush),var(--sage-light));
  display:flex;align-items:center;justify-content:center;
  font-family:'Cormorant Garamond',serif;font-style:italic;color:var(--plum);
  box-shadow:0 20px 50px rgba(107,68,51,.18);
}
.about-photo img{width:100%;height:100%;object-fit:cover;object-position:center 18%;}
.about-text p{margin-bottom:16px;}
.social-row{display:flex;gap:14px;margin-top:20px;}
.social-pill{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--sage-light);color:var(--plum-dark);
  padding:10px 18px;border-radius:999px;text-decoration:none;font-size:.9rem;font-weight:700;
}
.social-pill:hover{background:var(--plum-dark);color:#fff;}

/* Signed copies / shop teaser */
.signed-box{
  background:linear-gradient(135deg,var(--plum-dark),var(--plum));
  color:#fff;border-radius:24px;padding:48px;display:flex;gap:36px;align-items:center;
  flex-wrap:wrap;
}
.signed-box .content{flex:1;min-width:260px;}
.signed-box h2{color:#fff;}
.signed-box p{opacity:.85;}
.signed-count{
  font-family:'Cormorant Garamond',serif;font-size:3rem;color:var(--gold);line-height:1;
}
.signed-count + span{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;opacity:.75;}

/* Newsletter */
.newsletter-box{
  text-align:center;background:var(--sage-light);border-radius:24px;padding:56px 32px;
}
.newsletter-form{display:flex;gap:10px;justify-content:center;max-width:420px;margin:24px auto 0;flex-wrap:wrap;}
.newsletter-form input[type=email]{
  flex:1;min-width:220px;padding:13px 18px;border-radius:999px;border:1px solid rgba(107,68,51,.25);font-size:.95rem;
}
.newsletter-form button{border:none;cursor:pointer;}

.footer-logo-badge{
  display:inline-block;background:var(--cream);border-radius:14px;
  padding:10px 16px;
}
.footer-logo-badge img{height:56px;width:auto;display:block;mix-blend-mode:multiply;}

/* Footer */
.site-footer{background:var(--plum-dark);color:#f2ece6;padding:50px 0 30px;margin-top:40px;}
.site-footer .container{display:flex;justify-content:space-between;flex-wrap:wrap;gap:30px;}
.site-footer a{color:#f2ece6;text-decoration:none;opacity:.8;}
.site-footer a:hover{opacity:1;}
.footer-cols{display:flex;gap:60px;flex-wrap:wrap;}
.footer-cols h4{color:#fff;font-size:.95rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:14px;}
.footer-cols ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;font-size:.9rem;}
.footer-cols ul a{display:inline-flex;align-items:center;}
.footer-bottom{
  text-align:center;font-size:.8rem;opacity:.55;margin-top:40px;
  padding-top:28px;border-top:1px solid rgba(255,255,255,.12);
}
.legal-links{
  list-style:none;display:flex;justify-content:center;flex-wrap:wrap;
  gap:8px 0;margin:16px 0 0;padding:0;opacity:.85;
}
.legal-links li{display:flex;align-items:center;}
.legal-links li:not(:last-child)::after{content:"·";margin:0 14px;opacity:.5;}
.legal-links a{color:inherit;text-decoration:none;letter-spacing:.02em;}
.legal-links a:hover{text-decoration:underline;opacity:1;}

/* Legal page text */
.legal-text h3{margin-top:28px;margin-bottom:10px;font-size:1.15rem;}
.legal-text h3:first-child{margin-top:0;}
.legal-text p{margin-bottom:14px;}

/* Back to top button */
#back-to-top{
  position:fixed;right:24px;bottom:24px;z-index:60;
  width:48px;height:48px;border-radius:50%;border:2px solid rgba(255,255,255,.5);cursor:pointer;
  background:var(--gold);color:#fff;
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
  box-shadow:0 8px 24px rgba(0,0,0,.3);
}
#back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0);}
#back-to-top:hover{background:var(--pumpkin);}
#back-to-top svg{width:22px;height:22px;fill:currentColor;}
#back-to-top svg{transform-origin:50% 85%;animation:iconBounce 2s ease-in-out infinite;}
#back-to-top .sparkle-tip{animation:iconTwinkle 2.2s ease-in-out infinite;transform-origin:12px 4px;}
#back-to-top .tt-label{
  position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%) translateX(6px);
  background:var(--plum-dark);color:#fff;padding:6px 14px;border-radius:8px;font-size:.8rem;
  white-space:nowrap;opacity:0;pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
#back-to-top:hover .tt-label{opacity:1;transform:translateY(-50%) translateX(0);}
@media (max-width:640px){#back-to-top{right:16px;bottom:16px;width:42px;height:42px;} #back-to-top .tt-label{display:none;}}

/* Sub-pages (Neuigkeiten, Leseproben, Die Autorin) */
.page-hero{padding:36px 0 28px;text-align:center;}
.page-hero .container{padding-bottom:28px;border-bottom:1px solid rgba(107,68,51,.15);}
.section-header-wrap{max-width:380px;height:190px;margin:0 auto;overflow:hidden;}
.section-header-img{width:100%;height:100%;object-fit:cover;object-position:center 60%;mix-blend-mode:multiply;}
.section-tight{padding-top:48px;}

.news-list{display:flex;flex-direction:column;gap:32px;max-width:720px;margin:0 auto;}
.news-item{
  background:var(--card-bg);border-radius:16px;padding:26px 30px;
  box-shadow:0 8px 30px rgba(107,68,51,.08);
}
.news-date{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--pumpkin);font-weight:700;}
.news-item h3{margin:8px 0 10px;font-size:1.4rem;}
.news-item h3 a{text-decoration:none;color:var(--plum-dark);}
.news-item-featured,
.single-post-page{
  max-width:760px;margin:0 auto 40px;padding:36px 40px 36px 48px;
  background:var(--card-bg);
  border-radius:3px 18px 18px 3px;
  position:relative;
  box-shadow:
    0 2px 6px rgba(107,68,51,.08),
    4px 6px 0 -2px var(--cream),
    4px 6px 10px -2px rgba(107,68,51,.10),
    8px 12px 0 -4px var(--cream),
    8px 12px 14px -4px rgba(107,68,51,.10);
}
.news-item-featured::before,
.single-post-page::before{
  content:"";
  position:absolute;left:0;top:8%;bottom:8%;width:4px;
  background:linear-gradient(to bottom, transparent, rgba(107,68,51,.2), transparent);
  border-radius:2px;
}
.news-excerpt h3{
  margin-top:28px;margin-bottom:12px;font-size:1.15rem;font-family:'Nunito',sans-serif;
  font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--pumpkin);
  padding:8px 16px;border-left:4px solid var(--gold);background:var(--panel-bg);
  border-radius:0 8px 8px 0;
}
.news-excerpt p{margin-bottom:14px;}
.news-item-featured .actions{margin-top:24px;}
.news-excerpt{font-size:.95rem;opacity:.85;}
.post-inline-img{
  max-width:380px;width:100%;height:auto;margin:20px 0;
  border-radius:14px;box-shadow:0 12px 30px rgba(107,68,51,.18);
}

.excerpt-block{
  max-width:720px;margin:0 auto 56px;background:var(--card-bg);
  border-radius:20px;padding:40px;box-shadow:0 10px 40px rgba(107,68,51,.1);
}
.excerpt-block .subtitle{color:var(--plum);opacity:.75;margin-bottom:20px;}
.excerpt-text{font-family:'Cormorant Garamond',serif;font-size:1.15rem;line-height:1.8;color:var(--ink);}

/* Script heading (Buchsatz, Kontakt) */
.script-heading{font-size:clamp(2.2rem,5vw,3.2rem);font-style:italic;}
.script-heading span{color:var(--pumpkin);}

/* Composed header (icon + text, built in CSS instead of a raster graphic) */
.composed-header{display:inline-flex;flex-direction:column;align-items:center;}
.composed-header h1{
  font-family:'Cormorant Garamond', Georgia, serif;font-weight:700;
  font-size:clamp(2.6rem,6vw,3.6rem);text-transform:uppercase;letter-spacing:.05em;
  margin:0;color:#1a1a1a;line-height:1;
}
.composed-header-hat{
  width:52px;height:52px;fill:var(--plum-dark);
  transform:rotate(-10deg);margin-bottom:-4px;
}

/* Buchsatz page */
.excerpt-block h3{margin-top:32px;margin-bottom:14px;font-size:1.3rem;}
.sparkle-list{list-style:none;padding:0;margin:0;}
.sparkle-list li{padding-left:28px;position:relative;margin-bottom:8px;}
.sparkle-list li::before{content:"✨";position:absolute;left:0;}
.price-rows{display:flex;flex-direction:column;gap:10px;}
.price-row{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;
  background:var(--panel-bg);border-radius:12px;padding:14px 20px;
}
.price-row strong{color:var(--pumpkin);}

/* Contact form (Contact Form 7) */
.contact-form-block p{margin-bottom:20px;}
.wpcf7-form p{margin-bottom:16px;}
.wpcf7-form label{display:block;margin-bottom:6px;font-size:.9rem;font-weight:700;color:var(--plum-dark);}
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form select,
.wpcf7-form textarea{
  width:100%;padding:13px 16px;border-radius:12px;border:1px solid rgba(107,68,51,.25);
  font-family:inherit;font-size:.95rem;background:var(--cream);color:var(--ink);
}
.wpcf7-form textarea{min-height:140px;resize:vertical;}
.wpcf7-form input[type=submit]{
  display:inline-block;padding:13px 28px;border-radius:999px;border:none;cursor:pointer;
  background:var(--plum-dark);color:#fff;font-weight:700;font-size:.95rem;letter-spacing:.02em;
}
.wpcf7-form input[type=submit]:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(107,68,51,.3);}
.wpcf7-spinner{margin-left:10px;}
.wpcf7-not-valid-tip{color:#b3452e;font-size:.85rem;margin-top:4px;}
.wpcf7-response-output{margin-top:20px;padding:14px 18px;border-radius:12px;border:1px solid rgba(107,68,51,.25);}

/* WooCommerce shop page */
.shop-toolbar{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
  margin-bottom:32px;padding-bottom:20px;border-bottom:1px solid rgba(107,68,51,.15);
}
.shop-toolbar .woocommerce-result-count{margin:0;font-size:.9rem;opacity:.75;}
.shop-toolbar .woocommerce-ordering select{
  padding:9px 14px;border-radius:999px;border:1px solid rgba(107,68,51,.25);
  background:var(--card-bg);font-family:inherit;font-size:.9rem;
}
.woocommerce ul.products{
  list-style:none;padding:0;margin:0;display:flex;
  flex-wrap:wrap;justify-content:center;gap:28px;
}
@media (max-width:640px){
  .woocommerce ul.products{flex-direction:column;align-items:center;}
}
.woocommerce ul.products li.product{flex:0 1 280px;max-width:280px;}
.woocommerce ul.products li.product{
  width:auto!important;margin:0!important;float:none!important;
  background:var(--card-bg);border-radius:18px;padding:24px 20px 28px;text-align:center;
  box-shadow:0 8px 30px rgba(107,68,51,.08);
  display:flex;flex-direction:column;align-items:center;
}
.woocommerce ul.products li.product a{width:100%;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:82px;
}
.woocommerce ul.products li.product img{border-radius:8px;margin-bottom:14px;box-shadow:0 12px 26px rgba(0,0,0,.18);}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:'Cormorant Garamond',serif;font-size:1.2rem;margin:8px 0 4px;color:var(--plum-dark);}
.woocommerce ul.products li.product .price{color:var(--pumpkin);font-weight:700;margin-bottom:14px;}
.woocommerce ul.products li.product a.button{margin-top:auto;}
.woocommerce a.button{background:var(--plum-dark)!important;border-radius:999px!important;color:#fff!important;padding:11px 22px!important;}
.woocommerce a.button:hover{opacity:.9;}

/* "Added to cart" success confirmations are redundant with the live header icon/total. */
.woocommerce-message{display:none!important;}

/* Single product page */
.single-product-layout{
  display:grid;grid-template-columns:320px 1fr;gap:48px;align-items:start;
}
@media (max-width:760px){.single-product-layout{grid-template-columns:1fr;}}
.single-product-gallery{max-width:320px;}
.single-product-gallery img{
  border-radius:14px;box-shadow:0 14px 34px rgba(107,68,51,.18);
}
.single-product-page .summary h1{font-size:2rem;margin-bottom:14px;}
.single-product-page .summary .price{font-size:1.3rem;color:var(--pumpkin);font-weight:700;}
.single-product-page .summary form.cart{margin:20px 0;}
.product-description{margin-top:28px;padding-top:24px;border-top:1px solid rgba(107,68,51,.15);}

/* Empty cart */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before{display:none !important;content:none !important;}
.empty-cart-basket{display:flex;justify-content:center;margin:20px 0;}
.empty-cart-basket img{width:180px;height:auto;}
.wc-block-cart__empty-cart__title{color:var(--plum-dark);font-size:1.1rem;}
.product-description p{margin-bottom:14px;}
