:root {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #8b5cf6;
  --bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-surface: #ffffff;
  --card: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --max-width: 1530px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

main:not(.card-grid) {
  max-width: 1530px !important;
  margin: 0 auto !important;
  padding: 2rem !important;
  width: 100% !important;
}

/* Container padrão para todo o site */
.page-container {
  max-width: 1530px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  width: 100% !important;
}

/* Forçar largura de 1530px em todos os containers principais */
main > section,
main > div,
.dashboard-panels,
.filters,
.anuncios-grid,
.checkout-container,
.payment-container,
.account-container,
.contato-container,
.anuncie-container,
.email-logs-container,
.test-container,
.product-page,
#admin-view {
  max-width: 1530px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 1rem;
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 85px;
}

.header-content {
  width: 100%;
  max-width: 1530px;
  margin: 0 auto;
  padding: 0 12rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.1rem;
  align-items: center;
}

/* Header Search */
.header-search {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  max-width: 600px;
  width: 100%;
  justify-self: end;
}

.header-search input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
  height: 42px;
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.header-search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
}

.header-search-btn:hover {
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  grid-column: 1;
  grid-row: 1 / 3;
}

.logo-section h1 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}


header .logo {
  width: auto;
  height: 80px;
  object-fit: contain;
  margin: 0;
  display: block;
  transition: transform 0.2s ease;
}

header .logo:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.525rem;
  justify-content: flex-end;
  grid-column: 1 / -1;
  grid-row: 2;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 400;
  font-size: 0.875rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  background: transparent;
}

/* Uniform height for header actions */
nav a,
.btn-logout,
.cart-icon,
.admin-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 0.95rem;
  box-sizing: border-box;
}

nav a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-logout {
  border: none;
  background: transparent;
  color: #000;
  font-weight: 400;
  font-size: 0.875rem;
  padding: 0.35rem 0.77rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  color: var(--primary);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Menu Sanduíche Admin */
.admin-menu-container {
  position: relative;
  z-index: 2000; /* garante dropdown acima de banners/carrossel da index */
}

.admin-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #000;
  border: none;
  padding: 0.35rem 0.77rem;
  border-radius: var(--radius-md);
  font-weight: 400;
  font-size: 0.875rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-menu-btn:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.admin-menu-icon {
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  overflow: hidden;
  z-index: 3000;
  border: 1px solid var(--border);
}

.admin-dropdown.active {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.admin-dropdown a:last-child {
  border-bottom: none;
}

.admin-dropdown a:hover {
  background: #f3f4f6;
  color: var(--primary);
  padding-left: 1.25rem;
  transform: none;
  box-shadow: none;
}

.banner-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1530px;
  margin: 40px auto;
  padding: 0 40px;
  height: 480px;
}

.banner-image {
  width: calc(33.333% - 27px);
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  margin: 1rem auto;
  max-width: 1530px;
  box-shadow: var(--shadow-lg);
}

.filters input,
.filters select,
.filters button {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filters button {
  background: var(--secondary);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.filters button:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 2rem !important;
  width: 100%;
}

.card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.card-image {
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .btn-logout {
    width: 100%;
    text-align: center;
  }
}
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f9fafb;
  padding: 15px 0;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  min-height: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.card-details {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

.card-series,
.card-rarity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.card-series {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.card-rarity {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0;
}

.add-collection-button {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-collection-button:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.add-collection-button:active {
  transform: translateY(0);
}

.add-collection-button.in-collection {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.add-collection-button.in-collection:hover {
  background: #7c3aed;
  border-color: #7c3aed;
}

.button-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.button-row .add-collection-button {
  flex: 1;
}

.wishlist-icon-button {
  width: 50px;
  height: 50px;
  padding: 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wishlist-icon-button img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.wishlist-icon-button:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.wishlist-icon-button:hover img {
  transform: scale(1.1);
}

.wishlist-icon-button.in-wishlist {
  background: #f59e0b;
  border-color: #f59e0b;
}

.wishlist-icon-button.in-wishlist:hover {
  background: #d97706;
  border-color: #d97706;
}

.wishlist-icon-button:active {
  transform: translateY(0);
}

.buy-button {
  width: 100%;
  padding: 0.875rem;
  margin-top: auto;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.buy-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.buy-button:active {
  transform: translateY(0);
}

/* Últimos Produtos Anunciados */
.latest-products-section,
.cards-catalog-section {
  max-width: 1530px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.section-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 0.5rem 2rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.section-header h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0;
  font-weight: 700;
}

.view-all-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  justify-self: end;
}

.view-all-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.latest-products-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 2rem !important;
  margin-bottom: 2rem;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.loading-state::before {
  content: "⏳ ";
  font-size: 1.5rem;
}

/* Seção de Produtos */
.products-section {
  max-width: 1530px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.products-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 0.5rem 2rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.products-header h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0;
  font-weight: 700;
}

.products-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.products-filters select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.products-filters select:hover {
  border-color: var(--primary);
}

.products-filters select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.products-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 2rem !important;
  margin-bottom: 2rem;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f3f4f6;
}

/* Compactar cards de listagem (home e produtos) */
.products-grid .product-image-container,
.latest-products-grid .product-image-container {
  height: 160px;
}

.products-grid .product-body,
.latest-products-grid .product-body {
  padding: 0.35rem 0.6rem 0.45rem;
  gap: 0.12rem;
}

.products-grid .product-title,
.latest-products-grid .product-title {
  font-size: 0.9rem;
  line-height: 1.1;
  min-height: 2.0em;
}

.products-grid .product-price,
.latest-products-grid .product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.05rem 0 0.1rem;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-condition-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-body {
  padding: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.2;
}

.product-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.product-seller {
  font-size: 0.8rem;
  color: var(--primary);
  margin: 0;
}

.product-price {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.1rem 0;
}

.product-buy-button {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.product-buy-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-hover);
}

.product-buy-button:active {
  transform: translateY(0);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.auth-container {
  max-width: 1000px;
  margin: 3rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.auth-container.single {
  max-width: 520px;
  grid-template-columns: 1fr;
  margin-top: 50px;
}

.auth-container section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-container h1,
.auth-container h2 {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-subtitle {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.address-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.address-grid input,
.address-grid select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
}

.address-grid select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.address-grid input:focus,
.address-grid select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.address-grid select:hover {
  border-color: var(--primary);
}

.form-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-container label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.auth-container input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.auth-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-container button {
  padding: 1rem;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-container button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.auth-container .link-button {
  background: transparent;
  color: var(--primary);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  text-decoration: underline;
  box-shadow: none;
}

.auth-container .link-button:hover {
  transform: none;
  filter: none;
}

.password-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.password-tools small {
  color: var(--text-muted);
}

.password-tools small.weak {
  color: #b91c1c;
}

.password-tools small.strong {
  color: #15803d;
}

.auth-extra {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.75rem;
}

.auth-extra h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.auth-extra form {
  margin-top: 1rem;
}

.auth-feedback {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  max-width: 500px;
  width: 90%;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #f1f5f9;
  color: var(--text);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.auth-feedback.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  cursor: pointer;
}

.auth-feedback.visible:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

.auth-feedback[data-type="success"] {
  border-color: #16a34a;
  background: #dcfce7;
  color: #166534;
  border-width: 2px;
}

.auth-feedback[data-type="error"] {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
  border-width: 2px;
}

.auth-feedback[data-type="warning"] {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #92400e;
  border-width: 2px;
}

.auth-feedback[data-type="rate-limit"] {
  border-color: #dc2626;
  background: #fee2e2;
  color: #7f1d1d;
  border-width: 2px;
  font-weight: 500;
}

.auth-feedback[data-type="rate-limit"]::before {
  content: "⏱️ ";
  margin-right: 0.25rem;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1530px;
  margin: 0 auto;
}

.dashboard-panels article {
  background: var(--bg-surface);
  padding: 0.75rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: center;
  min-height: 100px;
}

.dashboard-panels article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.dashboard-card-image {
  width: 100%;
  max-width: 180px;
  height: 220px;
  display: block;
  margin: 0 auto 0.75rem auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.dashboard-card-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.dashboard-panels h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-count {
  margin: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.dashboard-link {
  margin: 0.75rem 0 0 0;
  text-align: center;
}

.dashboard-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.dashboard-link a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.page-title-with-back {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem 0;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.filter-section label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.sort-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-select:hover {
  border-color: var(--primary);
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-back,
a.btn-back,
a.btn-back:link,
a.btn-back:visited {
  padding: 0.5rem 1rem;
  background: white !important;
  color: black !important;
  -webkit-text-fill-color: black !important;
  text-decoration: none !important;
  border: 1px solid black;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.btn-back:hover,
a.btn-back:hover {
  background: #f3f4f6 !important;
  color: black !important;
  -webkit-text-fill-color: black !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.dashboard-panels ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-panels li {
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  color: var(--text);
  transition: all 0.2s ease;
}

.dashboard-panels li:hover {
  padding-left: 0.5rem;
  color: var(--primary);
}

.dashboard-panels li:last-child {
  border-bottom: none;
}

.collection-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.collection-card:hover {
  background: #f9fafb;
  padding-left: 1.5rem;
}

.collection-card:last-child {
  border-bottom: none;
}

.collection-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.collection-card-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text);
  font-size: 1rem;
}

.collection-card-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.card-price-status {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text);
}

.card-price-status strong {
  color: var(--primary);
  font-size: 1rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
  padding-bottom: 0.5rem;
}

.btn-view-product {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-view-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #5b5fc7 0%, #7c3aed 100%);
}

.btn-view-product:active {
  transform: translateY(0);
}

.btn-buy-wishlist {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-buy-wishlist:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.btn-remove-collection {
  padding: 0.5rem 1rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-collection:hover {
  background: #dc2626;
  transform: scale(1.05);
}

/* Lista de Pedidos */
#orders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.order-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.order-card:last-child {
  margin-bottom: 0;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.order-date {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.order-status {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.order-content {
  padding: 1rem;
}

.order-content p {
  margin: 0.25rem 0;
  color: var(--text-muted);
}

/* Lista de items do pedido */
.order-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0.75rem;
}

.order-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 0.85rem;
  border: 1px solid #e5e7eb;
}

.order-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-item-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  margin: 0;
}

.order-item-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.order-item-price {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.order-total {
  font-weight: 700;
  color: var(--primary) !important;
  font-size: 1.1rem;
  margin-top: 0.5rem !important;
  padding-top: 0.5rem;
  border-top: 2px solid #e5e7eb;
  text-align: right;
}

.order-actions-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-cancel-order {
  padding: 0.55rem 1rem;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  width: auto;
  white-space: nowrap;
}

.btn-cancel-order:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2);
}

.btn-cancel-order:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.btn-generate-qr {
  padding: 0.55rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  width: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-generate-qr:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-md);
}

.btn-generate-qr:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.order-shipping {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  background: #f9fafb;
}

.order-shipping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.order-shipping-header strong {
  font-size: 0.95rem;
  color: var(--text);
}

.shipping-hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.5rem 0;
  font-style: italic;
}

.shipping-status {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #e5e7eb;
  color: #111827;
}

.shipping-status.shipping-pending {
  background: #fef3c7;
  color: #92400e;
}

.shipping-status.shipping-label_generated {
  background: #dbeafe;
  color: #1e40af;
}

.shipping-status.shipping-posted {
  background: #ede9fe;
  color: #5b21b6;
}

.shipping-status.shipping-delivered {
  background: #d1fae5;
  color: #065f46;
}

.shipping-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tracking-chip {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  background: #1f2937;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.04em;
}

.btn-track {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-track:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-track-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-track-primary:hover {
  color: white;
  background: var(--primary-hover);
}

.btn-shipping-retry {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-shipping-retry:hover:not(:disabled) {
  background: #ffedd5;
  border-color: #fb923c;
  transform: translateY(-1px);
}

.btn-shipping-retry:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* PIX Modal */
.pix-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pix-modal-content {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.pix-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.pix-modal-close:hover {
  background: #f3f4f6;
  color: var(--text);
}

.pix-modal-title {
  margin: 0 0 1.25rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.pix-qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: var(--radius-lg);
}

.pix-qr-image {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pix-code-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pix-code-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  background: #f9fafb;
  color: var(--text);
  text-align: center;
}

.btn-copy-pix {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-copy-pix:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.pix-total {
  font-size: 1.1rem;
  text-align: center;
  margin: 0.5rem 0;
  color: var(--text);
}

.pix-total strong {
  color: var(--primary);
  font-weight: 700;
}

.pix-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.5rem 0 0 0;
  line-height: 1.5;
}
.shipping-address {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.shipping-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.shipping-error {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-left: 4px solid #f97316;
  background: #fff7ed;
  color: #9a3412;
  border-radius: var(--radius-md);
}

/* Checkout Styles */
.checkout-container {
  max-width: 1530px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.checkout-content h1 {
  color: var(--text);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.checkout-section {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.checkout-section h2 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.checkout-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.checkout-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.checkout-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.checkout-item-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text);
  font-size: 1rem;
}

.checkout-item-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.checkout-item-quantity {
  font-weight: 600;
  color: var(--text);
}

.checkout-item-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  font-weight: 700;
}

.shipping-info {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  text-align: center;
}

.shipping-info p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.shipping-info strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions button {
  flex: 1;
}

.auth-hint {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.consent-checkboxes {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #f9fafb;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.checkbox-label:last-child {
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label span {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: var(--primary-hover);
}

.error {
  color: #ef4444;
  text-align: center;
  padding: 1rem;
  background: #fee2e2;
  border-radius: var(--radius-md);
  margin: 2rem;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.current-image {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f9fafb;
}

.current-image img {
  width: 80px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* Admin Dashboard Styles */
header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--primary);
  color: white;
}

.nav-btn.active {
  background: var(--primary);
  color: white;
}

#admin-view {
  padding: 2rem;
  max-width: 1530px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header h2 {
  margin: 0;
  color: white;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: var(--text-muted);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #4b5563;
}

.card-form {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.card-form h3 {
  margin-top: 0;
}

.card-form .form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.card-form label {
  padding-top: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.card-form input,
.card-form select,
.card-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
}

.card-form input:focus,
.card-form select:focus,
.card-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-table {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.admin-table thead {
  background: var(--primary);
  color: white;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
}

.admin-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

.btn-edit,
.btn-delete {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 0.5rem;
}

.btn-edit {
  background: #10b981;
  color: white;
}

.btn-edit:hover {
  background: #059669;
}

.btn-delete {
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
}

.btn-delete:hover {
  background: #ef4444;
  color: white;
}

/* Cart Styles */
.cart-icon {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 400;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-icon:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.cart-badge {
  position: relative;
  top: 0;
  right: 0;
  background: transparent;
  color: #000;
  border-radius: 0;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 400;
  box-shadow: none;
  margin-left: 0.25rem;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-modal.active {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close-cart {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-cart:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.cart-item-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

.cart-item-series,
.cart-item-price {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.qty-display {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.remove-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  background: #fee2e2;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: #f9fafb;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.cart-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  animation: slideIn 0.3s ease;
  font-weight: 600;
}

.cart-notification.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(400px);
  }
}

/* Payment Page Styles */
.payment-container {
  max-width: 1530px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.payment-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.payment-summary,
.payment-flow {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.payment-summary h3 {
  margin-top: 0;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.summary-item h4 {
  margin: 0;
  font-size: 0.95rem;
}

.summary-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.summary-item strong {
  font-size: 0.95rem;
}

.summary-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-align: center;
}

.summary-address {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.summary-address h4 {
  margin: 0 0 0.5rem 0;
}

.summary-address p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.payment-container h2 {
  text-align: center;
  color: var(--text);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.loading-section {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.payment-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.payment-status,
.payment-amount {
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: var(--radius-lg);
  text-align: center;
}

.payment-status h3,
.payment-amount h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.status-pending {
  color: #f59e0b;
  font-size: 1.1rem;
  font-weight: 700;
}

.status-approved {
  color: #10b981;
  font-size: 1.1rem;
  font-weight: 700;
}

.status-rejected {
  color: #ef4444;
  font-size: 1.1rem;
  font-weight: 700;
}

.status-cancelled {
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 700;
}

.status-processing {
  color: #3b82f6;
  font-size: 1.1rem;
  font-weight: 700;
}

.amount-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.payment-amount small {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.pix-section {
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: var(--radius-lg);
}

.pix-section h3 {
  text-align: center;
  margin: 0 0 1.5rem 0;
  color: var(--text);
}

.qr-code-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-md);
}

.qr-code-container img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.pix-copy-section {
  margin-top: 2rem;
}

.pix-code-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pix-code-box input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 0.875rem;
}

.pix-code-box button {
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

.copy-success {
  text-align: center;
  color: #10b981;
  font-weight: 600;
  font-size: 0.875rem;
}

.payment-instructions {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.payment-instructions h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
}

.payment-instructions ol {
  margin: 0;
  padding-left: 1.5rem;
}

.payment-instructions li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.payment-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.payment-actions button {
  flex: 1;
  max-width: 250px;
}

.error-message {
  text-align: center;
  padding: 2rem;
}

.error-message p {
  color: #ef4444;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .payment-info {
    grid-template-columns: 1fr;
  }
  
  .payment-actions {
    flex-direction: column;
  }
  
  .payment-actions button {
    max-width: 100%;
  }
  
  .pix-code-box {
    flex-direction: column;
  }
}

/* Footer */
.site-footer {
  background: #f3f4f6;
  margin-top: 3rem;
  padding: 0.75rem 2rem;
  border-top: 1px solid #e5e7eb;
}

.footer-content {
  max-width: 1530px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.footer-separator {
  color: #9ca3af;
  font-size: 0.75rem;
}

.footer-content p {
  color: #6b7280;
  margin: 0.15rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 0.65rem 1rem;
  }
  
  .footer-content p {
    font-size: 0.8rem;
    margin: 0.1rem 0;
  }
}

/* ========================================
   Página de Anúncios
   ======================================== */
.anuncie-container {
  max-width: 1530px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

.anuncie-title {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.anuncie-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.category-card {
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.category-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.category-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.anuncie-info {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  color: #92400e;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .anuncie-title {
    font-size: 2rem;
  }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding: 0.5rem 0;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Preview de Imagem */
.image-preview {
  position: relative;
  margin-top: 1rem;
  max-width: 300px;
}

.image-preview img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
}

.btn-remove-preview {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-remove-preview:hover {
  background: rgba(220, 38, 38, 1);
}

/* Info Box no Formulário */
.form-info {
  background: #e0f2fe;
  border: 1px solid #0284c7;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  color: #0c4a6e;
  margin: 1.5rem 0;
}

.form-info strong {
  color: #0c4a6e;
}

/* Grid de Dimensões */
.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.small-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Preview de Múltiplas Imagens */
.images-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .btn-remove-preview {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* Admin pending products modal */
.admin-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.admin-modal-content {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 90%;
  z-index: 1;
  border: 1px solid rgba(99, 102, 241, 0.1);
  animation: slideUp 0.3s ease;
}

.admin-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 16px 16px 0 0;
}

.admin-modal-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.admin-modal-content h3::before {
  content: '🔔';
  font-size: 1.75rem;
  display: inline-block;
  animation: bell 1s ease-in-out infinite;
}

@keyframes bell {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(-10deg);
  }
  20%, 40% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(0deg);
  }
}

.admin-modal-content p {
  margin: 0 0 1.5rem 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  text-align: center;
}

.admin-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.admin-modal .btn-primary,
.admin-modal .btn-secondary {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-modal .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.admin-modal .btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-modal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.admin-modal .btn-primary:hover::before {
  opacity: 1;
}

.admin-modal .btn-secondary {
  background: white;
  color: var(--text);
  border: 2px solid #e5e7eb;
}

.admin-modal .btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

/* Product Page Styles */
.product-page {
  padding: 2rem;
  max-width: 1530px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-weight: 300;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

#breadcrumb-type {
  color: var(--text-muted);
  font-weight: 500;
}

#breadcrumb-category {
  color: var(--primary);
  font-weight: 500;
}

.product-container {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.loading-state,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
}

.error-state p {
  color: #ef4444;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.btn-back {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

#product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  width: 100%;
  height: 500px;
  background: #f9fafb;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.main-product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 2rem;
}

.thumbnail-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.thumbnail-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumbnail-image:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.thumbnail-image.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.product-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-category-badge,
.product-condition-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-category-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.product-condition-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.product-price-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.product-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.product-stock {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.product-stock.in-stock {
  background: #d1fae5;
  color: #065f46;
}

.product-stock.out-of-stock {
  background: #fee2e2;
  color: #991b1b;
}

.product-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.seller-info {
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.seller-info h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.seller-info p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-add-cart-product,
.btn-wishlist-product,
.btn-collection-product {
  flex: 1;
  min-width: 180px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-add-cart-product {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-add-cart-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-wishlist-product,
.btn-collection-product {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-wishlist-product:hover,
.btn-collection-product:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-wishlist-product.active,
.btn-collection-product.active {
  background: var(--primary);
  color: white;
}

/* Product Characteristics Section */
.product-characteristics {
  margin-top: 3rem;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.product-characteristics h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.characteristics-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.characteristic-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.characteristic-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.characteristic-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* User Announcements Section */
.user-announcements {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.user-announcements h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2rem 0;
}

/* Seller Products Section */
.seller-products-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.seller-products-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2rem 0;
}

.seller-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.seller-product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.seller-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.seller-product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f9fafb;
}

.seller-product-info {
  padding: 1rem;
}

.seller-product-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seller-product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.user-announcement-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.user-announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.user-announcement-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f9fafb;
  padding: 1rem;
}

.announcement-info {
  padding: 1.25rem;
}

.announcement-info h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.announcement-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.announcement-seller {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
}

.btn-buy-announcement {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-buy-announcement:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Responsive */
@media (max-width: 968px) {
  #product-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .main-image-container {
    height: 400px;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 2rem;
  }

  .announcements-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* ========================================
   REGRA GLOBAL FORÇADA - LARGURA 1530PX
   Esta regra sobrescreve TUDO
   ======================================== */
main,
section.filters,
section.dashboard-panels,
div.card-grid,
div.anuncios-grid,
div.checkout-container,
div.payment-container,
div.account-container,
div.contato-container,
div.anuncie-container,
div.email-logs-container,
div.test-container,
div.product-page,
div#admin-view,
div.admin-catalogo-container,
div.admin-produtos-container {
  max-width: var(--max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}



