/* ============================================================
   Quinelato — Supermercado Online
   site.css — Estilos globais
   Projeto ASP.NET MVC / .NET 10
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ──────────────────────────────────────────────────────────
     CORES DA MARCA (multi-tenant)
     Estes valores são o PADRÃO (fallback). Cada cliente pode
     sobrescrevê-los injetando um <style> no _Layout.cshtml,
     DEPOIS deste arquivo, com as cores vindas do banco:

       <style>
         :root {
           --brand:       @TenantContext.CorPrimaria;
           --brand-dark:  @TenantContext.CorPrimariaEscura;
           --brand-mid:   @TenantContext.CorPrimariaMedia;
           --brand-light: @TenantContext.CorPrimariaClara;
           --accent:      @TenantContext.CorDestaque;
         }
       </style>
     ────────────────────────────────────────────────────────── */
  --brand:        #1f7a4a;  /* cor primária do cliente */
  --brand-dark:   #145232;  /* variação escura  (hover, gradientes) */
  --brand-mid:    #2a9d62;  /* variação média   (hover de botões) */
  --brand-light:  #e8f7ef;  /* variação clara   (fundos suaves) */
  --brand-xlight: #f2fbf6;  /* variação extra clara (hover de itens) */
  --accent:        #f5a623; /* cor de destaque  (badges, promoções) */
  --accent-light:  #fff8ec; /* destaque claro   (fundos de pill) */
  --red:          #e53b3b;
  --bg:           #f7f6f2;
  --white:        #ffffff;
  --border:       #e9e6de;
  --text:         #171714;
  --text-2:       #4a4a44;
  --muted:        #8a8a82;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
}

html { scroll-behavior: smooth; height: 100% }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
    flex: 1 0 auto; /* cresce e empurra o footer pra baixo */
}

/* ── TOP BAR ── */
.topbar {
  background: var(--brand-dark);
  padding: 6px 0;
  display: flex; align-items: center; justify-content: center; gap: 32px;
  font-size: 12px; color: #9ddbb8; letter-spacing: .2px;
}
.topbar span { display: flex; align-items: center; gap: 6px; }
.topbar strong { color: #fff; }
.topbar a { color: #9ddbb8; text-decoration: none; border-bottom: 1px solid rgba(157,219,184,.3); }
.topbar a:hover { color: #fff; }

/* ── HEADER ── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
  height: 68px; display: flex; align-items: center; gap: 20px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(31,122,74,.3);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; color: var(--brand); }
.logo-tagline { font-size: 10px; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }

/* Search */
.search-wrap {
  flex: 1; max-width: 660px;
  display: flex; align-items: stretch;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: 99px; overflow: hidden; height: 44px;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,122,74,.12);
}
.search-icon { display: flex; align-items: center; padding: 0 14px 0 18px; color: var(--muted); flex-shrink: 0; }
.search-icon svg { width: 17px; height: 17px; display: block; }
.search-wrap input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text);
  padding: 0; min-width: 0;
}
.search-wrap input::placeholder { color: var(--muted); }
.search-btn {
  background: var(--brand); color: #fff; border: none;
  padding: 0 22px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border-radius: 0 99px 99px 0; transition: background .15s; flex-shrink: 0;
}
.search-btn:hover { background: var(--brand-mid); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.h-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 99px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; border: none; background: none; color: var(--text-2);
  text-decoration: none; transition: background .15s, color .15s; white-space: nowrap;
}
.h-btn:hover { background: var(--bg); color: var(--brand); }
.h-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.h-btn.cart {
  background: var(--brand); color: #fff; padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(31,122,74,.25);
}
.h-btn.cart:hover { background: var(--brand-mid); color: #fff; }
.cart-count {
  background: var(--accent); color: #6a3d00;
  border-radius: 99px; padding: 1px 7px; font-size: 11px; font-weight: 700;
}

/* ── NAV ── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 150;
  overflow: visible !important;
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none;
  overflow: visible !important;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 16px; min-width: 72px;
  font-size: 11px; font-weight: 600; color: var(--text-2);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s, background .15s; flex-shrink: 0;
}
.nav-item:hover { color: var(--brand); background: var(--brand-xlight); }
.nav-item.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-icon { font-size: 22px; line-height: 1; }
.nav-special { background: linear-gradient(135deg, #e8f7ef, #d4f0e2); color: var(--brand) !important; font-weight: 700; }
.nav-divider { width: 1px; background: var(--border); margin: 8px 4px; flex-shrink: 0; }

/* ── FLYOUT DEPARTAMENTOS ── */
.nav-dept-trigger {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 18px;
  font-size: 11px; font-weight: 700; color: var(--white);
  background: var(--brand); cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif; white-space: nowrap; flex-shrink: 0;
  position: relative; border-bottom: none; transition: background .15s;
}
.nav-dept-trigger:hover,
.nav-dept-trigger.open { background: var(--brand-dark); }
.dept-trigger-icon { font-size: 20px; line-height: 1; }
.dept-trigger-label { display: flex; align-items: center; gap: 5px; }
.dept-trigger-label svg { width: 11px; height: 11px; transition: transform .2s; }
.nav-dept-trigger.open .dept-trigger-label svg { transform: rotate(180deg); }

.flyout {
  position: absolute; top: 100%; left: 0; width: 780px;
  background: var(--white); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,.14);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease; z-index: 300;
}
.flyout.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.flyout-header {
  background: var(--brand-xlight); padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--brand-dark); letter-spacing: .3px;
}
.flyout-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 8px; }
.flyout-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-2);
  font-size: 13px; font-weight: 500; transition: background .12s, color .12s; cursor: pointer;
}
.flyout-item:hover { background: var(--brand-light); color: var(--brand); }
.fi-icon { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.fi-name { line-height: 1.2; }
.fi-sub { font-size: 11px; color: var(--muted); display: block; margin-top: 1px; }
.flyout-footer {
  border-top: 1px solid var(--border); padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fafaf8; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.flyout-footer span { font-size: 12px; color: var(--muted); }
.flyout-footer a {
  font-size: 12px; font-weight: 700; color: var(--brand);
  text-decoration: none; display: flex; align-items: center; gap: 4px;
}

/* ── FLYOUT OVERLAY ── */
.flyout-overlay { display: none; position: fixed; inset: 0; z-index: 149; }
.flyout-overlay.active { display: block; }

/* ── HERO BANNER FULL WIDTH ── */
.hero-banner {
  width: 100%; background: linear-gradient(115deg, var(--brand-dark) 0%, #0e3d23 55%, #1b5c35 100%);
  position: relative; overflow: hidden; min-height: 340px; display: flex; align-items: center;
}
.hero-banner::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(125,224,168,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-banner::after {
  content: ''; position: absolute; bottom: -100px; left: 20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(31,122,74,.25) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px; width: 100%;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px;
  position: relative; z-index: 1;
}
.banner-content { padding: 56px 0; }
.banner-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.pill {
  background: var(--accent); color: #5a3000;
  border-radius: 99px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.pill-outline {
  border: 1.5px solid rgba(255,255,255,.35); color: rgba(255,255,255,.75);
  border-radius: 99px; padding: 4px 12px; font-size: 11px; font-weight: 500;
}
.banner-title {
  font-family: 'Sora', sans-serif; color: #fff;
  font-size: 48px; font-weight: 700; line-height: 1.1; margin-bottom: 12px;
}
.banner-title span { color: #7de0a8; }
.banner-sub { color: rgba(255,255,255,.6); font-size: 16px; margin-bottom: 32px; max-width: 480px; line-height: 1.6; }
.banner-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--brand-dark); border: none; border-radius: 99px;
  padding: 14px 28px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.22); transition: background .15s, transform .15s;
}
.banner-cta:hover { background: #e8f7ef; transform: translateY(-2px); }
.banner-cta svg { width: 16px; height: 16px; }
.banner-visual {
  font-size: 160px; line-height: 1; padding: 40px 40px 40px 0;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.3));
  animation: floatEmoji 3s ease-in-out infinite;
}
@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.banner-dots { display: flex; gap: 6px; margin-top: 28px; }
.dot { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.3); }
.dot.active { width: 22px; background: #7de0a8; }

/* ── MINI-STRIP ── */
.mini-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.mini-strip-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: center; gap: 0;
}
.mini-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 48px; border-right: 1px solid var(--border); flex: 0 0 auto;
}
.mini-card:last-child { border-right: none; }
.mini-card .mc-icon { font-size: 30px; flex-shrink: 0; }
.mc-label { font-size: 14px; font-weight: 700; color: var(--text); }
.mc-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── CONTEÚDO PRINCIPAL ── */
.content { max-width: 1320px; margin: 0 auto; padding: 32px 32px 0; }

/* ── SEÇÕES ── */
.section { margin-top: 36px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-title {
  font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-pill {
  background: var(--accent-light); color: #8a5600;
  border-radius: 99px; padding: 3px 10px;
  font-size: 11px; font-weight: 700; font-family: 'DM Sans', sans-serif;
}
.section-pill.green { background: var(--brand-light); color: var(--brand-dark); }
.ver-mais {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  text-decoration: none; cursor: pointer; transition: gap .15s;
}
.ver-mais:hover { gap: 8px; }

/* ── MARCAS ── */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 12px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; text-decoration: none; position: relative;
  transition: border-color .15s, transform .2s, box-shadow .2s;
}
.brand-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(31,122,74,.12); }
.brand-logo-img { font-size: 32px; line-height: 1; }
.brand-name { font-size: 13px; font-weight: 700; color: var(--text); text-align: center; }
.brand-offer { font-size: 11px; color: var(--brand); font-weight: 600; }
.brand-sponsored {
  position: absolute; top: 8px; right: 8px;
  background: #fff8ec; color: #a06800;
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 99px; letter-spacing: .3px;
}

/* ── PRODUTOS ── */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.products.cols-6 { grid-template-columns: repeat(6, 1fr); }
.product-card {
  position:relative;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .2s, box-shadow .2s;
}
.product-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(31,122,74,.1); }

/* O link cobre o card inteiro, mas fica ATRÁS dos botões */
.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-img {
  background: white; height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative;
}

.product-card .product-img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 35px 8px 8px;
}

.discount-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff;
  border-radius: 99px; padding: 3px 9px; font-size: 11px; font-weight: 700;
}
.fav-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.9); border: 1px solid var(--border);
  backdrop-filter: blur(4px); border-radius: 99px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #ccc; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.fav-btn:hover { color: var(--red); border-color: var(--red); background: #fff5f5; }
.product-info { padding: 12px 12px 14px; flex: 1; display: flex; flex-direction: column; }
.product-info .add-btn { margin-top: auto; }
.product-brand { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.product-name {
  font-size: 13px; color: var(--text-2); line-height: 1.4; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-prices { margin-top: 10px; }
.price-old { font-size: 11px; color: #bbb; text-decoration: line-through; }
.price-new { font-size: 20px; font-weight: 700; color: var(--brand); font-family: 'Sora', sans-serif; }
.price-unit { font-size: 11px; color: var(--muted); margin-top: 1px; }
.add-btn {
  width: 100%; background: var(--brand); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 9px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, transform .1s;
}
.add-btn:hover { background: var(--brand-mid); }
.add-btn:active { transform: scale(.97); }

/* Botões e favoritar ficam ACIMA do link */
.product-card .fav-btn {
    position: absolute;
    z-index: 3;
}

.product-card .add-btn {
    position: relative;
    z-index: 3;
}

/* ── BANNER STRIP ── */
.banner-strip {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-xl); padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-top: 36px; position: relative; overflow: hidden;
}
.banner-strip::before {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 300px;
  background: radial-gradient(ellipse at right center, rgba(125,224,168,.15), transparent);
}
.strip-left { display: flex; align-items: center; gap: 20px; }
.strip-emoji { font-size: 48px; }
.strip-text h3 { font-family: 'Sora', sans-serif; color: #fff; font-size: 20px; font-weight: 700; }
.strip-text p { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 4px; }
.strip-btns { display: flex; gap: 10px; flex-shrink: 0; }
.strip-btn {
  border-radius: 99px; padding: 11px 24px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.strip-btn.solid { background: #fff; color: var(--brand-dark); border: none; }
.strip-btn.solid:hover { background: #e8f7ef; transform: translateY(-1px); }
.strip-btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.strip-btn.ghost:hover { background: rgba(255,255,255,.1); }

/* ── FOOTER ── */
.footer { background: #0f1f15; margin-top: 48px; flex-shrink: 0; }
.footer-top {
  max-width: 1320px; margin: 0 auto; padding: 48px 32px 36px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .fb-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .fb-mark {
  width: 36px; height: 36px; background: var(--brand); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700;
}
.footer-brand .fb-name { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 13px; color: #6a8a72; line-height: 1.6; max-width: 220px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px; }
.footer-col a { display: block; font-size: 13px; color: #6a8a72; margin-bottom: 10px; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #9ddbb8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding: 20px 32px;
  max-width: 1320px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #3a5a42; flex-wrap: wrap; gap: 10px;
}
.payment-pills { display: flex; gap: 6px; }
.pay-pill {
  background: rgba(255,255,255,.07); border-radius: 6px;
  padding: 5px 12px; font-size: 11px; color: #6a8a72; font-weight: 600;
}

/* ── ANIMAÇÕES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.content .section { animation: fadeUp .4s ease both; }
.content .section:nth-child(2) { animation-delay: .08s; }
.content .section:nth-child(3) { animation-delay: .14s; }

/*Indicadores de Notificações*/

/* número (item) */
.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: auto;
    background: var(--red,#e53b3b);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 99px;
    line-height: 1;
}

/* dot (pai): bolinha sem número */
.notif-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red,#e53b3b);
    /* posicione conforme o contêiner; ex. sobre o hambúrguer: */
}
/* dot sobre o hambúrguer (canto superior direito do botão) */
.hamburguer {
    position: relative;
}

    .hamburguer .notif-dot {
        position: absolute;
        top: 6px;
        right: 6px;
        box-shadow: 0 0 0 2px var(--white,#fff); /* anelzinho pra destacar */
    }
/* dot ao lado do nome do usuário */
.user-trigger .notif-dot {
    margin-left: 4px;
}



