@import url('/css/storefront-smart-banner.css');

.store-footer {
  padding: 22px 20px max(68px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--loja-footer-border, rgba(255,255,255,.07));
  background: var(--store-structure, var(--loja-secondary, #0d1b3d));
  color: var(--store-on-structure, var(--loja-on-secondary, #dbe4f0));
}

.store-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.store-footer__col--brand {
  min-width: 0;
}

.store-footer__brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-footer__logo {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--store-primary, var(--loja-primary));
  color: var(--store-on-primary, var(--loja-on-primary));
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  box-sizing: border-box;
}

/* Base neutra elegante para logo real no footer */
.store-footer__logo.store-footer__logo--has-image,
.store-footer__logo:has(img) {
  background: #f8fafc !important;
  border-radius: 8px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.store-footer__logo.store-footer__logo--base-light {
  background: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.store-footer__logo.store-footer__logo--base-dark {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.store-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.store-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--store-primary, var(--loja-primary));
  color: var(--store-on-primary, var(--loja-on-primary));
}

/* Base neutra elegante para logo real no header */
.store-logo {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--store-primary, var(--loja-primary));
  color: var(--store-on-primary, var(--loja-on-primary));
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  box-sizing: border-box;
}

.store-logo.store-logo--has-image,
.store-logo:has(img) {
  background: #f8fafc !important;
  border-radius: 10px;
  padding: 2.5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.store-logo.store-logo--base-light {
  background: #f8fafc !important;
  border-radius: 10px;
  padding: 2.5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.store-logo.store-logo--base-dark {
  background: #0f172a !important;
  border-radius: 10px;
  padding: 2.5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.store-footer__brand-name {
  display: block;
  color: var(--store-on-structure, var(--loja-on-secondary, #ffffff));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.store-footer__slogan {
  color: var(--store-on-structure, var(--loja-on-secondary, #ffffff)) !important;
  font-weight: 500;
  font-size: 11.5px;
  margin: 2px 0 0;
  opacity: 0.88;
  line-height: 1.3;
}

.store-footer__desc {
  max-width: 300px;
  margin: 5px 0 0;
  color: var(--loja-footer-muted, #aebbd0);
  font-size: 11px;
  line-height: 1.45;
}

.store-footer h2 {
  margin: 0 0 8px;
  color: var(--store-on-structure, var(--loja-on-secondary, #ffffff));
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.store-footer ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-footer li, .store-footer a, .store-footer-item-static {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--loja-footer-muted, #aebbd0);
  font-size: 11.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.store-footer a:hover {
  color: var(--store-primary, var(--loja-primary));
}

.store-footer-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--store-primary, var(--loja-primary));
  opacity: 0.95;
}

.store-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--loja-footer-border, rgba(255,255,255,.07));
  color: var(--loja-footer-muted, #8492a8);
  font-size: 10.5px;
}

.store-footer__bottom a {
  color: var(--loja-footer-muted, #8492a8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.store-footer__bottom a:hover {
  color: var(--store-on-structure, var(--loja-on-secondary, #ffffff));
}

.store-footer__bottom strong {
  color: var(--store-primary, var(--loja-primary));
  font-weight: 700;
}

@media (min-width: 861px) {
  .store-footer {
    padding: 24px 32px 18px;
  }
  .store-footer__grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 24px 36px;
    align-items: start;
  }
  .store-footer__col--brand {
    flex: 1.4 1 0;
    max-width: 340px;
  }
  .store-footer__col:not(.store-footer__col--brand) {
    flex: 1 1 0;
    min-width: 130px;
  }
  .store-footer__brand-name {
    font-size: 15.5px;
  }
  .store-footer h2 {
    font-size: 13px;
  }
  .store-logo {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }
  .store-logo.store-logo--has-image,
  .store-logo:has(img) {
    border-radius: 12px;
    padding: 3.5px;
  }
}
.institutional-content { min-height:55vh; padding:32px 20px 46px; }
.institutional-content h1 { margin:7px 0 16px; color:var(--loja-secondary); font-size:24px; }
.institutional-content h2 { margin:22px 0 7px; color:var(--loja-secondary); font-size:13px; }
.institutional-content p { max-width:570px; margin:0 0 12px; color:var(--sd-slate-600); font-size:10px; line-height:1.75; }
.institutional-content a { color:#16713b; }
.institutional-content small { display:block; margin-top:22px; padding:10px 12px; border-radius:8px; background:var(--sd-amber-50); color:var(--sd-slate-600); font-size:8px; line-height:1.5; }
@media (max-width: 560px) {
  .store-footer__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .store-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* Ícones e Ações Refinadas do Header e Busca */
.store-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--loja-header-action-border, rgba(255,255,255,.14));
  background: var(--loja-header-action-bg, rgba(255,255,255,.08));
  color: var(--store-on-structure, var(--loja-on-secondary, #ffffff));
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.store-header-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
}
.store-header-action:active {
  transform: scale(0.96);
}
.store-header-cart-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
}
.store-search button,
.store-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.store-search button:hover,
.store-search-btn:hover {
  filter: brightness(1.08);
}
.store-search button:active,
.store-search-btn:active {
  transform: scale(0.96);
}
.store-search-btn svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}
.store-status--closed,.store-status--paused { color:#fdb022; }
.store-card--unavailable { opacity:.72; }
.store-card--unavailable .store-card__photo img { filter:grayscale(.35); }
.detail-unavailable { display:grid; gap:4px; margin:16px 0 4px; padding:13px 14px; border:1px solid #fedf89; border-radius:10px; background:#fffaeb; }
.detail-unavailable strong { color:#7a2e0e; font-size:11px; }
.detail-unavailable span { color:#854a0e; font-size:9px; line-height:1.5; }
.store-cart-button:disabled { cursor:not-allowed; opacity:.55; }
.store-unavailable { min-height:58vh; display:grid; align-content:center; justify-items:center; padding:42px 22px; text-align:center; }
.store-unavailable__icon { width:72px; height:72px; display:grid; place-items:center; margin-bottom:16px; border-radius:22px; background:var(--sd-amber-50); color:#b54708; font-size:30px; }
.store-unavailable h1 { max-width:470px; margin:8px 0 0; font-size:23px; line-height:1.25; }
.store-unavailable p:not(.detail-type) { max-width:460px; margin:10px 0 22px; color:var(--sd-slate-500); font-size:10px; line-height:1.7; }
.store-unavailable .store-cart-button { width:min(100%,360px); }

/* ==========================================================================
   REFINAMENTO CIRÚRGICO DE CATEGORIAS NO MOBILE (SCROLL, TOUCH & PEEK)
   ========================================================================== */
@media (max-width: 860px) {
  .store-chips {
    display: flex;
    gap: 8px;
    margin: 0 -18px 20px;
    padding: 2px 18px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-padding: 0 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .store-chips::-webkit-scrollbar {
    display: none;
  }
  .store-chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-sizing: border-box;
    transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .store-chip:active {
    transform: scale(0.97);
  }
  .store-chip.is-active {
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}

/* ==========================================================================
   BARRA DISCRETA DE VITRINE DEMONSTRATIVA (ETAPA B3)
   ========================================================================== */
.store-demo-badge-bar {
  background: #0f172a;
  color: #f8fafc;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  z-index: 100;
  box-sizing: border-box;
}

.store-demo-badge-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.store-demo-badge-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.store-demo-badge-text {
  font-weight: 400;
  color: #e2e8f0;
}

.store-demo-badge-text strong {
  color: #38bdf8;
  font-weight: 600;
}

@media (max-width: 580px) {
  .store-demo-badge-bar {
    padding: 6px 12px;
    font-size: 11.5px;
  }
}
