/*
Theme Name: The Worst Wick WooCommerce
Theme URI: https://theworstwick.co.uk/
Author: The Worst Wick
Description: A custom witchy horror WooCommerce theme for The Worst Wick candle shop.
Version: 2.4.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: the-worst-wick
*/

:root {
  --paper: #dcb66b;
  --paper-light: #efd18e;
  --paper-deep: #b78844;
  --ink: #0a0805;
  --night: #090806;
  --night-warm: #15100b;
  --gold: #e8c77d;
  --rust: #5b1c12;
  --line: rgba(10, 8, 5, .78);
  --serif: Georgia, 'Times New Roman', serif;
  /* A readable old-world display face. Palatino keeps the Gothic character
     without the dense blackletter forms that made longer product names hard to scan. */
  --blackletter: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --shadow: 0 18px 65px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--serif); overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; background: var(--paper-light); padding: 10px 16px; transform: translateY(-150%); transition: .2s; }
.skip-link:focus { transform: none; }

.announcement {
  min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--night); color: var(--gold); border-bottom: 1px solid rgba(232,199,125,.4);
  text-transform: uppercase; letter-spacing: .15em; font-size: 11px; text-align: center; padding: 7px 16px;
}

.site-header { background: var(--paper); padding: 9px; position: relative; z-index: 20; box-shadow: 0 2px 0 var(--ink); }
.site-header::before { content: ''; position: absolute; inset: 3px; border: 1px solid var(--ink); pointer-events: none; }
.header-banner { display: block; width: 100%; position: relative; z-index: 1; border: 3px double var(--ink); overflow: hidden; background: var(--paper-light); }
.header-banner img { display: block; width: 100%; height: auto; }
.header-frame {
  min-height: 72px; border: 3px double var(--ink); border-top: 0; display: grid; grid-template-columns: minmax(280px,1fr) auto minmax(280px,1fr);
  align-items: center; padding: 7px clamp(18px,4vw,64px); position: relative; z-index: 2;
  background-image: radial-gradient(rgba(45,30,10,.14) .65px, transparent .65px), linear-gradient(90deg, transparent 49.8%, rgba(74,47,15,.06) 50%);
  background-size: 7px 7px, 32px 100%;
}
.header-frame::before, .header-frame::after { content: '❦'; position: absolute; top: 5px; font-size: 29px; }
.header-frame::before { left: 9px; transform: rotate(-20deg); }
.header-frame::after { right: 9px; transform: rotate(20deg) scaleX(-1); }
.primary-nav { display: flex; align-items: center; gap: clamp(19px,2.25vw,39px); text-transform: uppercase; font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.nav-right { justify-content: flex-end; }
.primary-nav a { padding: 10px 0 7px; position: relative; }
.primary-nav a::after { content: ''; height: 2px; width: 0; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); background: var(--ink); transition: .2s; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a.active::after { width: 100%; }
.nav-seal { place-self: center; font-size: 18px; letter-spacing: 10px; white-space: nowrap; }
.nav-icon, .icon-button, .close-button { border: 0; background: transparent; padding: 5px; cursor: pointer; }
.nav-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.bag-button { position: relative; }
.cart-count { position: absolute; right: -5px; top: -5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 10px; font-weight: bold; }
.menu-button { display: none; }
.mobile-nav { display: none; }

.hero {
  min-height: 570px; display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden;
  color: var(--paper-light); border-bottom: 4px solid var(--ink);
  background:
    radial-gradient(circle at center, rgba(92,64,30,.22) 0, transparent 38%),
    linear-gradient(rgba(0,0,0,.04), rgba(0,0,0,.14)), var(--night);
}
.hero::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(220,182,107,.55); z-index: 2; pointer-events: none; }
.hero-art { position: absolute; inset: 0; z-index: -1; background: url('assets/hero-woodcut.svg') center/cover no-repeat; opacity: .95; }
.hero-art-right { display: none; }
.hero-grain { position: absolute; inset: 0; opacity: .13; pointer-events: none; z-index: 1; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E"); mix-blend-mode: screen; }
.hero-centre { text-align: center; position: relative; z-index: 3; max-width: 820px; padding: 70px 24px 54px; text-shadow: 0 3px 0 #000, 0 8px 25px #000; }
.hero-centre::before { content: ''; position: absolute; z-index: -1; inset: 35px -70px 20px; background: radial-gradient(ellipse at center, rgba(5,4,3,.92) 10%, rgba(5,4,3,.67) 48%, transparent 72%); }
.eyebrow { font-size: clamp(13px,1.45vw,21px); letter-spacing: .06em; font-weight: 700; text-transform: capitalize; }
.eyebrow span { padding: 0 9px; font-size: .74em; }
.hero h1 { font-family: var(--blackletter); font-size: clamp(56px,7.3vw,110px); line-height: .86; margin: 25px 0 23px; letter-spacing: -.045em; font-weight: 900; }
.hero p { font-size: clamp(17px,1.8vw,23px); line-height: 1.45; font-style: italic; margin: 0 0 23px; }
.button { border: 2px solid currentColor; min-height: 45px; padding: 12px 23px; text-transform: uppercase; font-size: 12px; letter-spacing: .11em; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 14px; position: relative; box-shadow: inset 0 0 0 3px transparent; transition: transform .18s, background .18s, color .18s; }
.button::before { content: ''; position: absolute; inset: 3px; border: 1px solid currentColor; opacity: .65; pointer-events: none; }
.button:hover { transform: translateY(-2px); }
.button-paper { color: var(--ink); background: var(--paper-light); border-color: var(--paper-light); box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 #000; }
.button-ink { color: var(--paper-light); background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.hero-cta { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 49px; padding: 15px 27px; border: 2px solid var(--ink); background: var(--paper-light); color: var(--ink); box-shadow: inset 0 0 0 3px var(--paper-light), inset 0 0 0 4px var(--ink), 0 4px 0 #000; font-family: Georgia, 'Times New Roman', serif; font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .11em; text-transform: uppercase; text-decoration: none !important; cursor: pointer; transition: transform .18s; }
.hero-cta:hover { transform: translateY(-2px); }
.hero-cta > span { display: inline-block; position: relative; text-decoration: none !important; border: 0; background: none; box-shadow: none; }
.hero-cta-label { white-space: nowrap; text-decoration-line: none !important; -webkit-text-decoration-line: none !important; }

.sigil-strip { background: var(--paper); min-height: 136px; display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 4px solid var(--ink); padding: 18px max(18px,4vw); position: relative; }
.sigil-strip::before, .sigil-strip::after { content: ''; position: absolute; inset: 7px; border: 1px solid var(--ink); pointer-events: none; }
.sigil-strip::after { inset: 11px; border-style: dotted; opacity: .45; }
.sigil { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; position: relative; z-index: 1; }
.sigil + .sigil::before { content: '✦'; position: absolute; left: 0; top: 50%; transform: translate(-50%,-50%); font-size: 15px; }
.sigil + .sigil::after { content: ''; position: absolute; height: 64%; border-left: 1px solid var(--ink); left: 0; top: 18%; opacity: .6; }
.sigil-drawing { width: 50px; height: 50px; fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.sigil strong { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; line-height: 1.2; }
.eye-icon { position: relative; }

.shop-section { background: var(--night); color: var(--gold); padding: 54px clamp(18px,4vw,72px) 76px; min-height: 820px; position: relative; }
.shop-section::before { content: ''; position: absolute; inset: 10px; border-left: 1px solid rgba(232,199,125,.23); border-right: 1px solid rgba(232,199,125,.23); pointer-events: none; }
.section-ornament { max-width: 1160px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; gap: 17px; }
.section-ornament i { height: 1px; flex: 1; max-width: 250px; background: linear-gradient(90deg,transparent,var(--gold)); }
.section-ornament i:nth-of-type(2) { background: linear-gradient(90deg,var(--gold),transparent); }
.section-ornament b { font-size: 25px; }
.section-heading { text-align: center; margin-bottom: 27px; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: bold; margin: 0 0 7px; }
.section-heading .kicker { color: #a98a50; }
.section-heading h2 { font-family: var(--blackletter); font-size: clamp(46px,5vw,73px); letter-spacing: -.035em; margin: 0; line-height: 1; }
.section-heading > p:last-child { font-style: italic; font-size: 18px; margin: 8px 0; }
.shop-toolbar { max-width: 1250px; margin: 0 auto 17px; border-top: 1px solid rgba(232,199,125,.45); border-bottom: 1px solid rgba(232,199,125,.45); padding: 14px 0; display: grid; grid-template-columns: minmax(220px,1fr) auto auto; gap: 18px; align-items: center; }
.search-field { height: 41px; border: 1px solid rgba(232,199,125,.7); display: flex; align-items: center; padding: 0 11px; max-width: 330px; }
.search-field svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; margin-right: 8px; }
.search-field input { color: var(--paper-light); background: transparent; border: 0; outline: 0; width: 100%; }
.search-field input::placeholder { color: rgba(239,209,142,.65); }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.filter { border: 1px solid rgba(232,199,125,.35); background: transparent; color: var(--gold); padding: 9px 12px; cursor: pointer; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.filter:hover, .filter.active { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.sort-control { text-transform: uppercase; letter-spacing: .1em; font-size: 10px; white-space: nowrap; }
.sort-control select { margin-left: 7px; color: var(--gold); background: var(--night); border: 1px solid rgba(232,199,125,.7); padding: 8px; }
.results-count { max-width: 1250px; margin: 0 auto 13px; color: rgba(239,209,142,.66); font-size: 12px; letter-spacing: .06em; }
.product-grid { max-width: 1250px; margin: auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(14px,2vw,26px); }
.product-card { background: var(--paper); color: var(--ink); padding: 7px; border: 1px solid var(--paper-light); position: relative; transition: transform .2s, box-shadow .2s; animation: reveal .35s ease both; }
.product-card::before { content: ''; position: absolute; inset: 3px; border: 1px solid var(--ink); pointer-events: none; z-index: 2; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(10,8,5,.52); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(0,0,0,.4); }
.product-badge { position: absolute; z-index: 4; top: 13px; left: 13px; background: var(--paper-light); color: var(--ink); border: 1px solid var(--ink); padding: 5px 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 8px; font-weight: 800; }
.product-visual { aspect-ratio: 1/1.03; border: 1px solid var(--ink); position: relative; overflow: hidden; cursor: pointer; background: radial-gradient(circle at 50% 39%, var(--glow,rgba(188,112,43,.48)), transparent 28%), linear-gradient(145deg,#17130f 0%,#050504 58%,#211307 100%); }
.product-visual::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(229,190,112,.48); box-shadow: inset 0 0 0 3px rgba(0,0,0,.45); }
.product-visual::after { content: '✦  ·  ☾  ·  ✦'; position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; color: rgba(232,199,125,.65); font-size: 9px; letter-spacing: .22em; }
.stars { position: absolute; inset: 0; color: rgba(232,199,125,.65); font-size: 10px; }
.stars span { position: absolute; } .stars span:nth-child(1){left:15%;top:18%}.stars span:nth-child(2){right:14%;top:21%}.stars span:nth-child(3){left:25%;bottom:19%}.stars span:nth-child(4){right:21%;bottom:16%}
.candle { position: absolute; width: 42%; height: 53%; border-radius: 5px 5px 12px 12px; left: 29%; bottom: 14%; background: linear-gradient(90deg,#050505,#27231d 48%,#050505); border: 1px solid #9e7e48; box-shadow: 0 12px 20px #000, inset 7px 0 12px rgba(255,255,255,.07); }
.candle::before { content: ''; position: absolute; left: -3px; right: -3px; top: -5px; height: 11px; border-radius: 50%; background: #12100d; border: 1px solid #a48751; box-shadow: inset 0 2px 2px #000; }
.flame { position: absolute; width: 15px; height: 36px; left: calc(50% - 7.5px); top: -41px; background: radial-gradient(circle at 50% 68%,#fff6b5 0 12%,#ffbe47 32%,#cc5517 59%,transparent 63%); border-radius: 60% 40% 55% 45% / 68% 68% 32% 32%; filter: drop-shadow(0 0 9px #f3a135); animation: flicker 1.8s ease-in-out infinite alternate; transform-origin: bottom; }
.label { position: absolute; left: 10%; right: 10%; top: 26%; bottom: 18%; border: 1px solid #c6a45e; color: var(--paper-light); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #0c0b09; }
.label::before { content: ''; position: absolute; inset: 3px; border: 1px dotted rgba(232,199,125,.6); }
.label-symbol { font-size: clamp(27px,3vw,42px); line-height: 1; }
.label-name { font-size: 7px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; max-width: 80%; }
.product-info { text-align: center; padding: 10px 8px 8px; position: relative; z-index: 3; }
.product-info h3 { font-family: var(--blackletter); font-size: clamp(21px,2vw,28px); margin: 0 0 3px; line-height: 1.05; }
.scent { min-height: 30px; font-style: italic; font-size: 12px; margin: 0; }
.price { display: block; font-size: 14px; font-weight: 800; letter-spacing: .08em; margin: 5px 0 10px; }
.card-actions { display: grid; grid-template-columns: 43px 1fr; gap: 6px; }
.quick-button, .add-button { border: 1px solid var(--ink); background: transparent; min-height: 38px; cursor: pointer; text-transform: uppercase; font-size: 9px; letter-spacing: .09em; font-weight: 800; }
.quick-button { font-size: 18px; }
.add-button:hover, .quick-button:hover { background: var(--ink); color: var(--paper-light); }
.empty-state { max-width: 700px; margin: 50px auto; text-align: center; color: var(--paper-light); }
.empty-state > span { font-size: 50px; }.empty-state h3{font-family:var(--blackletter);font-size:28px}.text-button{border:0;border-bottom:1px solid currentColor;background:transparent;color:inherit;cursor:pointer;padding:3px;text-transform:uppercase;font-size:10px;letter-spacing:.12em;font-weight:bold}
@keyframes reveal { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes flicker { from{transform:rotate(-2deg) scaleY(.95)} to{transform:rotate(3deg) scaleY(1.06)} }

.story-section { background: var(--paper); display: grid; grid-template-columns: 1.05fr 1fr 1.05fr; position: relative; border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.story-section::before { content:''; position:absolute; inset:9px; border:1px solid var(--ink); pointer-events:none; z-index:2; }
.story-art, .story-copy, .values { min-height: 410px; padding: 55px clamp(27px,4vw,66px); position: relative; }
.story-art { overflow: hidden; border-right: 1px solid var(--ink); background: url('assets/story-woodcut.svg') center bottom/cover no-repeat, radial-gradient(circle at 50% 65%,rgba(79,47,16,.18),transparent 44%); }
.story-copy { display:flex;flex-direction:column;justify-content:center; }
.story-copy h2 { font-family:var(--blackletter);font-size:clamp(40px,4vw,60px);line-height:.92;margin:5px 0 20px;letter-spacing:-.035em}.story-copy>p:not(.kicker){font-size:16px;line-height:1.65;margin:0 0 21px}.story-copy .button{align-self:flex-start}
.values { border-left:1px solid var(--ink);display:flex;flex-direction:column;justify-content:center;gap:21px}.value{display:grid;grid-template-columns:55px 1fr;gap:13px;align-items:center}.value>span{font-size:43px;text-align:center}.value p{margin:0;font-size:12px;line-height:1.35}.value strong{display:block;text-transform:uppercase;letter-spacing:.09em;font-size:11px;margin-bottom:3px}
.newsletter { grid-column:1/-1;background:var(--night);color:var(--gold);padding:27px clamp(34px,7vw,115px);display:grid;grid-template-columns:1fr 1.4fr;align-items:center;gap:30px;position:relative}.newsletter::before{content:'';position:absolute;inset:7px;border:1px solid rgba(232,199,125,.32);pointer-events:none}.newsletter h3{font-family:var(--blackletter);font-size:35px;margin:0}.newsletter p{margin:5px 0;font-size:13px}.newsletter form{display:flex;height:48px;position:relative;z-index:2}.newsletter input{flex:1;min-width:0;background:transparent;color:var(--paper-light);border:1px solid var(--gold);padding:0 15px;outline:0}.newsletter input::placeholder{color:rgba(239,209,142,.65)}.newsletter .button{box-shadow:inset 0 0 0 3px var(--ink);min-width:150px}.form-message{grid-column:2;margin-top:-22px!important;color:var(--paper-light)}

footer { background: var(--paper); padding: 21px clamp(20px,5vw,76px) 17px; position: relative; font-size: 11px; }
footer::before { content:'';position:absolute;inset:6px;border:1px solid var(--ink);pointer-events:none }footer>div{display:flex;justify-content:space-between;align-items:center;gap:20px}.footer-mark{font-size:20px;letter-spacing:11px}.social-links{display:flex;align-items:center;gap:14px;position:relative;z-index:2}.social-links button{width:32px;height:32px;display:grid;place-items:center;border:1px solid transparent;background:transparent;padding:4px;cursor:pointer;transition:transform .18s,border-color .18s}.social-links button:hover{transform:translateY(-2px);border-color:currentColor}.social-links svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.social-links .social-dot{fill:currentColor;stroke:none}.social-links button:nth-child(2) svg path:first-child{fill:currentColor;stroke:none}.social-links button:nth-child(2) svg path:last-child{fill:none}footer p{text-align:center;margin:13px 0 0;font-style:italic;opacity:.7}

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(2px); z-index: 80; }
.cart-drawer { position:fixed;z-index:90;right:0;top:0;height:100dvh;width:min(440px,94vw);background:var(--paper);border-left:3px solid var(--ink);box-shadow:var(--shadow);transform:translateX(105%);transition:transform .28s ease;display:flex;flex-direction:column;padding:25px}.cart-drawer::before{content:'';position:absolute;inset:7px;border:1px solid var(--ink);pointer-events:none}.cart-drawer.open{transform:none}.drawer-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--ink);padding:7px 3px 18px;position:relative;z-index:2}.drawer-header h2{font-family:var(--blackletter);font-size:37px;margin:0}.close-button{font-size:34px;line-height:1;position:relative;z-index:4}.cart-items{overflow:auto;padding:10px 2px;position:relative;z-index:2}.cart-item{display:grid;grid-template-columns:75px 1fr auto;gap:12px;padding:13px 0;border-bottom:1px solid rgba(10,8,5,.35);align-items:center}.mini-candle{height:82px;background:var(--night);color:var(--gold);display:grid;place-items:center;border:1px solid var(--ink);font-size:34px}.cart-item h3{font-family:var(--blackletter);font-size:18px;margin:0 0 4px}.cart-item p{font-size:12px;font-style:italic;margin:0 0 7px}.quantity{display:flex;align-items:center;border:1px solid var(--ink);width:max-content}.quantity button{width:25px;height:24px;border:0;background:transparent;cursor:pointer}.quantity span{font-size:11px;min-width:19px;text-align:center}.remove{border:0;background:transparent;text-decoration:underline;cursor:pointer;font-size:10px;padding:0}.cart-empty{margin:auto;text-align:center;position:relative;z-index:2}.cart-empty span{font-size:58px}.cart-summary{margin-top:auto;border-top:2px solid var(--ink);padding:17px 2px 3px;position:relative;z-index:2}.cart-summary>div{display:flex;justify-content:space-between;font-size:18px}.cart-summary>p{font-size:11px}.checkout-button{width:100%;margin-top:8px}
.quick-view{width:min(900px,93vw);max-height:90vh;padding:0;border:3px solid var(--paper-light);background:var(--paper);box-shadow:var(--shadow);overflow:auto}.quick-view::backdrop{background:rgba(0,0,0,.74);backdrop-filter:blur(3px)}.modal-close{position:absolute;right:12px;top:10px;color:var(--paper-light);z-index:8}.quick-layout{display:grid;grid-template-columns:1fr 1fr;min-height:540px}.quick-layout .product-visual{aspect-ratio:auto;min-height:540px;border:0}.quick-details{padding:55px 42px 37px;display:flex;flex-direction:column;justify-content:center}.quick-details .kicker{opacity:.65}.quick-details h2{font-family:var(--blackletter);font-size:52px;line-height:.95;margin:5px 0 8px}.quick-details .quick-price{font-weight:bold;font-size:18px;margin:5px 0 20px}.quick-details>p{line-height:1.6}.notes{border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);padding:15px 0;margin:15px 0}.notes strong{display:block;text-transform:uppercase;letter-spacing:.1em;font-size:10px;margin-bottom:5px}.notes span{font-style:italic}.quick-add{margin-top:17px;width:100%}.toast{position:fixed;z-index:120;left:50%;bottom:25px;transform:translate(-50%,30px);opacity:0;pointer-events:none;background:var(--paper-light);color:var(--ink);border:2px solid var(--ink);box-shadow:inset 0 0 0 3px var(--paper-light),inset 0 0 0 4px var(--ink),var(--shadow);padding:13px 22px;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:bold;transition:.22s}.toast.show{opacity:1;transform:translate(-50%,0)}

@media (max-width: 1080px) {
  .header-frame{grid-template-columns:1fr auto 1fr;padding-left:24px;padding-right:24px}.primary-nav{gap:16px}.nav-right a{display:none}.product-grid{grid-template-columns:repeat(3,1fr)}.shop-toolbar{grid-template-columns:1fr auto}.filter-row{grid-row:2;grid-column:1/-1}.story-section{grid-template-columns:.9fr 1.1fr}.values{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;min-height:0;border-left:0;border-top:1px solid var(--ink);padding-top:30px;padding-bottom:30px}.newsletter{grid-template-columns:1fr 1.3fr}.form-message{grid-column:2}
}

@media (max-width: 760px) {
  .announcement{font-size:9px;letter-spacing:.09em}.site-header{padding:7px}.header-frame{min-height:64px;grid-template-columns:50px 1fr 50px;padding:5px 10px}.primary-nav{display:none}.nav-seal{font-size:14px;letter-spacing:5px}.menu-button{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;width:38px}.menu-button span{display:block;width:22px;border-top:2px solid var(--ink)}.header-frame>.bag-button{display:block}.header-frame::before,.header-frame::after{font-size:20px}.nav-right{display:flex;justify-content:flex-end}.nav-right .nav-icon:first-of-type{display:none}.nav-right .bag-button{display:block}.mobile-nav{position:absolute;left:7px;right:7px;top:calc(100% - 1px);background:var(--paper);border:2px solid var(--ink);padding:9px 20px 18px;grid-template-columns:1fr 1fr;gap:0 20px;box-shadow:0 16px 25px rgba(0,0,0,.35)}.mobile-nav.open{display:grid}.mobile-nav a{text-align:center;text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:bold;padding:13px;border-bottom:1px solid rgba(10,8,5,.3)}
  .hero{min-height:525px}.hero::before{inset:6px}.hero-centre{padding-top:56px}.hero-centre::before{inset:18px -15px}.hero h1{font-size:clamp(51px,16vw,78px);margin-top:18px}.hero p{font-size:16px}.desktop-only{display:none}.sigil-strip{grid-template-columns:repeat(4,1fr);padding:15px 12px;min-height:105px}.sigil-drawing{width:32px;height:32px}.sigil strong{font-size:8px;letter-spacing:.07em}.sigil + .sigil::before{display:none}
  .shop-section{padding:44px 15px 55px}.shop-toolbar{grid-template-columns:1fr;gap:11px}.search-field{max-width:none}.sort-control{grid-row:3}.filter-row{grid-row:2;grid-column:1;overflow-x:auto;justify-content:flex-start;flex-wrap:nowrap;padding-bottom:3px}.filter{white-space:nowrap}.product-grid{grid-template-columns:repeat(2,1fr);gap:13px}.product-card{padding:5px}.product-info{padding:9px 3px 5px}.product-info h3{font-size:20px}.scent{font-size:10px}.card-actions{grid-template-columns:36px 1fr}.add-button{font-size:8px}.label-name{display:none}
  .story-section{display:block}.story-art{min-height:330px;border-right:0;border-bottom:1px solid var(--ink)}.story-copy{min-height:0;padding:44px 28px}.values{display:block;padding:34px 28px}.value{margin:0 0 22px}.newsletter{display:block;padding:35px 28px}.newsletter form{margin-top:18px}.newsletter .button{min-width:120px;padding-left:12px;padding-right:12px}.form-message{margin-top:10px!important}.footer-mark{display:none}footer>div{justify-content:center;flex-wrap:wrap;text-align:center}
  .quick-layout{display:block}.quick-layout .product-visual{min-height:420px}.quick-details{padding:37px 27px}.quick-details h2{font-size:40px}
}

@media (max-width: 420px) {
  .nav-seal{font-size:12px;letter-spacing:3px}.hero{min-height:485px}.hero h1{font-size:49px}.eyebrow{font-size:11px}.sigil-strip{padding-left:8px;padding-right:8px}.sigil strong{font-size:7px}.product-grid{grid-template-columns:1fr 1fr;gap:9px}.product-info h3{font-size:18px}.product-badge{font-size:7px}.quick-button{display:none}.card-actions{grid-template-columns:1fr}.candle{width:48%;left:26%}.newsletter form{display:grid;height:auto;gap:9px}.newsletter input{min-height:46px}.quick-layout .product-visual{min-height:360px}
}

@media (prefers-reduced-motion: reduce) { *{scroll-behavior:auto!important;animation:none!important;transition:none!important} }

/* WordPress and WooCommerce integration */
.admin-bar .site-header { top: 0; }
.menu-list { display: flex; align-items: center; gap: clamp(19px,2.25vw,39px); list-style: none; margin: 0; padding: 0; }
.menu-list a { padding: 10px 0 7px; position: relative; }
.menu-list a::after { content: ''; height: 2px; width: 0; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); background: var(--ink); transition: .2s; }
.menu-list a:hover::after, .menu-list .current-menu-item > a::after { width: 100%; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.mobile-nav .menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; width: 100%; }
.mobile-nav .menu-list a { display: block; text-align: center; }
.site-main { min-height: 55vh; }
.content-shell, .woocommerce-shell { width: min(1260px, 92vw); margin: 0 auto; padding: 55px 0 75px; position: relative; z-index: 2; }
.page-surface {
  min-height: 55vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--gold);
  border-top: 1px solid rgba(232,199,125,.42);
  background:
    radial-gradient(circle at 50% 0, rgba(105,73,34,.28) 0, transparent 42%),
    linear-gradient(rgba(0,0,0,.02),rgba(0,0,0,.17)),
    var(--night);
}
.page-surface::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 0;
  border: 1px solid rgba(232,199,125,.28);
  pointer-events: none;
}
.page-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .10;
  pointer-events: none;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}
.content-shell > article,
.content-shell.empty-state {
  background: var(--paper);
  color: var(--ink);
  border: 3px double var(--ink);
  box-shadow: 0 18px 55px rgba(0,0,0,.42), inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(10,8,5,.5);
  padding: clamp(28px,4.5vw,68px);
}
.content-shell > article + article { margin-top: 28px; }
.content-shell.empty-state { max-width: 760px; margin-top: 55px; margin-bottom: 75px; }
.page-title, .entry-title, .woocommerce-products-header__title {
  font-family: var(--blackletter);
  font-size: clamp(38px,4.6vw,64px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.06;
}
.entry-content { font-size: 16px; line-height: 1.7; }
.entry-content img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

/* Real WooCommerce product cards */
.product-visual.product-photo { background: var(--night-warm); }
.product-visual.product-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-visual.product-photo img { transform: scale(1.025); }
.product-visual.product-photo::after { content: '✦  ·  ☾  ·  ✦'; }
.product-card .add-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.product-card .add-button.added::after { content: ' ✓'; margin-left: 4px; }
.product-card .added_to_cart { grid-column: 1/-1; border: 1px solid var(--ink); padding: 8px; margin-top: 6px; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; font-weight: bold; }
.product-card[hidden] { display: none!important; }

/* WooCommerce catalogue */
.woocommerce-shell { color: var(--gold); }
.woocommerce-shell .woocommerce { width: 100%; }
.woocommerce .woocommerce-breadcrumb { margin: 0 0 22px; font-size: 12px; opacity: .72; }
.woocommerce .woocommerce-result-count { font-size: 12px; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--gold); background: var(--night-warm); color: var(--gold); padding: 9px 12px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: 24px; clear: both; margin: 35px 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none!important; display: flex; flex-direction: column; min-width: 0; width: auto!important; height: 100%; margin: 0!important; padding: 7px 7px 14px; overflow: hidden; border: 2px solid var(--ink); background: var(--paper-light); text-align: center; position: relative; }
.woocommerce ul.products li.product > a.woocommerce-loop-product__link { display: flex; flex: 1; min-width: 0; flex-direction: column; color: var(--ink); }
.woocommerce ul.products li.product a img { display: block!important; width: 100%!important; height: auto!important; margin: 0 0 14px!important; aspect-ratio: 1/1; object-fit: cover; border: 1px solid var(--ink); background: var(--night-warm); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--blackletter); font-size: 21px!important; font-weight: 700; line-height: 1.28; letter-spacing: -.012em; overflow-wrap: anywhere; hyphens: auto; color: var(--ink); }
.woocommerce ul.products li.product .price { margin-top: auto; color: var(--ink)!important; font-weight: 800!important; }
.woocommerce ul.products li.product > .button { align-self: center; margin-top: 3px; }
.woocommerce-product-image-fallback {
  display: grid;
  width: 100%;
  aspect-ratio: 1/1;
  place-items: center;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background:
    radial-gradient(circle at 50% 46%, rgba(232,199,125,.18), transparent 31%),
    linear-gradient(145deg,#17130f,#050504 60%,#211307);
  color: var(--gold);
}
.woocommerce-product-image-fallback__inner { display: grid; width: calc(100% - 18px); height: calc(100% - 18px); place-content: center; gap: 8px; padding: 18px; border: 1px solid rgba(232,199,125,.5); text-align: center; }
.woocommerce-product-image-fallback__mark { font-size: clamp(38px,5vw,66px); line-height: 1; text-shadow: 0 0 22px rgba(232,199,125,.32); }
.woocommerce-product-image-fallback__label { font-size: 9px; font-weight: 700; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { border: 1px solid var(--ink)!important; border-radius: 0!important; background: var(--ink)!important; color: var(--paper-light)!important; text-transform: uppercase; letter-spacing: .09em; font-size: 10px!important; }
.woocommerce span.onsale { min-width: auto; min-height: auto; line-height: 1.2; border-radius: 0; padding: 7px 9px; background: var(--rust); color: var(--paper-light); }
.woocommerce nav.woocommerce-pagination ul, .woocommerce nav.woocommerce-pagination ul li { border-color: var(--gold); }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { color: var(--gold); }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--gold); color: var(--ink); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--gold); color: var(--ink); }

/* Product, basket, checkout and account */
.woocommerce-shell div.product.type-product {
  display: flow-root;
  background: var(--paper);
  color: var(--ink);
  border: 3px double var(--ink);
  box-shadow: 0 18px 55px rgba(0,0,0,.42), inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(10,8,5,.5);
  padding: clamp(22px,3.5vw,52px);
}
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images img { border: 2px solid var(--ink); }
.woocommerce div.product .product_title { font-family: var(--blackletter); font-size: clamp(42px,5vw,68px); line-height: 1; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-weight: 800; }
.woocommerce div.product form.cart .button { min-height: 45px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 0; border-color: var(--ink); background: var(--paper-deep); }
.woocommerce table.shop_table { border-color: var(--ink); border-radius: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: rgba(10,8,5,.3); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--ink); background: rgba(255,255,255,.28); padding: 11px; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top-color: var(--ink); background: var(--paper-light); color: var(--ink); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ink); }

/* WooCommerce mini basket drawer */
.tww-cart-fragment { display: flex; flex-direction: column; min-height: 0; flex: 1; position: relative; z-index: 2; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 7px 0; overflow: auto; }
.woocommerce-mini-cart-item { position: relative; min-height: 82px; padding: 13px 28px 13px 76px!important; border-bottom: 1px solid rgba(10,8,5,.35); }
.woocommerce-mini-cart-item img { position: absolute; left: 0; top: 13px; width: 62px!important; height: 62px!important; object-fit: cover; border: 1px solid var(--ink); }
.woocommerce-mini-cart-item a { font-family: var(--blackletter); font-size: 17px; }
.woocommerce-mini-cart-item a.remove { left: auto!important; right: 0; top: 11px; font-family: sans-serif; }
.woocommerce-mini-cart-item .quantity { display: block; border: 0; margin-top: 5px; font-size: 11px; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; border-top: 2px solid var(--ink); padding: 16px 0 5px; margin-top: auto; }
.woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.woocommerce-mini-cart__buttons .button { text-align: center; padding: 12px 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-light); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; }
.woocommerce-mini-cart__empty-message { margin: auto; text-align: center; font-style: italic; }

.search-panel { position: fixed; z-index: 100; inset: 0 0 auto; display: none; background: var(--paper); border-bottom: 3px solid var(--ink); padding: 26px max(20px,7vw); box-shadow: var(--shadow); }
.search-panel.open { display: block; }
.search-panel form { max-width: 850px; margin: auto; display: flex; gap: 8px; }
.search-panel input { flex: 1; min-width: 0; border: 2px solid var(--ink); background: transparent; padding: 13px; }
.search-panel button { border: 2px solid var(--ink); background: var(--ink); color: var(--paper-light); padding: 0 22px; text-transform: uppercase; font-size: 10px; font-weight: bold; }

@media (max-width: 1080px) {
  .woocommerce ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .primary-nav { display: none; }
  .mobile-nav .menu-list { display: grid; }
  .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: 100%; }
  .content-shell, .woocommerce-shell { width: min(100% - 28px,1260px); padding: 35px 0 50px; }
  .content-shell > article, .content-shell.empty-state, .woocommerce-shell div.product.type-product { padding: 25px 18px; }
}
@media (max-width: 420px) {
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px!important; line-height: 1.25; }
  .woocommerce-mini-cart__buttons { grid-template-columns: 1fr; }
  .woocommerce-product-image-fallback__label { font-size: 8px; }
}

/* Final WordPress-specific refinements */
.social-links a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; padding: 4px; transition: transform .18s,border-color .18s; }
.social-links a:hover { transform: translateY(-2px); border-color: currentColor; }
.social-links a:nth-child(2) svg path:first-child { fill: currentColor; stroke: none; }
.social-links a:nth-child(2) svg path:last-child { fill: none; }
.view-all-wrap { margin: 38px 0 0; text-align: center; }
