/*
Theme Name: Winter Supplies
Theme URI: https://wintersupplies.store/
Author: Winter Supplies
Description: Shop and buying-guide theme for Winter Supplies. Spruce, ember, Fraunces and Inter.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: winter-supplies
*/

@font-face { font-family: "Fraunces"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --spruce: #17403A;
  --spruce-dark: #0F2C28;
  --ember: #C4541B;
  --ember-dark: #A4440F;
  --glacier: #DCEBF0;
  --snow: #FAFBFC;
  --charcoal: #1B2327;
  --slate: #5E6C72;
  --border: #D5DEE2;
  --success: #2F7D4F;
  --warning: #B3261E;
  --white: #fff;
  --heading: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1180px;
  --prose: 740px;
  --shadow: 0 10px 30px rgba(23, 64, 58, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--spruce); }
a:hover { color: var(--ember-dark); }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 600; color: var(--spruce); line-height: 1.2; margin: 1.4em 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1rem; }
.skip-link {
  position: absolute; left: 12px; top: -40px; background: var(--ember); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { top: 12px; color: #fff; }
.ws-wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.ws-prose { max-width: var(--prose); }
.ws-prose-wide { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }

.ws-disclosure {
  background: var(--glacier);
  color: var(--charcoal);
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 10px 16px;
  text-align: center;
}
.ws-disclosure a { font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 251, 252, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo img { height: 38px; width: auto; }
.nav-toggle, .cookie-toggle {
  font: inherit; cursor: pointer;
}
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid var(--spruce);
  color: var(--spruce); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 0.9rem;
}
.site-nav { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--charcoal); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--spruce); }
.header-cart {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--spruce); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 0.9rem;
}
.header-cart:hover { background: var(--spruce-dark); color: #fff; }
.header-cart span {
  background: var(--ember); color: #fff; border-radius: 999px; min-width: 1.4em; text-align: center; font-size: 0.8rem; padding: 0 6px;
}

.ws-hero { background: var(--spruce); color: #fff; padding: 72px 0 64px; }
.ws-hero h1, .ws-hero p { color: #fff; }
.ws-hero .lede { color: var(--glacier); font-size: 1.15rem; max-width: 740px; }
.ws-search { display: flex; gap: 8px; margin-top: 28px; max-width: 640px; }
.ws-search input[type="search"] {
  flex: 1; border: 0; border-radius: var(--radius); padding: 14px 16px; font: inherit; font-size: 1rem;
}
.ws-search button, .ws-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius); padding: 12px 18px; font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.ws-btn-ember, .ws-search button, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce button.button, .woocommerce a.button {
  background: var(--ember); color: #fff; border-color: var(--ember);
}
.ws-btn-ember:hover, .ws-search button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover {
  background: var(--ember-dark); border-color: var(--ember-dark); color: #fff;
}
.ws-btn-outline { background: transparent; color: var(--spruce); border-color: var(--spruce); }
.ws-btn-outline:hover { background: var(--spruce); color: #fff; }
.ws-btn-white { background: #fff; color: var(--spruce); }

.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 8px; }
.section-head p, .muted { color: var(--slate); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .guide-card, .product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px;
}
.card:hover, .guide-card:hover, .product-card:hover { border-color: var(--spruce); }
.card h2, .card h3, .guide-card h3, .product-card h3 { margin: 0; font-size: 1.35rem; }
.icon-bubble {
  width: 48px; height: 48px; border-radius: 14px; background: var(--glacier); color: var(--spruce);
  display: grid; place-items: center;
}
.icon-bubble svg { width: 26px; height: 26px; }
.guide-card .date, .product-card .meta, .ws-byline { color: var(--slate); font-size: 0.92rem; }
.product-card img, .ws-product-photo { border-radius: 12px; background: var(--glacier); width: 100%; aspect-ratio: 1; object-fit: cover; }
.price { font-weight: 700; color: var(--spruce); }
.score-pill { font-family: var(--heading); color: var(--spruce); font-weight: 600; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.steps { margin: 0; padding-left: 1.2rem; }
.steps li { margin: 0 0 0.7rem; }

.site-footer { background: var(--spruce-dark); color: #d7e4e1; padding: 48px 0 28px; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-top: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 12px; }
.legal { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; color: #b7c9c5; font-size: 0.85rem; }

.ws-crumbs { font-size: 0.9rem; color: var(--slate); margin-bottom: 16px; }
.ws-crumbs a { text-decoration: none; }
.ws-content h2 { margin-top: 1.6em; }
.ws-content ul, .ws-content ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.ws-content li { margin: 0.25rem 0; }
table.ws-table, .ws-content table, .woocommerce table.shop_table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; background: #fff; font-size: 0.95rem;
}
table.ws-table th, .ws-content table th, .woocommerce table.shop_table th {
  background: var(--glacier); text-align: left; font-weight: 600; color: var(--spruce);
}
table.ws-table th, table.ws-table td, .ws-content table th, .ws-content table td, .woocommerce table.shop_table th, .woocommerce table.shop_table td {
  border: 1px solid var(--border); padding: 10px 12px; vertical-align: top;
}
.ws-callout {
  border-left: 4px solid var(--warning); background: #fdf6f5; padding: 14px 16px; border-radius: 0 12px 12px 0; margin: 1rem 0 1.2rem;
}
.ws-note { background: var(--glacier); border-radius: var(--radius); padding: 12px 14px; color: var(--charcoal); }
.ws-sample {
  background: #fff7f2; border: 1px solid #f0d2c2; color: var(--charcoal); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; font-size: 0.95rem;
}
.verdict {
  display: grid; grid-template-columns: 280px 1fr; gap: 22px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin: 12px 0 20px;
}
.verdict .score { font-family: var(--heading); font-size: 3rem; color: var(--spruce); line-height: 1; }
.verdict .score small { font-size: 1rem; color: var(--slate); }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.ws-faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0 0 8px; }
.ws-faq summary { cursor: pointer; font-weight: 600; color: var(--spruce); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros li::marker { color: var(--success); }
.cons li::marker { color: var(--warning); }
.checklist { list-style: none; padding: 0; }
.checklist li { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin: 0 0 8px; }

.page-shell { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 72px; }
.hub-grid, ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0 0 24px; padding: 0; }
ul.products li.product, ul.products::before, ul.products::after { width: auto !important; float: none !important; margin: 0 !important; }
ul.products li.product {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow);
}
ul.products li.product a { text-decoration: none; }
ul.products li.product .price { display: block; margin: 6px 0; }
.woocommerce-result-count, .woocommerce-ordering { color: var(--slate); font-size: 0.95rem; }
.woocommerce-ordering select, .woocommerce form .input-text, .woocommerce-page form .input-text, .ws-form input, .ws-form select, .ws-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font: inherit; background: #fff; color: var(--charcoal);
}
.ws-form label, .woocommerce form .form-row label { display: block; font-weight: 600; font-size: 0.95rem; margin: 12px 0 6px; }
.ws-form .hp { position: absolute; left: -9999px; }
.form-success { background: #eef7f1; border: 1px solid #b7dfc6; padding: 12px 14px; border-radius: 12px; }
.woocommerce { padding-bottom: 24px; }
.woocommerce-breadcrumb { font-size: 0.9rem; color: var(--slate); }
.woocommerce div.product .product_title { font-family: var(--heading); color: var(--spruce); }
.sticky-buy {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--border);
  padding: 10px 16px; z-index: 30; gap: 10px; align-items: center; justify-content: space-between;
}
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; background: var(--spruce-dark); color: #fff;
  border-radius: 16px; padding: 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow);
}
.cookie-bar p { margin: 0; font-size: 0.92rem; color: #e7f0ee; max-width: 760px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-bar button { border-radius: 999px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.cookie-bar .accept { background: var(--ember); color: #fff; border: 0; }
.cookie-bar .essential { background: transparent; color: #fff; border: 1px solid #fff; }

.search-list, .author-list { list-style: none; padding: 0; }
.search-list li, .author-list li { margin: 0 0 14px; }
@media (max-width: 980px) {
  .card-grid, .hub-grid, ul.products { grid-template-columns: 1fr 1fr; }
  .split, .verdict, .footer-grid, .proscons { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff;
    flex-direction: column; align-items: flex-start; padding: 12px 20px 18px; border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .header-cart { margin-left: 0; }
  .ws-hero { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .sticky-buy { display: flex; }
  body.has-sticky-buy { padding-bottom: 76px; }
}
@media (max-width: 640px) {
  .card-grid, .hub-grid, ul.products { grid-template-columns: 1fr; }
  .ws-search { flex-direction: column; }
  .header-inner { min-height: 64px; }
  .logo img { height: 32px; }
}
@media print {
  .site-header, .site-footer, .ws-disclosure, .cookie-bar, .sticky-buy, .header-cart, .ws-btn { display: none !important; }
}
