/* Fontes Self-Hosted: Hanken Grotesk e Instrument Serif */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-body: #ffffff;
  --bg-soft: #f7f7f6;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f7f7f6;
  --border-subtle: #e5e5e5;
  --border-strong: #d1d1ce;

  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;

  --accent: #1d3a5c;
  --accent-hover: #142940;
  --accent-soft: #eef3f8;
  --accent-warm: #1d3a5c;
  --status-available: #1d3a5c;
  --status-reserved: #7a6e65;
  --status-sold: #8a8a8a;

  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);

  --container-max: 1240px;
  --transition: 0.22s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilitarios de secao SPA */
.page-section {
  animation: sectionIn 0.4s var(--transition) both;
}

.hidden {
  display: none !important;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container principal */
.main-content,
.page-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) clamp(56px, 8vw, 120px);
}

.page-container {
  padding-top: clamp(32px, 6vw, 72px);
}

.page-container.narrow {
  max-width: 840px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  line-height: 1;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-customer-mobile {
  display: none;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.cart-button:hover {
  background: #ececef;
}

.cart-button:active {
  transform: scale(0.97);
}

.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--bg-soft);
}

/* Hero */
.hero-section {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-description {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* Cabecalhos de secao */
.section-heading {
  margin-bottom: clamp(20px, 3.5vw, 36px);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.section-desc {
  margin-top: 8px;
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  color: var(--text-secondary);
  max-width: 580px;
}

/* Catalogo */
.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(24px, 4vw, 40px);
  align-items: start;
}

.filters-sidebar {
  position: sticky;
  top: 88px;
  padding-right: 8px;
}

.filter-group {
  margin-bottom: 26px;
}

.filter-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.search-input,
.filter-select,
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.search-input:focus,
.filter-select:focus,
.form-input:focus,
.form-textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(29, 29, 31, 0.08);
}

.filter-list {
  list-style: none;
}

.filter-item {
  margin-bottom: 4px;
}

.filter-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.filter-btn:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--text-primary);
  color: #fff;
  font-weight: 600;
}

.filter-btn .text-muted {
  color: inherit;
  opacity: 0.6;
}

/* Custom Combobox Moderno (Searchable Dropdown de Tecnicas) */
.filter-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.filter-header-row .filter-title {
  margin-bottom: 0;
}

.filter-clear-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-warm);
  cursor: pointer;
  text-decoration: underline;
  transition: opacity var(--transition);
}

.filter-clear-link:hover {
  opacity: 0.8;
}

.custom-combobox {
  position: relative;
  width: 100%;
}

.combobox-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.combobox-trigger:hover {
  border-color: var(--text-primary);
}

.combobox-trigger.active {
  border-color: var(--text-primary);
  background: var(--bg-soft);
  font-weight: 500;
}

.combobox-trigger:focus-visible {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.combobox-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.combobox-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.custom-combobox.open .combobox-icon {
  transform: rotate(180deg);
}

/* Popover Flutuante */
.combobox-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 100;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: comboboxIn 0.18s ease both;
}

.custom-combobox.open .combobox-popover {
  display: flex;
}

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

.combobox-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-soft);
}

.combobox-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.combobox-search-input {
  width: 100%;
  padding: 10px 12px 10px 34px;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
}

.combobox-search-input::placeholder {
  color: var(--text-muted);
}

.combobox-hint {
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.combobox-options-list {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
}

.combobox-options-list::-webkit-scrollbar {
  width: 6px;
}
.combobox-options-list::-webkit-scrollbar-track {
  background: transparent;
}
.combobox-options-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.combobox-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
  background: transparent;
  border: none;
  width: 100%;
}

.combobox-option:hover,
.combobox-option:focus {
  background: var(--bg-soft);
  outline: none;
}

.combobox-option.selected {
  background: rgba(29, 29, 31, 0.05);
  font-weight: 600;
}

.combobox-option-text {
  flex: 1;
  line-height: 1.35;
  word-break: break-word;
}

.combobox-option-check {
  color: var(--text-primary);
  flex-shrink: 0;
  display: inline-flex;
}

.combobox-empty {
  padding: 18px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.filter-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Barra de Filtros Ativos (Chips) */
.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  animation: comboboxIn 0.2s ease both;
}

.active-filter-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.active-filter-chip-remove {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.active-filter-chip-remove:hover {
  color: var(--text-primary);
}

.active-filter-clear-all {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  margin-left: auto;
  transition: color var(--transition);
}

.active-filter-clear-all:hover {
  color: var(--text-primary);
}

/* Grid de obras */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.artwork-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.artwork-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.artwork-card-action {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.artwork-card-action:focus-visible {
  outline: 3px solid var(--text-primary);
  outline-offset: -3px;
}

.artwork-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

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

.artwork-placeholder {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.artwork-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.status-badge-disponivel {
  color: var(--status-available);
}

.status-badge-reservada {
  color: var(--status-reserved);
}

.status-badge-vendida {
  color: var(--status-sold);
}

.artwork-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px 20px 24px;
  width: 100%;
}

.artwork-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.artwork-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.artwork-price {
  margin-top: auto;
  padding-top: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 48px);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
}

.modal-close:hover {
  background: #ececef;
}

/* Zoom da obra (lightbox) */
.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(8, 8, 9, 0.94);
  cursor: zoom-out;
}

.image-zoom-overlay.active {
  display: flex;
  animation: zoomFadeIn 0.2s ease both;
}

.image-zoom-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.zoom-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  cursor: pointer;
}

@keyframes zoomFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.artwork-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-view-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  cursor: zoom-in;
}

.zoom-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.thumbnails-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-item {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity var(--transition);
}

.thumb-item:hover,
.thumb-item.active {
  opacity: 1;
  outline: 2px solid var(--text-primary);
}

.detail-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.22;
  margin-bottom: 6px;
}

.spec-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.spec-label {
  color: var(--text-muted);
}

.spec-value {
  font-weight: 500;
  color: var(--text-primary);
}

/* Botoes */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #3a3a3c;
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-primary:disabled {
  background: var(--border-strong);
  color: #fff;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #ececef;
}

.btn-inline {
  width: auto;
}

/* Sacola */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.cart-item-media {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.cart-item-info {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-item-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 14px;
  color: var(--text-secondary);
}

.cart-item-warning {
  font-size: 12px;
  font-weight: 500;
  color: var(--status-reserved);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.cart-qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 2px;
  gap: 4px;
}

.cart-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  padding: 0;
  line-height: 1;
}

.cart-qty-btn:hover {
  background: var(--bg-soft);
  color: var(--color-accent);
}

.cart-qty-num {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
}

.cart-item-qty {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.cart-remove {
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.cart-remove:hover {
  color: var(--text-primary);
  background: var(--bg-soft);
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 4vw, 40px);
  padding: clamp(20px, 3vw, 28px);
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}

.summary-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.summary-total {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cart-empty {
  padding: clamp(48px, 8vw, 88px) 20px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}

.cart-empty-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  margin-bottom: 8px;
}

.cart-empty-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.loading-text {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
}

/* Checkout */
.checkout-form {
  margin-top: clamp(8px, 2vw, 16px);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
}

.checkout-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
  position: sticky;
  top: 88px;
}

.checkout-card {
  padding: clamp(20px, 3vw, 30px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--text-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.form-row:last-child {
  margin-bottom: 0;
}

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

.form-row-3 {
  grid-template-columns: 1fr 1fr 84px;
}

.form-row-cep {
  grid-template-columns: 140px 1fr;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Opcoes de frete */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.shipping-option:hover {
  border-color: var(--border-strong);
}

.shipping-option:has(input:checked) {
  border-color: var(--text-primary);
  background: var(--bg-soft);
}

.shipping-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--text-primary);
  flex: 0 0 auto;
}

.shipping-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.shipping-info strong {
  font-size: 14px;
  font-weight: 600;
}

.shipping-info small {
  font-size: 12px;
  color: var(--text-secondary);
}

.shipping-price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* Cupom */
.coupon-row {
  display: flex;
  gap: 8px;
}

.coupon-row .form-input {
  flex: 1 1 auto;
}

.coupon-row .btn-secondary {
  width: auto;
  flex: 0 0 auto;
  padding: 12px 20px;
}

.coupon-msg {
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}

/* Resumo */
.summary-card {
  padding: clamp(20px, 3vw, 26px);
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}

.summary-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-line strong {
  color: var(--text-primary);
  font-weight: 600;
}

.summary-total-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-total-line span:last-child {
  letter-spacing: -0.02em;
}

.lgpd-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

.lgpd-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--text-primary);
  flex: 0 0 auto;
}

.checkout-error {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fdf0e8;
  color: var(--status-reserved);
  font-size: 13px;
}

/* Sucesso */
.success-wrapper {
  text-align: center;
}

.success-card {
  padding: clamp(28px, 5vw, 56px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: #e8f5ee;
  color: var(--status-available);
}

.success-card .section-title {
  margin-bottom: 10px;
}

.success-card .section-desc {
  margin: 0 auto 28px;
}

.success-code-block {
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
}

.success-code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 6px 0 20px;
}

.success-total {
  font-size: 22px;
  font-weight: 700;
}

.success-card .btn-primary,
.success-card .btn-secondary {
  width: auto;
  min-width: 240px;
  margin: 0 auto;
}

.success-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 20px auto 24px;
  max-width: 520px;
}

/* Rastreio */
.tracking-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.tracking-row .search-input {
  flex: 1 1 auto;
}

.tracking-row .btn-primary {
  width: auto;
  flex: 0 0 auto;
  padding: 12px 24px;
}

.tracking-result {
  display: none;
}

.tracking-card {
  padding: clamp(20px, 3vw, 28px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.tracking-card h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tracking-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.tracking-status {
  display: inline-block;
  padding: 5px 12px;
  margin-left: 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tracking-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.tracking-section h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tracking-item {
  font-size: 13px;
  color: var(--text-secondary);
}

.tracking-total {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Conteudo institucional */
.institutional-content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 40px);
  line-height: 1.75;
}

.institutional-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.institutional-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
}

.institutional-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 40px) 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-subtle);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: var(--container-max);
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsividade */
@media (max-width: 980px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-aside {
    position: static;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
    padding-right: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 860px) {
  .artwork-detail-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-height: 94vh;
  }
}

@media (max-width: 820px) {
  .nav-customer-mobile {
    display: block;
  }

  .customer-header-action {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(20px, 4vw, 40px) 16px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-subtle);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 15px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    gap: 10px;
  }

  .brand-subtitle {
    display: none;
  }
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .artwork-card {
    border-radius: 16px;
  }

  .artwork-media {
    aspect-ratio: 1 / 1;
  }

  .artwork-badge {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 9.5px;
    letter-spacing: 0.01em;
  }

  .artwork-info {
    padding: 10px 10px 12px;
  }

  .artwork-title {
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .artwork-meta {
    font-size: 11px;
    line-height: 1.35;
  }

  .artwork-price {
    padding-top: 8px;
    font-size: 13px;
    font-weight: 700;
  }

  .artwork-card:hover {
    transform: none;
  }

  .modal-content {
    max-width: 100%;
    max-height: 96vh;
    padding: 16px;
    border-radius: 20px;
  }

  .main-view-image {
    aspect-ratio: 4 / 5;
  }

  .detail-info h2 {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    gap: 10px;
  }

  .artwork-info {
    padding: 8px 8px 10px;
  }

  .artwork-title {
    font-size: 14px;
  }

  .artwork-meta+.artwork-meta {
    display: none;
  }

  .form-row-2,
  .form-row-3,
  .form-row-cep {
    grid-template-columns: 1fr;
  }

  .cart-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
    padding-left: 92px;
  }

  .cart-summary {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cart-summary .btn-primary {
    width: 100%;
  }

  .coupon-row {
    flex-direction: column;
  }

  .coupon-row .btn-secondary {
    width: 100%;
  }

  .tracking-row {
    flex-direction: column;
  }

  .tracking-row .btn-primary {
    width: 100%;
  }

  .success-card .btn-primary,
  .success-card .btn-secondary {
    width: 100%;
    min-width: 0;
  }
}

/* Notificacoes modernas da loja */
.store-toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.store-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--text-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  animation: storeToastIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  pointer-events: auto;
  text-align: center;
}

.store-toast.leaving {
  animation: storeToastOut 0.2s ease both;
}

.store-toast-message {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

@keyframes storeToastIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes storeToastOut {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

/* Moldura neutra para obras sem foto cadastrada */
.artwork-placeholder-frame {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface-alt);
  color: var(--text-muted);
  gap: 8px;
  padding: 24px;
}
.artwork-placeholder-caption {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

/* ==========================================================================
   Autenticação e Área do Colecionador (Pri Artes)
   ========================================================================== */

/* Header: Acesso do Colecionador */
.customer-header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.auth-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.auth-header-btn:hover {
  background: var(--bg-soft);
  border-color: var(--border-strong);
}

.customer-dropdown-wrapper {
  position: relative;
}

.customer-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.customer-menu-trigger:hover {
  background: #eaeaea;
  border-color: var(--border-strong);
}

.customer-menu-trigger .chevron-icon {
  transition: transform var(--transition);
}

.customer-dropdown-wrapper.open .chevron-icon {
  transform: rotate(180deg);
}

.customer-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 150;
}

.customer-dropdown-wrapper.open .customer-dropdown-menu {
  display: block;
}

.customer-dropdown-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}

.customer-dropdown-item:hover {
  background: var(--bg-soft);
}

.customer-dropdown-logout {
  color: #b91c1c;
}

.customer-dropdown-logout:hover {
  background: #fef2f2;
}

.customer-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 5px 0;
}

/* Modal de Autenticação */
.auth-modal-card {
  max-width: 440px;
  padding: clamp(24px, 5vw, 40px);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-submit-btn {
  margin-top: 8px;
}

.auth-error-msg {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.4;
}

.auth-switch-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link:hover {
  color: var(--accent-hover);
}

/* Checkout: Banner de Login e Criação de Conta */
.checkout-logged-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.logged-banner-info {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.logged-banner-info strong {
  color: var(--text-primary);
}

.btn-text-sutil {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.btn-text-sutil:hover {
  color: var(--text-primary);
}

.checkout-account-creation {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.4;
}

.custom-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.checkout-password-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* Área do Colecionador / Minha Conta */
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.account-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.account-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
}

.account-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.account-user-info strong {
  font-size: 14px;
  color: var(--text-primary);
}

.account-user-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  width: auto;
}

.account-tabs-bar {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.account-tab-link {
  background: none;
  border: none;
  padding: 12px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.account-tab-link:hover,
.account-tab-link.active {
  color: var(--text-primary);
}

.account-tab-link.active {
  font-weight: 600;
}

.account-tab-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--text-primary);
}

.account-subtab-content {
  animation: sectionIn 0.22s ease both;
}

.account-loading-state {
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Lista de Pedidos do Colecionador */
.account-orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-order-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.account-order-card:hover {
  border-color: var(--border-strong);
}

.account-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.order-code-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-code-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.order-date-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Badges Tipográficos Sóbrios (100% livres de emojis e pontos de LED) */
.order-status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

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

.status-badge-pago {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge-pago_sem_estoque {
  background: #fef2f2;
  color: #991b1b;
}

.status-badge-preparacao {
  background: #e0e7ff;
  color: #3730a3;
}

.status-badge-enviado {
  background: #ecfdf5;
  color: #065f46;
}

.status-badge-entregue {
  background: #f0fdf4;
  color: #166534;
}

.status-badge-cancelado,
.status-badge-expirado {
  background: #f3f4f6;
  color: #6b7280;
}

.account-order-items {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.order-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-soft);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.order-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.order-item-qty {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  white-space: nowrap;
}

.account-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  flex-wrap: wrap;
  gap: 16px;
}

.order-footer-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  min-width: 0;
}

.order-code-meta, .order-item-details {
  min-width: 0;
}

.order-code-text, .order-item-title, .account-user-info span {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .account-tabs-bar { gap: 16px; }
  .account-order-items, .account-order-header, .account-order-footer { padding: 14px; }
  .order-code-meta, .order-item-row { flex-wrap: wrap; }
  .order-item-row { gap: 10px; }
  .order-item-price { margin-left: 66px; }
  .account-user-card { flex-wrap: wrap; border-radius: var(--radius-md); }
  .checkout-logged-banner { flex-wrap: wrap; }
  .btn-text-sutil { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .artwork-card, .artwork-image, .modal-overlay, .image-zoom-overlay, .account-subtab-content {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.order-total-highlight {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-footer-actions {
  display: flex;
  gap: 10px;
}

.btn-compact {
  padding: 8px 16px;
  font-size: 13px;
  width: auto;
}

.account-empty-state {
  text-align: center;
  padding: 64px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.account-empty-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.account-empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

/* Formulário de Perfil do Colecionador */
.account-profile-card {
  max-width: 680px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
}

.account-subheading {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.profile-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 28px 0;
}

.profile-actions {
  margin-top: 24px;
}

.profile-status-msg {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.4;
}

.profile-status-success {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}

.profile-status-error {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

/* Estilos literais extraidos de atributos HTML para CSP style-src-attr 'none'. */
/* Precisa vir apos .customer-header-action: o seletor desktop e definido
   abaixo da regra mobile original e estava reexibindo o login, criando overflow. */
@media (max-width: 820px) {
  .customer-header-action { display: none; }
}
.csp-store-style-001 { display: none; }
.csp-store-style-002 { display:none; }
.csp-store-style-003 { margin-bottom: 16px; }
.csp-store-style-004 { text-align: center; }
.csp-store-style-005 { margin-left: auto; margin-right: auto; }
.csp-store-style-006 { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.csp-store-style-007 { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--text-secondary); }
.csp-store-style-008 { grid-column: 1 / -1; padding: 40px; text-align: center; }
.csp-store-style-009 { grid-column: 1 / -1; padding: 60px 20px; text-align: center; border: 1px dashed var(--border-subtle); border-radius: 4px; }
.csp-store-style-010 { font-family: var(--font-serif); font-size: 20px; margin-bottom: 8px; }
.csp-store-style-011 { color: var(--text-secondary); font-size: 14px; }
.csp-store-style-012 { padding: 40px; text-align: center; }
.csp-store-style-013 { display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--text-muted);gap:12px;background:var(--bg-surface-alt); }
.csp-store-style-014 { color: var(--text-secondary); margin-bottom: 12px; font-size: 14px; }
.csp-store-style-015 { font-size: 24px; font-weight: 600; margin: 16px 0; }
.csp-store-style-016 { margin-bottom: 20px; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.csp-store-style-017 { font-size: 12px; color: var(--status-reserved); margin-top: 8px; }
.csp-store-style-018 { padding: 24px; text-align: center; color: var(--admin-danger); }
.csp-store-style-019 { text-align:center; padding: 20px; }
.csp-store-style-020 { color: var(--status-reserved); text-align:center; padding: 20px; }
.csp-store-style-021 { display:inline-block; margin:0; }
.csp-store-style-022 { margin-top: 16px; }
.csp-store-style-023 { font-family: monospace; }
