:root {
  --cor-preta: #0b1117;
  --cor-dourada: #f28c00;
  --cor-dourada-clara: #ffb13b;
  --cor-branca: #ffffff;
  --cor-vermelha: #e74716;
  --cor-fundo: #fff5e8;
  --cor-fundo-claro: #fffaf4;
  --cor-texto: #28231f;
  --cor-texto-suave: #716259;
  --cor-borda: #efd6bb;
  --whatsapp: #25d366;
  --whatsapp-hover: #1fb95a;
  --instagram-rosa: #e1306c;
  --instagram-roxo: #833ab4;
  --sombra: 0 18px 50px rgba(93, 45, 10, .13);
  --raio: 18px;
  --container: 1220px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cor-texto);
  background:
    radial-gradient(circle at 12% 12%, rgba(242, 140, 0, .18), transparent 25rem),
    radial-gradient(circle at 90% 35%, rgba(231, 71, 22, .09), transparent 30rem),
    var(--cor-fundo);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; color: #111; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--cor-dourada-clara); outline-offset: 3px; }

.hero {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  color: var(--cor-branca);
  background:
    linear-gradient(115deg, rgba(7, 12, 17, .99), rgba(14, 19, 23, .96)),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,.02) 8px 9px);
  border-bottom: 5px solid var(--cor-dourada);
  overflow: hidden;
}
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(255, 177, 59, .3); border-radius: 50%; }
.hero::before { width: 360px; height: 360px; top: -200px; right: 5%; }
.hero::after { width: 220px; height: 220px; bottom: -150px; left: 10%; }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(231, 71, 22, .2), transparent 37%); }
.hero__content { position: relative; display: flex; align-items: center; justify-content: space-between; gap: clamp(30px, 4vw, 60px); padding-block: 52px; }
.hero__brand { display: flex; flex: 1 1 auto; align-items: center; gap: clamp(28px, 4vw, 50px); min-width: 0; }
.brand-logo { flex: 0 0 auto; width: clamp(145px, 18vw, 205px); height: clamp(145px, 18vw, 205px); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--cor-dourada); box-shadow: 0 0 0 9px rgba(242,140,0,.12), 0 24px 60px rgba(0,0,0,.4); }
.hero__copy { max-width: 580px; }
.eyebrow { margin: 0 0 8px; color: var(--cor-dourada-clara); font-size: .75rem; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; }
.hero h1 span { color: var(--cor-dourada-clara); font-style: italic; }
.hero__copy > p:last-child { max-width: 600px; margin: 22px 0 0; color: #d8d4cb; font-size: clamp(1rem, 2vw, 1.15rem); }
.header-social-actions { display: grid; flex: 0 0 240px; gap: 15px; }
.social-button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 18px; border-radius: 12px; color: #fff; font-size: .91rem; font-weight: 750; line-height: 1.25; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.social-button svg { flex: 0 0 21px; width: 21px; height: 21px; fill: currentColor; }
.social-button:hover { transform: translateY(-3px); }
.social-button:active { transform: translateY(0) scale(.98); }
.social-button--whatsapp { background: var(--whatsapp); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 10px 24px rgba(37,211,102,.2); }
.social-button--whatsapp:hover { background: var(--whatsapp-hover); box-shadow: 0 14px 28px rgba(37,211,102,.3); }
.social-button--instagram { background: rgba(255,255,255,.045); border: 1px solid var(--cor-dourada); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.social-button--instagram:hover { background: linear-gradient(115deg, rgba(131,58,180,.88), rgba(225,48,108,.88)); border-color: rgba(255,255,255,.6); }
.whatsapp-pulse::before, .whatsapp-pulse::after { content: ""; position: absolute; z-index: -1; inset: 0; border: 2px solid rgba(37,211,102,.42); border-radius: inherit; pointer-events: none; animation: whatsappWave 2.6s infinite; }
.whatsapp-pulse::after { animation-delay: 1.3s; }

.catalog-header { padding-top: clamp(56px, 7vw, 88px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.eyebrow--dark { color: #bd430f; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1.15; }
.section-heading h2::after { content: ""; display: block; width: 74px; height: 4px; margin-top: 14px; background: linear-gradient(90deg, var(--cor-vermelha), var(--cor-dourada)); border-radius: 10px; }
.search-box { position: relative; display: flex; align-items: center; max-width: 760px; margin-inline: auto; }
.search-box svg { position: absolute; left: 20px; width: 22px; fill: none; stroke: #776d5d; stroke-width: 1.7; }
.search-box input { width: 100%; height: 58px; padding: 0 90px 0 56px; color: var(--cor-texto); background: var(--cor-branca); border: 1px solid var(--cor-borda); border-radius: 100px; box-shadow: 0 10px 30px rgba(31,24,12,.06); outline: none; }
.search-box input:focus { border-color: var(--cor-dourada); box-shadow: 0 0 0 4px rgba(242,140,0,.17); }
.clear-search { position: absolute; right: 18px; padding: 6px; color: #b83c0e; background: none; border: 0; font-size: .83rem; font-weight: 700; }
.categories { display: flex; gap: 10px; padding-block: 28px 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--cor-dourada) transparent; }
.category-button { flex: 0 0 auto; padding: 10px 19px; color: #843713; background: #fffaf4; border: 1px solid #efb36b; border-radius: 100px; transition: .2s ease; }
.category-button:hover { color: #fff; background: var(--cor-vermelha); border-color: var(--cor-vermelha); transform: translateY(-1px); }
.category-button[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, var(--cor-vermelha), #f26b16); border-color: var(--cor-vermelha); box-shadow: 0 6px 16px rgba(181,53,11,.24); }

.products-section { min-height: 420px; padding-block: 40px 90px; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--cor-fundo-claro); border: 1px solid #efc18e; border-top: 4px solid var(--cor-dourada); border-radius: var(--raio); box-shadow: 0 8px 25px rgba(93,45,10,.08); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; cursor: pointer; }
.product-card:hover { transform: translateY(-5px); border-color: var(--cor-vermelha); box-shadow: var(--sombra); }
.product-card--unavailable { opacity: .68; }
.product-card__image-wrap { position: relative; aspect-ratio: 4 / 3; margin: 7px 9px 0; background: #ffead0; border: 1px solid rgba(242,140,0,.5); border-radius: 12px; overflow: hidden; }
.product-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__image { transform: scale(1.035); }
.badges { position: absolute; z-index: 1; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.badge { padding: 5px 9px; color: #fff; background: rgba(231,71,22,.95); border: 1px solid rgba(123,36,7,.18); border-radius: 100px; box-shadow: 0 3px 10px rgba(0,0,0,.1); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.badge--muted { color: #fff; background: rgba(24,24,24,.88); }
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: 21px 22px 19px; }
.product-card__category { margin: 0 0 5px; color: #bd430f; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.product-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.34rem; line-height: 1.3; }
.product-card__description { display: -webkit-box; min-height: 3.25em; margin: 11px 0 20px; color: var(--cor-texto-suave); font-size: .93rem; line-height: 1.6; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card__footer { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid #f1d3b1; }
.product-card__price { color: #d84a13; font-family: Georgia, "Times New Roman", serif; font-size: 1.38rem; }
.product-card__code { color: #898277; font-size: .72rem; letter-spacing: .04em; }
.loading { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 90px 0; color: var(--cor-texto-suave); }
.loading span { width: 20px; height: 20px; border: 2px solid #dbcdaF; border-top-color: var(--cor-dourada); border-radius: 50%; animation: spin .7s linear infinite; }
.empty-state { max-width: 510px; margin: 55px auto; padding: 45px 24px; text-align: center; background: rgba(255,255,255,.5); border: 1px dashed #cfbea0; border-radius: var(--raio); }
.empty-state > span { display: grid; width: 52px; height: 52px; margin: 0 auto 15px; place-items: center; color: #c64412; background: #ffe2c2; border-radius: 50%; font-family: Georgia, serif; font-size: 1.7rem; }
.empty-state h3 { margin: 0; font-family: Georgia, serif; font-size: 1.4rem; }
.empty-state p { margin: 7px 0 22px; color: var(--cor-texto-suave); }
.button { padding: 11px 20px; color: #fff; background: linear-gradient(135deg, var(--cor-vermelha), #f26b16); border: 0; border-radius: 100px; font-weight: 700; }

footer { color: #eee4d8; background: var(--cor-preta); border-top: 5px solid var(--cor-dourada); }
.footer__content { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.2fr) auto; align-items: center; gap: clamp(28px, 5vw, 70px); min-height: 190px; padding-block: 36px; }
.footer__brand { display: grid; }
.footer__brand strong, .footer__contact > strong { color: var(--cor-dourada-clara); font-family: Georgia, serif; font-size: 1.25rem; }
.footer__brand span { color: #cfc7bb; font-size: .85rem; }
.footer__contact { display: grid; gap: 10px; }
.footer__contact > strong { font-size: 1rem; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-social-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #eee4d8; font-size: .85rem; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.footer-social-links a:hover { color: var(--cor-dourada-clara); transform: translateY(-1px); }
.footer-social-links svg { flex: 0 0 19px; width: 19px; height: 19px; fill: currentColor; }
.footer-social-links small { display: block; color: #aaa39a; font-size: .72rem; }
.footer__legal { display: grid; gap: 3px; justify-items: end; }
.footer__copyright, .footer__developer { margin: 0; color: #aaa39a; font-size: .78rem; white-space: nowrap; }
.footer__developer a { color: var(--cor-dourada-clara); font-weight: 700; text-decoration: none; transition: color .2s ease; }
.footer__developer a:hover { color: var(--cor-branca); text-decoration: underline; text-underline-offset: 3px; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,8,8,.78); backdrop-filter: blur(5px); }
.modal__panel { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); width: min(940px, 100%); max-height: min(700px, calc(100vh - 48px)); background: #fffaf4; border: 2px solid var(--cor-dourada); border-radius: 20px; box-shadow: 0 30px 100px rgba(0,0,0,.5); overflow: auto; animation: modal-in .22s ease-out; }
.modal__close { position: absolute; z-index: 3; top: 14px; right: 14px; display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: rgba(17,17,17,.9); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-size: 1.65rem; line-height: 1; }
.modal__image-wrap { position: relative; min-height: 440px; background: #ffead0; }
.modal__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal__content { align-self: center; padding: clamp(30px, 5vw, 60px); }
.modal__category { margin: 0 0 7px; color: #bd430f; font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.modal__content h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 500; line-height: 1.15; }
.modal__description { margin: 20px 0 30px; color: var(--cor-texto-suave); white-space: pre-line; }
.modal__meta { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 20px; border-top: 1px solid var(--cor-borda); }
.modal__meta strong { color: #d84a13; font-family: Georgia, serif; font-size: 1.7rem; }
.modal__meta span { color: #7e776d; font-size: .78rem; }
.noscript { padding: 18px; margin: 0; color: #fff; background: #8d1d1d; text-align: center; }
body.modal-open { overflow: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes whatsappWave {
  0% { transform: scale(1); opacity: .62; }
  70%, 100% { transform: scale(1.16, 1.35); opacity: 0; }
}

@media (max-width: 1080px) {
  .hero__content { flex-wrap: wrap; }
  .header-social-actions { grid-template-columns: repeat(2, minmax(210px, 1fr)); flex: 1 0 100%; }
  .footer__content { grid-template-columns: 1fr 1.35fr; }
  .footer__legal { grid-column: 1 / -1; justify-items: start; }
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal__panel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .hero { min-height: 0; }
  .hero__content { flex-direction: column; gap: 22px; padding-block: 38px 46px; text-align: center; }
  .hero__brand { flex-direction: column; gap: 22px; }
  .brand-logo { width: 132px; height: 132px; min-width: 132px; min-height: 132px; border-radius: 50%; }
  .hero__copy > p:last-child { margin-top: 16px; }
  .header-social-actions { grid-template-columns: 1fr; width: min(100%, 390px); }
  .social-button { width: 100%; min-height: 50px; }
  .section-heading { display: block; }
  .products-section { padding-top: 28px; }
  .modal { padding: 16px; }
  .modal__panel { display: block; }
  .modal__image-wrap { min-height: 0; aspect-ratio: 4 / 3; }
  .modal__content { padding: 28px 24px 32px; }
  .footer__content { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .footer__legal { grid-column: auto; justify-items: start; }
  .footer-social-links { display: grid; }
}
@media (max-width: 470px) {
  .products-grid { grid-template-columns: 1fr; }
  .search-box input { padding-right: 70px; font-size: .9rem; }
  .clear-search { right: 12px; font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .whatsapp-pulse::before, .whatsapp-pulse::after { animation: none !important; opacity: 0; }
}
