/*
Theme Name: GentleFern Shop
Theme URI: https://gentlefernstudio.com/
Author: GentleFernStudio
Description: A calm, editorial WooCommerce theme for printable cards and instant downloads.
Version: 1.0.3
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: gentlefern-shop
*/

:root {
  --gf-ink: #18382f;
  --gf-ink-soft: #34544a;
  --gf-paper: #fffdf9;
  --gf-mist: #eef4f0;
  --gf-line: #d8e2dd;
  --gf-coral: #dc765f;
  --gf-coral-dark: #b95442;
  --gf-sun: #f2c85b;
  --gf-text: #24352f;
  --gf-muted: #63736d;
  --gf-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gf-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gf-max: 1240px;
  --gf-radius: 6px;
  --gf-shadow: 0 18px 45px rgba(31, 53, 46, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gf-paper);
  color: var(--gf-text);
  font-family: var(--gf-sans);
  font-size: 16px;
  line-height: 1.65;
}
body.admin-bar .gf-header { top: 32px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.gf-shell { width: min(calc(100% - 40px), var(--gf-max)); margin-inline: auto; }
.gf-kicker { margin: 0 0 10px; color: var(--gf-coral-dark); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.gf-heading { margin: 0; color: var(--gf-ink); font-family: var(--gf-serif); font-size: clamp(2rem, 4vw, 4.25rem); font-weight: 500; line-height: 1.05; }
.gf-heading--small { font-size: clamp(1.8rem, 3vw, 3rem); }
.gf-lead { max-width: 660px; color: var(--gf-muted); font-size: 1.08rem; }
.gf-button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid var(--gf-ink); border-radius: 3px;
  background: var(--gf-ink); color: #fff; font-size: 0.9rem; font-weight: 700;
  line-height: 1.2; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease;
}
.gf-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--gf-coral); border-color: var(--gf-coral); color: #fff; transform: translateY(-1px); }
.gf-button--light { background: #fff; border-color: #fff; color: var(--gf-ink); }
.gf-button--outline { background: transparent; color: var(--gf-ink); }
.gf-button--outline:hover { color: #fff; }

.gf-announcement { background: var(--gf-ink); color: #fff; font-size: 0.78rem; font-weight: 650; text-align: center; }
.gf-announcement p { margin: 0; padding: 8px 16px; }
.gf-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(216,226,221,.85); background: rgba(255,253,249,.96); backdrop-filter: blur(14px); }
.gf-header__inner { display: grid; min-height: 76px; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.gf-brand { color: var(--gf-ink); font-family: var(--gf-serif); font-size: 1.55rem; font-weight: 600; line-height: 1; text-decoration: none; }
.gf-brand small { display: block; margin-top: 6px; color: var(--gf-muted); font-family: var(--gf-sans); font-size: 0.59rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gf-nav ul { display: flex; justify-content: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.gf-nav a { position: relative; color: var(--gf-ink-soft); font-size: .86rem; font-weight: 700; text-decoration: none; }
.gf-nav a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--gf-coral); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.gf-nav a:hover::after, .gf-nav .current-menu-item a::after { transform: scaleX(1); }
.gf-tools { display: flex; align-items: center; gap: 10px; }
.gf-tool { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--gf-ink); cursor: pointer; text-decoration: none; }
.gf-tool svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.gf-cart { position: relative; }
.gf-cart__count { position: absolute; top: 1px; right: -1px; display: grid; min-width: 18px; height: 18px; place-items: center; padding-inline: 4px; border-radius: 50%; background: var(--gf-coral); color: #fff; font-size: .65rem; font-weight: 800; }
.gf-menu-toggle { display: none; }

.gf-hero { position: relative; min-height: min(710px, calc(100svh - 92px)); display: flex; align-items: flex-end; overflow: hidden; background: #d9e5df; color: #fff; }
.gf-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.gf-hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,39,32,.78) 0%, rgba(13,39,32,.52) 42%, rgba(13,39,32,.08) 72%); content: ""; }
.gf-hero__content { position: relative; z-index: 1; width: min(680px, 100%); padding: 78px 0 72px; }
.gf-hero .gf-kicker { color: #f6d7cf; }
.gf-hero h1 { margin: 0; max-width: 640px; font-family: var(--gf-serif); font-size: clamp(3.2rem, 7vw, 6.8rem); font-weight: 500; line-height: .92; }
.gf-hero__text { max-width: 560px; margin: 24px 0 28px; color: rgba(255,255,255,.9); font-size: 1.06rem; }
.gf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gf-hero__link { display: inline-flex; min-height: 48px; align-items: center; padding: 10px 12px; color: #fff; font-size: .9rem; font-weight: 750; }

.gf-benefits { border-bottom: 1px solid var(--gf-line); background: #fff; }
.gf-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.gf-benefit { padding: 22px 32px; border-right: 1px solid var(--gf-line); text-align: center; }
.gf-benefit:first-child { border-left: 1px solid var(--gf-line); }
.gf-benefit strong { display: block; color: var(--gf-ink); font-family: var(--gf-serif); font-size: 1.15rem; font-weight: 600; }
.gf-benefit span { color: var(--gf-muted); font-size: .78rem; }

.gf-section { padding: 88px 0; }
.gf-section--mist { background: var(--gf-mist); }
.gf-section__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.gf-text-link { color: var(--gf-ink); font-size: .86rem; font-weight: 750; text-decoration-color: var(--gf-coral); }
.gf-occasions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--gf-line); }
.gf-occasion { position: relative; min-height: 220px; padding: 28px 24px; border-right: 1px solid var(--gf-line); border-bottom: 1px solid var(--gf-line); color: var(--gf-ink); text-decoration: none; transition: background .2s ease; }
.gf-occasion:first-child { border-left: 1px solid var(--gf-line); }
.gf-occasion:hover { background: #fff; }
.gf-occasion__number { color: var(--gf-coral-dark); font-size: .75rem; font-weight: 750; }
.gf-occasion h3 { margin: 54px 0 7px; font-family: var(--gf-serif); font-size: 1.75rem; font-weight: 500; line-height: 1.05; }
.gf-occasion p { margin: 0; color: var(--gf-muted); font-size: .84rem; }
.gf-occasion__arrow { position: absolute; right: 22px; bottom: 20px; font-size: 1.35rem; }

.gf-products ul.products,
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; margin: 0; }
.gf-products ul.products::before, .gf-products ul.products::after,
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.gf-products ul.products li.product,
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1 / 1; margin: 0 0 15px; object-fit: cover; border-radius: 2px; background: #f3f3ef; transition: transform .28s ease; }
.woocommerce ul.products li.product a:hover img { transform: translateY(-3px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; color: var(--gf-ink); font-family: var(--gf-serif); font-size: 1.16rem; font-weight: 600; line-height: 1.22; }
.woocommerce ul.products li.product .price { color: var(--gf-coral-dark); font-size: .9rem; font-weight: 750; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: 10px; }
.gf-product-placeholder { overflow: hidden; }
.gf-product-placeholder img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gf-product-placeholder h3 { margin: 15px 0 4px; font-family: var(--gf-serif); font-size: 1.15rem; line-height: 1.2; }
.gf-product-placeholder p { margin: 0; color: var(--gf-coral-dark); font-size: .85rem; font-weight: 750; }

.gf-story { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; }
.gf-story__image { min-height: 610px; width: 100%; object-fit: cover; }
.gf-story__content { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(32px, 7vw, 104px); background: var(--gf-ink); color: #fff; }
.gf-story__content .gf-kicker { color: #efad9e; }
.gf-story__content h2 { margin: 0; font-family: var(--gf-serif); font-size: clamp(2.4rem, 4.6vw, 4.8rem); font-weight: 500; line-height: 1; }
.gf-story__content p { max-width: 520px; color: rgba(255,255,255,.78); }

.gf-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--gf-line); }
.gf-step { min-height: 250px; padding: 30px; border-right: 1px solid var(--gf-line); border-bottom: 1px solid var(--gf-line); }
.gf-step:first-child { border-left: 1px solid var(--gf-line); }
.gf-step__number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--gf-coral); color: #fff; font-size: .8rem; font-weight: 800; }
.gf-step h3 { margin: 38px 0 8px; font-family: var(--gf-serif); font-size: 1.65rem; font-weight: 500; }
.gf-step p { margin: 0; color: var(--gf-muted); font-size: .9rem; }

.gf-main { min-height: 60vh; padding: 64px 0 92px; }
.woocommerce-page .site-main,
.woocommerce-page #primary,
.woocommerce-page #main.site-main {
  width: min(calc(100% - 40px), var(--gf-max));
  margin-inline: auto;
  padding: 64px 0 92px;
}
.woocommerce-page .gf-main .site-main,
.woocommerce-page .gf-main #primary,
.woocommerce-page .gf-main #main.site-main { width: auto; padding: 0; }
.gf-page-header { margin-bottom: 44px; }
.gf-page-header h1, .woocommerce-products-header__title.page-title, .entry-title { margin: 0; color: var(--gf-ink); font-family: var(--gf-serif); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 500; line-height: 1; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 24px; color: var(--gf-muted); font-size: .8rem; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 28px; }
.woocommerce .woocommerce-ordering select { min-height: 44px; padding: 8px 34px 8px 12px; border: 1px solid var(--gf-line); background: #fff; }
.woocommerce span.onsale { min-width: 0; min-height: 0; padding: 7px 10px; border-radius: 2px; background: var(--gf-coral); line-height: 1; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(34px, 6vw, 84px); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; }
.woocommerce div.product .product_title { font-family: var(--gf-serif); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 500; line-height: 1.04; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--gf-coral-dark); font-size: 1.25rem; font-weight: 750; }
.woocommerce-product-details__short-description { color: var(--gf-muted); }
.woocommerce .quantity .qty { min-height: 48px; border: 1px solid var(--gf-line); }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid var(--gf-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0 24px 0 0; padding: 0; border: 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 14px 0; }
.woocommerce table.shop_table { border: 1px solid var(--gf-line); border-radius: var(--gf-radius); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 48px; padding: 10px 12px; border: 1px solid #bfcfc7; border-radius: 3px; background: #fff; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--gf-coral); background: var(--gf-mist); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--gf-coral-dark); }

.gf-footer { background: #102d25; color: rgba(255,255,255,.76); }
.gf-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; padding: 68px 0 50px; }
.gf-footer__brand { color: #fff; font-family: var(--gf-serif); font-size: 1.8rem; }
.gf-footer h3 { margin: 0 0 16px; color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.gf-footer p { max-width: 350px; font-size: .88rem; }
.gf-footer ul { margin: 0; padding: 0; list-style: none; }
.gf-footer li + li { margin-top: 9px; }
.gf-footer a { font-size: .87rem; text-decoration: none; }
.gf-footer a:hover { color: #fff; text-decoration: underline; }
.gf-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.14); font-size: .75rem; }

@media (max-width: 980px) {
  .gf-header__inner { grid-template-columns: 1fr auto; }
  .gf-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 18px 20px 28px; border-bottom: 1px solid var(--gf-line); background: var(--gf-paper); }
  .gf-nav.is-open { display: block; }
  .gf-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gf-tools { grid-column: 2; grid-row: 1; }
  .gf-menu-toggle { display: inline-flex; }
  .gf-occasions { grid-template-columns: repeat(2, 1fr); }
  .gf-occasion:nth-child(3) { border-left: 1px solid var(--gf-line); }
  .gf-products ul.products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-story { grid-template-columns: 1fr; }
  .gf-story__image { min-height: 440px; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .gf-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .gf-footer__intro { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body.admin-bar .gf-header { top: 46px; }
  .gf-shell { width: min(calc(100% - 28px), var(--gf-max)); }
  .gf-header__inner { min-height: 68px; gap: 10px; }
  .gf-brand { font-size: 1.28rem; }
  .gf-brand small, .gf-search-tool { display: none; }
  .gf-tool { width: 38px; height: 38px; }
  .gf-hero { min-height: 660px; align-items: flex-end; }
  .gf-hero__image { object-position: 60% 50%; }
  .gf-hero::after { background: linear-gradient(0deg, rgba(13,39,32,.86) 0%, rgba(13,39,32,.56) 52%, rgba(13,39,32,.08) 100%); }
  .gf-hero__content { padding: 220px 0 42px; }
  .gf-hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .gf-hero__text { margin: 18px 0 22px; font-size: .96rem; }
  .gf-benefits__grid { grid-template-columns: 1fr; }
  .gf-benefit { padding: 14px; border-right: 1px solid var(--gf-line); border-bottom: 1px solid var(--gf-line); }
  .gf-section { padding: 64px 0; }
  .gf-section__head { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .gf-occasions { grid-template-columns: 1fr; }
  .gf-occasion { min-height: 180px; border-left: 1px solid var(--gf-line); }
  .gf-occasion h3 { margin-top: 36px; }
  .gf-products ul.products, .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; }
  .gf-story__image { min-height: 360px; }
  .gf-story__content { padding: 52px 24px; }
  .gf-steps { grid-template-columns: 1fr; }
  .gf-step { min-height: 210px; border-left: 1px solid var(--gf-line); }
  .gf-main { padding-top: 42px; }
  .woocommerce div.product .product_title { font-size: 2.45rem; }
  .gf-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 22px; }
  .gf-footer__intro { grid-column: 1 / -1; }
  .gf-footer__bottom { flex-direction: column; }
}

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