:root
{
  --primary: #2b5fde;
  --secondary: #edf2ff;
  --dark: #1f2a44;
  --gray: #6b778d;
  --bg: #f4f6fb;
  --border: #e1e6f2;
  --success: #2dbd6e;
  --danger: #e74c3c;
  --card-bg: #f8fafc;
  --primary-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--dark);
  transition: background 0.35s ease, color 0.35s ease;
}

body.drawer-open {
  overflow: hidden;
}

.container {
  width: min(1180px, 92vw);
  margin: 1.5rem auto 2rem;
}

.site-header {
  padding: 18px 20px 10px;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-brand-title {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
}

.site-brand-subtitle {
  font-size: 0.78rem;
  opacity: 0.7;
  color: #475569;
}

.site-header-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--card-bg, #ffffff);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  gap: 10px;
  border: 1px solid #e2e8f0;
}

.site-header-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: #0f172a;
}

.site-header-search input::placeholder {
  color: #94a3b8;
}

.site-header-search-btn {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.site-header-search-btn:hover {
  background: #1d4ed8;
}

.top-filter-bar {
  display: none;
}

.top-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

.filters-bar {
  padding: 0 20px 10px;
}

.filters-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.filters-main-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #d6dae2;
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.filters-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  flex: 1;
}

.store-header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.header-row-top {
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-row-middle {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.header-row-bottom {
  justify-content: center;
}

.category-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

@media (min-width: 768px) {
  .brand-logo {
    width: 52px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.85rem;
  }
}

.category-button-all {
  background: #f3f4f6;
  border: 1px solid #d6dae2;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.category-button-all:hover {
  background: #e5e7eb;
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.category-button-dropdown {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #d6dae2;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.category-button-dropdown .icon {
  font-size: 14px;
}

.category-button-dropdown .arrow {
  font-size: 10px;
  opacity: 0.7;
}

.category-dropdown-menu {
  position: absolute;
  top: 52px;
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  border: 1px solid #e5e7eb;
  width: 210px;
  overflow: hidden;
  z-index: 90;
  display: none;
  flex-direction: column;
  animation: dropdownFade 0.15s ease;
}

.dropdown-item {
  background: transparent;
  border: none;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #2f3640;
}

.dropdown-item:hover {
  background: #eef2ff;
}

.category-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  box-shadow: 12px 0 35px rgba(15, 23, 42, 0.2);
  transform: translateX(-110%);
  transition: transform 0.25s ease;
  z-index: 120;
  display: flex;
  flex-direction: column;
}

.category-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
}

.drawer-header button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #475569;
}

.drawer-body {
  padding: 12px 0;
  overflow-y: auto;
}

.drawer-body .dropdown-item {
  padding: 12px 20px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 110;
}

.drawer-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

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

.store-search-form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.store-search-input {
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  padding: 0.4rem 0.2rem;
  font-size: 0.9rem;
  flex: 1;
}

.store-search-input::placeholder {
  color: #94a3b8;
}

.store-search-btn {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.95rem;
  cursor: pointer;
  background: #4c1d95;
  color: #fff;
  font-weight: 600;
}

.store-search-btn:hover {
  background: #3c1682;
}

.search-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #8a8fa3;
  margin-bottom: 1.25rem;
}

.breadcrumb span {
  color: #1f2933;
  font-weight: 500;
}

.products-section {
  margin-top: 0.5rem;
}

.products-section h2 {
  margin: 0;
  font-size: 1.25rem;
}

.theme-toggle-btn {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  background: #f3f4f6;
  color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

.theme-toggle-btn:hover {
  background: #e5e7eb;
}

.theme-toggle-icon {
  font-size: 1rem;
}

/* Container da vitrine estilo Shopee */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 1.5rem;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.2s ease-out;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.product-thumb {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card .product-category {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.product-card .product-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-description {
  font-size: 12.5px;
  color: #4b5563;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.product-price-wrapper,
.modal-price-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.product-card .product-price {
  font-size: 17px;
  font-weight: 700;
  color: #1a73e8;
}

.product-price-original,
.modal-price-original {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 6px;
}

.product-discount-badge,
.modal-discount-badge {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
}

.badge-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-store--amazon {
  background: #fbbf24;
  border-color: #f59e0b;
  color: #1f2937;
}

.badge-store--shopee {
  background: #fb923c;
  border-color: #f97316;
  color: #111827;
}

.badge-store--ml {
  background: #ffe600;
  color: #182135;
}

.product-card .product-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.product-card .product-view-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
}

.hero {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  padding: 24px 16px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}

.hero p {
  margin: 6px auto 0;
  font-size: 0.85rem;
  max-width: 420px;
  opacity: 0.9;
}

.product-detail-header {
  justify-content: flex-start;
  gap: 16px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-color, #e5e5e5);
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.store:not(.dark-mode) .back-button {
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #333;
}

.store:not(.dark-mode) .back-button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}

.product-detail .breadcrumb {
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.product-detail-card {
  background: rgba(5, 10, 20, 0.85);
  border-radius: 22px;
  padding: 24px 26px 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: flex-start;
}

.product-detail-media {
  background: var(--card-bg, #0b1220);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-detail-category {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.product-detail-title {
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 600;
}

.product-detail-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-detail-current-price {
  font-size: 1.3rem;
  font-weight: 700;
}

.product-detail-original-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  opacity: 0.7;
}

.product-detail-discount-badge {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
}

.product-detail-description-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-detail-description {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-detail-description.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
}

.product-detail-toggle {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--text-muted, #bbb);
  cursor: pointer;
  padding: 0;
  margin-top: -4px;
  transition: 0.2s ease;
}

.product-detail-toggle:hover {
  color: var(--text-color, #fff);
}

.store:not(.dark-mode) .product-detail-toggle {
  color: #555;
}

.store:not(.dark-mode) .product-detail-toggle:hover {
  color: #222;
}

.product-detail-cta {
  margin-top: 10px;
  padding: 12px 26px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  background: #1d74f5;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  align-self: flex-start;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn.secondary {
  background: var(--dark);
}

.btn.danger {
  background: var(--danger);
}

.btn.ghost {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--dark);
}

.btn.small {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

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

.card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.card-body .description {
  margin: 0.5rem 0 1rem;
  color: var(--gray);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.category {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.admin-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.user-chip {
  background: var(--secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--primary);
  font-weight: 600;
}

.table-wrapper {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  text-align: left;
  padding: 0.9rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}

.actions {
  display: flex;
  gap: 0.4rem;
}

.actions form {
  margin: 0;
}

.badge {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.badge.success {
  background: rgba(45, 189, 110, 0.1);
  color: var(--success);
}

.badge.muted {
  background: #f1f1f1;
  color: var(--gray);
}

.admin-search-form {
  max-width: 1200px;
  margin: 20px auto 10px auto;
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-search-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-search-form input[type='text'],
.admin-search-form select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

.admin-search-form button {
  padding: 7px 16px;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.admin-search-form button:hover {
  background: #1e40af;
}

.admin-products-cards {
  display: none;
}

.admin-products-table {
  display: block;
}

.col-name {
  max-width: 420px;
}

.product-name-ellipsis {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-actions {
  width: 260px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.btn-small,
.btn.small {
  font-size: 0.8rem;
  padding: 6px 10px;
}

.btn-block {
  width: 100%;
  text-align: center;
  display: inline-block;
}

.product-name small {
  display: block;
  color: var(--gray);
  font-weight: 400;
}

.form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-amazon-import {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3f4f6;
  margin-bottom: 10px;
}

.amazon-import-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.amazon-import-row input[type='url'] {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

.amazon-import-row button {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: #1d4ed8;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.amazon-import-row button:hover:not(:disabled) {
  background: #1e40af;
}

.amazon-import-row button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.store-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-selector-title {
  font-weight: 600;
  color: #0f172a;
}

.store-selector-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.radio-pill:hover {
  border-color: #1d4ed8;
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.radio-pill input[type='radio'] {
  width: 16px;
  height: 16px;
  accent-color: #1d4ed8;
}

.radio-pill span {
  font-size: 14px;
}

label {
  font-size: 0.9rem;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

input,
textarea,
select {
  padding: 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  font-size: 1rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

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

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.auth {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 1rem;
  width: min(400px, 90vw);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
}

.alert {
  background: rgba(231, 76, 60, 0.15);
  color: var(--danger);
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
}

.link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
}

.modal-box {
  background: #ffffff;
  border-radius: 18px;
  max-width: 420px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  padding: 1.2rem;
  max-height: calc(90vh - 1.5rem);
  overflow-y: auto;
}

.modal-overlay.active .modal-box {
  animation: modalPop 0.25s ease-out;
}

.modal-body {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 18px;
  align-items: flex-start;
}

.modal-image-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image-wrapper {
  width: 100%;
  padding: 0.75rem;
  border-radius: 16px;
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.modal-product-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  max-height: 260px;
  display: block;
}

.modal-info-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-category {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.modal-price-current {
  font-size: 17px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 10px;
}

.modal-description {
  font-size: 0.92rem;
  line-height: 1.4rem;
  margin-bottom: 1.4rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
  color: #374151;
}

.modal-description p {
  margin: 0;
}

.modal-footer {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.buy-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: 999px;
  border: none;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  overflow: hidden;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.modal-buy-button {
  width: 100%;
  padding: 14px 0;
  font-size: 1.05rem;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  font-weight: 600;
  max-width: 320px;
}

.buy-button-label {
  position: relative;
  z-index: 1;
}

.buy-button-check {
  position: absolute;
  opacity: 0;
  transform: scale(0.4) translateY(8px);
  font-size: 18px;
  font-weight: 700;
  z-index: 1;
}

.buy-button.success .buy-button-label {
  opacity: 0;
}

.buy-button.success .buy-button-check {
  opacity: 1;
  animation: buy-check-pop 0.35s ease-out;
  transform: scale(1) translateY(0);
}

@keyframes buy-check-pop {
  0% {
    transform: scale(0.3) translateY(8px);
    opacity: 0;
  }
  60% {
    transform: scale(1.15) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes modalPop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .modal-product-image {
    max-height: 180px;
  }

  .modal-image-wrapper {
    padding: 0.4rem;
  }

  .modal-content {
    padding: 0.75rem;
  }

  .modal-description {
    font-size: 0.85rem;
    max-height: 220px;
  }

  .modal-buy-button {
    padding: 12px 0;
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .store-header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-row-top {
    justify-content: space-between;
  }

  .header-row-middle {
    justify-content: flex-start;
  }

  .header-row-bottom {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .site-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .site-brand {
    justify-content: center;
  }

  .site-header-search {
    width: 100%;
  }

  .theme-toggle-btn {
    align-self: flex-end;
  }

  .filters-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filters-main-trigger {
    align-self: flex-start;
  }

  .filters-pills {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filters-pills::-webkit-scrollbar {
    height: 4px;
  }

.filters-pills::-webkit-scrollbar-thumb {
  border-radius: 999px;
}

.products-empty-message {
  text-align: center;
  color: #6b7280;
  padding: 1rem 0;
}

@media (min-width: 901px) {
  .theme-toggle-btn {
    margin-left: auto;
  }
}
}

@media (max-width: 640px) {
  .hero {
    padding: 20px 12px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.85rem;
  }
  .admin-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    flex-direction: column;
  }

  .btn.small,
  .actions form button {
    width: 100%;
    text-align: center;
  }

  .products-grid {
    margin: 20px auto;
    padding: 0 12px;
  }

  .product-thumb {
    height: 160px;
  }

  .store-header-inner {
    padding-inline: 1rem;
  }

  .header-row-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .header-row-middle {
    justify-content: flex-start;
  }

  .header-row-bottom {
    width: 100%;
    justify-content: center;
  }

  .search-container {
    max-width: 100%;
  }

  .store-search-form {
    width: 100%;
  }

  #categoryDropdownMenu {
    display: none !important;
  }

  .admin-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search-left {
    width: 100%;
  }

  .admin-search-form input[type='text'],
  .admin-search-form select {
    flex: 1;
  }

  .admin-search-form button {
    width: 100%;
  }

  .category-dropdown-menu {
    position: absolute;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    top: 48px;
  }

  .modal-box {
    max-width: 95%;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image-wrapper {
    max-height: 220px;
  }

  .modal-title {
    font-size: 16px;
  }

  .modal-price-current {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .modal-box {
    width: 95%;
    max-height: 95vh;
  }

  .modal-close-btn {
    top: 10px;
    right: 15px;
  }
}

@media (max-width: 900px) {
  .site-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .site-brand {
    justify-content: center;
  }

  .site-header-search {
    width: 100%;
  }

  .theme-toggle-btn {
    align-self: flex-end;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-detail {
    padding: 14px 12px 28px;
  }

  .product-detail-card {
    padding: 18px 14px 20px;
  }

  .product-detail-title {
    font-size: 1.35rem;
  }

  .product-detail-image {
    max-height: 260px;
  }

  .product-detail-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .product-detail-title {
    font-size: 1.2rem;
  }
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

@media (max-width: 600px) {
  .admin-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
  }

  .admin-actions {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .admin-actions .btn,
  .admin-actions .user-chip {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .admin-search-form {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .admin-search-left {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .admin-search-left input,
  .admin-search-left select,
  .admin-search-form button {
    width: 100%;
  }

  table th,
  table td {
    padding: 0.75rem;
  }

  .actions {
    flex-direction: column;
    gap: 6px;
  }

  .actions .btn.small,
  .actions form button {
    width: 100%;
  }

  .admin:not(.auth) .form {
    max-width: 100%;
    padding: 10px;
  }

  .admin:not(.auth) .form input,
  .admin:not(.auth) .form textarea,
  .admin:not(.auth) .form select {
    width: 100%;
  }

  .grid.two {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .amazon-import-row {
    flex-direction: column;
    align-items: stretch;
  }

  .amazon-import-row button {
    width: 100%;
  }

  .auth-card {
    padding: 20px;
    width: min(420px, 92vw);
  }

  .auth .form input,
  .auth .form button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .admin-products-table {
    display: none;
  }

  .admin-products-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .admin-product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  .admin-product-card-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    font-weight: 600;
  }

  .admin-product-card-id {
    opacity: 0.7;
    font-size: 0.85rem;
  }

  .admin-product-card-name {
    flex: 1;
  }

  .admin-product-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .admin-product-card-status-active {
    background: #e5f8ea;
    color: #2f8f4e;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
  }

  .admin-product-card-status-inactive {
    background: #ffecec;
    color: #c0392b;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
  }

  .admin-product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .admin-product-card-actions .btn-block {
    width: 100%;
    text-align: center;
    display: inline-block;
  }

  .admin-product-card-actions form {
    width: 100%;
  }

  .admin-product-card-actions form .btn-block {
    width: 100%;
  }
}
/* ====== TEMA ESCURO GLOBAL ====== */
body.dark-mode {
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  color: #e2e8f0;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
  color: #f9fafb;
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode small,
body.dark-mode label {
  color: #e2e8f0;
}

body.dark-mode .top-filter-bar {
  background: #020617;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

body.dark-mode .category-button-all {
  background: #1e293b;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

body.dark-mode .category-button-all:hover {
  background: #0f172a;
}

body.dark-mode .category-button-dropdown {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

body.dark-mode .category-dropdown-menu {
  background: #020617;
  border-color: rgba(30, 64, 175, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

body.dark-mode .dropdown-item {
  background: transparent;
  color: #e5e7eb;
}

body.dark-mode .dropdown-item:hover {
  background: #0f172a;
}

body.dark-mode .store-search-form {
  background: #020617;
  border-color: rgba(148, 163, 184, 0.7);
}

body.dark-mode .site-header-search {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

body.dark-mode .site-header-search input {
  color: #e5e7eb;
}

body.dark-mode .site-header-search input::placeholder {
  color: #64748b;
}

body.dark-mode .site-header-search-btn {
  background: #3c1682;
  color: #e2e8f0;
}

body.dark-mode .site-header-search-btn:hover {
  background: #2f1067;
}

body.dark-mode .store-search-input {
  color: #e5e7eb;
}

body.dark-mode .store-search-input::placeholder {
  color: #64748b;
}

body.dark-mode .store-search-btn {
  background: #3c1682;
  color: #111827;
}

body.dark-mode .store-search-btn:hover {
  background: #3c1682;
}

body.dark-mode .theme-toggle-btn {
  background: #e5e7eb;
  color: #020617;
}

body.dark-mode .theme-toggle-btn:hover {
  background: #cbd5e1;
}

body.dark-mode .site-brand-title {
  color: #e5e7eb;
}

body.dark-mode .site-brand-subtitle {
  color: #94a3b8;
}

body.dark-mode .filters-main-trigger {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.6);
}

body.dark-mode .product-detail-media {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
}

body.dark-mode .product-detail-description {
  color: #e2e8f0;
}

body.dark-mode .product-detail-category {
  color: #94a3b8;
}

body.dark-mode .product-detail-title {
  color: #f9fafb;
}

body.dark-mode .back-button {
  color: #e5e7eb;
}

body.dark-mode .product-detail-cta {
  background: #1b63d4;
  color: #f9fafb;
}

/* Tema CLARO – página de detalhe */
.store:not(.dark-mode) .product-detail {
  background: #f3f5fb;
}

.store:not(.dark-mode) .product-detail-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 26px 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.store:not(.dark-mode) .product-detail-media {
  background: #f8fafc;
}

.store:not(.dark-mode) .product-detail-title {
  color: #111827;
}

.store:not(.dark-mode) .product-detail-category,
.store:not(.dark-mode) .breadcrumb {
  color: #6b7280;
}

.store:not(.dark-mode) .product-detail-description {
  color: #374151;
}

.store:not(.dark-mode) .product-detail-current-price {
  color: #111827;
}

.store:not(.dark-mode) .product-detail-original-price {
  color: #9ca3af;
}

/* Tema ESCURO – página de detalhe */
.store.dark-mode .product-detail {
  background: #020617;
}

.store.dark-mode .product-detail-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 22px;
  padding: 24px 26px 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.store.dark-mode .product-detail-media {
  background: #020617;
}

.store.dark-mode .product-detail-title,
.store.dark-mode .product-detail-description,
.store.dark-mode .breadcrumb {
  color: #e5e7eb;
}

body.dark-mode .product-card {
  background: #0b1120;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
}

body.dark-mode .radio-pill {
  background: #0b1120;
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

body.dark-mode .radio-pill:hover {
  border-color: #60a5fa;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

body.dark-mode .badge-store {
  background: #0f172a;
  border-color: #1f2937;
  color: #f8fafc;
}

body.dark-mode .badge-store--amazon {
  background: #facc15;
  border-color: #ca8a04;
  color: #0f172a;
}

body.dark-mode .badge-store--shopee {
  background: #fb923c;
  border-color: #ea580c;
  color: #0b0f1a;
}

body.dark-mode .product-card:hover {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9);
}

body.dark-mode .product-card .product-category {
  color: #94a3b8;
}

body.dark-mode .product-card .product-title {
  color: #e5e7eb;
}

body.dark-mode .product-card .product-description {
  color: #cbd5e1;
}

body.dark-mode .product-card .product-price {
  color: #4da3ff;
}

body.dark-mode .product-price-original,
body.dark-mode .modal-price-original {
  color: #64748b;
}

body.dark-mode .product-card .product-view-btn {
  background: #2563eb;
  color: #f9fafb;
}

body.dark-mode .product-card .product-view-btn:hover {
  background: #1d4ed8;
}

body.dark-mode .product-discount-badge,
body.dark-mode .modal-discount-badge {
  background: #22c55e;
}

body.dark-mode .product-thumb {
  background: #0b1120;
}

body.dark-mode .modal-box {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
}

body.dark-mode .modal-title {
  color: #f9fafb;
}

body.dark-mode .modal-price-current {
  color: #facc15;
}

body.dark-mode .modal-category {
  color: #9ca3af;
}

body.dark-mode .modal-description {
  color: #e5e7eb;
}

body.dark-mode .modal-image-wrapper {
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.8);
}

body.dark-mode .modal-close-btn {
  background: rgba(15, 23, 42, 0.6);
}

body.dark-mode .modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.75);
}

body.dark-mode .modal-footer {
  background: transparent;
}

body.dark-mode .buy-button {
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.5);
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #1f1b50, #31255a);
}

body.dark-mode .hero p {
  color: #cbd5e1;
}

body.dark-mode .breadcrumb {
  color: #94a3b8;
}

body.dark-mode .breadcrumb span {
  color: #f8fafc;
}

body.dark-mode .brand-title {
  color: #e5e7eb;
}

body.dark-mode .brand-subtitle {
  color: #9ca3af;
}

body.dark-mode .products-section h2 {
  color: #f8fafc;
}

body.dark-mode .category-drawer {
  background: #0b1120;
  border-right: 1px solid rgba(148, 163, 184, 0.3);
}

body.dark-mode .drawer-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  color: #f1f5f9;
}

body.dark-mode .drawer-header button {
  color: #cbd5e1;
}

body.dark-mode .drawer-body .dropdown-item {
  color: #e2e8f0;
}

body.dark-mode .drawer-body .dropdown-item:hover {
  background: #0f172a;
}
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}
