/* Mercado Livre product detail grid layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 16px;
}

.product-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 18px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #00a650;
  color: white;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 10;
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
  background: linear-gradient(180deg,#ffffff,#fbfbfb);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03) inset;
}

.product-info {
  text-align: left;
}

.product-title {
  font-size: 15px;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.25;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price-info {
  margin-bottom: 8px;
}

.original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 12px;
  display: block;
  margin-bottom: 4px;
}

.current-price {
  color: #222;
  font-size: 20px;
  font-weight: 700;
}

.shipping-info {
  color: #00a650;
  font-size: 12px;
  margin-bottom: 12px;
}

.view-product {
  display: inline-block;
  background: #ad2831; /* header red */
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.18s, transform 0.12s;
  width: 100%;
  text-align: center;
}

.view-product:hover {
  background: #941f28;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.empty-offers, .no-results, .empty-cart {
  text-align: center;
  padding: 48px 24px;
  grid-column: 1 / -1;
}

.empty-cart-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.btn-primary {
  background: #ad2831; /* primary ad2831 */
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}
.ml-stars {
  color: #f7b500;
  font-size: 1.2rem;
  display: inline-block;
}
.ml-rating-text {
  color: #888;
  margin-left: 8px;
}
.ml-price-section {
  margin: 18px 0 12px 0;
}
.ml-product-detail-grid-ml {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: flex-start;
}
.ml-gallery-col {
  position: sticky;
  top: 30px;
  align-self: flex-start;
}
.ml-buybox-col {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 32px 28px 28px 28px;
  max-width: 420px;
  position: sticky;
  top: 30px;
  /* sobrepor a imagem principal como no modelo */
  margin-left: auto;  
  z-index: 30;
  align-self: normal;
}
.ml-original-price-large {
  text-decoration: line-through;
  color: #888;
  margin-right: 10px;
}
.ml-discount-percentage {
  color: #00a650;
  font-weight: 600;
  margin-right: 10px;
}
.ml-current-price-large {
  font-size: 2.2rem;
  color: #3483fa;
  font-weight: 700;
}
.ml-shipping-section {
  margin-bottom: 10px;
}
.ml-shipping-option strong {
  color: #00a650;
}
.ml-stock-section {
  margin-bottom: 10px;
}
.ml-stock-available {
  color: #00a650;
}
.ml-stock-unavailable {
  color: #d32f2f;
}
.ml-purchase-form {
  margin: 18px 0 18px 0;
}
.ml-quantity-section {
  margin-bottom: 10px;
}
.ml-quantity-select {
  width: 60px;
  margin-left: 8px;
}
.ml-purchase-buttons {
  display: flex;
  gap: 10px;
}
.ml-btn-add-cart {
  background: #fff;
  color: #3483fa;
  border: 2px solid #3483fa;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ml-btn-add-cart:hover {
  background: #e3f0ff;
}
.ml-btn-buy-now {
  background: #3483fa;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.ml-btn-buy-now:hover {
  background: #2968c8;
}
.ml-guarantees {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.ml-guarantee-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 0.98rem;
}
.ml-guarantee-icon {
  font-size: 1.2rem;
}
.ml-product-description-section {
  margin-top: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 24px;
}
.ml-description-content {
  color: #444;
  font-size: 1.1rem;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .ml-product-detail-flex {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .ml-main-image-area {
  min-width: 0;
  max-width: 640px;
  }
  .ml-product-info-detail {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .ml-main-image {
    width: 100%;
    max-width: 640px;
    max-height: 420px;
    object-fit: contain;
    border-radius: 8px;
  }
  .ml-main-image {
    max-width: 480px; /* ajustado conforme solicitado */
    width: 85%;
    max-height: 640px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  }
  .ml-product-description-section {
    padding: 12px;
  }
}
/* Thumbnails for product detail */
.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}
.thumbnail-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: border 0.12s, box-shadow 0.12s, transform 0.08s;
  background: #fff;
}
.thumbnail-image:hover {
  border: 2px solid #3483fa;
  box-shadow: 0 6px 18px rgba(52,131,250,0.12);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .thumbnails {
    gap: 5px;
  }
  .thumbnail-image {
    width: 40px;
    height: 40px;
  }
}
.ml-thumbnail-image:active {
  border: 2px solid #3483fa;
  box-shadow: 0 2px 8px rgba(52,131,250,0.15);
}
.ml-thumb-active {
  border: 2px solid #3483fa;
  box-shadow: 0 2px 8px rgba(52,131,250,0.15);
  width: 50%;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Proxima Nova', -apple-system, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
  background-color: #efefef;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header estilo Mercado Livre */
.ml-header {
  background-color: #ad2831;
  /*background-image: url('/images/others/fundo.png');*/
  box-shadow: 0 1px 3px rgba(0,0,0,0.13);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo h1 {
  color: #3483fa;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
}

.logo a {
  text-decoration: none;
}

/* Barra de pesquisa */
.search-form {
  display: flex;
  flex: 1;
  max-width: 600px;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #e6e6e6;
  border-right: none;
  border-radius: 2px 0 0 2px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2) inset;
}

.search-input:focus {
  border-color: #3483fa;
  box-shadow: 0 0 0 1px #3483fa, 0 1px 2px rgba(0,0,0,0.2) inset;
}

.search-btn {
  background: #e6e6e6;
  border: 2px solid #e6e6e6;
  border-left: none;
  border-radius: 0 2px 2px 0;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  transition: background-color 0.2s;
}

.search-btn:hover {
  background: #d9d9d9;
}

/* Menu usuário */
.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
}

.user-avatar {
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* ===== Auth / Login styles (suavizado - Fiore SAP B1 like) ===== */
.auth-page {
  background: linear-gradient(180deg, #f6f7f9 0%, #ffffff 50%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.auth-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(23, 31, 39, 0.08);
  padding: 28px 28px 36px;
  border: 1px solid rgba(34,34,34,0.03);
  transition: transform .18s ease, box-shadow .18s ease;
}
.auth-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23,31,39,0.10); }
.auth-header { text-align: center; margin-bottom: 20px; }
.auth-header .logo { font-size: 1.6rem; color: #ad2831; font-weight: 700; }
.auth-header h2 { margin: 6px 0 4px; font-size: 1.4rem; color: #222; }
.auth-header p { color: #6b7280; margin-bottom: 12px; }
.auth-form { display: block; }
.form-group { margin-bottom: 12px; }
.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e6e9ee;
  background: #fbfdff;
  outline: none;
  transition: box-shadow .12s ease, border-color .12s ease;
}
.form-input:focus { border-color: #8ab2ff; box-shadow: 0 6px 18px rgba(51,102,255,0.08); }
.btn-primary.auth-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg,#2b81f5 0%,#1e5fd0 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(43,129,245,0.18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary.auth-btn:active { transform: translateY(1px); }
.btn-secondary { display:inline-block; padding:8px 14px; border-radius:10px; border:1px solid #e6e9ee; color:#444; background:#fff; text-decoration:none; }
.auth-divider { display:flex; align-items:center; gap:10px; margin:18px 0; }
.auth-divider span { display:block; margin:auto; color:#9aa3af; }
.error-message { background:#fff2f2; border:1px solid #ffd1d1; color:#8a1f1f; padding:10px 12px; border-radius:8px; margin:10px 0; }
.back-home { text-align:center; margin-top:12px; }

/* When header exists on page, push auth card below and center in remaining space */
.auth-page.with-header { display:block; padding:0; background: #f6f7f9; }
.auth-page.with-header .auth-container { margin: 40px auto; max-width: 480px; }
.auth-page.with-header .auth-card { margin-top: 12px; }

@media (max-width:480px) {
  .auth-card { padding:18px; border-radius:10px; }
  .auth-header h2 { font-size:1.2rem; }
}

/* End auth styles */

.user-link {
  color: #fdfcfc;
  margin-left: 0;
  z-index: auto;
  padding: 5px 0;
  transition: color 0.2s;
}

.user-link:hover {
  color: #3483fa;
  text-decoration: underline;
}

.cart-link {
  background: #ffffff;
  color: rgb(0, 0, 0) !important;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 500;
  transition: background-color 0.2s;
}

.cart-link:hover {
  background: #c8b029;
  color: white !important;
}

.cart-link.active {
  background: #2968c8;
}

.user-dropdown {
  position: relative;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}

.user-toggle:focus { outline: none; }

.user-dropdown .dropdown-content {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23,31,39,0.12);
  padding: 12px;
  display: none;
  z-index: 2000;
}

.user-dropdown:focus-within .dropdown-content,
.user-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-header { display:flex; gap:10px; align-items:center; padding-bottom:8px; border-bottom:1px solid #eee; margin-bottom:8px; }
.dropdown-header .header-name { font-weight:700; color:#222; }
.dropdown-header .header-link a { color:#666; text-decoration:none; font-size:13px; }
.dropdown-list { display:flex; flex-direction:column; gap:6px; }
.dropdown-item { color:#333; text-decoration:none; padding:8px 6px; border-radius:6px; }
.dropdown-item:hover { background:#f5f7fb; }
.dropdown-separator { height:1px; background:#eee; margin:8px 0; }

.user-greeting {
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
}

/* Menu de categorias */
.categories-nav {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 8px 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.category-link {
  display: inline-block;
  color: #666;
  text-decoration: none;
  padding: 8px 12px;
  margin-right: 8px;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.2s;
  min-width: 90px;
  text-align: center;
}

.category-link:hover {
  background: rgba(52, 131, 250, 0.1);
  color: #fa3434;
}

.category-icon {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}

.category-text {
  display: block;
  font-size: 11px;
  line-height: 1.2;
}

/* Seção ofertas */
.ofertas-section {
  
  background: white;
  margin: 32px 0;
  padding: 24px 0;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 24px;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 4px;
}

.section-note {
  color: #999;
  font-size: 12px;
}

/* Grid de produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 16px;
}

.product-card {
  background: white;
  border-radius: 4px;
  border: 1px solid #e6e6e6;
  padding: 16px;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border-color: rgba(52, 131, 250, 0.3);
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #00a650;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  z-index: 10;
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 12px;
  background: #f5f5f5;
}

.product-info {
  text-align: left;
}

.product-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price-info {
  margin-bottom: 8px;
}

.original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
}

.current-price {
  color: #333;
  font-size: 20px;
  font-weight: normal;
}

.shipping-info {
  color: #00a650;
  font-size: 12px;
  margin-bottom: 12px;
}

.view-product {
  display: inline-block;
  background: #ad2831;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
  width: 100%;
  text-align: center;
}

.view-product:hover {
  background: #cf4f57;
  color: white;
  text-decoration: none;
}

/* Estados vazios */
.empty-offers, .no-results, .empty-cart {
  text-align: center;
  padding: 48px 24px;
  grid-column: 1 / -1;
}

.empty-cart-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.btn-primary {
  background: #3483fa;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background: #2968c8;
  color: white;
  text-decoration: none;
}

/* Página de detalhes do produto */
.breadcrumb {
  background: #f5f5f5;
  padding: 12px 0;
  font-size: 13px;
}

.breadcrumb a {
  color: #3483fa;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail-page {
  background: white;
  margin: 16px 0;
  padding: 24px 0;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.main-image-container {
  text-align: center;
}

.main-image {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #e6e6e6;
}

.product-info-detail {
  padding-left: 24px;
}

.product-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 16px;
  font-weight: normal;
  line-height: 1.3;
  height: auto;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.stars {
  color: #f5a623;
  margin-right: 8px;
  font-size: 14px;
}

.rating-text {
  color: #666;
  font-size: 13px;
}

.price-section {
  margin-bottom: 24px;
}

.discount-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.original-price-large {
  color: #999;
  text-decoration: line-through;
  font-size: 16px;
}

.discount-percentage {
  background: #00a650;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

.current-price-large {
  color: #333;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 8px;
}

.shipping-section {
  margin-bottom: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 4px;
}

.shipping-option {
  display: flex;
  flex-direction: column;
}

.shipping-option strong {
  color: #00a650;
  font-size: 14px;
}

.shipping-option span {
  color: #666;
  font-size: 13px;
}

.stock-section {
  margin-bottom: 24px;
  padding: 12px;
  border-radius: 4px;
}

.stock-available {
  color: #00a650;
  font-size: 14px;
}

.stock-unavailable {
  color: #ff6b6b;
  font-size: 14px;
}

.purchase-form {
  margin-bottom: 24px;
}

.quantity-section {
  margin-bottom: 16px;
}

.quantity-select {
  padding: 8px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  margin-left: 8px;
}

.purchase-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-add-cart {
  background: #3483fa;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-add-cart:hover {
  background: #2968c8;
}

.btn-buy-now {
  background: #00a650;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-buy-now:hover {
  background: #008f42;
}

.guarantees {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 4px;
}

.guarantee-item {
  text-align: center;
  flex: 1;
}

.guarantee-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.product-description-section {
  border-top: 1px solid #e6e6e6;
  padding-top: 24px;
}

.product-description-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
}

.description-content {
  color: #666;
  line-height: 1.6;
}

/* Página do carrinho */
.cart-page {
  margin: 16px 0;
}

.cart-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 24px;
  font-weight: normal;
}

.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.cart-item {
  background: white;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 16px;
  color: #333;
  align-self: normal;
  font-weight: normal;
}

.cart-item-price {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quantity-form {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.quantity-select {
  padding: 4px 8px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}

.remove-btn {
  background: none;
  border: none;
  color: #3483fa;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
}

.remove-btn:hover {
  color: #2968c8;
}

.cart-item-subtotal {
  text-align: right;
  font-size: 18px;
  color: #333;
}

.cart-summary {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.summary-card {
  background: white;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 24px;
}

.summary-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 16px;
  font-weight: normal;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #666;
  font-size: 14px;
}

.free-shipping {
  color: #00a650;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  color: #333;
  margin: 16px 0 24px 0;
}

.checkout-btn {
  width: 100%;
  background: #3483fa;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background-color 0.2s;
}

.checkout-btn:hover {
  background: #2968c8;
}

.payment-methods p {
  color: #666;
  font-size: 13px;
  margin-bottom: 8px;
}

.payment-icons {
  font-size: 18px;
  color: #666;
}

.continue-shopping {
  margin-top: 16px;
}

.continue-link {
  color: #3483fa;
  text-decoration: none;
  font-size: 14px;
}

.continue-link:hover {
  text-decoration: underline;
}

/* Páginas de autenticação */
.auth-page {
  background: #f5f5f5;
  min-height: 100vh;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 360px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-link {
  text-decoration: none;
}

.auth-header h2 {
  font-size: 24px;
  color: #333;
  margin: 16px 0 8px 0;
  font-weight: normal;
}

.auth-header p {
  color: #666;
  font-size: 14px;
}

.error-message {
  background: #ffe6e6;
  border: 1px solid #ffcccc;
  color: #cc0000;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #333;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #3483fa;
  box-shadow: 0 0 0 2px rgba(52, 131, 250, 0.1);
}

.form-help {
  color: #666;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.auth-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
  color: #999;
  font-size: 13px;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e6e6e6;
}

.auth-divider span {
  background: white;
  padding: 0 16px;
}

.auth-links {
  text-align: center;
  margin-bottom: 24px;
}

.auth-links p {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.btn-secondary {
  background: white;
  color: #3483fa;
  border: 1px solid #3483fa;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f8f9fa;
  color: #2968c8;
  text-decoration: none;
}

.back-home {
  text-align: center;
}

.back-home a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
}

.back-home a:hover {
  text-decoration: underline;
}

/* Footer estilo Mercado Livre */
.ml-footer {
  background: #333;
  color: white;
  margin-top: 48px;
  padding: 32px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 16px;
  text-align: center;
}

.footer-bottom p {
  color: #999;
  font-size: 12px;
}

/* Responsivo */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }
  
  .search-form {
    max-width: none;
    width: 100%;
  }
  
  .categories-nav {
    padding: 12px 0;
  }
  
  .category-link {
    min-width: 80px;
    margin-right: 4px;
    padding: 6px 8px;
  }
  
  .category-icon {
    font-size: 16px;
  }
  
  .category-text {
    font-size: 10px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 0 8px;
  }
  
  .product-card {
    padding: 12px;
  }
  
  .product-image {
    height: 140px;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .product-info-detail {
    padding-left: 0;
  }
  
  .main-image {
    height: 300px;
  }
  
  .cart-content {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 16px;
  }
  
  .cart-item-image {
    width: 80px;
    height: 80px;
  }
  
  .cart-item-subtotal {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e6e6e6;
  }
  
  .guarantees {
    flex-direction: column;
    gap: 16px;
  }
  
  .purchase-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    border-top: 1px solid #e6e6e6;
    z-index: 1000;
  }

  /* Ajustes mobile para product detail (classes ml-*) */
  .ml-product-detail-grid-ml {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ml-thumbnails-vertical {
    flex-direction: row;
    
    gap: 8px;
    
    margin-bottom: 8px;
  }
  .ml-main-image-area { padding: 0 8px; }
  .ml-main-image { width: 50%; max-width: 100%; max-height: 480px; }
  .ml-buybox-col {
    margin-left: 0;
    position: static;
    box-shadow: none;
    padding: 14px;
    border-radius: 8px;
  }
  .ml-purchase-buttons { flex-direction: column; }
  .ml-purchase-buttons .ml-btn-add-cart, .ml-purchase-buttons .ml-btn-buy-now { width: 100%; }
  .ml-product-title { font-size: 1.15rem; }
  .ml-current-price-large { font-size: 1.6rem; }
  
  .auth-card {
    margin: 16px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  
  .product-card {
    padding: 8px;
  }
  
  .product-image {
    height: 120px;
  }
  
  .current-price {
    font-size: 16px;
  }
  
  .current-price-large {
    font-size: 24px;
  }
}
