/*
Theme Name: Homefront Knives
Theme URI: https://homefrontknives.com/
Author: Homefront Knives
Author URI: https://homefrontknives.com/
Description: A highly customizable, classic two-column WordPress blog theme for Homefront Knives with optional WooCommerce support and rugged Homefront Arms-inspired styling.
Version: 1.3.1
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: homefront-knives
Tags: blog, two-columns, right-sidebar, left-sidebar, custom-logo, custom-menu, custom-header, featured-images, threaded-comments, translation-ready, wide-blocks, e-commerce
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --hfk-accent: #b08d57;
  --hfk-accent-alt: #8f231f;
  --hfk-page-bg: #090a0a;
  --hfk-content-bg: #f6efe4;
  --hfk-text: #171513;
  --hfk-muted: #665f57;
  --hfk-header-bg: #090a0a;
  --hfk-nav-bg: #1c1d1d;
  --hfk-widget-bg: #fffaf2;
  --hfk-sidebar-bg: #1a1715;
  --hfk-sidebar-text: #eee7dc;
  --hfk-border: #cbbba5;
  --hfk-content-max: 1280px;
  --hfk-sidebar-width: 320px;
  --hfk-logo-desktop: 70px;
  --hfk-logo-mobile: 54px;
  --hfk-body-size: 16px;
  --hfk-radius: 3px;
  --hfk-body-font: Montserrat, Arial, sans-serif;
  --hfk-heading-font: "Roboto Condensed", Arial, sans-serif;
  --hfk-shadow: 0 12px 34px rgba(46, 31, 18, .10);
  --hfk-dark-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hfk-page-bg);
  color: var(--hfk-text);
  font-family: var(--hfk-body-font);
  font-size: var(--hfk-body-size);
  line-height: 1.68;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--hfk-accent-alt); text-decoration: none; }
a:hover, a:focus { color: var(--hfk-accent); }
button, input, select, textarea { font: inherit; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  padding: .76rem .85rem;
  border: 1px solid var(--hfk-border);
  border-radius: var(--hfk-radius);
  background: #fff;
  color: var(--hfk-text);
}
textarea { min-height: 150px; }
button, .button, input[type="submit"], .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .68rem 1.05rem;
  border: 1px solid var(--hfk-accent-alt);
  border-radius: 2px;
  background: var(--hfk-accent-alt);
  color: #fff;
  font-family: var(--hfk-heading-font);
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-element-button:hover {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-1px);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  color: var(--hfk-text);
  font-family: var(--hfk-heading-font);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.35rem, 4.8vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
p { margin: 0 0 1.28rem; }
blockquote {
  margin: 1.9rem 0;
  padding: 12px 22px;
  border-left: 5px solid var(--hfk-accent);
  background: #efe4d3;
  color: #3b352f;
  font-size: 1.08em;
}
hr { border: 0; border-top: 1px solid var(--hfk-border); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  z-index: 999999;
  top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 12px 16px;
  background: #fff; color: #111;
  clip: auto;
}

.hfk-container { width: min(calc(100% - 48px), var(--hfk-content-max)); margin-inline: auto; }

/* Compact Homefront-style utility bar */
.hfk-topbar {
  background: linear-gradient(90deg, #6f1713, #8d211a 55%, #65140f);
  color: #fff;
  border-bottom: 1px solid #9d382e;
  font-family: var(--hfk-heading-font);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.hfk-topbar__inner {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0;
}
.hfk-topbar__message { white-space: nowrap; }
.hfk-topbar__right { display: flex; align-items: center; justify-content: flex-end; gap: 0; min-width: 0; }
.hfk-topbar__contact, .hfk-social { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0; }
.hfk-topbar__contact a, .hfk-social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 12px;
  margin-left: 12px;
  color: #fff;
  white-space: nowrap;
}
.hfk-topbar__contact a::before, .hfk-social a::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,.28);
}
.hfk-topbar__right > :first-child a:first-child { padding-left: 0; margin-left: 0; }
.hfk-topbar__right > :first-child a:first-child::before { display: none; }
.hfk-topbar a:hover { color: #f3d29c; }

/* Homefront-style logo and search band */
.site-header {
  position: relative;
  z-index: 50;
  background: #090a0a;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hfk-branding-row {
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(300px, 500px) minmax(520px, 1fr);
  align-items: center;
  gap: 34px;
  padding: 26px 0 24px;
}
.site-branding { display: flex; align-items: center; min-width: 0; overflow: visible; }
.custom-logo-link { display: flex; align-items: center; max-width: 100%; }
.custom-logo {
  width: auto;
  max-width: 100%;
  max-height: var(--hfk-logo-desktop);
  object-fit: contain;
  object-position: left center;
}
.hfk-site-identity { min-width: 0; }
.site-title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.65rem); letter-spacing: .035em; }
.site-title a { color: #fff; }
.site-description { margin: .28rem 0 0; color: var(--hfk-accent); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.site-description--logo { margin-left: 15px; }
.hfk-header-tools {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) auto;
  align-items: center;
  gap: 28px;
}
.hfk-branding-row--no-actions .hfk-header-tools { grid-template-columns: minmax(420px, 1fr); }
.hfk-site-search { width: 100%; max-width: none; min-width: 0; }
.search-form, .hfk-search-form {
  display: flex;
  width: 100%;
  min-height: 58px;
  border: 1px solid #d8cdbd;
  border-radius: 3px;
  background: #f7f1e7;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  overflow: hidden;
}
.search-form label, .hfk-search-form label { flex: 1 1 auto; min-width: 0; }
.search-form .search-field, .hfk-search-form .search-field {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #222;
  box-shadow: none;
  outline: none;
  font-size: .96rem;
}
.search-form .search-field:focus, .hfk-search-form .search-field:focus { box-shadow: none; }
.search-form .search-submit, .hfk-search-form button {
  position: static;
  flex: 0 0 auto;
  min-width: 126px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-left: 1px solid rgba(0,0,0,.12);
  border-radius: 0;
  background: var(--hfk-accent-alt);
  color: #fff;
  box-shadow: none;
  font-size: .84rem;
  letter-spacing: .045em;
}
.search-form .search-submit::before, .hfk-search-form button::before {
  content: "\1F50D";
  display: inline-block;
  margin-right: 8px;
  font-size: .92rem;
}
.hfk-store-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  font-family: var(--hfk-heading-font);
  white-space: nowrap;
}
.hfk-store-button, .hfk-cart-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 0 0 20px;
  margin-left: 20px;
  border-left: 1px solid rgba(183,140,77,.25);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hfk-store-button:hover, .hfk-cart-link:hover { color: var(--hfk-accent); }
.hfk-cart-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 7px; padding: 0 5px; border-radius: 999px; background: var(--hfk-accent-alt); color: #fff; font-size: .66rem; }

.hfk-header-center .hfk-branding-row { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 0; }
.hfk-header-center .site-branding { justify-content: center; flex-direction: column; }
.hfk-header-center .custom-logo { object-position: center; }
.hfk-header-center .hfk-header-tools { display: flex; width: min(100%, 900px); justify-self: center; align-items: center; gap: 14px; }
.hfk-header-center .site-description--logo { margin: 8px 0 0; }

/* Primary and topic navigation */
.hfk-nav-shell { background: var(--hfk-nav-bg); border-top: 1px solid #2a2b2b; border-bottom: 1px solid #050505; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.main-navigation { position: relative; }
.main-navigation ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: block;
  padding: 14px 17px;
  color: #ece7df;
  font-family: var(--hfk-heading-font);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a { background: rgba(255,255,255,.05); color: var(--hfk-accent); }
.main-navigation ul ul {
  position: absolute;
  z-index: 100;
  top: 100%; left: 0;
  display: none;
  min-width: 230px;
  padding: 7px;
  background: #121315;
  border: 1px solid rgba(176,141,87,.30);
  box-shadow: var(--hfk-dark-shadow);
}
.main-navigation ul ul a { padding: 10px 12px; }
.main-navigation li:hover > ul, .main-navigation li:focus-within > ul { display: block; }
.menu-toggle { display: none; }

.hfk-secondary-nav { background: #111315; border-top: 1px solid rgba(255,255,255,.045); border-bottom: 1px solid rgba(176,141,87,.34); box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.hfk-secondary-nav ul { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.hfk-secondary-nav li { border-right: 1px solid rgba(255,255,255,.07); }
.hfk-secondary-nav li:first-child { border-left: 1px solid rgba(255,255,255,.07); }
.hfk-secondary-nav a { display: block; min-height: 44px; padding: 12px 17px; color: #eee; font-family: var(--hfk-heading-font); font-size: .76rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.hfk-secondary-nav a:hover, .hfk-secondary-nav .current-menu-item > a { background: var(--hfk-accent-alt); color: #fff; }

/* Cream paper content and classic two-column layout */
.hfk-main-area {
  min-height: 55vh;
  padding: clamp(42px, 5.5vw, 68px) 0;
  background-color: var(--hfk-content-bg);
  background-image: url('assets/images/texture-paper.png'), radial-gradient(rgba(90,62,43,.06) .7px, transparent .7px);
  background-size: 512px 512px, 7px 7px;
  color: var(--hfk-text);
}
.hfk-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, var(--hfk-sidebar-width)); align-items: start; gap: clamp(30px, 4vw, 48px); }
.hfk-sidebar-left .hfk-primary-column { order: 2; }
.hfk-sidebar-left .hfk-sidebar { order: 1; }
.hfk-no-sidebar .hfk-layout { display: block; }
.hfk-no-sidebar .hfk-primary-column { max-width: 1100px; margin-inline: auto; }
.hfk-full-width-page { max-width: 1100px; }
.hfk-archive-header { margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid rgba(59,42,28,.24); }
.hfk-archive-header::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 13px; background: var(--hfk-accent-alt); }
.hfk-archive-header h1 { margin-bottom: .12em; }
.archive-description { max-width: 820px; color: var(--hfk-muted); }
.hfk-home-intro, .hfk-front-page-content {
  margin-bottom: 34px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(59,42,28,.20);
  border-left: 5px solid var(--hfk-accent-alt);
  border-radius: var(--hfk-radius);
  background: var(--hfk-widget-bg);
  box-shadow: var(--hfk-shadow);
}
.hfk-home-intro p:last-child, .hfk-front-page-content > :last-child { margin-bottom: 0; }

/* Traditional post list */
.hfk-post-list { display: grid; gap: 28px; }
.hfk-post-entry {
  overflow: hidden;
  border: 1px solid rgba(59,42,28,.20);
  border-radius: var(--hfk-radius);
  background: var(--hfk-widget-bg);
  box-shadow: var(--hfk-shadow);
}
.hfk-post-entry__image { display: block; overflow: hidden; min-height: 250px; background: #211b16; }
.hfk-post-entry__image img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; transition: transform .35s ease; }
.hfk-post-entry__image:hover img { transform: scale(1.025); }
.hfk-post-entry__content { padding: clamp(24px, 3.2vw, 34px); }
.hfk-post-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; color: var(--hfk-muted); font-family: var(--hfk-heading-font); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hfk-post-categories a { color: var(--hfk-accent-alt); }
.hfk-post-categories a:hover { color: var(--hfk-accent); }
.hfk-post-entry .entry-title { margin: 3px 0 8px; font-size: clamp(1.9rem, 3.1vw, 2.65rem); }
.hfk-post-entry .entry-title a { color: var(--hfk-text); }
.hfk-post-entry .entry-title a:hover { color: var(--hfk-accent-alt); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; color: #756c63; font-family: var(--hfk-heading-font); font-size: .73rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.entry-summary { color: #403a34; }
.entry-summary > :last-child { margin-bottom: 0; }
.hfk-read-more { display: inline-flex; margin-top: 1.1rem; padding: 9px 15px; border: 1px solid #171513; background: #171513; color: #fff; font-family: var(--hfk-heading-font); font-size: .73rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.hfk-read-more:hover { border-color: var(--hfk-accent-alt); background: var(--hfk-accent-alt); color: #fff; }

.hfk-post-layout-thumbnail .hfk-post-entry { display: grid; grid-template-columns: minmax(240px, 38%) minmax(0, 1fr); }
.hfk-post-layout-thumbnail .hfk-post-entry__image { min-height: 100%; }
.hfk-post-layout-thumbnail .hfk-post-entry__image img { height: 100%; aspect-ratio: auto; }
.hfk-post-layout-thumbnail .hfk-post-entry .entry-title { font-size: clamp(1.7rem, 2.5vw, 2.25rem); }

/* Single post header and article */
.hfk-page-header { padding: 52px 0; background: #191613; border-bottom: 1px solid rgba(176,141,87,.30); color: #fff; }
.hfk-page-header h1 { max-width: 1000px; margin: 0; color: #fff; font-size: clamp(2.7rem, 6vw, 5rem); }
.hfk-page-header .hfk-post-categories a { color: var(--hfk-accent); }
.hfk-page-header .entry-meta { margin: 14px 0 0; color: #d1c8bc; }
.hfk-single-content { padding-top: 48px; }
.hfk-single-entry { overflow: hidden; border: 1px solid rgba(59,42,28,.20); border-radius: var(--hfk-radius); background: var(--hfk-widget-bg); box-shadow: var(--hfk-shadow); }
.hfk-single-entry > .entry-header { padding: clamp(26px, 4vw, 44px); border-bottom: 1px solid var(--hfk-border); }
.hfk-single-entry .entry-title { font-size: clamp(2.2rem, 5vw, 4rem); }
.entry-thumbnail { margin: 0; max-height: 640px; overflow: hidden; background: #181411; }
.entry-thumbnail img { width: 100%; height: auto; }
.entry-content { overflow-wrap: anywhere; color: #2d2925; font-size: 1.04rem; line-height: 1.8; }
.hfk-single-entry .entry-content { padding: clamp(26px, 5vw, 56px); }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.55em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.4rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .7rem; border: 1px solid var(--hfk-border); }
.entry-content .alignwide { max-width: 1100px; margin-left: 50%; transform: translateX(-50%); width: calc(100vw - 60px); }
.entry-content .alignfull { max-width: none; margin-left: 50%; transform: translateX(-50%); width: 100vw; }
.entry-footer { padding: 20px clamp(26px, 5vw, 56px); border-top: 1px solid rgba(59,42,28,.16); background: #f2e8da; }
.hfk-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.hfk-tags a { padding: 4px 9px; border: 1px solid #b9a990; border-radius: 999px; font-size: .74rem; }
.post-navigation { margin: 24px 0 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 17px; border: 1px solid rgba(59,42,28,.20); background: var(--hfk-widget-bg); color: var(--hfk-text); font-family: var(--hfk-heading-font); font-weight: 700; text-transform: uppercase; }
.nav-next { text-align: right; }

/* Dark Homefront-style sidebar */
.hfk-sidebar { position: sticky; top: 28px; display: grid; gap: 22px; }
.hfk-sidebar .widget {
  padding: 24px;
  border: 1px solid #3c3025;
  border-radius: var(--hfk-radius);
  background: var(--hfk-sidebar-bg);
  color: var(--hfk-sidebar-text);
  box-shadow: var(--hfk-dark-shadow);
}
.hfk-sidebar .widget-title { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--hfk-accent); color: var(--hfk-accent); font-size: 1.35rem; }
.hfk-sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
.hfk-sidebar .widget li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.hfk-sidebar .widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.hfk-sidebar .widget p:last-child { margin-bottom: 0; }
.hfk-sidebar .widget a { color: var(--hfk-sidebar-text); }
.hfk-sidebar .widget a:hover { color: var(--hfk-accent); }
.hfk-sidebar .widget_search .search-field, .hfk-sidebar .widget .hfk-search-form .search-field { background: #f6efe4; color: #171513; }
.widget { padding: 24px; border: 1px solid var(--hfk-border); background: var(--hfk-widget-bg); }
.widget-title { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--hfk-accent); font-size: 1.3rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--hfk-border); }
.widget li:last-child { border-bottom: 0; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tagcloud a { padding: 4px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: .75rem !important; }

/* Comments */
.comments-area { margin-top: 28px; padding: clamp(24px, 4vw, 40px); border: 1px solid rgba(59,42,28,.20); background: var(--hfk-widget-bg); }
.comments-title, .comment-reply-title { color: var(--hfk-text); }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--hfk-border); }
.comment-meta { font-size: .8rem; color: var(--hfk-muted); }

/* Pagination */
.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid #bfae96; background: #fffaf2; color: var(--hfk-text); font-family: var(--hfk-heading-font); font-weight: 700; }
.page-numbers.current, .page-numbers:hover { border-color: var(--hfk-accent-alt); background: var(--hfk-accent-alt); color: #fff; }

/* Footer */
.site-footer { background: #080909; color: #c9c3b8; border-top: 1px solid #5a4226; }
.hfk-footer-top { display: grid; grid-template-columns: minmax(280px, 1.15fr) minmax(0, 1.85fr); gap: 45px; padding: 42px 0; }
.hfk-footer-brand .custom-logo { max-height: 76px; margin-bottom: 18px; }
.hfk-footer-brand h2, .site-footer .widget-title { color: #fff; }
.hfk-footer-brand p { max-width: 440px; color: #b8b8b8; }
.hfk-footer-socials { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.hfk-footer-socials a { color: var(--hfk-accent); font-family: var(--hfk-heading-font); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hfk-footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.site-footer .widget { padding: 0; border: 0; background: transparent; box-shadow: none; }
.site-footer .widget-title { border-color: #4a3b2e; }
.site-footer .widget li { border-color: rgba(255,255,255,.09); }
.site-footer a { color: #e2dbd1; }
.site-footer a:hover { color: var(--hfk-accent); }
.hfk-footer-navigation ul { margin: 0; padding: 0; list-style: none; columns: 2; }
.hfk-footer-navigation li { margin-bottom: 8px; }
.hfk-copyright { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.08); color: #8f8f8f; font-size: .78rem; }

/* Basic WooCommerce integration */
.hfk-shop-column { min-width: 0; }
.woocommerce ul.products li.product { color: var(--hfk-text); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--hfk-text); font-family: var(--hfk-heading-font); text-transform: uppercase; }
.woocommerce div.product .woocommerce-tabs ul.tabs li, .woocommerce div.product .woocommerce-tabs .panel, .woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce table.shop_table, .woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register, .woocommerce-checkout #payment { background: var(--hfk-widget-bg); color: var(--hfk-text); }

/* WordPress helpers */
.sticky { border-top: 4px solid var(--hfk-accent-alt); }
.gallery-caption, .wp-caption-text { color: var(--hfk-muted); font-size: .82rem; }
.bypostauthor { outline: 1px solid var(--hfk-accent); }

@media (max-width: 1080px) {
  .hfk-branding-row { grid-template-columns: minmax(220px, 290px) minmax(280px, 1fr) auto; gap: 18px; }
  .hfk-branding-row--no-actions { grid-template-columns: minmax(220px, 290px) minmax(280px, 1fr); }
  .hfk-store-button { display: none; }
  .hfk-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, var(--hfk-sidebar-width)); gap: 30px; }
  .hfk-post-layout-thumbnail .hfk-post-entry { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .hfk-container { width: min(calc(100% - 28px), var(--hfk-content-max)); }
  .hfk-topbar__inner { min-height: 36px; }
  .hfk-topbar__message { display: none; }
  .hfk-topbar__right { width: 100%; justify-content: center; }
  .hfk-branding-row, .hfk-branding-row--no-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 78px;
    gap: 14px;
  }
  .site-branding { min-width: 0; }
  .custom-logo { max-width: min(100%, 270px); max-height: var(--hfk-logo-mobile); }
  .hfk-header-tools { display: contents; }
  .hfk-site-search { grid-column: 1 / -1; width: 100%; max-width: none; padding-bottom: 13px; }
  .hfk-store-actions { grid-column: 2; grid-row: 1; }
  .hfk-header-center .hfk-branding-row { display: flex; flex-direction: column; }
  .hfk-header-center .hfk-header-tools { display: grid; width: 100%; }
  .menu-toggle { display: inline-flex; width: 100%; justify-content: flex-start; min-height: 42px; border: 0; border-radius: 0; background: transparent; color: #fff; transform: none; }
  .main-navigation > div > ul, .main-navigation > ul { display: none; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .main-navigation.toggled > div > ul, .main-navigation.toggled > ul { display: flex; }
  .main-navigation a { padding: 11px 4px; }
  .main-navigation ul ul { position: static; display: block; min-width: 0; margin-left: 16px; border: 0; box-shadow: none; }
  .hfk-secondary-nav { overflow-x: auto; }
  .hfk-secondary-nav ul { justify-content: flex-start; flex-wrap: nowrap; }
  .hfk-layout { display: flex; flex-direction: column; }
  .hfk-sidebar-left .hfk-primary-column, .hfk-sidebar-left .hfk-sidebar { order: initial; }
  .hfk-primary-column, .hfk-sidebar { width: 100%; }
  .hfk-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hfk-post-layout-thumbnail .hfk-post-entry { display: block; }
  .hfk-post-layout-thumbnail .hfk-post-entry__image img { aspect-ratio: 16 / 8.5; }
  .hfk-footer-top { grid-template-columns: 1fr; }
  .hfk-footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  :root { --hfk-body-size: 15px; }
  .hfk-topbar__contact { display: none; }
  .hfk-social a { padding-left: 9px; margin-left: 9px; font-size: .65rem; }
  .hfk-branding-row, .hfk-branding-row--no-actions { grid-template-columns: minmax(0,1fr) auto; }
  .site-description { display: none; }
  .hfk-cart-link { padding: 0 7px 0 12px; }
  .hfk-main-area { padding: 32px 0; }
  .hfk-page-header { padding: 38px 0; }
  .hfk-post-entry__content, .comments-area { padding: 21px; }
  .hfk-single-entry .entry-content { padding: 24px 21px; }
  .hfk-single-entry > .entry-header { padding: 24px 21px; }
  .entry-footer { padding: 18px 21px; }
  .hfk-post-entry .entry-title { font-size: 1.75rem; }
  .hfk-page-header h1 { font-size: 2.65rem; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
  .hfk-sidebar { grid-template-columns: 1fr; }
  .hfk-footer-widgets { grid-template-columns: 1fr; }
  .entry-content .alignwide { width: calc(100vw - 28px); }
}


@media (max-width: 1180px) {
  .hfk-branding-row { grid-template-columns: minmax(260px, 360px) minmax(320px, 1fr); gap: 24px; }
  .hfk-header-tools { grid-template-columns: minmax(280px, 1fr) auto; gap: 20px; }
  .hfk-branding-row--no-actions .hfk-header-tools { grid-template-columns: minmax(280px, 1fr); }
  .custom-logo { max-width: 300px; }
}

@media (max-width: 640px) {
  .hfk-container { width: min(calc(100% - 28px), var(--hfk-content-max)); }
  .search-form, .hfk-search-form { min-height: 52px; }
  .search-form .search-field, .hfk-search-form .search-field { min-height: 50px; font-size: .92rem; }
  .search-form .search-submit, .hfk-search-form button { min-width: 112px; min-height: 50px; padding: 0 18px; font-size: .78rem; }
  .hfk-store-actions { justify-content: flex-start; }
  .hfk-store-button, .hfk-cart-link { margin-left: 0; padding-left: 0; border-left: 0; margin-right: 16px; }
}
