/*
Theme Name: Cedar & Field for Flatsome – Green Beaver Edition
Description: Botanical storefront layouts for WooCommerce and Flatsome.
Template: flatsome
Version: 1.4.0
Text Domain: cedar-field
*/

@font-face {
  font-family: "Cedar Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Cedar Montserrat";
  src: url("assets/fonts/montserrat.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body {
  --cedar-ink: #073641;
  --cedar-forest: #074756;
  --cedar-paper: #fff;
  --cedar-sand: #f2f7f6;
  --cedar-line: #dce6e7;
  --cedar-body-font: "Cedar Inter", "Segoe UI", sans-serif;
  --cedar-heading-font: "Cedar Montserrat", "Segoe UI", sans-serif;
}
body.cedar-store {
  color: var(--cedar-ink);
  font-family: var(--cedar-body-font);
}

.cedar-store #main { background: var(--cedar-paper); }
.cedar-store #main :is(h1,h2,h3) { color: var(--cedar-ink); }
.cedar-store #main :is(h1,h2) {
  font-family: var(--cedar-heading-font);
  font-weight: 650;
  letter-spacing: -.025em;
  text-transform: none;
}
.cedar-store #main h1 { font-size: clamp(1.9rem, 3.4vw, 3.35rem); line-height: 1.13; }
.cedar-store #main h2 { font-size: clamp(1.55rem, 2.9vw, 2.5rem); line-height: 1.18; }
.cedar-store #main :is(button,input,select,textarea), .cedar-store #main .button { font-family: var(--cedar-body-font); }
.cedar-store #main .button.primary,
.cedar-store #main .single_add_to_cart_button,
.cedar-store #main .checkout-button {
  background: var(--cedar-forest);
  color: #fff;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: .015em;
}
.cedar-store #main .button:hover { filter: brightness(.91); }
.cedar-store #main a:focus-visible,
.cedar-store #main button:focus-visible { outline: 2px solid #855120; outline-offset: 3px; }

.cedar-home .cedar-hero { background: var(--cedar-sand); }
.cedar-home .cedar-hero .row { align-items: center; max-width: 1440px; }
.cedar-home .cedar-hero .col { padding-bottom: 0; }
.cedar-home .cedar-hero-copy .col-inner { padding: clamp(30px, 5vw, 84px) clamp(10px, 4vw, 64px); }
.cedar-home .cedar-hero-copy p { max-width: 38ch; font-size: 1.12rem; }
.cedar-home .cedar-hero-copy .button { margin-bottom: 0; }
.cedar-home .cedar-hero-art .col-inner {
  background: #c7b69b;
}
.cedar-home .cedar-hero-image {
  display: block;
  width: 100%;
  height: clamp(300px, 40vw, 560px);
  object-fit: cover;
}
.cedar-home .cedar-heading { text-align: center; }
.cedar-home .cedar-heading .col { padding-bottom: 10px; }
.cedar-home .cedar-heading p { margin-inline: auto; max-width: 52ch; }
.cedar-home .cedar-story { background: #e7ebdf; }
.cedar-home .cedar-story .row { align-items: center; }
.cedar-home .cedar-story .col { padding-bottom: 0; }
.cedar-home .cedar-story .col-inner { padding: clamp(12px, 3vw, 46px); }
.cedar-home .cedar-story ul { margin: 1em 0 0; }
.cedar-home .cedar-story li { padding: .6em 0; border-top: 1px solid #cbd3c3; }
.cedar-categories {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(.65rem, 2vw, 1.5rem);
}
.cedar-category {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 9rem;
  padding: 1.1rem;
  border-radius: .3rem;
  background: #e2e8db;
  color: var(--cedar-ink);
  font-weight: 700;
}
.cedar-category:nth-child(3n+2) { background: #eef4f4; }
.cedar-category:nth-child(3n+3) { background: #e3eef2; }
.cedar-category:hover { box-shadow: inset 0 0 0 1px currentColor; }
.cedar-category img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: .8rem; }

.cedar-store :is(.product-small .box-image,.product-gallery .woocommerce-product-gallery) {
  border-radius: .4rem;
  overflow: hidden;
  background: #f0ede6;
}
.cedar-store .product-small .box-text { padding-inline: .3rem; }
.cedar-store .product-small .woocommerce-loop-product__title { font-weight: 650; }
.cedar-store .shop-page-title { background: #f2f7f6; }
.cedar-store .shop-page-title .page-title-inner { padding-top: 2.4rem; padding-bottom: 2.4rem; }
.cedar-store .cedar-archive-heading { margin: .25em 0 .7em; }
.cedar-store .woocommerce-ordering select { background-color: #fff; border-color: var(--cedar-line); }
.cedar-store .product-main .product-title { font-size: clamp(2rem, 4vw, 3.6rem); }
.cedar-store .product-summary .price { margin: .6rem 0 1rem; }
.cedar-store .product-summary .cart { padding-top: 1rem; border-top: 1px solid var(--cedar-line); }
.cedar-store .product-footer .woocommerce-tabs { border-top-color: var(--cedar-line); }
.cedar-store .cart_totals {
  background: #f2f7f6;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: .4rem;
}
.cedar-store .cart-container .cart-sidebar { border-left: 0; }
.cedar-store .cart-container .shop_table th,
.cedar-store .cart-container .shop_table td { border-color: var(--cedar-line); }
.cedar-store .cart-empty { margin-top: 1rem; }
.cedar-store #main .cedar-cart-heading { font-size: clamp(2.1rem, 4vw, 3.75rem); }
.cedar-brand-image { display: block; width: 100%; height: auto; }
.cedar-campaign { background: #101f30; }
.cedar-campaign .row, .cedar-campaign .col { position: relative; }
.cedar-campaign .col { padding-bottom: 0; }
.cedar-store #main .cedar-campaign h1, .cedar-campaign p { color: #fff9e8; }
.cedar-campaign p { margin-bottom: .75em; }
.cedar-store #main .cedar-campaign .button { background: #f5e6c7; color: #152734; margin: 0; }
.cedar-brand-panel .row { align-items: center; }
.cedar-brand-panel .cedar-brand-image { border-radius: .45rem; }
.cedar-quality { background: #dce8e9; }
.cedar-signoff { background: #17342e; color: #fff; text-align: center; }
.cedar-signoff .cedar-brand-image { width: 76px; margin: 0 auto .65rem; }
.cedar-signoff .col { padding-bottom: 0; }
.cedar-header, .cedar-nav-dialog { color: #17342e; background: #fff; }
.cedar-header a, .cedar-nav-dialog a { color: inherit; }
.cedar-header :is(a,button,summary):focus-visible, .cedar-nav-dialog :is(a,button,summary,input):focus-visible {
  outline: 2px solid #855120;
  outline-offset: 3px;
}
.cedar-announcement {
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 5px 16px;
  background: #142a38;
  color: white;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .025em;
}
.cedar-announcement a:hover { text-decoration: underline; }
.cedar-header-main {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  min-height: 78px;
  padding-inline: max(28px, calc((100vw - 1370px)/2));
  position: relative;
  border-bottom: 1px solid #e5e6dd;
}
.cedar-header-logo { width: clamp(138px, 16vw, 222px); }
.cedar-header-logo a { display: flex; align-items: center; }
.cedar-header-logo img.header-logo { display: block; width: 100%; height: auto; }
.cedar-header-logo :is(.header-logo-dark,.header-logo-sticky,.logo-tagline) { display: none; }
.cedar-header-tools { display: flex; justify-content: flex-end; align-items: center; gap: .25rem; }
.cedar-header-mobile { display: none; }
.cedar-icon-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 42px;
  min-height: 44px;
  padding: 0 .25rem;
  margin: 0;
  border: 0;
  color: inherit;
  background: transparent;
  line-height: 1;
}
.cedar-cart-count { font-size: .75rem; min-width: .65em; }
.cedar-nav-desktop { display: flex; align-items: center; gap: clamp(10px,2vw,28px); }
.cedar-header-links, .cedar-nav-category-list { list-style: none; padding: 0; margin: 0; }
.cedar-header-links li, .cedar-nav-category-list li { margin: 0; }
.cedar-nav-desktop > .cedar-header-links { display: flex; gap: clamp(10px,2vw,28px); }
.cedar-nav-desktop > a, .cedar-nav-desktop > .cedar-header-links, .cedar-header summary { font-weight: 650; }
.cedar-header summary, .cedar-nav-dialog summary { display: flex; align-items: center; cursor: pointer; list-style: none; }
.cedar-header summary::-webkit-details-marker, .cedar-nav-dialog summary::-webkit-details-marker { display: none; }
.cedar-header summary svg, .cedar-nav-dialog summary svg { width: 17px; height: 17px; }
.cedar-header details[open] > summary svg, .cedar-nav-dialog details[open] > summary svg { transform: rotate(180deg); }
.cedar-nav-panel { display: grid; gap: clamp(16px,3vw,42px); background: #faf9f4; }
.cedar-nav-desktop .cedar-nav-panel {
  position: absolute;
  z-index: 10;
  top: 100%;
  inset-inline: 0;
  padding: 30px max(28px, calc((100vw - 1370px)/2));
  border-bottom: 1px solid #dcded5;
  box-shadow: 0 16px 24px #172c2420;
}
.cedar-nav-desktop .cedar-nav-shop { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; }
.cedar-nav-desktop .cedar-nav-about { grid-template-columns: minmax(200px, 360px) 1fr; }
.cedar-nav-panel strong { display: block; margin-bottom: .65rem; }
.cedar-nav-intro { background: #e8eee3; padding: 1.2rem; border-radius: .45rem; }
.cedar-nav-intro strong { font-family: Georgia, serif; font-weight: 400; font-size: 1.55rem; line-height: 1.1; }
.cedar-nav-intro p { margin: 0 0 .8rem; }
.cedar-nav-panel :is(.cedar-header-links a,.cedar-nav-panel-links a,.cedar-nav-category-list a) { display: block; padding-block: .27rem; }
.cedar-nav-panel a:hover { text-decoration: underline; }
.cedar-nav-cta { font-weight: 650; text-decoration: underline; }
.cedar-nav-feature { display: grid; align-content: start; gap: .65rem; font-weight: 650; }
.cedar-nav-feature img { width: 100%; height: auto; border-radius: .45rem; }
.cedar-nav-dialog {
  border: 0;
  padding: 0;
  margin: auto;
  max-width: min(calc(100% - 2rem), 560px);
  width: 100%;
  box-shadow: 0 12px 50px #182c3040;
}
.cedar-nav-dialog:not([open]) { display: none; }
.cedar-nav-dialog::backdrop { background: #0a1c28a8; }
html:has(.cedar-nav-dialog[open]) { overflow: hidden; }
.cedar-dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 1rem;
  border-bottom: 1px solid #e5e6dd;
  font-size: 1.12rem;
}
.cedar-nav-dialog form { margin: 0; }
.cedar-nav-dialog .cedar-nav-search { display: flex; gap: 5px; margin: 1rem; }
.cedar-nav-search input[type=search] { margin: 0; min-height: 44px; box-shadow: none; }
.cedar-nav-search button { margin: 0; padding: .25rem .7rem; color: #17342e; }
.cedar-mobile-dialog {
  inset: 0 auto 0 0;
  width: min(90vw, 410px);
  max-width: none;
  height: 100%;
  max-height: 100%;
  margin: 0;
  overflow-y: auto;
}
.cedar-mobile-nav > :is(details,a,.cedar-header-links) { display: block; border-top: 1px solid #e5e6dd; }
.cedar-mobile-nav > a, .cedar-mobile-nav summary, .cedar-mobile-nav > .cedar-header-links a {
  padding: .95rem 1rem;
  font-weight: 650;
}
.cedar-mobile-nav > .cedar-header-links a { display: block; }
.cedar-mobile-nav summary { justify-content: space-between; }
.cedar-mobile-nav .cedar-nav-panel { padding: 1rem; gap: 1.1rem; }
.cedar-mobile-nav .cedar-nav-feature { display: none; }
.cedar-store #main .cedar-buy-now {
  background: #17342e;
  color: #fff;
  border-radius: .25rem;
  font-weight: 700;
}
#main .cedar-signoff { display: none; }
.cedar-store-footer { background: #17342e; color: #f5f4ec; padding-inline: 24px; }
.cedar-store-footer :is(a,h2) { color: inherit; }
.cedar-store-footer a:hover { text-decoration: underline; }
.cedar-store-footer a:focus-visible { outline: 2px solid #f5e6c7; outline-offset: 4px; }
.cedar-footer-grid, .cedar-footer-bottom { max-width: 1280px; margin-inline: auto; }
.cedar-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; padding-block: 44px 36px; }
.cedar-footer-brand img { display: block; width: 94px; height: auto; }
.cedar-footer-brand span { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 1.45rem; }
.cedar-footer-grid nav h2 { font-family: inherit; font-size: 1rem; line-height: 1.3; margin: 0 0 .65rem; }
.cedar-footer-grid nav a { display: block; padding-block: .22rem; }
.cedar-footer-bottom { border-top: 1px solid #ffffff48; padding-block: 15px; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .85rem; }
@media (max-width: 700px) {
  .cedar-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.55rem; padding-block: 30px; }
  .cedar-footer-brand { grid-column: 1 / -1; }
  .cedar-store #main .cedar-buy-now { min-height: 44px; }
}

.cedar-header, .cedar-nav-dialog, .cedar-store-footer { font-family: var(--cedar-body-font); }
.cedar-header { position: relative; background: #f2f7f6; }
.cedar-announcement {
  min-height: 48px;
  background: #064353;
  font-weight: 650;
  color: white;
}
.cedar-header-main {
  width: min(calc(100% - 48px), 1480px);
  min-height: 64px;
  margin: 12px auto;
  padding-inline: clamp(14px, 2.3vw, 36px);
  border: 1px solid #dae7e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px #08283212;
}
.cedar-header-logo { width: clamp(122px, 14vw, 196px); }
.cedar-header summary { min-height: 42px; }
.cedar-nav-desktop .cedar-nav-panel {
  top: calc(100% + 6px);
  padding: clamp(20px, 2.5vw, 36px);
  border: 1px solid var(--cedar-line);
  border-radius: 16px;
  background: #fff;
}
.cedar-nav-intro { background: #ebf4f5; }
.cedar-nav-intro strong, .cedar-footer-brand span { font-family: var(--cedar-heading-font); font-weight: 650; }
.cedar-nav-dialog { border-radius: 16px; }
.cedar-mobile-dialog { border-radius: 0 20px 20px 0; }
.cedar-mobile-nav .cedar-nav-panel { background: #f4f8f9; }
.cedar-home:has(.cedar-campaign) .cedar-header-main {
  position: absolute;
  z-index: 20;
  inset: calc(100% + 16px) 0 auto;
  margin-block: 0;
}
.cedar-home:has(.cedar-campaign) .cedar-header { min-height: 1px; }
.cedar-campaign .section-content { position: relative; }
.cedar-campaign .row + .row {
  position: absolute;
  inset: 90px 0 12%;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.cedar-campaign .cedar-campaign-copy .col-inner {
  position: relative;
  inset: auto;
  width: min(42%, 530px);
  margin-inline-start: clamp(28px, 6vw, 105px);
  padding: clamp(14px, 2vw, 31px);
  transform: none;
  background: #092434e8;
  border-inline-start: 3px solid #d8c49c;
  border-radius: 0 14px 14px 0;
  pointer-events: auto;
}
.cedar-store #main .cedar-campaign h1 { font-size: clamp(1.8rem, 3vw, 3.35rem); }
.cedar-campaign-copy p:first-of-type { font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.cedar-store #main .cedar-campaign .button { background: #f6e8c9; color: #073641; }
.cedar-store #main .cedar-buy-now { background: #074756; border-radius: 999px; }
.cedar-store #main .single_add_to_cart_button {
  background: white;
  color: var(--cedar-forest);
  border: 1px solid var(--cedar-forest);
}
.cedar-store .product-small .box-image { border-radius: .75rem; background: #f3f7f8; }
.cedar-store .product-small .box-text { padding: .85rem .3rem .5rem; text-align: left; }
.cedar-store .product-small .box-text .name { font-weight: 650; }
.cedar-store .product-small .box-text .price { margin-top: .4rem; }
.cedar-store :is(.product-main,.cart-container,.category-page-row) { padding-block: clamp(1.1rem, 3vw, 2.4rem); }
.cedar-store-footer { background: #063a47; }

@media (max-width: 849px) {
  .cedar-header-main { width: calc(100% - 28px); min-height: 60px; }
  .cedar-header-logo { width: 134px; }
  .cedar-home:has(.cedar-campaign) .cedar-header-main { inset-block-start: calc(100% + 12px); }
  .cedar-campaign .row + .row { inset-block: 72px 5%; }
  .cedar-campaign .cedar-campaign-copy .col-inner { width: min(54%, 390px); }
  .cedar-campaign .cedar-brand-image { min-height: 340px; object-fit: cover; object-position: center; }
}
@media (max-width: 549px) {
  .cedar-campaign .row + .row { inset-block: 19% 40%; }
  .cedar-campaign .cedar-campaign-copy .col-inner {
    width: min(83%, 360px);
    margin-inline: auto;
    border-inline-start: 0;
    border-radius: 14px;
  }
  .cedar-store #main .cedar-campaign h1 { font-size: clamp(1.6rem, 6.4vw, 2.25rem); }
  .cedar-campaign .cedar-brand-image { min-height: 0; }
}
@media (max-width: 849px) {
  .cedar-header .cedar-nav-desktop, .cedar-header .cedar-desktop-account { display: none; }
  .cedar-header-mobile { display: flex; }
  .cedar-header .cedar-header-tools { gap: 0; }
}
@media (max-width: 849px) {
  .cedar-categories { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cedar-store .cart-container .cart-sidebar { margin-top: 1rem; }
}
