.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn,
.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 86, 214, 0.26);
}

.btn:hover,
.btn:focus-visible,
.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.btn.secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: #273345;
  box-shadow: none;
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  border-color: #9fb8e6;
  color: var(--brand-strong);
  background: #f8fbff;
}

.btn.danger {
  background: #fff;
  border-color: rgba(198, 32, 52, 0.3);
  color: var(--danger);
}

.btn.danger:hover,
.btn.danger:focus-visible {
  background: #fff4f6;
  border-color: rgba(198, 32, 52, 0.45);
}

input,
textarea,
select,
.input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus,
.input:focus {
  border-color: #8fb1ee;
  box-shadow: 0 0 0 3px rgba(0, 86, 214, 0.14);
  outline: none;
}

.input.is-invalid,
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: rgba(198, 32, 52, 0.6);
  box-shadow: 0 0 0 3px rgba(198, 32, 52, 0.12);
}

.input.is-valid,
input.is-valid,
textarea.is-valid,
select.is-valid {
  border-color: rgba(16, 138, 76, 0.62);
  box-shadow: 0 0 0 3px rgba(16, 138, 76, 0.12);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #c2d6f8;
  background: #e8f0ff;
  color: #1547a5;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
}

.badge.compat {
  background: #def7ee;
  border-color: #9ed9bd;
  color: #0f6a43;
}

.badge-chip {
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 8px;
  border: 1px solid transparent;
}

.badge-chip.primary {
  background: #e4eeff;
  color: #1547a5;
  border-color: #bad0f5;
}

.badge-chip.accent {
  background: #fff1e4;
  color: #9f4d00;
  border-color: #ffd2ad;
}

.badge-chip.warn {
  background: #fff6d8;
  color: #8b6100;
  border-color: #ecd58b;
}

.badge-chip.danger {
  background: #fff0f2;
  color: #b02035;
  border-color: #f0b9c1;
}

.badge-chip.deal {
  background: #def7ee;
  color: #0f6a43;
  border-color: #a3dec2;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
}

.price {
  font-weight: 700;
  color: #081328;
}

.compare {
  color: var(--ink-faint);
  text-decoration: line-through;
  font-size: 13px;
}

.product-card-pix {
  margin-top: -2px;
  color: #b6922e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rating {
  font-size: 12px;
  color: var(--ink-faint);
}

.breadcrumb {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
}

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.sort-bar select {
  width: auto;
  min-width: 170px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.pagination button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 7px 10px;
}

.pagination button:disabled {
  background: var(--brand-soft);
  border-color: #a8c0ee;
  color: var(--brand-strong);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.form-card input,
.form-card textarea,
.form-card select {
  margin-bottom: 10px;
}

.notice {
  background: #f7faff;
  border: 1px dashed #c9d8f0;
  border-radius: 12px;
  padding: 12px;
}

.whatsapp {
  background: #17b35f;
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 700;
  border: 1px solid transparent;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  background: #0d9e50;
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
  max-width: calc(100% - 20px);
}

.card.is-out {
  opacity: 0.72;
}

.card.is-out img {
  filter: grayscale(0.65);
}

.attention {
  margin: 12px 0;
  border: 1px solid #ffd2ad;
  background: #fff3e7;
  border-radius: 12px;
  padding: 12px;
}

.pdp-gallery {
  display: grid;
  gap: 10px;
}

.pdp-main {
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.pdp-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.2s ease;
  cursor: zoom-in;
}

.pdp-main img.zoomed {
  transform: scale(1.85);
  cursor: zoom-out;
  transform-origin: center;
}

.pdp-main img.is-loading {
  opacity: 0.12;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(8, 16, 40, 0.58);
  color: #fff;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.pdp-thumbs button {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.pdp-thumbs button.active {
  border-color: #93b3eb;
  box-shadow: 0 0 0 3px rgba(0, 86, 214, 0.12);
}

.pdp-thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #0f172a;
  color: #fff;
  padding: 12px 15px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 110;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal,
.drawer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  background: #f6f9ff;
  font-size: 12px;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

@media (max-width: 980px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark production components aligned with the landing reference */
.btn,
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #0a0e17;
  box-shadow: 0 14px 34px rgba(255, 215, 0, 0.16);
}

.btn:hover,
.btn:focus-visible,
.btn.primary:hover,
.btn.primary:focus-visible {
  background: linear-gradient(135deg, #ffe45e 0%, #ffb743 100%);
}

.btn.secondary,
.btn.danger {
  background: rgba(15, 23, 42, 0.78);
  color: var(--ink);
  border-color: rgba(71, 85, 105, 0.75);
}

.btn.secondary:hover,
.btn.secondary:focus-visible,
.btn.danger:hover,
.btn.danger:focus-visible {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 215, 0, 0.26);
  color: var(--accent);
}

input,
textarea,
select,
.input,
.sort-bar,
.form-card,
.notice,
.attention,
.pdp-main,
.pdp-thumbs button,
.modal,
.drawer,
.table-wrap,
th,
.pagination button {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(10, 14, 23, 0.98));
  color: var(--ink);
  border-color: rgba(55, 65, 81, 0.56);
}

input::placeholder,
textarea::placeholder,
.input::placeholder {
  color: rgba(156, 163, 175, 0.72);
}

input:focus,
textarea:focus,
select:focus,
.input:focus {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.badge {
  border-color: rgba(255, 215, 0, 0.22);
  background: rgba(255, 215, 0, 0.1);
  color: var(--accent);
}

.badge.compat,
.badge-chip.deal {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.24);
  color: #86efac;
}

.badge-chip.primary {
  background: rgba(0, 102, 255, 0.12);
  color: #8bb5ff;
  border-color: rgba(0, 102, 255, 0.22);
}

.badge-chip.accent {
  background: rgba(255, 215, 0, 0.12);
  color: #ffe58a;
  border-color: rgba(255, 215, 0, 0.22);
}

.badge-chip.warn {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd86e;
  border-color: rgba(255, 215, 0, 0.22);
}

.badge-chip.danger {
  background: rgba(207, 54, 80, 0.14);
  color: #ffb4c2;
  border-color: rgba(207, 54, 80, 0.24);
}

.price {
  color: #fff2bf;
}

.compare,
.rating,
.breadcrumb,
th {
  color: var(--ink-soft);
}

.sort-bar select {
  min-width: 170px;
}

.pagination button:disabled {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.2);
  color: rgba(255, 215, 0, 0.72);
}

.notice {
  border-style: solid;
  border-color: rgba(255, 215, 0, 0.18);
}

.attention {
  border-color: rgba(255, 215, 0, 0.24);
  background: rgba(255, 165, 0, 0.08);
}

.pdp-main img,
.pdp-thumbs button,
table td {
  background: transparent;
}

.pdp-thumbs button.active {
  border-color: rgba(255, 215, 0, 0.34);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

th,
td {
  border-bottom-color: rgba(55, 65, 81, 0.44);
}
