:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #eef6ff;
  color: #102a43;
  --clr-bg: #eef6ff;
  --clr-bg-end: #f8fbff;
  --clr-bg-overlay: rgba(31, 111, 235, 0.10);
  --clr-surface: #ffffff;
  --clr-surface-low: #f5f9ff;
  --clr-surface-alt: #f7faff;
  --clr-surface-soft: rgba(255, 255, 255, 0.96);
  --clr-surface-muted: rgba(255, 255, 255, 0.95);
  --clr-surface-glow: rgba(255, 255, 255, 0.08);
  --clr-text-primary: #102a43;
  --clr-text-secondary: #4f6d8f;
  --clr-text-muted: #5c738d;
  --clr-border: #d6e4ff;
  --clr-border-soft: #e7efff;
  --clr-primary: #1f6feb;
  --clr-primary-dark: #174cbc;
  --clr-primary-glow: rgba(31, 111, 235, 0.12);
  --clr-error: #dc2626;
  --clr-gold: #b88a1d;
  --clr-gold-glow: rgba(184, 138, 29, 0.14);
  --font-heading: 'DM Serif Display', serif;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-full: 999px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 28px;
  --space-xl: 40px;
  --space-2xl: 60px;
  --space-3xl: 80px;
  --shadow: 0 30px 90px rgba(15, 42, 96, 0.10);
  --shadow-sm: 0 14px 40px rgba(15, 42, 96, 0.08);
  --nav-height: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--clr-bg);
  color: var(--clr-text-primary);
}

img {
  max-width: 100%;
  display: block;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: var(--clr-surface-soft);
  border-bottom: 1px solid rgba(31, 111, 235, 0.12);
}

.topbar-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--clr-primary);
  letter-spacing: -0.02em;
}

.card-price {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--clr-text-primary);
  letter-spacing: -0.04em;
}

.price-type-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(31, 111, 235, 0.12);
  color: var(--clr-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.price-type-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

  /* Estilo base para logos */
  .brand-logo,
  #brand-logo,
  .footer-brand-logo,
  #footer-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 240px !important;
    max-height: 52px !important;
    object-fit: contain !important;
  }

  .topbar .brand-logo,
  .auth-topbar .brand-logo {
    display: block !important;
  }

.theme-dark .logo-dark {
  display: block;
}

.topnav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.topnav a {
  color: var(--clr-text-secondary);
  transition: color 0.2s ease;
}

.topnav a:hover,
.topnav a.active {
  color: var(--clr-primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-greeting {
  color: var(--clr-text);
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--clr-surface-glow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-btn {
  min-width: 110px;
  padding: 12px 18px;
}

.cart-btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(31, 111, 235, 0.14);
  background: var(--clr-surface);
  color: var(--clr-primary);
}

.theme-toggle-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(31, 111, 235, 0.14);
  background: var(--clr-surface);
  color: var(--clr-text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--clr-surface-low);
  color: var(--clr-text-primary);
}

.theme-toggle-btn .material-symbols-outlined {
  font-size: 20px;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--clr-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
}

.toast-notification {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 320px;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  font-size: 0.95rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-notification.toast-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .toast-notification {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    min-width: auto;
  }
}

.cart-btn {
  min-width: 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 18px;
}

.icon-sm {
  font-size: 20px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  padding: 32px 20px 28px;
  overflow: visible;
  background: var(--clr-bg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 60px;
  align-items: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(31, 111, 235, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 111, 235, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 660px;
  height: 660px;
  background: radial-gradient(circle, rgba(31, 111, 235, 0.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-logo-mark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.hero-logo-mark-img,
.hero-logo-mark img {
  position: absolute;
  left: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, 68%);
  max-width: 640px;
  opacity: 0.26 !important;
  filter: grayscale(100%) !important;
  display: block !important;
}

.theme-dark .hero-logo-mark img {
  opacity: 0.16 !important;
}

.theme-dark .hero-logo-mark-img {
  opacity: 0.16 !important;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.12);
  color: var(--clr-primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary);
}

.hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.hero-title em {
  font-style: italic;
  color: var(--clr-primary);
}

.hero-title strong {
  font-weight: 700;
}

.hero-subtitle {
  max-width: 540px;
  margin: 0;
  color: var(--clr-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--clr-primary);
  color: white;
  box-shadow: 0 20px 60px rgba(31, 111, 235, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary-dark);
  border-color: rgba(31, 111, 235, 0.16);
}

.btn-sm {
  padding: 12px 18px;
  font-size: 0.95rem;
}

.hero-stats {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 111, 235, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 6px;
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phone-showcase {
  position: relative;
  width: min(100%, 358px);
  aspect-ratio: 358 / 480;
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    justify-content: flex-end;
  }

  .hero-phone-showcase {
    width: min(100%, 395px);
    transform: translateX(-15%);
  }
}

.hero-phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.hero-phone-img:hover {
  transform: scale(1.02);
}

.hero-phone-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.phone-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--clr-surface-muted);
  border: 1px solid rgba(31, 111, 235, 0.12);
  box-shadow: 0 20px 40px rgba(15, 42, 96, 0.08);
  font-size: 0.87rem;
  color: var(--clr-text-primary);
}

.tag-icon {
  font-size: 16px;
  color: var(--clr-primary);
}

.phone-tag:nth-child(1) {
  top: 10%;
  right: -8%;
}

.phone-tag:nth-child(2) {
  bottom: 18%;
  left: -8%;
}

.phone-tag:nth-child(3) {
  top: 52%;
  right: -4%;
}

.section-transition {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(31, 111, 235, 0.12) 20%, rgba(31, 111, 235, 0.25) 50%, rgba(31, 111, 235, 0.12) 80%, transparent 100%);
  margin: 0;
}

.catalog-section {
  padding: 80px 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  gap: 32px;
  max-width: 1360px;
  margin: 0 auto;
  width: min(100%, 1360px);
}

.catalog-search-block {
  width: 100%;
  margin-top: 16px;
  max-width: 760px;
}

.catalog-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: 30px;
  background: var(--clr-surface-muted);
  border: 1px solid rgba(31, 111, 235, 0.1);
  box-shadow: var(--shadow-sm);
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow: hidden;
}

.catalog-sidebar .catalog-filters {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.filters-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 111, 235, 0.32) transparent;
}

@media (max-width: 1080px) {
  .catalog-sidebar {
    max-height: none;
    overflow: visible;
  }

  .filters-content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

.filters-content::-webkit-scrollbar {
  width: 6px;
}

.filters-content::-webkit-scrollbar-track {
  background: transparent;
}

.filters-content::-webkit-scrollbar-thumb {
  background: rgba(31, 111, 235, 0.32);
  border-radius: 999px;
}

.filters-content::-webkit-scrollbar-thumb:hover {
  background: rgba(31, 111, 235, 0.45);
}

.catalog-main {
  grid-area: main;
}

.sidebar-section-label {
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  font-weight: 700;
}

.search-panel {
  display: grid;
  gap: 12px;
}

.search-panel input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 111, 235, 0.14);
  background: var(--clr-surface-low);
  color: var(--clr-text-primary);
}

.catalog-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.catalog-search-wrapper {
  position: relative;
  flex: 1 1 420px;
  min-width: 0;
}

.catalog-search-wrapper input {
  width: 100%;
  padding: 16px 18px 16px 48px;
  border-radius: 24px;
  border: 1px solid rgba(31, 111, 235, 0.14);
  background: var(--clr-surface-alt);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-muted);
}

.catalog-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 280px;
}

.sort-select {
  min-width: 220px;
  max-width: 280px;
  width: auto;
}

.view-toggle {
  min-width: 116px;
}

@media (max-width: 900px) {
  .catalog-search-row {
    justify-content: stretch;
  }

  .catalog-actions-row {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-actions-row .sort-select,
  .catalog-actions-row .view-toggle {
    width: calc(50% - 6px);
  }
}

@media (max-width: 640px) {
  .catalog-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-actions-row .sort-select,
  .catalog-actions-row .view-toggle {
    width: 100%;
  }
}

.sort-select {
  appearance: none;
  width: min(220px, 100%);
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 111, 235, 0.18);
  background: var(--clr-surface-alt);
  color: var(--clr-text-primary);
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(31, 111, 235, 0.08);
  background-image: linear-gradient(45deg, transparent 50%, rgba(16, 42, 67, 0.35) 50%), linear-gradient(135deg, rgba(16, 42, 67, 0.35) 50%, transparent 50%);
  background-position: right 16px center, right 10px center;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.view-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(31, 111, 235, 0.08);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--clr-text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.view-btn.active,
.view-btn:hover {
  background: var(--clr-surface);
  color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

.catalog-table-view {
  margin-top: 20px;
}

.catalog-main.grid-view .catalog-table-view {
  display: none !important;
}

.catalog-main.grid-view .product-grid {
  display: grid !important;
}

.catalog-main.table-view .product-grid {
  display: none !important;
}

.catalog-main.table-view .catalog-table-view {
  display: block !important;
}

.catalog-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  background: var(--clr-surface);
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.catalog-table th,
.catalog-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--clr-border);
  text-align: left;
  font-size: 14px;
}

.catalog-table th {
  color: var(--clr-text-muted);
  font-weight: 700;
  background: var(--clr-surface-alt);
}

.catalog-table tbody tr {
  transition: background 0.2s ease;
}

.catalog-table tbody tr:hover {
  background: rgba(31, 111, 235, 0.06);
}

.catalog-table td .table-product-link {
  color: var(--clr-text-primary);
  font-weight: 600;
  text-decoration: none;
}

.catalog-table td .table-product-link:hover {
  text-decoration: underline;
}

.catalog-table td {
  vertical-align: middle;
}

.catalog-table-view[hidden] {
  display: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-column {
  display: grid;
  gap: 10px;
}

.filters-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-panel {
  padding: 10px 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--clr-surface);
  border: 1px solid rgba(31, 111, 235, 0.12);
  color: var(--clr-text-secondary);
  transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  background: rgba(31, 111, 235, 0.12);
  border-color: rgba(31, 111, 235, 0.18);
  color: var(--clr-primary-dark);
}

.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-header {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(31, 111, 235, 0.08);
}

.catalog-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 3vw, 3.6rem);
  line-height: 1.05;
  font-weight: 400;
}

.catalog-title em {
  font-style: normal;
  color: var(--clr-primary);
}

.catalog-count {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.product-card-link {
  display: block;
  height: 100%;
}

.product-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: var(--clr-surface);
  border: 1px solid rgba(31, 111, 235, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.product-card-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 300px;
  min-height: 0;
  background: var(--clr-surface-low);
  display: grid;
  place-items: center;
}

.product-card-media img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.product-card-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 300px;
  min-height: 0;
  background: var(--clr-surface-low);
  display: grid;
  place-items: center;
}

.product-card-media img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.card-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-new { background: var(--clr-primary); }
.badge-hot { background: #1e90ff; }
.badge-offer { background: #124dbd; }

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.card-category {
  display: inline-flex;
  color: var(--clr-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.card-footer {
  margin-top: auto;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--clr-surface-low);
  color: var(--clr-text-secondary);
  font-size: 0.78rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card-price-old {
  display: block;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  text-decoration: line-through;
}

.card-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--clr-primary);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.product-not-found {
  padding: 120px 20px;
}

.product-not-found-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 28px;
  border-radius: 32px;
  background: var(--clr-surface-muted);
  border: 1px solid rgba(31, 111, 235, 0.12);
  box-shadow: var(--shadow-sm);
}

.product-not-found-icon {
  font-size: 56px;
  color: var(--clr-text-muted);
  margin-bottom: 20px;
}

.product-breadcrumb {
  max-width: 1260px;
  margin: 0 auto 18px;
  padding: 16px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--clr-text-muted);
}

.product-breadcrumb a {
  color: var(--clr-text-primary);
  font-weight: 600;
}

.breadcrumb-text,
.breadcrumb-current {
  color: var(--clr-text-primary);
}

.product-page-layout {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  max-height: calc(100vh - var(--nav-height, 96px) - 40px);
  overflow: hidden;
}

.product-image-sticky {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  width: min(100%, 520px);
  max-width: 520px;
}

.product-image-sticky .product-main-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 100%;
  max-height: calc(100vh - var(--nav-height, 96px) - 120px);
  background: #ffffff;
  overflow: hidden;
  border-radius: 24px;
  display: grid;
  place-items: center;
}

.product-image-sticky .product-main-image-wrapper {
  position: relative;
}

.product-image-sticky .product-main-image-wrapper .product-main-image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.product-image-thumbnails {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  padding: 10px 0 0;
}

.image-thumb {
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 6px;
  background: var(--clr-surface-low);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.image-thumb.active,
.image-thumb:hover {
  border-color: var(--clr-primary);
}

.image-thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.product-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-info-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 90vh;
  overflow: hidden;
  padding-right: 10px;
  justify-content: flex-start;
}

.product-category-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.product-title {
  margin: 10px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--clr-text-primary);
}

.product-subtitle {
  margin: 0;
  color: var(--clr-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-stars {
  display: flex;
  gap: 3px;
}

.rating-count {
  color: var(--clr-text-muted);
  font-size: 0.88rem;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.product-price-main {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--clr-text-primary);
}

.product-price-old {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  text-decoration: line-through;
}

.product-installment {
  margin: 5px 0 0;
  color: var(--clr-text-muted);
  font-size: 0.85rem;
}

.product-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-spec-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--clr-surface-low);
  color: var(--clr-text-secondary);
  font-size: 0.75rem;
}

.product-control-block {
  display: grid;
  gap: 10px;
}

.control-label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.control-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.control-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 235, 0.16);
  background: var(--clr-surface-alt);
  color: var(--clr-primary);
  font-weight: 700;
  cursor: pointer;
}

.product-cta-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.product-add-btn {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
}

.product-wishlist-btn {
  min-width: 50px;
  padding: 0 14px;
}

.toast-notification {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: 320px;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(31, 111, 235, 0.96);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.toast-notification.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .toast-notification {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    padding: 14px 16px;
  }
}

.product-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 20px;
  background: var(--clr-surface-alt);
}

.perk-icon {
  color: var(--clr-primary);
}

.perk-text {
  color: var(--clr-text-secondary);
  font-size: 0.88rem;
}

.section-heading-row {
  max-width: 1260px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.section-heading-row h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 400;
}

.similar-grid {
  padding: 0 20px 40px;
}

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.similar-card {
  min-height: 280px;
}

@media (max-width: 1024px) {
  .product-page-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 20px 40px;
  }

  .product-image-sticky {
    position: relative;
    top: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 720px;
  }

  .product-info-column {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    padding: 8px 20px;
  }

  .product-page-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 0 16px 30px;
    align-items: stretch;
  }

  .product-breadcrumb {
    padding: 16px 16px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .product-image-sticky {
    position: relative;
    top: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 40vh;
    max-height: none;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
  }

  .product-image-sticky .product-main-image-wrapper {
    position: relative;
  }

  .product-image-sticky .product-main-image-wrapper img,
  .product-image-sticky img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .product-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1.1;
  }

  .product-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .product-price-main {
    font-size: 2rem;
  }

  .product-price-old {
    font-size: 0.85rem;
  }

  .product-installment {
    font-size: 0.82rem;
  }

  .product-spec-tag {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .control-label {
    font-size: 0.75rem;
  }

  .control-pill {
    padding: 5px 10px;
    font-size: 0.85rem;
  }

  .product-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .product-add-btn,
  .product-wishlist-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .product-perks-grid {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .product-perk-item {
    padding: 12px 14px;
  }

  .perk-text {
    font-size: 0.82rem;
  }

  .product-info-column {
    gap: 16px;
    max-height: none;
    overflow: visible;
  }

  .product-page-layout {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .product-breadcrumb {
    padding: 12px 14px 0;
  }

  .product-info-column {
    gap: 16px;
  }

  .product-title {
    font-size: 1.75rem;
  }

  .product-price-main {
    font-size: 1.9rem;
  }

  .product-subtitle {
    font-size: 0.9rem;
  }

  .product-installment {
    font-size: 0.78rem;
  }

  .product-spec-tag {
    font-size: 0.68rem;
    padding: 4px 7px;
  }

  .product-add-btn,
  .product-wishlist-btn {
    padding: 10px 14px;
  }

  .product-perks-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
}

.empty-state {
  grid-column: 1 / -1;
  background: var(--clr-surface-muted);
  border: 1px solid rgba(31, 111, 235, 0.1);
  border-radius: 28px;
  padding: 36px;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.trust-section {
  padding: 80px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1260px;
  margin: 0 auto;
}

.trust-card {
  padding: 28px;
  border-radius: 30px;
  background: var(--clr-surface);
  border: 1px solid rgba(31, 111, 235, 0.08);
  box-shadow: var(--shadow-sm);
}

.trust-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.contact-section {
  padding: 80px 0 120px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  max-width: 1260px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--clr-surface-alt) 0%, var(--clr-surface-low) 100%);
  border: 1px solid rgba(31, 111, 235, 0.12);
  box-shadow: var(--shadow-sm);
}

.contact-panel h2 {
  margin: 0 0 16px;
  font-size: 2.4rem;
  line-height: 1.05;
}

.contact-panel p {
  margin: 0;
  color: var(--clr-text-secondary);
  line-height: 1.8;
}

.site-footer {
  padding: 40px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, 220px);
  gap: 24px;
  align-items: start;
  padding: 32px;
  border-radius: 28px;
  background: var(--clr-surface);
  border: 1px solid rgba(31, 111, 235, 0.1);
  box-shadow: var(--shadow-sm);
  max-width: 1260px;
  margin: 0 auto;
}


  border-radius: 8px; /* Pequeno arredondamento se houver fundo sólido */
}

.theme-dark .footer-brand-logo {
  filter: drop-shadow(0 0 12px rgba(31, 111, 235, 0.2));
}

.footer-brand p,
.footer-links p,
.footer-info p {
  margin: 0 0 10px;
  color: var(--clr-text-secondary);
  line-height: 1.8;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-secure {
  color: var(--clr-primary-dark);
  background: rgba(31, 111, 235, 0.12);
}

.badge-ssl {
  color: #15603d;
  background: rgba(22, 112, 66, 0.12);
}

.footer-links h3,
.footer-info h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-primary);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-nav a {
  color: var(--clr-text-secondary);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--clr-primary);
}

.footer-contact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--clr-text-primary);
}

.footer-copy {
  margin-top: 24px;
  text-align: center;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .footer-brand,
  .footer-links,
  .footer-info {
    text-align: center;
  }

  .footer-nav {
    align-items: center;
  }
}

@media (max-width: 1080px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main";
  }

  .catalog-sidebar {
    position: static;
    top: auto;
    width: 100%;
    box-shadow: none;
    border-radius: 28px;
    padding: 20px;
  }

  .topnav {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 40px 20px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
    top: auto;
    width: 100%;
    box-shadow: none;
    border-radius: 28px;
    padding: 20px;
  }

  .filter-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }

  .topnav {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .topbar-cta {
    width: auto;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: clamp(2.5rem, 14vw, 3.5rem);
  }

  .hero-phone-img {
    max-height: 420px;
  }

  .phone-tag {
    display: none;
  }
}

.theme-dark {
  color-scheme: dark;
  --clr-bg: #0f172a;
  --clr-bg-end: #0b1123;
  --clr-bg-overlay: rgba(56, 189, 248, 0.08);
  --clr-surface: #111827;
  --clr-surface-low: #16203a;
  --clr-surface-alt: #172842;
  --clr-surface-soft: rgba(15, 23, 42, 0.92);
  --clr-surface-muted: rgba(15, 23, 42, 0.85);
  --clr-surface-glow: rgba(226, 232, 240, 0.05);
  --clr-text-primary: #f8fafc;
  --clr-text-secondary: #cbd5e1;
  --clr-text-muted: #94a3b8;
  --clr-error: #f87171;
  --clr-border: rgba(148, 163, 184, 0.18);
  --clr-border-soft: rgba(148, 163, 184, 0.12);
  --clr-primary: #7dd3fc;
  --clr-primary-dark: #38bdf8;
  --clr-primary-glow: rgba(56, 189, 248, 0.16);
  --clr-gold: #facc15;
  --clr-gold-glow: rgba(250, 204, 21, 0.18);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.theme-dark body {
  background: radial-gradient(circle at top, var(--clr-bg-overlay), transparent 42%), linear-gradient(180deg, var(--clr-bg) 0%, var(--clr-bg-end) 100%);
  color: var(--clr-text-primary);
}

.theme-dark .topbar {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.theme-dark .topbar-greeting {
  color: var(--clr-text-secondary);
}

.theme-dark .cart-btn {
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .view-btn.active,
.theme-dark .view-btn:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.theme-dark .product-edit-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--clr-text-primary);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.theme-dark .product-edit-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.whatsapp-float-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 66px;
  height: 66px;
  background: #25d366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.28);
}

.whatsapp-float-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

