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

header, footer {
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
}

svg:not(.no-icon-reset) {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.header-pc, .footer-pc { display: block; }
.header-mobile, .footer-mobile, .navbar-mobile { display: none !important; }
.banner-mobile, .categorias, .produtos-mobile, .empresa-mobile { display: none !important; }
.categorias-pc, .produtos-pc, .empresa-pc { display: none; }

.desktop-only-container { display: contents; }
.mobile-only-container { display: none !important; }

@media screen and (max-width: 1023px) {
    .header-pc, .footer-pc, .navbar-pc, .categorias-pc, .produtos-pc, .empresa-pc { display: none !important; }
    .header-mobile, .footer-mobile { display: flex !important; }
    .navbar-mobile { display: flex !important; }
    .banner-mobile, .categorias, .produtos-mobile, .empresa-mobile { display: block !important; }
    .desktop-only-container { display: none !important; }
    .mobile-only-container { display: contents !important; }
    body { 
        padding-top: 120px;
        padding-bottom: 64px; 
    }
}

@media screen and (min-width: 1024px) {
  .pc-layout {
    display: flex;
    gap: 1.5rem;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }

  .pc-content {
    flex: 1;
    min-width: 0;
    overflow: visible;
  }
}

main {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 1023px) {
  .categorias-mobile { order: 1; }
  .banner-mobile { order: 2; }
  .pc-layout { order: 3; }
}

@media screen and (min-width: 1024px) {
  .banner-pc { order: 1; }
  .categorias-pc { order: 2; }
  .pc-layout { order: 3; }
}


body.modal-open {
  overflow: hidden;
}

::-webkit-scrollbar {
  display: none;
}

* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

img.fade-on-load {
    opacity: 0;
    transition: opacity 0.45s ease;
}
img.fade-on-load.loaded {
    opacity: 1;
}

.header-pc .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-pc .header-location {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: fit-content;
    max-width: fit-content;
    overflow: hidden;
}

.header-pc .location-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    line-height: 1.2;
}

.header-pc .location-title {
    font-size: 0.75rem;
    color: #888;
}

.header-pc .location-current {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo a {
  color: #ffcc00;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.social-links a i {
  font-size: 24px;
  color: #ffffff;
  transition: color 0.2s ease;
}

.social-links a:hover i {
  color: #ffcc00 !important;
}

.footer-pc .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-pc .footer-container p.copyright {
  color: #ffffff;
  margin: 0;
  text-align: left;
}

.footer-pc .footer-container .social-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

.footer-pc .footer-container .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Skeleton Loader ── */
@keyframes skeleton-shimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-text {
  height: 14px;
  width: 80%;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 18px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
}

.skeleton-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.skeleton-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-card-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-card-line {
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 2px;
}

.skeleton-card-line:last-child {
  width: 50%;
}

/* ── Lazy Reveal ── */
.lazy-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-section.lazy-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll to Top ── */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 0 !important;
  border: none;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0s 0.3s, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  -webkit-tap-highlight-color: transparent;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, visibility 0s 0s, transform 0.3s ease;
}

.scroll-to-top:hover {
  background: #555;
}

.scroll-to-top svg {
  width: 22px;
  height: 22px;
}

@media screen and (max-width: 1023px) {
  .page-loja .scroll-to-top {
    bottom: 20px;
  }
}
