@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('skeleton.css');

:root {
  --bg-page: #f6f7fb;
  --bg-card: #ffffff;
  --bg-sidebar: #fdfdfd;
  --text-dark: #1f2431;
  --text-muted: #626978;
  --primary: #3d61ff;
  --accent: #ff665a;
  --border: #e2e5ec;
  --border-strong: #d5d9e5;
  --radius-card: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  box-shadow: 0 6px 20px rgba(31, 36, 49, 0.07);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
}

.brand small {
  color: var(--text-muted);
}

.hero-copy p {
  margin: 0;
  font-weight: 600;
}

.hero-copy small {
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
  align-items: center;

}

.header-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.header-nav a:hover {
  border-color: var(--border);
}

.header-nav a.whatsapp-nav-banner {
  padding: 0;
  background: transparent;
  border: none;
  margin-left: auto;
}

.header-nav a.whatsapp-nav-banner:hover {
  border: none;
}

.layout {
  max-width: 1200px;
  margin: 32px auto 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 0 24px;
}

.sidebar {
  align-self: flex-start;
}

.sidebar-card {
  background: var(--bg-sidebar);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: 0 15px 30px rgba(31, 36, 49, 0.08);
}

.sidebar-card h3 {
  margin-top: 0;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-list button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-list button.active {
  border-color: var(--primary);
  color: var(--primary);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.store-bar {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 12px 24px rgba(31, 36, 49, 0.05);
}

.store-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.store-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-pill {
  background: #f3f5fb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-pill:hover,
.store-pill.active {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pill-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.pill-icon img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.pill-initial {
  font-weight: 700;
  color: var(--primary);
}

.pill-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pill-info strong {
  font-size: 0.95rem;
}

.pill-info small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.product-feed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 12px 24px rgba(31, 36, 49, 0.05);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: start;
}

.card:hover {
  box-shadow: 0 20px 30px rgba(31, 36, 49, 0.12);
  transform: translateY(-3px);
}

.card img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.card-price strong {
  font-size: 1.4rem;
  color: var(--primary);
}

.card-price span {
  text-decoration: line-through;
  color: var(--text-muted);
}

.whatsapp-nav-banner img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  -webkit-image-rendering: auto;
  -moz-image-rendering: auto;
}

.floating-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: 0 10px 20px rgba(31, 36, 49, 0.15);
  font-weight: 600;
}

.product-page {
  max-width: 1100px;
  margin: 32px auto 80px;
  padding: 0 24px;
}

.detail-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  box-shadow: 0 20px 40px rgba(31, 36, 49, 0.08);
}

.detail-hero img {
  width: 100%;
  border-radius: 18px;
}

.detail-meta {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}

.cta,
.cta-secondary {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.cta {
  background: var(--primary);
  color: #fff;
}

.cta-secondary {
  background: #f4f5fa;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.carousel-section {
  margin-top: 32px;
}

.carousel-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.carousel-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.carousel-card:hover {
  box-shadow: 0 12px 24px rgba(31, 36, 49, 0.12);
  transform: translateY(-4px);
}

.carousel-card img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.carousel-card .body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.carousel-card .price {
  font-weight: 700;
  color: var(--primary);
}

.carousel-card .cta-mini {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

font-size: 0.8rem;
}

.product-feed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 12px 24px rgba(31, 36, 49, 0.05);
}

.feed-head h2 {
  /* This rule was opened but never closed, leading to incorrect nesting.
     Assuming it should have been closed here, and subsequent rules are top-level. */
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 20px 30px rgba(31, 36, 49, 0.12);
  transform: translateY(-3px);
}

.card img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.card-price strong {
  font-size: 1.4rem;
  color: var(--primary);
}

.card-price span {
  text-decoration: line-through;
  color: var(--text-muted);
}

.whatsapp-nav-banner img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  -webkit-image-rendering: auto;
  -moz-image-rendering: auto;
}

.floating-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: 0 10px 20px rgba(31, 36, 49, 0.15);
  font-weight: 600;
}

.product-page {
  max-width: 1100px;
  margin: 32px auto 80px;
  padding: 0 24px;
}

.detail-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  box-shadow: 0 20px 40px rgba(31, 36, 49, 0.08);
}

.detail-hero img {
  width: 100%;
  border-radius: 18px;
}

.detail-meta {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}

.cta,
.cta-secondary {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.cta {
  background: var(--primary);
  color: #fff;
}

.cta-secondary {
  background: #f4f5fa;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.carousel-section {
  margin-top: 32px;
}

.carousel-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.carousel-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.carousel-card:hover {
  box-shadow: 0 12px 24px rgba(31, 36, 49, 0.12);
  transform: translateY(-4px);
}

.carousel-card img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.carousel-card .body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.carousel-card .price {
  font-weight: 700;
  color: var(--primary);
}

.carousel-card .cta-mini {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}
