/*
Theme Name: ArtMóveis
Theme URI: https://www.artmoveisrustico.com.br
Author: ArtMóveis
Description: Tema oficial do e-commerce ArtMóveis para WordPress e WooCommerce.
Version: 0.2.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: artmoveis
*/

:root {
  --am-green: #788c7d;
  --am-green-dark: #173f35;
  --am-green-deep: #001807;
  --am-green-soft: #e7f1eb;
  --am-cream: #f6f4ee;
  --am-surface: #ffffff;
  --am-text: #242824;
  --am-muted: #68716b;
  --am-border: #e8ebe8;
  --am-sale: #ec5b65;
  --am-gold: #f4a51c;
  --am-width: 1500px;
  --am-radius: 13px;
  --am-shadow: 0 10px 35px rgba(26, 54, 43, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--am-surface);
  color: var(--am-text);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.site-shell { width: min(calc(100% - 48px), var(--am-width)); margin-inline: auto; }
.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; }

.announcement-bar { background: var(--am-green); color: #fff; font-size: 12px; }
.announcement-bar__inner { min-height: 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.announcement-bar__inner > strong { grid-column: 2; font-weight: 700; }
.announcement-bar__links { display: flex; gap: 24px; }
.announcement-bar a:hover { text-decoration: underline; }

.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--am-border); }
.header-main { min-height: 96px; display: grid; grid-template-columns: 120px 230px minmax(280px, 1fr) auto; gap: 18px; align-items: center; }
.brand { display: flex; justify-content: center; }
.custom-logo { max-width: 96px; max-height: 68px; object-fit: contain; }
.brand__fallback { width: 88px; height: 58px; border: 4px solid #5a3b27; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #9a6b27; line-height: .9; font-family: Georgia, serif; background: #24342a; box-shadow: inset 0 0 0 2px #c6a355; }
.brand__fallback strong { font-size: 22px; letter-spacing: 2px; }
.brand__fallback span { color: #f2d583; font-size: 9px; letter-spacing: 2px; }
.category-select { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 1px solid var(--am-border); border-radius: 5px; }
.header-search form { position: relative; margin: 0; }
.header-search input, .mobile-search input { width: 100%; height: 48px; padding: 0 50px 0 48px; border: 1px solid var(--am-border); border-radius: 5px; outline: none; }
.header-search input:focus, .mobile-search input:focus { border-color: var(--am-green); box-shadow: 0 0 0 3px rgba(120, 140, 125, .15); }
.header-search button, .mobile-search button { position: absolute; inset: 0 0 0 auto; width: 48px; border: 0; background: transparent; cursor: pointer; font-size: 0; }
.header-search button::before, .mobile-search button::before { content: "⌕"; font-size: 24px; color: var(--am-green-dark); }
.header-actions { display: flex; gap: 22px; align-items: center; white-space: nowrap; }
.header-actions a { display: flex; gap: 8px; align-items: center; font-size: 22px; position: relative; }
.header-actions em { font-size: 13px; font-style: normal; }
.cart-link b { position: absolute; right: -9px; top: -8px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; color: #fff; background: #e8584f; font-size: 10px; }
.mobile-menu-toggle, .mobile-search { display: none; }

.category-nav { border-top: 1px solid var(--am-border); }
.category-nav__inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.category-nav ul { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 13px; }
.category-nav a:hover { color: var(--am-green); }
.special-offers { margin-left: auto; white-space: nowrap; }

.site-main { min-height: 60vh; }
.content-shell { padding-block: 48px; }
.category-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(165px, 1fr); gap: 16px; overflow-x: auto; padding-block: 30px; scrollbar-width: none; }
.category-strip::-webkit-scrollbar, .product-carousel::-webkit-scrollbar { display: none; }
.category-pill { min-width: 165px; min-height: 78px; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: 1fr 1fr; align-items: end; column-gap: 12px; padding: 12px; background: #f7f8f7; border-radius: var(--am-radius); }
.category-pill > span { grid-row: 1 / 3; width: 48px; height: 48px; display: grid; place-items: center; align-self: center; overflow: hidden; border-radius: 8px; background: #fff; font-size: 25px; }
.category-pill img { width: 100%; height: 100%; object-fit: cover; }
.category-pill strong { align-self: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.category-pill small { align-self: start; color: var(--am-muted); font-size: 10px; }
.category-pill--featured { color: #fff; background: var(--am-green); }
.category-pill--featured small { color: rgba(255,255,255,.78); }
.category-pill--featured > span { border: 1px solid rgba(255,255,255,.45); background: transparent; }

.hero { min-height: 490px; margin-top: 26px; display: grid; grid-template-columns: .95fr 1.1fr; overflow: hidden; border-radius: var(--am-radius); background: linear-gradient(120deg, #f8f5ed 0 50%, #dce4d8 50% 100%); position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(120,140,125,.13); }
.hero::before { left: -210px; bottom: -210px; }
.hero::after { right: -130px; top: -230px; }
.hero__content { z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(40px, 5vw, 85px); }
.hero__eyebrow { padding: 8px 14px; color: #fff; background: var(--am-green); border-radius: 6px; font-size: 12px; }
.hero h1 { max-width: 700px; margin: 22px 0 16px; color: var(--am-green-dark); font: 700 clamp(34px, 4vw, 58px)/1.08 "Libre Baskerville", Georgia, serif; }
.hero__content > p { max-width: 540px; font-size: 18px; color: var(--am-muted); }
.hero__price { margin-bottom: 22px; color: var(--am-green-dark); font-size: 38px; font-weight: 700; }
.hero__price del { color: var(--am-muted); font-size: 17px; font-weight: 400; }
.hero__price ins { text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 6px; font-weight: 700; }
.button--primary { color: #fff; background: var(--am-green); box-shadow: var(--am-shadow); }
.button--primary:hover { background: var(--am-green-dark); }
.hero__visual { z-index: 1; display: grid; place-items: center; min-width: 0; padding: 35px; }
.hero__visual img { width: 100%; height: 100%; max-height: 450px; object-fit: contain; mix-blend-mode: multiply; }
.hero__placeholder { display: grid; place-items: center; width: min(78%, 460px); aspect-ratio: 1.7; border: 8px double #8ba090; color: var(--am-green-dark); font: 700 58px/1 "Libre Baskerville", serif; text-align: center; }

.product-shelf { padding-block: 62px 35px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 25px; }
.section-heading a { color: var(--am-green-dark); font-weight: 700; font-size: 13px; }
.product-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 22px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product-card { min-width: 0; scroll-snap-align: start; }
.product-card__image { height: 285px; display: grid; place-items: center; padding: 12px; overflow: hidden; border: 10px solid #f4f5f4; border-radius: var(--am-radius); position: relative; background: #fff; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.product-card__discount { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 4px; color: #fff; background: var(--am-sale); font-size: 10px; font-weight: 700; }
.product-card__body { padding-top: 14px; }
.product-card__title { display: -webkit-box; min-height: 42px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }
.product-card__rating { min-height: 18px; color: var(--am-gold); }
.star-rating { color: var(--am-gold); }
.product-card__price { margin-top: 4px; font-size: 17px; font-weight: 700; }
.product-card__price del { color: #9ba09c; font-size: 11px; font-weight: 400; }
.product-card__price ins { text-decoration: none; }
.product-card__payment { margin: 5px 0; color: var(--am-muted); font-size: 10px; }
.product-card__pix { display: inline-block; padding: 5px 7px; color: #1d7556; background: #dff2e8; border-radius: 3px; font-size: 9px; font-weight: 700; }
.product-card--placeholder .product-card__image { color: #8d9b91; background: var(--am-cream); font: 700 20px "Libre Baskerville", serif; }
.product-card--placeholder p { color: var(--am-muted); font-size: 12px; }

.trust-banner { min-height: 300px; margin-block: 70px 35px; padding: 42px 7%; display: grid; grid-template-columns: auto 1fr 1.6fr; align-items: center; gap: 44px; overflow: hidden; border-radius: var(--am-radius); color: #fff; background: radial-gradient(circle at 10% 20%, #77a600 0 2%, transparent 18%), radial-gradient(circle at 90% 90%, #85bd00 0, transparent 24%), #01200a; box-shadow: inset 0 0 80px #000; }
.trust-banner__seal { width: 130px; aspect-ratio: 1; display: grid; place-items: center; border: 5px solid #9ad000; border-radius: 50%; color: #9ad000; font-size: 74px; }
.trust-banner span { color: #a9d900; font-weight: 700; text-transform: uppercase; }
.trust-banner strong { display: block; font-size: 55px; line-height: 1; }
.trust-banner h2 { margin: 0 0 12px; font-size: 32px; text-transform: uppercase; }
.trust-banner p { color: #b8d14c; font-size: 17px; }

.site-footer { margin-top: 70px; color: #d8e3db; background: var(--am-green-deep); }
.benefits-bar { border-bottom: 1px solid rgba(255,255,255,.35); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-block: 34px; }
.benefits-grid > div { display: grid; grid-template-columns: 44px 1fr; gap: 15px; align-items: center; }
.benefits-grid > div > span { color: #fff; font-size: 35px; }
.benefits-grid p { margin: 0; color: #8da394; font-size: 11px; }
.benefits-grid strong { display: block; margin-bottom: 6px; color: #fff; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, .75fr) 1.35fr; gap: 52px; padding-block: 50px; }
.footer-grid section { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-grid h2 { margin: 0 0 8px; color: #fff; font-size: 12px; text-transform: uppercase; }
.footer-grid p, .footer-grid a, .footer-grid address, .footer-grid small { margin: 0; color: #809687; font-size: 11px; font-style: normal; }
.footer-grid a:hover { color: #fff; }
.footer-phone { color: #fff !important; font-size: 25px !important; font-weight: 700; }
.footer-newsletter form { width: 100%; display: grid; grid-template-columns: 1fr 38px; overflow: hidden; border-radius: 99px; background: #fff; }
.footer-newsletter input { min-width: 0; height: 42px; padding: 0 18px; border: 0; outline: none; font-size: 11px; }
.footer-newsletter button { border: 0; color: #fff; background: #4198d0; cursor: pointer; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.25); }
.footer-legal > div { min-height: 64px; display: flex; justify-content: space-between; align-items: center; color: #718679; font-size: 10px; }

.woocommerce .site-main, .woocommerce-page .site-main { width: min(calc(100% - 48px), var(--am-width)); margin-inline: auto; padding-block: 45px; }

@media (max-width: 1100px) {
  .header-main { grid-template-columns: 100px minmax(250px, 1fr) auto; }
  .category-select { display: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-newsletter { grid-column: span 2; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 13px; }
  .site-shell { width: min(calc(100% - 28px), var(--am-width)); }
  .announcement-bar__inner { min-height: 24px; display: flex; justify-content: center; font-size: 8px; }
  .announcement-bar__links { display: none; }
  .header-main { min-height: 61px; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; }
  .mobile-menu-toggle { display: block; padding: 0; border: 0; background: transparent; font-size: 20px; }
  .brand { justify-content: center; }
  .brand__fallback { width: 63px; height: 40px; border-width: 2px; }
  .brand__fallback strong { font-size: 15px; }
  .brand__fallback span { font-size: 7px; }
  .custom-logo { max-width: 68px; max-height: 43px; }
  .header-search, .category-select, .header-actions em { display: none; }
  .header-actions { gap: 12px; }
  .header-actions a { font-size: 20px; }
  .mobile-search { display: block; padding-bottom: 12px; }
  .mobile-search form { position: relative; }
  .mobile-search input { height: 36px; padding-left: 14px; font-size: 11px; }
  .category-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--am-shadow); }
  .category-nav[data-open] { display: block; }
  .category-nav__inner, .category-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .category-nav__inner { padding-block: 10px; }
  .category-nav a { display: block; padding: 10px 0; }
  .special-offers { margin: 0; }
  .category-strip { grid-auto-columns: 154px; gap: 10px; padding-block: 26px 18px; }
  .category-pill { min-width: 154px; min-height: 66px; grid-template-columns: 42px 1fr; padding: 9px; }
  .category-pill > span { width: 42px; height: 42px; }
  .hero { min-height: 345px; margin-top: 18px; grid-template-columns: 1fr; background: linear-gradient(145deg, #f9f6ee 0 65%, #dbe4d9 65%); }
  .hero__content { z-index: 2; justify-content: flex-start; padding: 18px 20px 0; }
  .hero__eyebrow { padding: 5px 8px; font-size: 8px; }
  .hero h1 { max-width: 75%; margin: 9px 0 5px; font-size: 19px; }
  .hero__price { margin: 0; font-size: 24px; }
  .hero__price del { font-size: 10px; }
  .hero__content > p { max-width: 75%; margin: 7px 0; font-size: 11px; }
  .hero .button { position: absolute; left: 20px; right: 20px; bottom: 7px; min-height: 29px; font-size: 10px; }
  .hero__visual { position: absolute; inset: 86px 10px 24px 35%; padding: 5px; }
  .hero__visual img { max-height: 235px; }
  .hero__placeholder { font-size: 25px; }
  .product-shelf { padding-block: 48px 10px; }
  .section-heading h2 { font-size: 18px; }
  .section-heading a { display: none; }
  .product-carousel { width: calc(100vw - 14px); grid-auto-columns: 72vw; gap: 12px; }
  .product-card__image { height: 250px; border-width: 7px; }
  .product-card__title { font-size: 10px; min-height: 30px; }
  .product-card__price { font-size: 13px; }
  .trust-banner { min-height: 305px; margin-block: 50px 10px; padding: 25px; grid-template-columns: 1fr 1.4fr; gap: 18px; }
  .trust-banner__seal { width: 82px; font-size: 43px; }
  .trust-banner strong { font-size: 38px; }
  .trust-banner > div:last-child { grid-column: 1 / -1; }
  .trust-banner h2 { font-size: 19px; }
  .trust-banner p { font-size: 12px; }
  .site-footer { margin-top: 55px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .benefits-grid > div { grid-template-columns: 38px 1fr; }
  .benefits-grid > div > span { font-size: 29px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 38px; }
  .footer-newsletter { grid-column: auto; }
  .footer-legal > div { min-height: 95px; flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
  .woocommerce .site-main, .woocommerce-page .site-main { width: min(calc(100% - 28px), var(--am-width)); }
}
