/*
Theme Name: DroomWolf
Author: DroomWolf
Description: A warm, moody WooCommerce theme for books, vinyl and curious collectables.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: droomwolf
License: GNU General Public License v2 or later
*/

:root {
  --ink: #131921;
  --ink-soft: #202731;
  --night: #11172a;
  --indigo: #252857;
  --parchment: #f0eadb;
  --paper: #f8f4ea;
  --brass: #b5965b;
  --rust: #8b5b3f;
  --sage: #7c857c;
  --line: rgba(181,150,91,.35);
  --shadow: 0 20px 60px rgba(8,12,18,.18);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .26; z-index: -1; background-image: radial-gradient(circle at 20% 15%, rgba(181,150,91,.12), transparent 28%), radial-gradient(circle at 80% 60%, rgba(37,40,87,.08), transparent 32%); }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #d1aa62; outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 9999; padding: .7rem 1rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-main { min-height: 55vh; }
.eyebrow { color: var(--brass); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .7em; }
h1 { font-size: clamp(2.6rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
p { margin: 0 0 1.25rem; }
.button, button, input[type=submit], .wp-element-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .68rem 1.1rem; border: 1px solid var(--brass); border-radius: 2px; background: var(--night); color: #fff; font-weight: 700; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: .2s ease; }
.button:hover, button:hover, input[type=submit]:hover, .wp-element-button:hover { transform: translateY(-2px); background: var(--indigo); color: #fff; box-shadow: 0 8px 24px rgba(17,23,42,.22); }
.button--ghost { background: transparent; color: var(--ink); border-color: currentColor; }

/* Header */
.top-note { padding: .38rem 1rem; text-align: center; background: #0d1219; color: #ded5c0; font-size: .84rem; letter-spacing: .05em; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(19,25,33,.96); color: #f8f4ea; border-bottom: 1px solid rgba(181,150,91,.35); backdrop-filter: blur(12px); }
.header-inner { min-height: 80px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 1rem; }
.site-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.site-brand__mark { width: 42px; height: 42px; border: 1px solid var(--brass); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.35rem; color: var(--brass); }
.site-brand__name { font-family: var(--serif); font-size: 1.55rem; letter-spacing: .12em; }
.main-nav ul { display: flex; justify-content: center; gap: clamp(.8rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #f8f4ea; font-size: .92rem; text-decoration: none; }
.main-nav a:hover { color: #d4b571; }
.header-tools { display: flex; align-items: center; gap: .35rem; }
.icon-link { min-width: 42px; height: 42px; display: grid; place-items: center; color: #fff; text-decoration: none; border-radius: 50%; }
.icon-link:hover { background: rgba(255,255,255,.08); color: #d4b571; }
.cart-count { min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; margin: -20px 0 0 -10px; border-radius: 9px; background: var(--brass); color: var(--ink); font-size: .68rem; font-weight: 800; }
.menu-toggle { display: none; background: transparent; border: 0; padding: .5rem; min-height: 42px; color: #fff; }

/* Home */
.hero { min-height: clamp(620px, 82vh, 850px); display: grid; align-items: end; position: relative; overflow: hidden; background: #141a23; color: #fff; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; filter: saturate(.72) contrast(1.06); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,18,.92) 0%, rgba(8,12,18,.55) 45%, rgba(8,12,18,.15) 74%), linear-gradient(0deg, rgba(8,12,18,.72), transparent 50%); }
.hero__content { position: relative; z-index: 1; max-width: 650px; padding-block: clamp(5rem, 12vw, 9rem); }
.hero h1 { letter-spacing: .09em; text-transform: uppercase; margin-bottom: .12em; }
.hero__tagline { font-family: var(--serif); font-size: clamp(1.25rem, 2.5vw, 2rem); font-style: italic; color: #eee3cb; }
.hero__copy { max-width: 540px; color: #ddd8ce; font-size: 1.08rem; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero .button--ghost { color: #fff; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.section--dark { background: var(--ink); color: #f6f1e7; }
.section--muted { background: #e7deca; }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-head p { max-width: 530px; color: #6d685e; }
.section--dark .section-head p { color: #bbb5a9; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--brass); white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.category-card { min-height: 300px; padding: 1.5rem; display: flex; align-items: end; position: relative; overflow: hidden; background: var(--ink-soft); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: .5s ease; }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,12,18,.94), transparent 70%); }
.category-card:hover img { transform: scale(1.04); opacity: .68; }
.category-card__content { position: relative; z-index: 1; }
.category-card h3 { margin: 0; }
.category-card small { color: #d2c6ad; }
.product-grid, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0 !important; padding: 0; }
.product-grid > *, .woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.product-card, .woocommerce ul.products li.product { position: relative; padding-bottom: 1rem; background: #fff; color: var(--ink); box-shadow: 0 10px 35px rgba(18,24,32,.1); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover, .woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card__image, .woocommerce ul.products li.product img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin: 0 0 1rem !important; background: #ddd5c3; }
.product-card__body, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price { margin-inline: 1rem !important; }
.product-card__meta { color: var(--rust); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.product-card h3 { font-size: 1.25rem; margin: .25rem 0; }
.price, .woocommerce div.product p.price { color: var(--indigo) !important; font-weight: 800; }
.price del { color: #777; font-weight: 400; }
.price ins { text-decoration: none; }
.woocommerce span.onsale { min-height: auto; min-width: auto; padding: .35rem .65rem; border-radius: 0; background: var(--rust); line-height: 1.3; }
.woocommerce ul.products li.product .button { margin: .75rem 1rem 0; }
.story-grid { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 540px; background: var(--night); color: #fff; }
.story-grid__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65); }
.story-grid__copy { display: grid; align-content: center; padding: clamp(2rem, 6vw, 5rem); }
.story-grid__copy p { color: #c9c3b7; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card { background: #fff; border-top: 3px solid var(--brass); padding: 1.5rem; box-shadow: 0 8px 30px rgba(18,24,32,.08); }
.post-card time { color: #6b655b; font-size: .82rem; }
.post-card h3 { margin-top: .4rem; font-size: 1.45rem; }
.post-card a { text-decoration: none; }
.newsletter { padding: clamp(2rem, 6vw, 5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--indigo); color: #fff; position: relative; overflow: hidden; }
.newsletter::before { content: 'DW'; position: absolute; right: -1rem; bottom: -4rem; font: 12rem/1 var(--serif); color: rgba(255,255,255,.035); }
.newsletter p { color: #d9d8e5; }
.newsletter-form { display: flex; gap: .6rem; }
.newsletter-form input { flex: 1; min-width: 0; padding: .75rem; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; }
.newsletter-form input::placeholder { color: #d2d0dc; }

/* Inner pages */
.page-hero { padding-block: clamp(4rem, 9vw, 7rem); background: var(--ink); color: #fff; border-bottom: 1px solid var(--brass); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.content-shell { width: min(820px, calc(100% - 2rem)); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem); }
.content-shell--wide { width: min(1180px, calc(100% - 2rem)); }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: 1100px; margin-inline: auto; }
.entry-content img { border-radius: 2px; }
.entry-content blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--brass); font: italic 1.35rem/1.5 var(--serif); }
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; }
.archive-list { display: grid; gap: 1.25rem; }
.archive-card { padding: 1.5rem; background: #fff; border-left: 3px solid var(--brass); }
.archive-card h2 { font-size: 1.75rem; }
.sidebar { padding: 1.5rem; background: #e8e0d0; align-self: start; }
.sidebar ul { padding-left: 1.2rem; }
.pagination { margin-top: 2rem; }
.nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.page-numbers { padding: .45rem .8rem; background: #fff; text-decoration: none; }
.page-numbers.current { background: var(--ink); color: #fff; }
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid #aaa08e; background: #fff; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { margin-bottom: 1.5rem; color: #6e685f; }
.woocommerce .woocommerce-ordering select, .woocommerce .quantity .qty, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; padding: .55rem; border: 1px solid #aaa08e; background: #fff; }
.shop-filters { clear: both; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(120px, .7fr)) auto; gap: .65rem; align-items: end; margin: 1rem 0 2rem; padding: 1rem; background: #e9dfca; border-top: 2px solid var(--brass); }
.shop-filters label { display: grid; gap: .25rem; color: #514b42; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.shop-filters select, .shop-filters input { width: 100%; min-height: 44px; padding: .55rem; border: 1px solid #aaa08e; background: #fff; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.woocommerce div.product .woocommerce-product-gallery, .woocommerce div.product .summary { width: auto !important; float: none !important; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related { grid-column: 1 / -1; width: 100%; }
.woocommerce div.product .product_title { font-size: clamp(2.2rem, 4vw, 4rem); }
.woocommerce .stock { font-weight: 700; }
.woocommerce .stock.in-stock { color: #406646; }
.woocommerce .stock.out-of-stock { color: #8a3e34; }
.droomwolf-details { margin: 1.25rem 0; padding: 1rem 1.2rem; background: #e9dfca; border-left: 3px solid var(--brass); }
.droomwolf-details h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.droomwolf-details dl { display: grid; grid-template-columns: minmax(110px, .45fr) 1fr; gap: .35rem 1rem; margin: 0; }
.droomwolf-details dt { color: #5b554c; font-weight: 700; }
.droomwolf-details dd { margin: 0; }
.woocommerce table.shop_table { border-color: #c6baa3; border-radius: 0; background: #fff; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--brass); background: #ece5d8; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--rust); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: .5rem .8rem; background: #e6ddca; text-decoration: none; }

/* Footer */
.site-footer { background: #0d1219; color: #cfc8bb; }
.footer-grid { padding-block: 4rem 3rem; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1.15rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #cfc8bb; text-decoration: none; }
.site-footer a:hover { color: #d4b571; }
.footer-brand { font-family: var(--serif); color: #fff; font-size: 1.9rem; letter-spacing: .1em; }
.footer-bottom { padding-block: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; }
.placeholder-note { padding: 1rem; border: 1px dashed var(--rust); background: #fff6e8; color: #5c3d2b; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 68px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; grid-column: 1 / -1; padding-bottom: 1rem; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .header-tools .account-link { display: none; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: 1fr; }
  .story-grid__image { min-height: 380px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .newsletter, .blog-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related { grid-column: auto; }
  .shop-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-brand__name { font-size: 1.25rem; }
  .header-inner { gap: .35rem; }
  .site-brand__mark { width: 36px; height: 36px; }
  .hero { min-height: 680px; }
  .hero::after { background: linear-gradient(0deg, rgba(8,12,18,.92) 0%, rgba(8,12,18,.48) 75%, rgba(8,12,18,.2)); }
  .hero__content { padding-block: 4rem; }
  .section-head { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .category-grid, .product-grid, .woocommerce ul.products, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-grid, .woocommerce ul.products { gap: 1rem; }
  .newsletter-form { flex-direction: column; }
  .droomwolf-details dl { grid-template-columns: 1fr; }
  .droomwolf-details dd { margin-bottom: .5rem; }
  .shop-filters { grid-template-columns: 1fr; }
  .shop-filters button { width: 100%; }
  .hero::after { background: linear-gradient(0deg, #080c12 0%, rgba(8,12,18,.98) 46%, rgba(8,12,18,.48) 76%, rgba(8,12,18,.18)); }
  .hero h1, .hero__tagline { text-shadow: 0 2px 18px #080c12; }
}

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