/* Identidade renovada: história, catálogo e painel da Fenix-Fer */
:root {
  --brand-ink: #20282c;
  --brand-muted: #69757a;
  --brand-orange: #f15a16;
  --brand-soft: #f5f3f0;
  --admin-canvas: #f4f6f8;
}

:focus-visible { outline: 3px solid #f15a1680; outline-offset: 3px; }

/* Abertura institucional */
.story-section {
  position: relative;
  overflow: hidden;
  padding: 44px 0 52px;
  background: radial-gradient(ellipse at 8% 12%, #fff 0, #f5f3f0 62%, #eeeae5 100%);
}
.story-inner { max-width: 1490px; margin: 0 auto; padding: 0 34px; }
.story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  overflow: hidden;
  border: 1px solid #e9e4de;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 70px #28231c12;
}
.story-copy { padding: clamp(32px, 5vw, 68px); }
.story-copy > .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.story-copy > .eyebrow::before { width: 25px; height: 2px; background: var(--brand-orange); content: ""; }
.story-copy h1 {
  margin: 13px 0 23px;
  color: var(--brand-ink);
  font: 700 clamp(43px, 5vw, 65px)/.98 'Barlow Condensed', Impact, sans-serif;
  letter-spacing: -.025em;
}
.story-text { max-width: 820px; }
.story-text p { margin: 0 0 13px; color: #536066; font-size: 14px; line-height: 1.74; }
.story-text p:last-child { margin-bottom: 0; }
.story-text .story-closing { color: var(--brand-ink); font-weight: 800; }
.story-closing span { display: inline-block; margin-left: 4px; }
.story-signature { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding-top: 21px; border-top: 1px solid #ece9e4; }
.story-signature-mark, .story-aside-emblem {
  display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 42px;
  border-radius: 12px; background: var(--brand-orange); color: #fff;
  font: 800 25px/1 'Barlow Condensed', Impact, sans-serif;
}
.story-signature p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.story-signature strong { color: var(--brand-ink); font-size: 14px; }
.story-signature p span { color: var(--brand-muted); font-size: 12px; }
.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 22px; }
.story-actions .primary-button { border-radius: 8px; box-shadow: 0 8px 18px #f15a1633; }
.story-contact-link { color: #48545a; font-size: 12px; font-weight: 700; }
.story-contact-link:hover { color: var(--brand-orange); }
.story-aside {
  position: relative; display: flex; min-height: 100%; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 38px 34px; background: linear-gradient(145deg, #252d31, #182125 80%); color: #fff;
}
.story-aside-orbit { position: absolute; width: 280px; height: 280px; border: 1px solid #ffffff12; border-radius: 50%; pointer-events: none; }
.story-orbit-one { top: -118px; right: -86px; }
.story-orbit-two { top: -83px; right: -51px; width: 210px; height: 210px; border-color: #f15a1640; }
.story-aside-label { position: relative; color: #ff9b6e; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.story-year { position: relative; margin-top: 18px; color: #fff; font: 800 clamp(68px, 7vw, 96px)/.9 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.04em; }
.story-year-caption { position: relative; margin-top: 8px; color: #c3cbce; font-size: 13px; }
.story-aside-rule { position: relative; width: 46px; height: 3px; margin: 29px 0 17px; background: var(--brand-orange); }
.story-aside > p { position: relative; max-width: 230px; margin: 0; color: #e1e5e6; font: 600 21px/1.32 'Barlow Condensed', Impact, sans-serif; }
.story-aside-bottom { position: relative; display: flex; align-items: center; gap: 11px; margin-top: 36px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.story-aside-bottom small { color: #aeb9bd; font-size: 8px; letter-spacing: .15em; }
.story-aside-emblem { width: 36px; height: 36px; flex-basis: 36px; border: 1px solid #ffffff35; background: #ffffff0d; }

/* Catálogo logo após a história */
.home-catalog-section { padding: 72px 0 86px; background: #fff; scroll-margin-top: 24px; }
.home-catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 29px; padding-bottom: 23px; border-bottom: 1px solid #e8ebec; }
.home-catalog-heading h2 { margin: 8px 0 7px; color: var(--brand-ink); font: 700 clamp(32px, 4vw, 47px)/1.03 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.015em; }
.home-catalog-heading p { margin: 0; color: var(--brand-muted); font-size: 13px; line-height: 1.6; }
.home-category-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid #e4e7e8; border-radius: 8px; color: #414c51; font-size: 10px; font-weight: 800; letter-spacing: .05em; transition: border-color .2s, color .2s, transform .2s; }
.home-category-link:hover { transform: translateY(-2px); border-color: var(--brand-orange); color: var(--brand-orange); }
.home-catalog-section .catalog-layout { grid-template-columns: 238px minmax(0, 1fr); gap: 26px; }
.home-catalog-section .filters { position: sticky; top: 18px; border-color: #e9ecee; border-radius: 12px; background: #fbfbfa; box-shadow: 0 8px 24px #25303608; }
.home-catalog-section .filter-body h3 { font-size: 13px; }
.home-catalog-section .filter-option { padding: 2px 0; }
.home-catalog-section .filter-sort { display: grid; align-items: start; gap: 8px; padding-top: 14px; border-top: 1px solid #e9ecee; color: var(--brand-muted); }
.home-catalog-section .filter-sort select { width: 100%; min-height: 40px; padding: 0 9px; border: 1px solid #e0e4e6; border-radius: 7px; background: #fff; }
.home-catalog-section .filter-contact { padding-top: 18px; }
.home-catalog-section .catalog-products { min-width: 0; }
.home-catalog-section .listing-toolbar { justify-content: flex-start; min-height: 32px; margin-bottom: 12px; }
.home-catalog-section .products-grid { gap: 14px; }
.product-card { border-color: #e8ebed; border-radius: 10px; box-shadow: 0 4px 16px #1c252b08; }
.product-card:hover { transform: translateY(-3px); border-color: #f3aa89; box-shadow: 0 13px 28px #25292b12; }
.product-image { height: 166px; background: linear-gradient(180deg, #fbfbfa, #f5f5f3); }
.product-image img { transition: transform .25s ease; }
.product-card:hover .product-image img { transform: scale(1.045); }
.product-info { padding: 15px 13px 13px; }
.product-title { color: #263136; font-size: 13px; }
.product-actions { gap: 7px; margin-top: 11px; }
.add-button, .quote-button { min-height: 37px; border-radius: 7px; font-size: 9px; letter-spacing: .025em; }
.add-button { box-shadow: 0 5px 12px #f15a1624; }
.quote-button { border-color: #f0d4c7; }

/* Área administrativa */
body:has(.admin-page) { background: var(--admin-canvas); }
body:has(.admin-page) .help-banner { display: none; }
body:has(.admin-page) .site-footer { border-top: 1px solid #e6e9eb; }
body:has(.admin-login-page) { background: #f2f4f6; }
body:has(.admin-login-page) .help-banner { display: none; }
.admin-page { max-width: 1320px; padding: 33px 28px 82px; }
.admin-page .breadcrumb { padding: 5px 0 20px; color: #879197; }
.admin-page .breadcrumb a { color: #4e5b62; font-weight: 700; }
.admin-top { display: block; margin: 0 0 24px; padding: 0 0 16px; border: 0; }
.admin-top-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 21px; }
.admin-title .eyebrow { letter-spacing: .16em; }
.admin-top h1 { margin: 7px 0 5px; color: #202a2f; font-size: clamp(36px, 4vw, 48px); letter-spacing: -.025em; }
.admin-top p { color: #778288; font-size: 13px; line-height: 1.6; }
.admin-top-actions { display: flex; align-items: center; gap: 10px; }
.admin-top-actions form { margin: 0; }
.admin-top-actions .primary-button, .admin-top-actions .secondary-button { border-radius: 8px; }
.admin-tabs { display: flex; align-items: center; gap: 5px; min-height: 47px; padding: 5px 8px; border: 1px solid #e7eaec; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px #18242b07; }
.admin-tabs a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 7px; color: #657178; font-size: 12px; font-weight: 700; transition: background .18s, color .18s; }
.admin-tabs a:hover { background: #f5f6f7; color: #253137; }
.admin-tabs a.is-current { background: #fff0e8; color: #d94b10; }
.admin-tabs .admin-tabs-store { gap: 6px; margin-left: auto; color: #d94b10; }
.admin-welcome { position: relative; display: flex; min-height: 220px; align-items: center; justify-content: space-between; overflow: hidden; margin: 3px 0 20px; padding: 32px clamp(25px, 4vw, 52px); border-radius: 16px; background: linear-gradient(112deg, #222b30 0%, #303b40 69%, #3d3835 100%); color: #fff; box-shadow: 0 16px 34px #1e2a3020; }
.admin-welcome::after { position: absolute; top: -165px; right: 72px; width: 365px; height: 365px; border: 1px solid #ffffff15; border-radius: 50%; content: ""; }
.admin-welcome-copy { position: relative; z-index: 1; max-width: 700px; }
.admin-welcome-kicker { color: #ff9c72; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.admin-welcome h2 { margin: 10px 0 9px; font: 700 clamp(30px, 4vw, 43px)/1 'Barlow Condensed', Impact, sans-serif; }
.admin-welcome p { max-width: 580px; margin: 0; color: #c9d0d2; font-size: 12px; line-height: 1.7; }
.admin-welcome-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.admin-welcome-link:hover { color: #ff9c72; }
.admin-welcome-mark { position: relative; z-index: 1; display: flex; width: 126px; height: 126px; flex: 0 0 126px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #ffffff30; border-radius: 50%; background: #ffffff0a; }
.admin-welcome-mark > span { color: #ff7a3e; font: 800 72px/.8 'Barlow Condensed', Impact, sans-serif; }
.admin-welcome-mark small { color: #e7ecee; font-size: 8px; font-weight: 800; line-height: 1.1; letter-spacing: .16em; text-align: center; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
.admin-metric { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 11px; min-height: 92px; padding: 16px 18px; border: 1px solid #e8ebed; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px #1f2b3108; }
.admin-metric-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: #fff0e8; color: #e65216; font-size: 18px; }
.admin-metric > div { display: flex; flex-direction: column; gap: 5px; }
.admin-metric small { color: #899399; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.admin-metric strong { color: #263137; font: 700 23px/1 'Barlow Condensed', Impact, sans-serif; }
.admin-metric-foot { grid-column: 2; margin-top: -7px; color: #7e898e; font-size: 10px; }
.admin-metric-note .admin-metric-icon { background: #eaf5ed; color: #34824c; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 14px; }
.admin-section-heading h2 { margin: 6px 0 0; color: #29343a; font: 700 29px/1 'Barlow Condensed', Impact, sans-serif; }
.admin-links { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.admin-feature { position: relative; min-height: 205px; overflow: hidden; padding: 24px 27px 22px; border: 1px solid #e6e9eb; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px #1f2b3108; transition: border-color .2s, transform .2s, box-shadow .2s; }
.admin-feature:hover { transform: translateY(-3px); border-color: #efb398; box-shadow: 0 14px 28px #1f2b3111; }
.admin-card-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #fff0e8; color: #dc4d12; font: 800 13px/1 Inter, sans-serif; }
.admin-card-kicker { display: block; margin-top: 15px; color: #929ca1; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.admin-feature h2 { margin: 5px 0 5px; color: #263137; font: 700 24px/1 'Barlow Condensed', Impact, sans-serif; }
.admin-feature p { max-width: 440px; margin: 0; color: #758187; font-size: 11px; line-height: 1.65; }
.admin-feature .admin-feature-link { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; color: #d94b10; font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.admin-feature-link b { font-size: 15px; }
.admin-feature-public .admin-card-icon { background: #edf2f4; color: #4e5b60; }
.admin-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 17px; padding: 17px 19px; border: 1px solid #e6e9eb; border-left: 3px solid var(--brand-orange); border-radius: 10px; background: #fff; }
.admin-note-mark { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: #fff0e8; color: #db4c13; font: 800 12px/1 Inter,sans-serif; }
.admin-note h2 { margin: 1px 0 5px; color: #344046; font-size: 11px; }
.admin-note p { margin: 0; color: #7d888e; font-size: 10px; line-height: 1.6; }

/* Telas de cadastro e listagem */
.admin-form-wrap { max-width: none; overflow: hidden; margin: 0 0 21px; border: 1px solid #e4e8ea; border-radius: 13px; background: #fff; box-shadow: 0 8px 22px #2430380a; }
.admin-form-head { min-height: 56px; padding: 14px 20px; background: #fafbfb; }
.admin-form-head h2 { color: #2c373c; font-size: 14px; }
.admin-form-head a { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: #6c777c; font-size: 21px; }
.admin-form-head a:hover { background: #fff0e8; color: #db4c13; }
.admin-form { gap: 15px 18px; padding: 21px; }
.admin-form label { color: #48545a; font-size: 10px; letter-spacing: .01em; }
.admin-form input:not([type=checkbox]), .admin-form select, .admin-form textarea { border-color: #dfe4e6; border-radius: 7px; background: #fff; color: #273238; font-size: 12px; }
.admin-form input:not([type=checkbox]), .admin-form select { height: 43px; }
.admin-form textarea { min-height: 90px; line-height: 1.55; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: #f28a5e; box-shadow: 0 0 0 3px #f15a1612; outline: 0; }
.admin-form .active-field { min-height: 42px; padding: 8px 11px; border: 1px solid #edf0f1; border-radius: 7px; background: #fbfcfc; color: #58646a; font-size: 10px; }
.admin-form .primary-button { min-height: 43px; border-radius: 7px; }
.admin-user-list { overflow: hidden; border: 1px solid #e4e8ea; border-radius: 13px; background: #fff; box-shadow: 0 8px 22px #24303808; }
.admin-user-list-title { min-height: 57px; padding: 14px 18px; background: #fff; }
.admin-user-list-title strong { color: #29343a; font-size: 13px; }
.admin-user-list-title span { color: #899398; font-size: 10px; }
.admin-toolbar { margin: 0 15px 12px; padding: 12px; border-radius: 9px; background: #f7f8f8; }
.admin-toolbar input, .admin-toolbar select { height: 38px; border-color: #e0e5e6; border-radius: 7px; background: #fff; font-size: 11px; }
.admin-toolbar button { min-height: 38px; border-radius: 7px; }
.admin-user-row { display: flex; min-height: 78px; align-items: center; gap: 13px; margin: 8px 12px; padding: 12px 14px; border: 1px solid #edf0f1; border-radius: 10px; background: #fff; transition: border-color .18s, background .18s; }
.admin-user-row:hover { border-color: #f1c3af; background: #fffdfb; }
.admin-user-row:last-child { margin-bottom: 12px; }
.admin-user-row .user-data strong { color: #2f3b40; font-size: 11px; }
.admin-user-row .user-data span { color: #849096; font-size: 9px; line-height: 1.45; }
.admin-user-row .cart-thumbnail { overflow: hidden; border-color: #edf0f1; border-radius: 8px; background: #f7f8f7; }
.admin-user-row .cart-thumbnail img { border-radius: 8px; object-fit: contain; }
.admin-user-row .user-avatar { width: 38px; height: 38px; flex-basis: 38px; background: #fff0e8; font-size: 13px; }
.user-role, .user-status { padding: 5px 8px; border-radius: 999px; background: #f4f6f7; color: #67747a; font-size: 9px; }
.user-status.is-active { background: #eaf6ed; color: #2f824b; }
.admin-actions { align-items: center; }
.admin-actions button, .admin-actions a, .admin-user-row form button { min-height: 31px; padding: 6px 9px; border-color: #e2e6e8; border-radius: 6px; color: #59666c; font-size: 9px; font-weight: 700; }
.admin-actions a:hover, .admin-actions button:hover, .admin-user-row form button:hover { border-color: #f1a582; background: #fff7f3; color: #cc4912; }
.admin-page > .back-store { color: #68757b; font-size: 10px; }
.admin-page > .back-store:hover { color: #d94b10; }
.empty-admin { padding: 20px; color: #7a878c; font-size: 12px; }
.admin-login-page { background: radial-gradient(ellipse at 50% 0, #fff 0, #f1f3f5 78%); }
.admin-login-box { overflow: hidden; border: 1px solid #e5e9eb; border-radius: 16px; box-shadow: 0 22px 60px #1c292f16; }
.admin-login-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: #fff0e8; font-size: 20px; }
.admin-login-box .primary-button { border-radius: 8px; }

@media (max-width: 900px) {
  .story-panel { grid-template-columns: minmax(0, 1fr) 270px; }
  .story-aside { padding: 30px 25px; }
  .home-catalog-section .catalog-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 18px; }
  .admin-welcome-mark { width: 100px; height: 100px; flex-basis: 100px; }
  .admin-user-row { flex-wrap: wrap; }
  .admin-actions { width: 100%; margin-left: 51px; }
}
@media (max-width: 760px) {
  .story-section { padding: 22px 0 28px; }
  .story-inner { padding: 0 15px; }
  .story-panel { grid-template-columns: 1fr; border-radius: 16px; }
  .story-copy { padding: 28px 23px 27px; }
  .story-copy h1 { margin-bottom: 17px; font-size: 48px; }
  .story-text p { margin-bottom: 11px; font-size: 12px; line-height: 1.68; }
  .story-aside { min-height: 250px; padding: 26px 24px; }
  .story-year { margin-top: 12px; font-size: 69px; }
  .story-aside-rule { margin: 17px 0 12px; }
  .story-aside > p { max-width: 300px; font-size: 18px; }
  .story-aside-bottom { margin-top: 20px; }
  .story-actions { gap: 12px; }
  .story-actions .primary-button { width: 100%; min-height: 44px; font-size: 9px; }
  .story-contact-link { padding: 5px 0; }
  .home-catalog-section { padding: 43px 0 58px; }
  .home-catalog-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 18px; padding-bottom: 17px; }
  .home-catalog-heading h2 { font-size: 34px; }
  .home-catalog-heading p { font-size: 11px; }
  .home-category-link { padding: 10px 12px; font-size: 9px; }
  .home-catalog-section .catalog-layout { display: block; }
  .home-catalog-section .filters { position: static; margin-bottom: 14px; }
  .home-catalog-section .filter-body { padding: 16px; }
  .admin-page { padding: 20px 14px 55px; }
  .admin-page .breadcrumb { padding-bottom: 13px; }
  .admin-top { margin-bottom: 17px; padding-bottom: 10px; }
  .admin-top-main { align-items: flex-start; flex-direction: column; gap: 13px; padding-bottom: 15px; }
  .admin-top h1 { font-size: 38px; }
  .admin-top p { font-size: 11px; }
  .admin-tabs { gap: 2px; overflow-x: auto; min-height: 43px; padding: 4px; }
  .admin-tabs a { min-height: 32px; flex: 0 0 auto; padding: 0 9px; font-size: 10px; }
  .admin-tabs .admin-tabs-store { margin-left: 0; }
  .admin-welcome { min-height: 0; margin-bottom: 13px; padding: 24px 21px; border-radius: 13px; }
  .admin-welcome-mark { display: none; }
  .admin-welcome h2 { max-width: 310px; font-size: 33px; line-height: 1.02; }
  .admin-welcome p { font-size: 10px; }
  .admin-metrics { grid-template-columns: 1fr; gap: 9px; margin-bottom: 26px; }
  .admin-metric { min-height: 74px; grid-template-columns: 38px minmax(0,1fr) auto; padding: 11px 13px; }
  .admin-metric-icon { width: 36px; height: 36px; }
  .admin-metric-foot { grid-column: 3; grid-row: 1; margin: 0; text-align: right; font-size: 9px; }
  .admin-section-heading h2 { font-size: 25px; }
  .admin-links { grid-template-columns: 1fr; gap: 10px; }
  .admin-feature { min-height: 178px; padding: 20px; border-radius: 11px; }
  .admin-note { padding: 14px; }
  .admin-form { grid-template-columns: 1fr; padding: 16px; }
  .admin-user-list-title { padding: 13px; }
  .admin-user-row { gap: 9px; margin: 7px; padding: 11px; }
  .admin-actions { gap: 5px; margin-left: 0; }
  .admin-toolbar { margin: 0 8px 10px; }
  .admin-user-row .user-role { margin-left: 0; }
  .admin-login-page { min-height: 560px; }
  .admin-login-box { padding: 28px 23px; }
}
@media (max-width: 390px) {
  .story-copy { padding: 24px 18px; }
  .story-copy h1 { font-size: 43px; }
  .story-aside { padding: 23px 19px; }
  .admin-metric { grid-template-columns: 35px minmax(0,1fr); }
  .admin-metric-foot { grid-column: 2; grid-row: 2; text-align: left; }
}

/* Regras explícitas sobre os spans legados dos cartões do painel */
.admin-feature .admin-card-icon { display: grid; width: 38px; height: 38px; margin-top: 0; color: #dc4d12; font-size: 13px; }
.admin-feature .admin-card-kicker { display: block; margin-top: 15px; color: #929ca1; font-size: 8px; }
.admin-feature .admin-feature-link { display: flex; margin-top: 16px; color: #d94b10; font-size: 9px; }
.admin-feature .admin-feature-link b { margin-left: auto; color: inherit; font-size: 15px; }
