/*
Theme Name: Highland Mill Landing
Theme URI: https://highlandmilllanding.com/
Author: Highland Mill Landing
Description: A rustic, patriotic, veteran-owned family farm theme with WooCommerce styling and an allergy-friendly recipe library.
Version: 1.4.6
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hml
*/
:root{--navy:#142d43;--navy2:#0d2031;--red:#8f2527;--red2:#6e171b;--cream:#f7f0df;--paper:#eee2c9;--ink:#182536;--muted:#5b554b;--line:#c9b99b;--white:#fffaf0;--green:#52634a}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.6}a{color:var(--red);text-decoration:none}a:hover{color:var(--navy);text-decoration:underline}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}.site-top{background:var(--navy2);color:#f7f0df;font-size:12px;letter-spacing:.12em;text-transform:uppercase;padding:7px 4%;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.site-top a{color:inherit}.site-header{background:linear-gradient(#fff9ebee,#f1e5ceee), repeating-linear-gradient(0deg,#d5c5a7 0,#d5c5a7 1px,#f6ecd9 1px,#f6ecd9 5px);border-bottom:4px solid var(--red);padding:12px 4%;display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;z-index:5}.brand{display:flex;align-items:center;gap:12px;min-width:220px}.brand img{width:74px;max-height:74px;object-fit:contain}.brand-name{font-size:clamp(20px,2.5vw,31px);font-weight:bold;letter-spacing:.035em;color:var(--navy);line-height:1.1;text-transform:uppercase}.brand-tag{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-top:5px}.main-nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.main-nav a{color:var(--navy);font-weight:bold;font-size:15px}.main-nav .current-menu-item>a,.main-nav a:hover{color:var(--red)}.header-search{max-width:230px}.header-search input{width:100%;padding:8px 10px;border:1px solid var(--line);background:#fffaf0;border-radius:2px}.hero{min-height:440px;display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);align-items:center;background:var(--navy);color:var(--white);overflow:hidden}.hero-copy{padding:55px 7vw 55px 6vw;position:relative;z-index:1}.eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#e5c99b;font-weight:bold}.hero h1{font-size:clamp(38px,5vw,66px);line-height:1.02;margin:14px 0 18px;color:#fff4dc}.hero h1 em{color:#e8c6a7;font-style:normal}.hero p{font-size:19px;max-width:560px}.hero-image{height:100%;min-height:440px;background-size:cover;background-position:center;position:relative}.hero-image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--navy) 0%,transparent 35%,#0d203133 100%)}.btn,.button,button.button,input.button{display:inline-block;padding:11px 19px;border:1px solid #d7b98a;background:var(--red);color:#fff8e9;font-weight:bold;text-transform:uppercase;letter-spacing:.04em;font-size:13px;border-radius:2px;margin:5px 8px 0 0}.btn.secondary{background:transparent;border-color:#f2dfbd;color:#fff8e9}.btn:hover,.button:hover{background:var(--red2);color:#fff}.values{display:grid;grid-template-columns:repeat(4,1fr);background:#e9dcc2;border-bottom:1px solid var(--line);padding:18px 4%;gap:14px;text-align:center}.value{font-size:13px;font-weight:bold;text-transform:uppercase;letter-spacing:.04em}.value span{display:block;color:var(--red);font-size:24px;line-height:1.2}.section{padding:48px 4%;max-width:1440px;margin:auto}.section-title{text-align:center;margin:0 0 26px;font-size:clamp(27px,3vw,38px);color:var(--navy);text-transform:uppercase;letter-spacing:.04em}.section-title:after{content:"";display:block;width:76px;height:3px;background:var(--red);margin:12px auto}.category-grid,.product-grid,.recipe-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.category-card,.product-card,.recipe-card{background:#fffaf0;border:1px solid #ded0b5;box-shadow:0 3px 10px #3928170d}.category-card{color:var(--navy);text-align:center;padding-bottom:16px}.category-card img{width:100%;height:155px;object-fit:cover;display:block}.category-card h3{font-size:17px;margin:13px 7px 4px;text-transform:uppercase}.category-card p{font-size:14px;margin:0 8px}.farm-story{display:grid;grid-template-columns:.85fr 1.15fr;gap:45px;align-items:center;background:#e9ddc5}.farm-story .etching{font-size:100px;text-align:center;color:var(--navy);opacity:.7}.farm-story h2{font-size:34px;color:var(--navy);margin:0 0 12px}.recipe-promo{display:grid;grid-template-columns:1fr 1fr;align-items:center;background:#d9c7a7;margin-top:28px}.recipe-promo img{width:100%;height:280px;object-fit:cover}.recipe-promo-copy{padding:28px 5%}.recipe-promo h2{font-size:32px;color:var(--navy);margin:0 0 8px}.site-footer{background:var(--navy2);color:#f5ead5;padding:38px 4%;border-top:5px solid var(--red)}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px;max-width:1300px;margin:auto}.site-footer a{color:#f5ead5}.site-footer h3{margin-top:0;color:#e6cba4;text-transform:uppercase;font-size:15px;letter-spacing:.08em}.copyright{text-align:center;border-top:1px solid #ffffff30;margin-top:28px;padding-top:15px;font-size:12px;color:#d6c8b1}.page-hero{background:var(--navy);color:var(--white);padding:38px 4%;border-bottom:4px solid var(--red)}.page-hero h1{font-size:clamp(32px,4vw,48px);margin:0;color:#fff3dd}.page-hero p{max-width:760px;margin:8px 0 0}.content-wrap{max-width:1300px;margin:0 auto;padding:38px 4%}.content-wrap img{border-radius:2px}.recipe-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:30px;align-items:start}.recipe-sidebar{background:#fff9ed;border:1px solid var(--line);padding:18px;position:sticky;top:15px}.recipe-sidebar h2{background:var(--red);color:white;padding:10px 12px;margin:-18px -18px 12px;font-size:18px}.recipe-sidebar ul{list-style:none;padding:0;margin:0}.recipe-sidebar li{border-bottom:1px solid #e8ddc8}.recipe-sidebar a{display:block;padding:8px 2px;color:var(--navy)}.recipe-sidebar a.active{font-weight:bold;color:var(--red)}.recipe-tools{display:flex;gap:10px;margin-bottom:18px}.recipe-tools input{flex:1;min-width:0;padding:10px;border:1px solid var(--line);background:#fffaf0}.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.recipe-card img{width:100%;height:180px;object-fit:cover}.recipe-card-body{padding:15px}.recipe-card h2,.recipe-card h3{font-size:20px;line-height:1.2;margin:0 0 8px;color:var(--navy)}.recipe-card p{font-size:14px;margin:0 0 10px}.recipe-tags{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.recipe-tag{font: bold 10px Arial,sans-serif;text-transform:uppercase;letter-spacing:.04em;background:#e5e8dd;color:#324534;padding:4px 6px;border-radius:2px}.recipe-single{display:grid;grid-template-columns:1fr .85fr;gap:28px}.recipe-single>img{width:100%;max-height:430px;object-fit:cover}.recipe-meta{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.recipe-meta span{background:#e9ddc5;padding:7px 10px;font-size:13px}.recipe-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.recipe-panel{background:#fff9ed;border:1px solid var(--line);padding:20px}.recipe-panel h2{color:var(--navy);margin-top:0}.allergy-note{border-left:4px solid var(--red);background:#f0e4ce;padding:14px 18px;margin:22px 0}.woocommerce ul.products li.product,.woocommerce div.product,.woocommerce-cart-form,.woocommerce-checkout{background:#fffaf0;padding:16px;border:1px solid #ded0b5}.woocommerce div.product .product_title{color:var(--navy)}.woocommerce span.onsale{background:var(--red)}.woocommerce-message{border-top-color:var(--green)}.woocommerce-message:before{color:var(--green)}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--red);color:white}.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--navy);color:white}.pagination{margin-top:24px}.pagination a,.pagination span{padding:7px 11px;background:#fffaf0;border:1px solid var(--line);margin-right:4px}.empty-state{background:#fff9ed;border:1px dashed var(--line);padding:25px;text-align:center}.menu-toggle{display:none;background:var(--navy);color:white;border:0;padding:8px 12px}@media(max-width:980px){.site-header{flex-wrap:wrap}.main-nav{order:3;width:100%;gap:14px}.header-search{margin-left:auto}.category-grid,.product-grid{grid-template-columns:repeat(3,1fr)}.recipe-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr 1fr}.hero-copy{padding:40px 4vw}.recipe-layout{grid-template-columns:210px minmax(0,1fr)}}@media(max-width:680px){.site-top{justify-content:center;text-align:center}.site-header{gap:10px}.brand{min-width:0}.brand img{width:50px}.brand-name{font-size:18px}.brand-tag{font-size:8px}.menu-toggle{display:block;margin-left:auto}.main-nav{display:none;flex-direction:column;align-items:flex-start;padding:12px 0}.main-nav.is-open{display:flex}.header-search{order:4;max-width:none;width:100%}.hero{display:flex;flex-direction:column}.hero-copy{padding:36px 6%;width:100%}.hero-image{width:100%;min-height:240px;height:240px}.hero-image:after{background:linear-gradient(0deg,#0d203144,transparent)}.values{grid-template-columns:repeat(2,1fr)}.section{padding:32px 5%}.category-grid,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-card img{height:120px}.farm-story,.recipe-promo{grid-template-columns:1fr}.farm-story .etching{font-size:60px}.recipe-promo img{height:200px}.footer-grid{grid-template-columns:1fr}.recipe-layout{grid-template-columns:1fr}.recipe-sidebar{position:static}.recipe-sidebar ul{columns:2}.recipe-grid{grid-template-columns:1fr}.recipe-single,.recipe-columns{grid-template-columns:1fr}.recipe-tools{flex-direction:column}.page-hero{padding:28px 5%}}

/* v1.4 resource page and recipe disclosure refinements */
.page .content-wrap h2{color:var(--navy);margin-top:28px}.page .content-wrap li{margin-bottom:8px}.allergy-note{line-height:1.55}.recipe-sidebar h2{font-size:17px}


/* ===== HML v1.4.1: refined header layout ===== */
.site-header {
  display: grid !important;
  grid-template-columns: minmax(380px, 0.95fr) minmax(360px, 1.2fr) minmax(145px, 165px);
  align-items: center;
  column-gap: 24px;
  row-gap: 10px;
  padding: 12px 3.5%;
  min-height: 132px;
}

.site-header .brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.site-header .brand .custom-logo-link {
  display: block !important;
  flex: 0 0 100px;
  width: 100px;
  max-width: 100px;
  line-height: 0;
}

.site-header .brand .custom-logo-link img,
.site-header .brand > img,
.site-header .brand img.custom-logo {
  display: block !important;
  width: 100px !important;
  height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
  object-fit: contain;
}

.site-header .brand > span,
.site-header .brand > .brand-copy {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.site-header .brand-name {
  display: block;
  font-size: clamp(19px, 1.55vw, 27px);
  line-height: 1.08;
  letter-spacing: .025em;
  white-space: normal;
  overflow-wrap: normal;
}

.site-header .brand-tag {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .09em;
  white-space: normal;
}

.site-header .menu-toggle {
  display: none;
}

.site-header .main-nav {
  grid-column: 2;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  align-content: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.site-header .main-nav ul {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 5px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .main-nav li,
.site-header .main-nav li::marker {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.site-header .main-nav li a,
.site-header .main-nav > a {
  display: inline-block;
  padding: 8px 9px;
  border-radius: 2px;
  color: var(--navy);
  font-size: 14px;
  font-weight: bold;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
}

.site-header .main-nav li a:hover,
.site-header .main-nav li.current-menu-item > a,
.site-header .main-nav > a:hover {
  color: var(--red);
  background: #e9dcc2;
  text-decoration: none;
}

.site-header .header-search {
  grid-column: 3;
  width: 100%;
  max-width: 165px;
  min-width: 0;
  margin: 0;
}

.site-header .header-search .search-form,
.site-header .header-search label {
  display: block;
  width: 100%;
  margin: 0;
}

.site-header .header-search input[type="search"],
.site-header .header-search .search-field {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #fffaf0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

/* Mid-sized screens: brand on top, menu and search on the next row. */
@media (max-width: 1250px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) minmax(145px, 180px);
    gap: 10px 18px;
  }
  .site-header .brand {
    grid-column: 1 / -1;
  }
  .site-header .brand .custom-logo-link {
    flex-basis: 90px;
    width: 90px;
    max-width: 90px;
  }
  .site-header .brand .custom-logo-link img,
  .site-header .brand > img,
  .site-header .brand img.custom-logo {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
  }
  .site-header .main-nav {
    grid-column: 1;
  }
  .site-header .header-search {
    grid-column: 2;
    max-width: 180px;
    justify-self: end;
  }
}

@media (max-width: 680px) {
  .site-header {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 5%;
  }
  .site-header .brand {
    flex: 1 1 calc(100% - 70px);
    gap: 10px;
  }
  .site-header .brand .custom-logo-link {
    flex: 0 0 68px;
    width: 68px;
    max-width: 68px;
  }
  .site-header .brand .custom-logo-link img,
  .site-header .brand > img,
  .site-header .brand img.custom-logo {
    width: 68px !important;
    height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
  }
  .site-header .brand-name {
    font-size: 16px;
  }
  .site-header .brand-tag {
    font-size: 8px;
    letter-spacing: .04em;
  }
  .site-header .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .site-header .main-nav {
    display: none !important;
    flex: 1 1 100%;
    width: 100%;
  }
  .site-header .main-nav.is-open {
    display: flex !important;
  }
  .site-header .main-nav ul {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .site-header .main-nav li a,
  .site-header .main-nav > a {
    display: block;
    padding: 10px 12px;
    white-space: normal;
  }
  .site-header .header-search {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }
}


/* ===== HML v1.4.2: category photography, shop sizing, and button navigation ===== */
.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}
.category-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 3px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #39281720;
  text-decoration: none;
}
.category-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
  background: #e9ddc5;
}
.category-card h3 { padding: 0 8px; }
.category-card p { padding: 0 8px 4px; }

/* Horizontal, button-style navigation without browser bullets. */
.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}
.site-header .main-nav > li {
  display: inline-flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-header .main-nav > li::marker,
.site-header .main-nav > li::before,
.site-header .main-nav li::marker,
.site-header .main-nav li::before {
  content: none !important;
  display: none !important;
}
.site-header .main-nav > li > a,
.site-header .main-nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: rgba(255,250,240,.58);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
  font-weight: bold;
  text-decoration: none;
  white-space: normal;
}
.site-header .main-nav > li > a:hover,
.site-header .main-nav > li.current-menu-item > a,
.site-header .main-nav > a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff8e9;
  text-decoration: none;
}

/* Make recipe category/filter choices easy-to-tap buttons. */
.recipe-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.recipe-sidebar li {
  border: 0;
  margin: 0;
}
.recipe-sidebar li a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #ded0b5;
  border-radius: 3px;
  background: #fffaf0;
  color: var(--navy);
  line-height: 1.35;
  text-decoration: none;
}
.recipe-sidebar li a:hover,
.recipe-sidebar li a.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff8e9;
}

/* Keep the WooCommerce shop inside the viewport and make catalog photos smaller. */
body.woocommerce-page,
body.woocommerce-page #page,
body.woocommerce-page #primary,
body.woocommerce-page main,
body.woocommerce-page .site-main {
  max-width: 100%;
  min-width: 0;
}
body.woocommerce-page {
  overflow-x: clip;
}
.woocommerce-page .site-main,
.woocommerce-page #primary {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100%;
  max-width: 1500px;
  margin: 24px auto !important;
  padding: 0 4% !important;
  float: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 12px !important;
  box-sizing: border-box;
  overflow: hidden;
}
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  display: block;
  width: 100% !important;
  height: 230px !important;
  max-height: 230px !important;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 12px !important;
  background: #fffaf0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 17px;
  line-height: 1.3;
}
.woocommerce ul.products li.product .price {
  font-size: 15px;
}
.woocommerce div.product div.images {
  max-width: 48%;
}
.woocommerce div.product div.images img {
  max-height: 560px;
  width: 100%;
  object-fit: contain;
}
@media (max-width: 1050px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 680px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card img { height: 145px; }
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 3% !important;
  }
  .woocommerce ul.products li.product a img,
  .woocommerce-page ul.products li.product a img {
    height: 160px !important;
    max-height: 160px !important;
  }
  .woocommerce div.product div.images { max-width: 100%; }
}


/* ===== HML v1.4.3: reliable branding alignment and full-width shop layout ===== */
.site-header .brand {
  grid-column: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
}
.site-header .brand .custom-logo-link,
.site-header .brand .brand-emblem {
  display: block !important;
  flex: 0 0 92px !important;
  width: 92px !important;
  max-width: 92px !important;
  margin: 0 !important;
  line-height: 0 !important;
}
.site-header .brand .custom-logo-link img,
.site-header .brand .brand-emblem img {
  display: block !important;
  width: 92px !important;
  height: 92px !important;
  max-width: 92px !important;
  max-height: 92px !important;
  object-fit: contain !important;
}
.site-header .brand .brand-copy {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: left !important;
}
.site-header .brand-title-link { display: block; color: var(--navy) !important; text-decoration: none !important; }
.site-header .brand-title-link:hover { color: var(--red) !important; }
.site-header .brand-name { display: block; font-size: clamp(21px, 1.8vw, 30px) !important; line-height: 1.1 !important; letter-spacing: .02em !important; }
.site-header .brand-tag { display: block; margin-top: 6px !important; font-size: 9px !important; line-height: 1.4 !important; }

/* WooCommerce's default wrappers can be narrow or theme-dependent. Give the shop
   a consistent, centered canvas and let the product grid use the full canvas. */
body.woocommerce-page #primary,
body.woocommerce-page #main,
body.woocommerce-page .site-main,
body.woocommerce-page .woocommerce,
body.woocommerce-page main {
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
}
body.woocommerce-page .hml-shop-wrap {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 64px) 56px;
}
body.woocommerce-page .woocommerce { width: 100% !important; max-width: none !important; }
body.woocommerce-page .woocommerce ul.products,
body.woocommerce-page .woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  float: none !important;
}
body.woocommerce-page .woocommerce ul.products li.product,
body.woocommerce-page .woocommerce-page ul.products li.product {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 16px !important;
  background: #fffaf0 !important;
  border: 1px solid #ded0b5 !important;
  box-shadow: 0 3px 10px #3928170d;
}
body.woocommerce-page .woocommerce ul.products li.product a img,
body.woocommerce-page .woocommerce-page ul.products li.product a img {
  width: 100% !important; height: 230px !important; max-height: 230px !important;
  object-fit: contain !important; background: #fffaf0; margin: 0 auto 14px !important;
}
body.woocommerce-page .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 18px !important; line-height: 1.35 !important; color: var(--red) !important;
}
body.woocommerce-page .woocommerce ul.products li.product .price { font-size: 15px !important; }
body.woocommerce-page .woocommerce-result-count,
body.woocommerce-page .woocommerce-ordering { margin: 12px 0 !important; font-size: 15px !important; }
body.woocommerce-page .woocommerce-ordering select { max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); background: #fffaf0; }
body.woocommerce-page .woocommerce a.button,
body.woocommerce-page .woocommerce button.button { padding: 10px 14px !important; font-size: 13px !important; }
@media (max-width: 1050px) {
  body.woocommerce-page .woocommerce ul.products, body.woocommerce-page .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 680px) {
  .site-header .brand .custom-logo-link, .site-header .brand .brand-emblem { flex-basis: 68px !important; width: 68px !important; max-width: 68px !important; }
  .site-header .brand .custom-logo-link img, .site-header .brand .brand-emblem img { width: 68px !important; height: 68px !important; max-width: 68px !important; max-height: 68px !important; }
  .site-header .brand-name { font-size: 18px !important; }
  body.woocommerce-page .hml-shop-wrap { padding: 22px 16px 40px; }
  body.woocommerce-page .woocommerce ul.products, body.woocommerce-page .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  body.woocommerce-page .woocommerce ul.products li.product, body.woocommerce-page .woocommerce-page ul.products li.product { padding: 10px !important; }
  body.woocommerce-page .woocommerce ul.products li.product a img, body.woocommerce-page .woocommerce-page ul.products li.product a img { height: 160px !important; max-height: 160px !important; }
}


/* ===== HML v1.4.4: shop category filter ===== */
.hml-shop-category-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:#efe2c8;border:1px solid #d8c7a7;padding:16px 18px;margin:10px 0 22px}
.hml-shop-category-filter .hml-filter-field{display:flex;flex-direction:column;gap:5px;min-width:220px;flex:1 1 260px}
.hml-shop-category-filter label{font-weight:700;color:var(--navy);font-size:14px}
.hml-shop-category-filter select{width:100%;max-width:100%;padding:10px 12px;border:1px solid var(--line);background:#fffaf0;color:var(--ink)}
.hml-shop-category-filter .button{margin:0;cursor:pointer}
.hml-shop-category-filter .hml-clear-filter{font-weight:700;padding:9px 5px;white-space:nowrap}
.hml-custom-reference-field{display:block;background:#f2e7d2;border:1px solid var(--line);padding:14px 16px;margin:16px 0}
.hml-custom-reference-field label{display:block;color:var(--navy);font-weight:700;margin-bottom:6px}
.hml-custom-reference-field input[type=file]{display:block;width:100%;max-width:100%;padding:8px;background:#fffaf0;border:1px solid var(--line)}
.hml-custom-reference-field small{display:block;margin-top:6px;color:#625847;font-size:13px}
.woocommerce-cart .hml-reference-image-link{font-weight:700}
@media(max-width:680px){.hml-shop-category-filter{align-items:stretch;flex-direction:column;padding:13px}.hml-shop-category-filter .hml-filter-field{min-width:0;width:100%}.hml-shop-category-filter .button{width:100%;text-align:center}}


/* ===== HML v1.4.5: header cart and tidy WooCommerce add-to-cart feedback ===== */
.site-header {
  grid-template-columns: minmax(350px, .95fr) minmax(350px, 1.2fr) minmax(130px, 155px) 84px;
  column-gap: 18px;
}
.site-header .header-search { grid-column: 3; }
.site-header .hml-header-cart {
  grid-column: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #c9b99b;
  background: #fffaf0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .hml-header-cart:hover,
.site-header .hml-header-cart:focus-visible {
  background: var(--navy);
  color: #fffaf0;
  text-decoration: none;
}
.site-header .hml-cart-icon {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.site-header .hml-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fffaf0;
  font: 700 12px/1 Arial, sans-serif;
}
/* WooCommerce inserts a separate "View cart" link after AJAX adds. The persistent
   header cart is the single, consistent place to open the cart instead. */
.woocommerce a.added_to_cart.wc-forward,
.woocommerce-page a.added_to_cart.wc-forward { display: none !important; }
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.product_type_simple,
.woocommerce ul.products li.product a.product_type_variable,
.woocommerce ul.products li.product a.product_type_grouped {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px !important;
  line-height: 1.25 !important;
  text-align: center;
  white-space: normal;
}
.woocommerce ul.products li.product a.add_to_cart_button.added::after { content: none !important; display: none !important; }
@media (max-width: 1250px) {
  .site-header { grid-template-columns: minmax(0, 1fr) minmax(145px, 180px); }
  .site-header .brand { grid-column: 1 / -1; }
  .site-header .main-nav { grid-column: 1 / -1; grid-row: 3; }
  .site-header .header-search { grid-column: 1; grid-row: 2; max-width: 100%; justify-self: stretch; }
  .site-header .hml-header-cart { grid-column: 2; grid-row: 2; justify-self: end; }
}
@media (max-width: 680px) {
  .site-header .brand { order: 0; }
  .site-header .menu-toggle { order: 1; }
  .site-header .main-nav { order: 4; }
  .site-header .hml-header-cart { order: 2; grid-column: auto; grid-row: auto; justify-self: start; }
  .site-header .header-search { order: 3; grid-column: auto; grid-row: auto; }
}


/* ===== HML v1.4.6: allergy-aware farm message and clean footer links ===== */
.hml-allergy-promise {
  max-width: 1320px;
  margin: 28px auto 0;
  padding: 22px clamp(18px, 4vw, 48px);
  background: #efe2c8;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hml-allergy-promise .hml-promise-eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hml-allergy-promise h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(21px, 2.3vw, 29px);
}
.hml-allergy-promise p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
}
.site-footer .footer-grid > div { min-width: 0; }
.site-footer .footer-link-list,
.site-footer .footer-category-list,
.site-footer .footer-category-list ul {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.site-footer .footer-link-list li,
.site-footer .footer-category-list li,
.site-footer .footer-category-list li::marker,
.site-footer .footer-link-list li::marker {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.site-footer .footer-link-list li + li,
.site-footer .footer-category-list li + li {
  border-top: 1px solid #ffffff20;
}
.site-footer .footer-link-list a,
.site-footer .footer-category-list a {
  display: block;
  padding: 7px 0;
  color: #f5ead5;
  text-decoration: none;
  line-height: 1.4;
}
.site-footer .footer-link-list a:hover,
.site-footer .footer-category-list a:hover {
  color: #e6cba4;
  text-decoration: underline;
}
.site-footer .footer-category-list li::before,
.site-footer .footer-link-list li::before { content: none !important; display: none !important; }
@media(max-width:680px) {
  .hml-allergy-promise { margin-top: 18px; padding: 20px 6%; }
  .site-footer .footer-grid { gap: 22px; }
}
