/*
Theme Name: Arbor Shop
Theme URI: https://agenciaarbor.com.br/
Author: Arbor
Author URI: https://agenciaarbor.com.br/
Description: Tema leve e acolhedor para a Arbor Shop, desenvolvido para WordPress e WooCommerce com foco em plantas, cuidados e venda local/online.
Version: 1.6.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: arbor-shop
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, woocommerce, plants, responsive, custom-logo, custom-menu, featured-images
*/

:root {
  --arbor-green: #2e421c;
  --arbor-green-2: #879874;
  --arbor-cream: #f5f2e9;
  --arbor-beige: #ded5c3;
  --arbor-earth: #806b50;
  --arbor-white: #ffffff;
  --arbor-text: #262821;
  --arbor-muted: #68705f;
  --arbor-border: #e5e1d6;
  --arbor-radius: 10px;
  --arbor-button-radius: 7px;
  --arbor-shadow: 0 14px 40px rgba(46, 66, 28, .09);
  --arbor-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--arbor-white);
  color: var(--arbor-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--arbor-green); text-decoration: none; }
a:hover { opacity: .86; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }

.arbor-container { width: min(calc(100% - 40px), var(--arbor-max)); margin-inline: auto; }
.arbor-main { min-height: 55vh; }
.arbor-section { padding: 76px 0; }
.arbor-section--soft { background: var(--arbor-cream); }
.arbor-section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.arbor-eyebrow { margin: 0 0 8px; color: var(--arbor-earth); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.arbor-title, h1, h2, h3 { color: var(--arbor-green); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
.arbor-title { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.035em; }
.arbor-section__title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.arbor-copy { color: var(--arbor-muted); max-width: 690px; }

.arbor-topbar { background: var(--arbor-green); color: #fff; text-align: center; font-size: .86rem; padding: 8px 16px; }
.arbor-header { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(46,66,28,.08); backdrop-filter: blur(14px); }
.arbor-header__row { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.arbor-logo img { display: block; max-height: 54px; width: auto; }
.arbor-logo__text { color: var(--arbor-green); font-family: Georgia, serif; font-weight: 700; font-size: 1.7rem; letter-spacing: -.03em; }
.arbor-nav ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.arbor-nav a { color: var(--arbor-text); font-size: .95rem; font-weight: 650; }
.arbor-actions { display: flex; align-items: center; gap: 10px; }
.arbor-icon-btn { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--arbor-border); border-radius: var(--arbor-button-radius); background: #fff; color: var(--arbor-green); }
.arbor-icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.arbor-cart-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--arbor-green); color: #fff; font-size: .68rem; font-weight: 800; }
.arbor-menu-toggle { display: none; }

.arbor-hero { min-height: min(720px, 78vh); display: grid; align-items: center; position: relative; overflow: hidden; background: linear-gradient(110deg, rgba(245,242,233,.98) 0%, rgba(245,242,233,.92) 46%, rgba(245,242,233,.2) 100%), var(--arbor-hero-image, none); background-size: cover; background-position: center; }
.arbor-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -130px; bottom: -180px; border: 1px solid rgba(46,66,28,.12); }
.arbor-hero__content { position: relative; z-index: 2; max-width: 700px; padding: 90px 0; }
.arbor-hero__text { max-width: 600px; margin: 22px 0 30px; color: #4d5547; font-size: clamp(1rem, 1.5vw, 1.16rem); }
.arbor-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.arbor-button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 22px; border: 1px solid var(--arbor-green) !important; border-radius: var(--arbor-button-radius) !important; background: var(--arbor-green) !important; color: #fff !important; font-weight: 750 !important; line-height: 1 !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.arbor-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(46,66,28,.18); opacity: 1; }
.arbor-button--ghost { background: transparent !important; color: var(--arbor-green) !important; }

.arbor-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.arbor-category-card { min-height: 155px; display: flex; flex-direction: column; justify-content: end; padding: 20px; border-radius: var(--arbor-radius); background: #fff; border: 1px solid var(--arbor-border); box-shadow: 0 5px 18px rgba(46,66,28,.035); transition: transform .22s ease, box-shadow .22s ease; }
.arbor-category-card:hover { transform: translateY(-4px); box-shadow: var(--arbor-shadow); opacity: 1; }
.arbor-category-card__icon { width: 40px; height: 40px; margin-bottom: auto; display: grid; place-items: center; border-radius: 50%; background: var(--arbor-cream); color: var(--arbor-green); font-size: 1.2rem; }
.arbor-category-card strong { color: var(--arbor-green); font-size: 1rem; }
.arbor-category-card span { color: var(--arbor-muted); font-size: .82rem; }

.arbor-guides { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.arbor-guide { padding: 24px 20px; border: 1px solid var(--arbor-border); border-radius: var(--arbor-radius); background: #fff; }
.arbor-guide__symbol { font-size: 1.6rem; }
.arbor-guide h3 { margin: 14px 0 7px; font-size: 1.25rem; }
.arbor-guide p { margin: 0; color: var(--arbor-muted); font-size: .9rem; }

.arbor-story { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 470px; border-radius: 28px; overflow: hidden; background: var(--arbor-green); color: #fff; }
.arbor-story__image { min-height: 380px; background-size: cover; background-position: center; background-color: #607151; }
.arbor-story__content { display: grid; align-content: center; padding: clamp(38px, 6vw, 80px); }
.arbor-story .arbor-title, .arbor-story h2 { color: #fff; }
.arbor-story p { color: rgba(255,255,255,.82); }
.arbor-story .arbor-button { background: #fff !important; color: var(--arbor-green) !important; border-color: #fff !important; width: fit-content; }

.arbor-benefits { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.arbor-benefit { padding: 22px; border-top: 1px solid var(--arbor-border); }
.arbor-benefit strong { display: block; color: var(--arbor-green); margin-bottom: 4px; }
.arbor-benefit span { color: var(--arbor-muted); font-size: .9rem; }

.arbor-content { padding: 64px 0; }
.arbor-content article { max-width: 850px; }
.arbor-page-header { padding: 55px 0 25px; background: var(--arbor-cream); }
.arbor-page-header h1 { margin: 0; font-size: clamp(2.2rem,4vw,3.5rem); }

.arbor-footer { margin-top: 60px; background: #203014; color: rgba(255,255,255,.78); }
.arbor-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 42px; padding: 68px 0 48px; }
.arbor-footer h3, .arbor-footer h4 { color: #fff; }
.arbor-footer h4 { margin: 0 0 16px; font-family: inherit; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.arbor-footer ul { padding: 0; margin: 0; list-style: none; }
.arbor-footer li { margin: 8px 0; }
.arbor-footer a { color: rgba(255,255,255,.82); }
.arbor-footer__brand { max-width: 360px; }
.arbor-footer__brand .arbor-logo__text { color: #fff; }
.arbor-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

.arbor-empty { padding: 30px; border: 1px dashed var(--arbor-border); border-radius: var(--arbor-radius); color: var(--arbor-muted); background: #fff; }
.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; }

@media (max-width: 1050px) {
  .arbor-category-grid { grid-template-columns: repeat(3, 1fr); }
  .arbor-guides { grid-template-columns: repeat(3, 1fr); }
  .arbor-header__row { grid-template-columns: auto 1fr auto; }
  .arbor-menu-toggle { display: inline-grid; }
  .arbor-nav { position: absolute; display: none; left: 20px; right: 20px; top: calc(100% + 8px); padding: 20px; background: #fff; border: 1px solid var(--arbor-border); border-radius: 16px; box-shadow: var(--arbor-shadow); }
  .arbor-nav.is-open { display: block; }
  .arbor-nav ul { display: grid; justify-content: stretch; gap: 5px; }
  .arbor-nav a { display: block; padding: 10px 6px; }
  .arbor-header__row > .arbor-nav { grid-column: auto; }
}

@media (max-width: 780px) {
  .arbor-container { width: min(calc(100% - 28px), var(--arbor-max)); }
  .arbor-section { padding: 56px 0; }
  .arbor-header__row { min-height: 68px; gap: 12px; }
  .arbor-logo img { max-height: 44px; }
  .arbor-icon-btn--account { display: none; }
  .arbor-hero { min-height: 620px; background: linear-gradient(180deg, rgba(245,242,233,.94) 0%, rgba(245,242,233,.88) 60%, rgba(245,242,233,.5) 100%), var(--arbor-hero-image, none); background-size: cover; background-position: center; }
  .arbor-category-grid { grid-template-columns: repeat(2, 1fr); }
  .arbor-guides { grid-template-columns: 1fr 1fr; }
  .arbor-story { grid-template-columns: 1fr; }
  .arbor-story__image { min-height: 300px; }
  .arbor-benefits { grid-template-columns: 1fr 1fr; }
  .arbor-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .arbor-topbar { font-size: .76rem; }
  .arbor-actions { gap: 6px; }
  .arbor-icon-btn { width: 39px; height: 39px; }
  .arbor-category-grid, .arbor-guides, .arbor-benefits, .arbor-footer__grid { grid-template-columns: 1fr; }
  .arbor-section__head, .arbor-footer__bottom { align-items: start; flex-direction: column; }
  .arbor-buttons { display: grid; }
  .arbor-button { width: 100%; }
}

/* v1.1.0 — responsive refinements for desktop, tablet and mobile */
html, body { max-width: 100%; }
img, svg, video, iframe { max-width: 100%; }
.arbor-header__row > *, .arbor-section__head > *, .arbor-story > *, .arbor-footer__grid > * { min-width: 0; }
.arbor-nav { min-width: 0; }
.arbor-button, .wp-element-button, button, input[type="submit"], input[type="button"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit { border-radius: var(--arbor-button-radius) !important; }
.arbor-story { border-radius: var(--arbor-radius); }
.arbor-category-card, .arbor-guide { overflow-wrap: anywhere; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--arbor-green); outline-offset: 3px; }
@media (max-width: 1050px) {
  .arbor-header__row { grid-template-columns: minmax(0,1fr) auto; }
  .arbor-nav { max-height: min(75vh, 600px); overflow-y: auto; }
}
@media (min-width: 781px) and (max-width: 1050px) {
  .arbor-footer__grid { gap: 22px; }
  .arbor-benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .arbor-hero { min-height: 0; }
  .arbor-hero__content { padding: clamp(64px, 12vw, 96px) 0; }
  .arbor-story__content { padding: 32px 24px; }
  .arbor-footer__grid { gap: 28px 20px; }
}
@media (max-width: 520px) {
  .arbor-header__row { grid-template-columns: minmax(0,1fr) auto; }
  .arbor-logo__text { font-size: 1.35rem; }
  .arbor-actions { flex-shrink: 0; }
  .arbor-category-grid, .arbor-guides, .arbor-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .arbor-category-card { min-height: 142px; padding: 14px; }
  .arbor-guide { padding: 18px 14px; }
  .arbor-footer__grid { grid-template-columns: 1fr; }
  .arbor-section { padding: 44px 0; }
  .arbor-story__image { min-height: 230px; }
  .arbor-story__content { padding: 28px 20px; }
}
@media (max-width: 360px) {
  .arbor-category-grid, .arbor-guides, .arbor-benefits { grid-template-columns: 1fr; }
  .arbor-icon-btn { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* v1.2.0 — Header spacing and consistent storefront cards */
.arbor-header__row { padding-block: 13px; gap: clamp(20px, 3vw, 44px); }
.arbor-logo { display: flex; align-items: center; min-width: 0; }
.arbor-logo .custom-logo-link { display: inline-flex; align-items: center; max-width: 100%; }
.arbor-logo .custom-logo { display: block; width: auto; max-width: min(210px, 100%); max-height: 56px; object-fit: contain; }
.arbor-header__row .arbor-actions { justify-self: end; }
@media (max-width: 780px) {
  .arbor-header__row { padding-block: 11px; gap: 12px; }
  .arbor-logo .custom-logo { max-width: min(170px, 100%); max-height: 46px; }
}
@media (max-width: 520px) {
  .arbor-logo .custom-logo { max-width: min(140px, 100%); max-height: 41px; }
}
@media (max-width: 380px) {
  .arbor-logo .custom-logo { max-width: min(112px, 100%); max-height: 38px; }
}

/* v1.3.0 — The footer uses its own white logo; header logo stays unchanged. */
.arbor-footer__logo-wrap a { display: inline-flex; align-items: center; }
.arbor-footer__logo-wrap .arbor-footer__logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

/* v1.4.0 — Centered identity, left off-canvas primary navigation. */
.arbor-header { z-index: 100; }
.arbor-header__row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: clamp(9px,2vw,24px);
  min-height: 74px;
  padding-block: 11px;
}
.arbor-menu-toggle { display: inline-grid !important; justify-self: start; }
.arbor-header__logo { grid-column: 2; grid-row: 1; justify-content: center; min-width: 0; }
.arbor-header__logo .custom-logo-link { justify-content: center; }
.arbor-header__logo .custom-logo {
  width: auto;
  max-width: min(172px, 100%);
  max-height: 48px;
  height: auto;
  object-fit: contain;
}
.arbor-header__logo .arbor-logo__text { font-size: 1.55rem; }
.arbor-header__row > .arbor-actions { grid-column: 3; grid-row: 1; justify-self: end; gap: 9px; }
.arbor-header__row > .arbor-menu-toggle { grid-column: 1; grid-row: 1; }

/* The drawer is a separate document-level layer, not a dropdown under header. */
.arbor-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(14, 24, 9, .46);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.arbor-nav-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.arbor-nav {
  display: flex !important;
  flex-direction: column;
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  width: min(390px, 88vw) !important;
  max-width: none !important;
  max-height: none !important;
  height: 100dvh;
  margin: 0;
  padding: 0 !important;
  background: var(--arbor-white);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 12px 0 45px rgba(15,28,8,.18);
  z-index: 1101;
  overflow: hidden !important;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s ease;
}
.arbor-nav.is-open { transform: translateX(0); visibility: visible; }
.arbor-menu-open { overflow: hidden; }
.arbor-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 25px 24px 20px;
  border-bottom: 1px solid var(--arbor-border);
}
.arbor-nav__eyebrow { display: block; color: var(--arbor-earth); font-size: .68rem; font-weight: 800; letter-spacing: .13em; line-height: 1.5; }
.arbor-nav__title { display: block; color: var(--arbor-green); font-family: Georgia,serif; font-size: 1.65rem; font-weight: 700; line-height: 1.25; }
.arbor-nav__close { flex-shrink: 0; }
.arbor-nav__scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; padding: 12px 18px 26px; }
.arbor-nav .arbor-nav__menu, .arbor-nav ul.menu {
  display: block !important;
  padding: 0;
  margin: 0;
  list-style: none;
}
.arbor-nav li { position: relative; list-style: none; border-bottom: 1px solid rgba(46,66,28,.07); }
.arbor-nav li:last-child { border-bottom: none; }
.arbor-nav li > a {
  display: block;
  padding: 13px 44px 13px 12px;
  color: var(--arbor-text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  border-radius: 6px;
}
.arbor-nav li > a:hover, .arbor-nav li.current-menu-item > a, .arbor-nav li.current-menu-ancestor > a { background: var(--arbor-cream); color: var(--arbor-green); opacity: 1; }
.arbor-nav .sub-menu { display: block !important; padding: 0 0 9px 14px !important; margin: 0 !important; list-style: none; }
.arbor-nav .sub-menu[hidden] { display: none !important; }
.arbor-nav .sub-menu li { border: 0; }
.arbor-nav .sub-menu a { padding: 10px 38px 10px 14px; color: var(--arbor-muted); font-size: .92rem; font-weight: 500; }
.arbor-nav .sub-menu .sub-menu { margin-left: 10px !important; border-left: 1px solid var(--arbor-border); }
.arbor-submenu-toggle {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 1;
  right: 2px;
  top: 3px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: var(--arbor-green);
  border-radius: var(--arbor-button-radius) !important;
}
.arbor-submenu-toggle:hover { background: var(--arbor-cream); }
.arbor-submenu-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .22s ease; }
.arbor-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.arbor-nav__bottom { padding: 18px 26px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--arbor-border); background: #faf9f5; }
.arbor-nav__bottom a { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 700; }
.arbor-nav__bottom svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 780px) {
  .arbor-header__row { min-height: 65px; padding-block: 10px; gap: 8px; }
  .arbor-header__logo .custom-logo { max-width: min(135px, 100%); max-height: 40px; }
  .arbor-header__row > .arbor-actions { gap: 6px; }
  .arbor-header__row .arbor-icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 520px) {
  .arbor-header__logo .custom-logo { max-width: min(122px, 100%); max-height: 37px; }
  .arbor-header__row .arbor-icon-btn { width: 38px; height: 38px; }
  .arbor-nav { width: min(370px, 91vw) !important; }
}
@media (max-width: 360px) {
  .arbor-header__logo .custom-logo { max-width: min(105px, 100%); max-height: 34px; }
  .arbor-header__row .arbor-icon-btn { width: 35px; height: 35px; }
  .arbor-header__row > .arbor-actions { gap: 5px; }
  .arbor-header__row { gap: 5px; }
}
@media (min-width: 783px) {
  body.admin-bar .arbor-header { top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .arbor-nav, .arbor-nav-overlay, .arbor-submenu-toggle svg { transition: none !important; }
}
