/* =================================================================
   TERRAPERENE — page templates
   Styles for Shop, Product, Cart, Checkout, Account, Contact, Blog.
   Reuses the design tokens & components from style.css.
   ================================================================= */

/* ---- Page hero (breadcrumb band) + centered page heading ---- */
.page-hero { background: var(--cream-2); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.4rem); }
/* New layout: the title + intro live in the content section below, so the hero
   usually carries just the breadcrumb — keep that band slim. (A hero that still
   holds a title, e.g. the static mock-ups, keeps the roomy padding.) */
.page-hero:not(:has(.page-hero__title)) { padding-block: .7rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .8rem; letter-spacing: .03em; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); transition: color .25s; }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb svg { width: 13px; height: 13px; opacity: .5; }
.page-hero__title { font-size: clamp(2.1rem, 4.5vw, 3.3rem); margin-top: .55rem; }
.page-hero__sub { margin-top: .7rem; color: var(--ink-2); max-width: 46rem; }

/* Centered title + intro at the top of the content section */
.page-head { max-width: 60rem; margin: 0 auto clamp(1.8rem, 3.5vw, 2.8rem); text-align: center; }
.page-head__title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.1; }
.page-head__sub { margin-top: .85rem; color: var(--ink-2); }
.page-head__sub p:last-child { margin-bottom: 0; }
/* Tighten the section's top padding when it leads with a centered heading */
.section:has(> .container > .page-head) { padding-top: clamp(2.4rem, 5vw, 3.8rem); }

/* ---- Forms (shared: checkout, account, contact) ---- */
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .78rem; letter-spacing: .04em; color: var(--ink-2); margin-bottom: .4rem; }
.field label .req { color: var(--clay); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: .82em 1em; font-size: .95rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(88,107,69,.15);
}
.form-grid { display: grid; gap: 0 1.1rem; }
@media (min-width: 560px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.check-inline { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.check-inline input { width: 17px; height: 17px; accent-color: var(--forest); }

/* =================================================================
   SHOP
   ================================================================= */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.shop-count { font-size: .9rem; color: var(--ink-2); }
.shop-tools { display: flex; align-items: center; gap: .7rem; }
.select { position: relative; display: inline-flex; }
.select select { appearance: none; padding: .62em 2.6em .62em 1.1em; font-size: .85rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer; }
.select svg { position: absolute; right: .9em; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-2); pointer-events: none; }
.filter-toggle { display: inline-flex; align-items: center; gap: .5rem; }
@media (min-width: 900px) { .filter-toggle { display: none; } }

.shop-layout { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 248px 1fr; align-items: start; } }
.shop-main { min-width: 0; }

.shop-sidebar { align-self: start; }
@media (max-width: 899px) {
  .shop-sidebar {
    position: fixed; inset: 0 18% 0 0; max-width: 380px; z-index: 200; background: var(--cream);
    padding: 1.4rem var(--gutter); overflow-y: auto; box-shadow: var(--shadow-lg);
    transform: translateX(-103%); transition: transform .45s var(--ease); visibility: hidden;
  }
  .shop-sidebar.is-open { transform: none; visibility: visible; }
}
.shop-sidebar__head { display: none; }
@media (max-width: 899px) { .shop-sidebar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; } .shop-sidebar__head h3 { font-size: 1.4rem; } }
.filter-group { padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group__title { font-family: var(--font-sans); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); margin-bottom: 1rem; }
.filter-list li { margin-bottom: .15rem; }
.filter-list a { display: flex; align-items: center; justify-content: space-between; padding: .35rem 0; font-size: .92rem; color: var(--ink-2); transition: color .2s, padding .25s; }
.filter-list a:hover, .filter-list a.is-active { color: var(--forest); padding-left: .3rem; }
.filter-list a span { font-size: .78rem; color: var(--ink-3); }
/* Expandable sub-categories: the name is a link; the +/- only toggles the list */
.filter-cat__row { display: flex; align-items: center; gap: .4rem; }
.filter-cat__row > a { flex: 1 1 auto; min-width: 0; }
.filter-cat__toggle { flex: none; position: relative; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; color: var(--ink-2); transition: border-color .2s, color .2s; }
.filter-cat__toggle:hover { border-color: var(--forest); color: var(--forest); }
.filter-cat__toggle::before, .filter-cat__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.filter-cat__toggle::before { width: 9px; height: 1.5px; }
.filter-cat__toggle::after { width: 1.5px; height: 9px; transition: transform .2s; }
.filter-cat.is-open > .filter-cat__row .filter-cat__toggle::after { transform: translate(-50%, -50%) scaleY(0); }
.filter-sublist { list-style: none; margin: .15rem 0 .5rem; padding-left: .9rem; border-left: 1px solid var(--line); display: none; }
.filter-cat.is-open > .filter-sublist { display: block; }
.filter-sublist li { margin-bottom: 0; }
.filter-sublist a { display: flex; align-items: center; justify-content: space-between; padding: .28rem 0; font-size: .86rem; color: var(--ink-2); transition: color .2s, padding .25s; }
.filter-sublist a:hover, .filter-sublist a.is-active { color: var(--forest); padding-left: .25rem; }
.filter-sublist a span { font-size: .74rem; color: var(--ink-3); }
.check { display: flex; align-items: center; gap: .6rem; padding: .32rem 0; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--forest); flex: none; }
.check .count { margin-left: auto; font-size: .78rem; color: var(--ink-3); }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { width: 26px; height: 26px; border-radius: var(--r-pill); border: 1px solid var(--line); cursor: pointer; }
.price-range { padding-top: .3rem; }
.price-range input[type=range] { width: 100%; accent-color: var(--forest); }
.price-range__vals { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-2); margin-top: .5rem; }
.price-range__vals b { font-weight: 600; color: var(--forest); }
.shop-sidebar form > .btn--block { margin-top: .4rem; }
.shop-sidebar__clear { display: block; text-align: center; margin-top: .85rem; font-size: .85rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.shop-sidebar__clear:hover { color: var(--forest); }

.shop-products .product-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1120px) { .shop-products .product-grid { grid-template-columns: repeat(3, 1fr); } }

.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination a { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 .5rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .9rem; color: var(--ink-2); transition: all .25s; }
.pagination a:hover, .pagination a[aria-current] { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.pagination a svg { width: 16px; height: 16px; }

/* =================================================================
   SINGLE PRODUCT
   ================================================================= */
.product-single { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .product-single { grid-template-columns: 1fr 1fr; } }
.gallery__main { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 9%; }
.gallery__thumbs { display: flex; gap: .7rem; margin-top: .9rem; flex-wrap: wrap; }
.gallery__thumb { width: 76px; height: 76px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; padding: 7px; cursor: pointer; transition: border-color .25s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--forest); }

.psum__cat { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.psum__title { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: .5rem 0 .2rem; }
.psum__rating { display: flex; align-items: center; gap: .15rem; color: var(--wheat); margin-bottom: 1rem; }
.psum__rating svg { width: 16px; height: 16px; }
.psum__rating span { font-size: .82rem; color: var(--ink-3); margin-left: .4rem; }
.psum__price { display: flex; align-items: baseline; gap: .7rem; margin: 0 0 1.2rem; }
.psum__price .price { font-size: 2.1rem; }
.psum__price .badge { align-self: center; }
.psum__desc { color: var(--ink-2); line-height: 1.75; }
.psum__cart { display: flex; gap: .8rem; margin: 1.7rem 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 44px; height: 50px; display: grid; place-items: center; color: var(--ink); transition: background .2s; }
.qty button:hover { background: var(--bone); }
/* Both stepper buttons reuse the one chevron icon (a down V). Point the
   "+" (Aumentar) button up so the pair reads as decrease / increase. */
.qty button[data-step="+"] svg { transform: rotate(180deg); }
.qty input { width: 46px; height: 50px; text-align: center; border: 0; background: transparent; font-size: 1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.psum__cart .btn { flex: 1 1 auto; }
.psum__like { width: 50px; flex: none; padding: 0; }
.psum__meta { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .45rem; font-size: .85rem; color: var(--ink-2); }
.psum__meta b { color: var(--ink); font-weight: 600; }
.psum__badges { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; margin-top: 1.5rem; }
.psum__badges div { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--ink-2); }
.psum__badges svg { width: 20px; height: 20px; color: var(--moss); }

.tabs { margin-top: clamp(3rem, 6vw, 5rem); }
.tabs__nav { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs__btn { padding: .9rem 1.2rem; margin-bottom: -1px; font-family: var(--font-sans); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid transparent; transition: color .25s, border-color .25s; }
.tabs__btn.is-active { color: var(--forest); border-color: var(--forest); }
.tabs__panel { display: none; padding-top: 2rem; max-width: 64rem; }
.tabs__panel.is-active { display: block; }
.tabs__panel p { color: var(--ink-2); line-height: 1.8; margin-bottom: 1rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { color: var(--ink); width: 30%; font-weight: 600; }
.spec-table td { color: var(--ink-2); }
.review { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.review__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.review__av { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--sage); color: var(--cream); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.review__stars { color: var(--wheat); display: flex; gap: .1rem; } .review__stars svg { width: 14px; height: 14px; }

/* =================================================================
   CART
   ================================================================= */
.cart-page { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 920px) { .cart-page { grid-template-columns: 1fr 350px; } }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-table thead th:last-child, .cart-row td:last-child { text-align: right; }
.cart-row td { padding: 1.2rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-prod { display: flex; gap: 1rem; align-items: center; }
.cart-prod__img { width: 78px; height: 78px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); object-fit: contain; padding: 6px; flex: none; }
.cart-prod b { font-weight: 500; font-size: .95rem; display: block; line-height: 1.35; }
.cart-prod span { font-size: .8rem; color: var(--ink-3); }
.cart-row .qty { transform: scale(.85); transform-origin: left center; }
.cart-remove { color: var(--ink-3); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-pill); transition: all .2s; }
.cart-remove:hover { color: #fff; background: var(--clay); }
.cart-remove svg { width: 17px; height: 17px; }
/* Phones can't fit the 5-column cart table, so stack each line item as a
   card: hide the header row and lay each cell out as a labelled line
   (label text comes from the <td data-label>). */
@media (max-width: 600px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-row, .cart-row td { display: block; width: 100%; }
  .cart-row { position: relative; padding: 1.4rem 2.4rem 1.4rem 0; border-bottom: 1px solid var(--line); }
  .cart-row td { padding: 0; border: 0; }
  .cart-row td:first-child { margin-bottom: .7rem; }
  .cart-row td[data-label] { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
  .cart-row td[data-label]::before { content: attr(data-label); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .cart-row .qty { transform: none; }
  .cart-row td:last-child { position: absolute; top: 1.4rem; right: 0; width: auto; }
}
.cart-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 1.6rem; }
.coupon { display: flex; gap: .5rem; max-width: 340px; }
.coupon input { flex: 1; }
.cart-totals { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; position: sticky; top: 100px; }
.cart-totals h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.totals-row { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem 0; font-size: .95rem; color: var(--ink-2); }
.totals-row span.price { font-size: 1rem; }
.totals-row--big { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; color: var(--ink); }
.totals-row--big .price { font-size: 1.6rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty svg { width: 60px; height: 60px; color: var(--sage); }

/* =================================================================
   CHECKOUT
   ================================================================= */
.checkout-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 920px) { .checkout-grid { grid-template-columns: 1fr 390px; } }
.checkout-box { margin-bottom: 2.2rem; }
.checkout-box > h3 { font-size: 1.4rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.checkout-box > h3 .step { width: 30px; height: 30px; border-radius: var(--r-pill); background: var(--forest); color: var(--cream); display: grid; place-items: center; font-family: var(--font-sans); font-size: .85rem; }
.order-summary { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; position: sticky; top: 100px; }
.order-summary h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.osum-item { display: flex; gap: .9rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.osum-item img { width: 54px; height: 54px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); object-fit: contain; padding: 4px; flex: none; }
.osum-item .n { flex: 1; font-size: .88rem; line-height: 1.3; }
.osum-item .n span { color: var(--ink-3); font-size: .8rem; }
.osum-item .price { font-size: .95rem; }
.pay-method { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem 1rem; margin-bottom: .7rem; cursor: pointer; transition: border-color .2s, background .2s; }
.pay-method:hover { border-color: var(--sage); }
.pay-method.is-active { border-color: var(--forest); background: var(--white); }
.pay-method input { accent-color: var(--forest); }
.pay-method .pm-name { font-weight: 500; font-size: .92rem; }
.pay-method .pm-ic { margin-left: auto; font-size: .68rem; letter-spacing: .04em; color: var(--ink-3); }

/* =================================================================
   ACCOUNT
   ================================================================= */
.auth-grid { display: grid; gap: 1.6rem; }
@media (min-width: 780px) { .auth-grid { grid-template-columns: 1fr 1fr; } }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.auth-card h2 { font-size: 1.7rem; margin-bottom: .4rem; }
.auth-card p.sub { color: var(--ink-2); font-size: .9rem; margin-bottom: 1.6rem; }
.auth-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.4rem; }
.auth-row a { font-size: .85rem; color: var(--wheat-2); }
.account-perks { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .account-perks { grid-template-columns: repeat(3, 1fr); } }
.perk { display: flex; gap: .8rem; align-items: flex-start; color: inherit; }
a.perk { transition: transform .2s var(--ease); }
a.perk:hover { transform: translateY(-2px); }
a.perk:hover .ic { background: var(--moss); color: var(--cream); }
.perk .ic { width: 42px; height: 42px; border-radius: var(--r-pill); background: var(--sage-tint); color: var(--moss); display: grid; place-items: center; flex: none; }
.perk b { display: block; font-size: .92rem; }
.perk p { font-size: .82rem; color: var(--ink-2); }

/* =================================================================
   CONTACT
   ================================================================= */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.05fr; } }
.contact-info-card { background: var(--forest); color: var(--sage-2); border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 2.6rem); }
.contact-info-card h3 { color: var(--cream); font-size: 1.7rem; }
.contact-info-card > p { margin-top: .7rem; font-size: .92rem; color: var(--sage); }
.cinfo { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.6rem; }
.cinfo .ic { width: 44px; height: 44px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: var(--wheat); flex: none; }
.cinfo .ic svg { width: 19px; height: 19px; }
.cinfo b { color: var(--cream); display: block; font-size: .9rem; margin-bottom: .15rem; }
.cinfo a, .cinfo span { color: var(--sage-2); font-size: .9rem; }
.cinfo a:hover { color: var(--cream); }
.contact-social { display: flex; gap: .6rem; margin-top: 2rem; }
.contact-social a { width: 42px; height: 42px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; color: var(--sage-2); transition: all .3s; }
.contact-social a:hover { background: var(--cream); color: var(--forest); }
.contact-social svg { width: 18px; height: 18px; }
.map { display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); }
.map img { width: 100%; height: 400px; object-fit: cover; display: block; border-radius: var(--r-lg); transition: transform .6s var(--ease); }
.map:hover img, .map:focus-visible img { transform: scale(1.04); }
@media (max-width: 600px) { .map img { height: 280px; } }

/* =================================================================
   BLOG
   ================================================================= */
.blog-layout { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 980px) { .blog-layout { grid-template-columns: 1fr 300px; } }
.post-featured { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 2rem; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: var(--cream); text-shadow: 0 1px 16px rgba(8,12,6,.55); }
.post-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.post-featured::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,16,8,.92) 0%, rgba(11,16,8,.62) 48%, rgba(11,16,8,.34) 100%); }
.post-featured .post-card__cat { color: var(--wheat); }
.post-featured h2 { color: var(--cream); font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin: .5rem 0; max-width: 30rem; }
.post-featured p { color: rgba(244,244,233,.85); max-width: 34rem; }
.post-featured .post-card__meta { color: var(--sage-2); margin-top: 1rem; }

.post-grid { display: grid; gap: 1.6rem; }
@media (min-width: 600px) { .post-grid { grid-template-columns: 1fr 1fr; } }
.post-card__media { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bone); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__cat { display: inline-block; margin-top: .9rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); font-weight: 500; }
.post-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; margin: .35rem 0 .5rem; }
.post-card__title a:hover { color: var(--moss); }
.post-card__excerpt { font-size: .9rem; color: var(--ink-2); line-height: 1.65; }
.post-card__meta { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; font-size: .78rem; color: var(--ink-3); }
.post-card__meta svg { width: 14px; height: 14px; }

.blog-sidebar { align-self: start; }
.widget { margin-bottom: 2.2rem; }
.widget__title { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); margin-bottom: 1.1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.widget__search { display: flex; gap: .4rem; }
.widget .filter-list a { padding: .45rem 0; }
.recent-post { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.recent-post img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.recent-post b { font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.2; display: block; }
.recent-post span { font-size: .76rem; color: var(--ink-3); }
.recent-post:hover b { color: var(--moss); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-cloud a { font-size: .8rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--sage-tint); color: var(--moss); transition: all .25s; }
.tag-cloud a:hover { background: var(--forest); color: var(--cream); }

/* scrim shared by mobile filter sidebar */
.shop-scrim { position: fixed; inset: 0; z-index: 199; background: rgba(20,24,16,.42); opacity: 0; visibility: hidden; transition: opacity .4s; }
.shop-scrim.is-open { opacity: 1; visibility: visible; }
@media (min-width: 900px) { .shop-scrim { display: none; } }

.nav__link.is-active { color: var(--forest); }

/* =================================================================
   SINGLE BLOG POST
   ================================================================= */
.article { max-width: 760px; margin: 0 auto; }
.article__head { text-align: center; margin-bottom: 1.5rem; }
.article__cat { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.article__title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; margin: .7rem 0 1.2rem; }
.article__meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .7rem; font-size: .85rem; color: var(--ink-2); }
.article__meta .av { width: 38px; height: 38px; border-radius: var(--r-pill); background: var(--sage); color: var(--cream); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.article__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.article__hero { border-radius: var(--r-lg); overflow: hidden; margin: 2rem 0; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__body { font-size: 1.075rem; line-height: 1.85; color: var(--ink-2); }
.article__body > p:first-of-type { font-size: 1.2rem; color: var(--ink); }
.article__body p { margin-bottom: 1.3rem; }
.article__body h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--forest); margin: 2.2rem 0 1rem; }
.article__body h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--forest); margin: 1.8rem 0 .7rem; }
.article__body ul { margin: 0 0 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.article__body li { list-style: disc; }
.article__body li::marker { color: var(--sage); }
.article__body a { color: var(--wheat-2); text-decoration: underline; text-underline-offset: 3px; }
.article__body blockquote { margin: 2rem 0; padding: 1.3rem 1.8rem; border-left: 3px solid var(--wheat); background: var(--cream-2); border-radius: 0 var(--r) var(--r) 0; font-family: var(--font-display); font-size: 1.45rem; font-style: italic; line-height: 1.4; color: var(--forest); }
.article__body figure { margin: 2rem 0; }
.article__body figure img { width: 100%; border-radius: var(--r); }
.article__body figcaption { font-size: .82rem; color: var(--ink-3); text-align: center; margin-top: .6rem; }
.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2.2rem 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.article__tags a { font-size: .8rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--sage-tint); color: var(--moss); }
.article__tags a:hover { background: var(--forest); color: var(--cream); }
.share { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.share span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.share a { width: 38px; height: 38px; border-radius: var(--r-pill); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: all .25s; }
.share a:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.share svg { width: 16px; height: 16px; }
.author-box { display: flex; gap: 1.2rem; align-items: flex-start; margin: 2.5rem 0; padding: 1.8rem; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.author-box .av { width: 62px; height: 62px; border-radius: var(--r-pill); background: var(--sage); color: var(--cream); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; flex: none; }
.author-box b { font-size: 1.1rem; color: var(--ink); }
.author-box .role { font-size: .78rem; letter-spacing: .04em; color: var(--wheat-2); margin: .1rem 0 .5rem; }
.author-box p { font-size: .9rem; color: var(--ink-2); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.post-nav a { display: flex; flex-direction: column; gap: .25rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); max-width: 47%; }
.post-nav a span { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: .35rem; }
.post-nav a span svg { width: 14px; height: 14px; }
.post-nav a:hover { color: var(--moss); }
.post-nav a.next { text-align: right; align-items: flex-end; }

/* =================================================================
   ORDER RECEIVED / THANK YOU
   ================================================================= */
.order-confirm { text-align: center; max-width: 680px; margin: 0 auto; }
.confirm-icon { width: 84px; height: 84px; border-radius: var(--r-pill); background: var(--sage-tint); color: var(--moss); display: grid; place-items: center; margin: 0 auto 1.6rem; }
.confirm-icon svg { width: 40px; height: 40px; }
.order-confirm__title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.order-confirm__sub { color: var(--ink-2); margin-top: .8rem; }
.order-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; max-width: 680px; margin: 2.5rem auto; }
@media (min-width: 560px) { .order-meta { grid-template-columns: repeat(4, 1fr); } }
.order-meta div { background: var(--cream); padding: 1.1rem .8rem; }
.order-meta span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: .35rem; }
.order-meta b { font-size: .98rem; color: var(--forest); }
.order-detail { max-width: 680px; margin: 0 auto; text-align: left; }
.order-detail__box { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; margin-bottom: 1.4rem; }
.order-detail__box h3 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.addr-grid { display: grid; gap: 1.4rem; }
@media (min-width: 560px) { .addr-grid { grid-template-columns: 1fr 1fr; } }
.addr b { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: .4rem; }
.addr p { font-size: .92rem; color: var(--ink-2); line-height: 1.65; }
.order-confirm__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.order-note { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; font-size: .88rem; color: var(--ink-2); }
.order-note svg { width: 18px; height: 18px; color: var(--moss); }

/* =================================================================
   POLISH — skip link + back to top
   ================================================================= */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--forest); color: var(--cream); padding: .8rem 1.2rem; border-radius: 0 0 var(--r-sm) 0; font-size: .85rem; }
.skip-link:focus { left: 0; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 120; width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--forest); color: var(--cream); display: grid; place-items: center; box-shadow: var(--shadow); border: 0; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s, visibility .4s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--forest-2); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; transform: rotate(-90deg); }

/* =================================================================
   404
   ================================================================= */
.error-page { text-align: center; max-width: 640px; margin: 0 auto; padding-block: clamp(1rem, 4vw, 3rem); }
.error-page__code { font-family: var(--font-display); font-weight: 600; font-size: clamp(6rem, 18vw, 12rem); line-height: .9; color: var(--forest); letter-spacing: .02em; display: flex; align-items: center; justify-content: center; gap: .1em; }
.error-page__code svg { width: .8em; height: .8em; color: var(--sage); }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .8rem 0 .8rem; }
.error-page p { color: var(--ink-2); margin-bottom: 1.8rem; }
.error-page__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.error-search { display: flex; gap: .5rem; max-width: 380px; margin: 1.8rem auto 0; }
.error-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center; margin-top: 2.2rem; font-size: .9rem; }
.error-links a { color: var(--wheat-2); }

/* =================================================================
   FAQ
   ================================================================= */
.faq { max-width: 820px; margin: 0 auto; }
.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.faq-cats a { font-size: .82rem; letter-spacing: .03em; padding: .5rem 1.1rem; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-2); transition: all .25s; }
.faq-cats a.is-active, .faq-cats a:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; text-align: left; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--forest); cursor: pointer; }
.faq-item__q svg { width: 20px; height: 20px; color: var(--sage); flex: none; transition: transform .4s var(--ease); }
.faq-item.is-open .faq-item__q svg { transform: rotate(45deg); }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p { color: var(--ink-2); line-height: 1.75; padding-bottom: 1.3rem; }
.faq-cta { text-align: center; margin-top: 3rem; padding: clamp(2rem, 4vw, 3rem); background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq-cta h3 { font-size: 1.6rem; }
.faq-cta p { color: var(--ink-2); margin: .6rem 0 1.4rem; }

/* =================================================================
   LEGAL / INFO PAGES (terms, privacy, shipping, returns)
   ================================================================= */
.legal-layout { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 880px) {
  .legal-layout { grid-template-columns: 240px 1fr; }
  /* Sticky only when the TOC has its own column. On mobile (single column) a
     sticky full-width TOC detaches and paints over the body text on scroll. */
  .legal-toc { position: sticky; top: 100px; }
}
.legal-toc__title { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); margin-bottom: 1rem; }
.legal-toc a { display: block; padding: .42rem 0 .42rem 1rem; font-size: .9rem; color: var(--ink-2); border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--forest); border-color: var(--moss); }
.legal-toc a.is-active { color: var(--forest); font-weight: 500; border-color: var(--wheat); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--forest); margin: 2.4rem 0 .9rem; scroll-margin-top: 100px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-2); line-height: 1.8; margin-bottom: 1.1rem; }
.legal-body ul { margin: 0 0 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.legal-body li { list-style: disc; color: var(--ink-2); line-height: 1.7; }
.legal-body li::marker { color: var(--sage); }
.legal-updated { font-size: .85rem; color: var(--ink-3); margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }

/* =================================================================
   PRODUCT VARIATIONS
   ================================================================= */
.var-group { margin: 1.2rem 0; }
.var-group__label { font-size: .82rem; letter-spacing: .04em; color: var(--ink-2); margin-bottom: .5rem; }
.var-group__label b { color: var(--ink); }
.var-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.var-option { padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font-size: .88rem; color: var(--ink); cursor: pointer; transition: all .2s; }
.var-option:hover { border-color: var(--sage); }
.var-option.is-active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.var-option.is-disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

/* =================================================================
   WISHLIST
   ================================================================= */
.wishlist-empty { text-align: center; padding: 3.5rem 1rem; }
.wishlist-empty svg { width: 56px; height: 56px; color: var(--sage); }
.wishlist-empty h3 { font-size: 1.6rem; margin: 1rem 0 .6rem; }
.wishlist-empty p { color: var(--ink-2); margin-bottom: 1.6rem; }

/* =================================================================
   SITEMAP
   ================================================================= */
.sitemap { display: grid; gap: clamp(1.5rem, 3vw, 2.4rem); }
@media (min-width: 760px) { .sitemap { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.sitemap-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.sitemap-group__title { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--forest); padding-bottom: 1rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); }
.sitemap-group__title svg { width: 22px; height: 22px; color: var(--sage); flex: none; }
.sitemap-list { display: flex; flex-direction: column; }
.sitemap-list li + li { border-top: 1px solid var(--line); }
.sitemap-list a { display: block; padding: .85rem 0; }
.sitemap-list__name { display: flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.sitemap-list__name svg { width: 16px; height: 16px; color: var(--sage); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.sitemap-list a:hover .sitemap-list__name { color: var(--forest); }
.sitemap-list a:hover .sitemap-list__name svg { opacity: 1; transform: none; }
.sitemap-list__desc { display: block; font-size: .82rem; color: var(--ink-2); margin-top: .15rem; }

/* ── Template: Página em branco (largura total) ───────────────────────────────
   Full-bleed Gutenberg canvas. Normal blocks sit in a centred content column;
   .alignwide widens and .alignfull spans the viewport. A 3-track grid keeps the
   gutter on small screens with no negative-margin hacks. */
.entry-content--blank {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] min(100% - (var(--gutter) * 2), var(--container)) [content-end]
    minmax(var(--gutter), 1fr) [full-end];
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.entry-content--blank > * { grid-column: content; margin-block: 0; }
.entry-content--blank > * + * { margin-top: 1.5rem; }
.entry-content--blank > .alignwide { grid-column: full; width: min(100% - (var(--gutter) * 2), 1480px); margin-inline: auto; }
.entry-content--blank > .alignfull { grid-column: full; width: 100%; max-width: none; }
.entry-content--blank > .alignfull :where(img, video) { width: 100%; }
