/* =========================================================
   NUTRIUP — acabamento visual e efeitos globais
   Centraliza o tema para manter o site leve e consistente.
   ========================================================= */

:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #efefeb;
  --text: #131416;
  --muted: #686b70;
  --line: #dedfdc;
  --accent: #e2b410;
  --accent-dark: #856400;
  --shadow: 0 14px 38px rgba(18, 20, 24, .09);
  --shadow-soft: 0 7px 24px rgba(18, 20, 24, .055);
  --shadow-strong: 0 20px 48px rgba(18, 20, 24, .13);
  --focus-ring: 0 0 0 4px rgba(226, 180, 16, .18);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f9f9f7 0, var(--bg) 420px);
}

body > main {
  flex: 1 0 auto;
}

.site-header + .auth-page,
.site-header + .admin-shell {
  min-height: calc(100vh - 74px);
}

::selection {
  background: #f5d969;
  color: #171300;
}

/* Botões, títulos e campos */
.btn {
  border-radius: 13px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #211a00;
  box-shadow: 0 8px 18px rgba(161, 124, 0, .14);
}

.btn-primary:hover {
  background: #edc529;
  box-shadow: 0 11px 24px rgba(161, 124, 0, .2);
  transform: translateY(-2px);
}

.btn-dark:hover,
.btn-outline:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.tag {
  border: 1px solid rgba(190, 148, 0, .1);
  background: #fff5c9;
  color: #674e00;
}

.section {
  padding: 54px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(27px, 3vw, 32px);
  letter-spacing: -1px;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  transition: color .18s ease, background .18s ease;
}

.section-head a::after {
  content: "→";
  font-size: 15px;
}

.section-head a:hover {
  background: #fff1b5;
  color: #604900;
}

.field input,
.field select,
.field textarea,
.buy-form input,
.cart-controls input {
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.buy-form input:focus,
.cart-controls input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: var(--focus-ring);
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(226, 180, 16, .42);
  outline-offset: 3px;
}

/* Cards de produtos */
.product-card {
  border-color: #e0e1dd;
  box-shadow: var(--shadow-soft);
}

.product-media {
  background: linear-gradient(180deg, #fff 0%, #fafaf7 100%);
  border-bottom: 1px solid #eeeeea;
}

.product-media img {
  transition: transform .28s ease;
}

.product-body {
  padding: 18px;
}

.product-card h3 a {
  transition: color .18s ease;
}

.product-card h3 a:hover {
  color: var(--accent-dark);
}

.price {
  color: #101113;
  letter-spacing: -.7px;
}

.badge-off {
  background: #151619;
  box-shadow: 0 5px 14px rgba(17, 18, 20, .14);
}

/* Página inicial */
.hero {
  padding-top: 26px;
}

.hero-banner {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
  transition: transform .24s ease, box-shadow .24s ease;
}

.perks {
  gap: 14px;
  padding: 20px 0 8px;
}

.perk {
  border-color: #e0e1dd;
  box-shadow: 0 5px 18px rgba(18, 20, 24, .035);
}

.perk-icon {
  background: #fff2b9;
  color: #735700;
}

.category-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-color: #e0e1dd;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: 32%;
  bottom: 0;
  left: 32%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.category-card img {
  transition: transform .28s ease;
}

.promo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 88% 15%, rgba(226, 180, 16, .18), transparent 28%),
    linear-gradient(135deg, #111214 0%, #24262a 100%);
  box-shadow: var(--shadow-strong);
}

.promo h2 {
  color: #fff;
}

.promo .tag {
  border-color: rgba(255, 255, 255, .12);
}

/* Catálogo e marcas */
.catalog-hero {
  padding-top: 56px;
}

.catalog-hero h1 {
  color: #111214;
  letter-spacing: -2px;
}

.catalog-results-head,
.catalog-filters {
  border-color: #dedfdc;
  box-shadow: var(--shadow-soft);
}

.filter-open-btn {
  box-shadow: 0 8px 20px rgba(17, 18, 20, .14);
}

.brand-logo-card {
  border-color: #dedfdc;
  background: linear-gradient(180deg, #fff 0%, #fbfbf8 100%);
  box-shadow: var(--shadow-soft);
}

.brand-logo-card img {
  transition: transform .26s ease;
}

.brand-title h2 {
  letter-spacing: -.6px;
}

/* Produtos, avaliações, carrinho, conta e administração */
.carousel-stage,
.product-info,
.reviews-section,
.summary,
.form-card,
.account-sidebar,
.account-section,
.admin-card,
.stat,
.success-box {
  border-color: #dedfdc;
  box-shadow: var(--shadow-soft);
}

.carousel-stage {
  background: linear-gradient(180deg, #fff 0%, #fafaf7 100%);
}

.product-info {
  box-shadow: var(--shadow);
}

.mini-specs span,
.spec-box,
.account-data-card,
.account-loading,
.account-empty {
  background: #f7f7f4;
}

.cart-item,
.order-card,
.account-data-card,
.stat {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cart-item {
  border-color: #dedfdc;
  box-shadow: var(--shadow-soft);
}

.auth-visual,
.admin-side {
  background:
    radial-gradient(circle at 15% 10%, rgba(226, 180, 16, .12), transparent 27%),
    #15171a;
}

.admin-top {
  padding: 18px 20px;
  border: 1px solid rgba(226, 180, 16, .3);
  border-radius: 18px;
  background: #101113;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-top .muted {
  color: #c7c9ce;
}

.auth-panel {
  background: #f7f7f4;
}

.auth-box {
  padding: 32px;
  border: 1px solid #dedfdc;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-nav a,
.admin-side .nav-item,
.account-menu-item {
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.account-nav a:hover,
.admin-side .nav-item:hover,
.account-menu-item:hover {
  transform: translateX(2px);
}

.site-footer {
  border-top: 4px solid var(--accent);
  background: #101113;
}

.footer-grid a {
  transition: color .18s ease, transform .18s ease;
}

.footer-grid a:hover {
  color: #fff;
  transform: translateX(2px);
}

/* Movimento curto: melhora a sensação de resposta sem pesar o site */
.product-card,
.category-card,
.brand-logo-card,
.perk {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

@media (hover: hover) {
  .product-card:hover,
  .category-card:hover,
  .brand-logo-card:hover {
    border-color: #d5bd5d;
    box-shadow: var(--shadow-strong);
    transform: translateY(-5px);
  }

  .product-card:hover .product-media img,
  .category-card:hover img,
  .brand-logo-card:hover img {
    transform: scale(1.035);
  }

  .category-card:hover::after {
    transform: scaleX(1);
  }

  .perk:hover,
  .cart-item:hover,
  .order-card:hover,
  .account-data-card:hover,
  .stat:hover {
    border-color: #d9c975;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
  }

  .hero-banner:hover {
    box-shadow: 0 24px 58px rgba(18, 20, 24, .17);
    transform: translateY(-2px);
  }
}

.product-card:focus-within,
.category-card:focus-visible,
.brand-logo-card:focus-visible {
  border-color: #d5bd5d;
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

@media (max-width: 800px) {
  .section {
    padding: 40px 0;
  }

  .auth-box {
    padding: 25px;
  }

  .promo {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 24px;
  }

  .cart-link {
    padding: 9px 11px;
  }

  .auth-box {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .product-card:hover,
  .product-card:focus-within,
  .category-card:hover,
  .category-card:focus-visible,
  .brand-logo-card:hover,
  .brand-logo-card:focus-visible,
  .perk:hover,
  .cart-item:hover,
  .order-card:hover,
  .account-data-card:hover,
  .stat:hover,
  .hero-banner:hover {
    transform: none;
  }
}
