:root { --surface: #fff; --surface-soft: #f8fafc; --border: #e3e7ed; --heading: #16324f; color-scheme: light; }
.close { display: inline-flex; align-items: center; gap: 2px; width: auto; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 36px; font-weight: 700; line-height: 1; box-shadow: none; }
.close-label { font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; }
.close-icon { display: grid; place-items: center; width: 44px; height: 44px; }
.close:hover { color: var(--orange); filter: none; }
#detail { padding-top: 80px; }
.action-dialog { width: min(520px, 92vw); padding: 64px 30px 28px; background: var(--surface); color: var(--text); border: 1px solid var(--border); max-height: 90dvh; overflow-wrap: anywhere; }
.action-dialog-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 19px; border: 1px solid #f5cfb3; border-radius: 16px; background: #fff2e8; color: #b94b0a; }
.action-dialog > .eyebrow { display: block; font-size: 10px; line-height: 1.7; letter-spacing: 1.3px; }
.action-dialog h2 { margin: 10px 0 12px; color: var(--heading); font-size: 26px; line-height: 1.3; letter-spacing: -.7px; }
.action-dialog > p { margin: 0; font-size: 15px; line-height: 1.7; }
.action-dialog-details { list-style: none; display: grid; gap: 12px; margin: 20px 0; padding: 17px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.action-dialog-details li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.65; color: var(--text); }
.action-dialog-details li::before { content: ''; position: absolute; top: .62em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.action-dialog > .action-dialog-note { padding-left: 12px; border-left: 3px solid var(--orange); font-size: 13px; font-weight: 600; color: var(--heading); }
.action-dialog .action-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 25px; gap: 10px; }
.action-dialog-actions button { min-width: 0; min-height: 48px; justify-content: center; padding: 12px; font-size: 14px; line-height: 1.5; text-align: center; }
.action-dialog[data-kind="danger"] .action-dialog-icon { background: #fff0ee; border-color: #f3c8c2; color: #b52f29; }
.action-dialog[data-kind="danger"] .primary { background: #b93326; color: #fff; }
[data-theme="dark"] .action-dialog-icon { background: #35291f; border-color: #68452d; color: #ffad72; }
[data-theme="dark"] .action-dialog[data-kind="danger"] .action-dialog-icon { background: #3e2428; border-color: #784048; color: #ffb2a8; }
@media (max-width: 520px) {
  .action-dialog { padding: 60px 20px 22px; }
  .action-dialog h2 { font-size: 23px; }
  .action-dialog-details { padding: 14px; }
  .action-dialog .action-dialog-actions { grid-template-columns: minmax(0, 1fr); }
}
.header { position: relative; z-index: 6; }
.header .search { position: relative; }
.merchant-banner .banner-icon { width: 70px; height: 76px; flex-shrink: 0; padding: 19px 16px; }
.banner-icon > svg { display: block; }
.store-search-suggestions { position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; right: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 16px 40px #07172824; }
.store-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--border); }
.store-search-heading strong { font-size: 13px; color: var(--heading); }
.store-search-heading > span { font-size: 12px; color: var(--muted); }
.store-search-list { list-style: none; margin: 0; padding: 5px; max-height: min(380px, 50dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.store-search-option { display: flex; align-items: center; gap: 13px; padding: 12px 10px; border-radius: 8px; min-width: 0; }
.store-search-list li + li { border-top: 1px solid var(--border); }
.store-search-option:hover, .store-search-option[aria-selected="true"] { background: var(--surface-soft); box-shadow: inset 3px 0 var(--orange); }
.store-search-option:focus-visible { outline-offset: -3px; }
.store-search-photo { flex: 0 0 64px; width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--surface-soft); color: var(--navy); }
.store-search-photo > img { width: 100%; height: 100%; object-fit: cover; }
.store-search-photo .store-logo-art { width: 100%; height: 100%; }
.store-search-details { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.store-search-details strong { font-size: 16px; line-height: 1.4; font-weight: 800; color: var(--heading); overflow-wrap: anywhere; }
.store-search-category { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.5; }
.store-search-description, .store-search-address { font-size: 13px; color: var(--muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-search-hint { margin: 0; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.6; color: var(--muted); background: var(--surface-soft); }
.store-search-empty { margin: 0; padding: 20px 16px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.search > .store-search-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 650px) {
  .store-search-option { padding: 11px 8px; gap: 11px; }
  .store-search-photo { flex-basis: 56px; width: 56px; height: 56px; }
  .store-search-details strong { font-size: 15px; }
}
.site-footer { display: block; background: var(--surface); border-color: var(--border); padding-top: 40px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 38px; }
.footer-grid h2 { font-size: 16px; margin: 0 0 16px; color: var(--heading); letter-spacing: -.3px; }
.footer-grid p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 13px 0; }
.footer-grid nav > a, .footer-contact > a { display: block; font-size: 13px; line-height: 1.7; margin: 9px 0; color: var(--muted); overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--heading); text-decoration: underline; text-underline-offset: 4px; }
.footer-local { color: var(--muted); font-size: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--border); }
.footer-bottom small, .footer-bottom > span { font-size: 12px; color: var(--muted); }
.legal-back { display: inline-block; color: var(--heading); font-size: 13px; font-weight: 600; margin: 3px 0 24px; }
.legal-heading { padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.legal-heading h1 { color: var(--heading); font-size: clamp(28px,3.5vw,40px); letter-spacing: -1px; margin: 15px 0; }
.legal-heading h1:focus { outline: none; }
.legal-heading > p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 740px; }
.legal-date { color: var(--muted); font-size: 12px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.legal-nav a { font-size: 13px; color: var(--heading); border: 1px solid var(--border); padding: 11px 15px; border-radius: 8px; background: var(--surface); }
.legal-nav a[aria-current="page"] { border-color: #d58046; background: #fff3e9; color: #97440e; font-weight: 700; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 26px; align-items: start; }
.legal-summary { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; position: sticky; top: 20px; }
.legal-summary > strong { color: var(--heading); font-size: 13px; display: block; margin-bottom: 12px; }
.legal-summary > button { display: block; text-align: left; font-size: 12px; line-height: 1.6; color: var(--muted); background: none; padding: 7px 0; }
.legal-help { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.legal-help strong, .legal-help a { display: block; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; color: var(--heading); margin: 5px 0; }
.legal-article { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 5px 32px 28px; min-width: 0; }
.legal-article section { padding: 24px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 24px; }
.legal-article h2 { font-size: 20px; color: var(--heading); letter-spacing: -.4px; line-height: 1.5; margin: 0 0 15px; }
.legal-article p, .legal-article li { font-size: 14px; color: var(--muted); line-height: 1.9; }
.legal-article li { margin-bottom: 10px; }
.legal-article ul { padding-left: 20px; }
.legal-article a { color: var(--heading); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-contact { padding: 18px; border-radius: 9px; background: var(--surface-soft); border: 1px solid var(--border); display: grid; gap: 9px; font-size: 13px; line-height: 1.7; color: var(--heading); }
.legal-contact span { color: var(--muted); }
.legal-table-wrap { overflow-x: auto; }
.legal-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; color: var(--muted); }
.legal-table th, .legal-table td { padding: 13px 10px; border-bottom: 1px solid var(--border); line-height: 1.7; vertical-align: top; }
.legal-table th { color: var(--heading); background: var(--surface-soft); }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.legal-actions .outline { font-size: 13px; text-decoration: none; }
.legal-actions p { width: 100%; margin: 0; }
.legal-reference { font-size: 12px !important; margin: 24px 0 0; }
form .terms-check { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 9px; }
.terms-check input { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; flex-shrink: 0; accent-color: #c85d15; }
.terms-check span { font-size: 13px; line-height: 1.8; font-weight: 400; color: var(--muted); }
.terms-check a { color: var(--heading); font-weight: 600; text-decoration: underline; }
[data-theme="dark"] .legal-nav a[aria-current="page"] { background: #493226; color: #ffc69d; }
@media(max-width:750px) {
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .site-footer { padding-bottom: 100px; }
  .legal-layout { grid-template-columns: minmax(0,1fr); }
  .legal-summary { position: static; }
  .legal-summary > button { display: none; }
  .legal-summary > strong { display: none; }
  .legal-help { border: 0; margin: 0; padding: 0; }
  .legal-heading, .legal-article { padding: 23px 20px; }
  .legal-article { padding-top: 0; }
  .legal-nav a { flex: 1 1 45%; padding: 10px; font-size: 12px; }
  .legal-contact { padding: 14px; }
  .legal-article h2 { font-size: 19px; }
}
.store-card-contact { margin-bottom: 17px; }
.store-card-contact .store-address { margin-bottom: 0; }
.store-phone { display: flex; align-items: baseline; gap: 7px; margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.store-phone > span:first-child { color: var(--heading); }
.store-profile-meta .store-phone { margin-top: 6px; }
.store-phone a, .store-website a { color: var(--heading); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.store-website { margin: 6px 0 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.store-profile-meta .store-website { margin-top: 6px; }
.store-profile-contact { min-width: 0; }
form .store-website-field > label:first-child { margin-bottom: 8px; }
form .store-website-field .no-website-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  margin: 0;
  cursor: pointer;
}
form .no-website-option input { width: 18px; height: 18px; margin: 0; accent-color: #c85d15; }
.store-website-field input[type="url"]:disabled { opacity: .65; }
.store-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--surface-soft); color: var(--muted); }
.store-image-placeholder > span { font-size: 36px; opacity: .45; }
#store-editor { width: min(760px, 94vw); }
.store-branding-editor { margin: 26px 0; padding-top: 22px; border-top: 1px solid var(--border); }
.store-branding-editor h3 { margin: 0 0 6px; font-size: 19px; color: var(--heading); }
.store-branding-editor > p { font-size: 15px; margin: 8px 0 20px; }
.branding-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 18px; margin: 25px 0; }
.branding-preview > div { min-width: 0; }
.branding-preview-label { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: 1px; color: var(--muted); font-weight: 800; }
.branding-card, .branding-page { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; height: calc(100% - 24px); }
.branding-main { aspect-ratio: 12 / 5; background: var(--surface-soft); }
.branding-banner { aspect-ratio: 8 / 3; background: var(--surface-soft); }
.branding-main, .branding-banner { position: relative; overflow: hidden; }
.branding-main > *, .branding-banner > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.branding-card-body, .branding-page-body { padding: 30px 16px 18px; position: relative; }
.branding-preview .store-logo { position: absolute; top: -24px; width: 48px; height: 48px; border-radius: 13px; border-width: 3px; }
.branding-preview strong { display: block; color: var(--heading); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.branding-preview small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.branding-preview p { font-size: 13px; margin: 6px 0 0; overflow-wrap: anywhere; line-height: 1.7; }
.branding-upload-fields { display: grid; gap: 6px; }
.branding-upload-fields label { margin: 10px 0 8px; }
.branding-upload-fields input[type="file"] { display: block; width: 100%; min-width: 0; border: 1px dashed var(--border); background: var(--surface-soft); color: var(--text); border-radius: 9px; padding: 12px; font-size: 14px; }
.branding-upload-fields input::file-selector-button { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; color: var(--heading); padding: 7px 10px; margin-right: 10px; font: inherit; cursor: pointer; }
.branding-file-upload { display: flex; align-items: center; gap: 12px; min-width: 0; }
.branding-file-upload input[type="file"] { flex: 1 1 0%; width: 0; }
.branding-upload-thumbnail { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); }
.branding-upload-thumbnail[data-upload-thumbnail="logo"] { object-fit: contain; padding: 4px; }
.branding-upload-thumbnail[hidden] { display: none; }
@media (max-width: 520px) {
  .branding-file-upload { gap: 10px; }
  .branding-upload-thumbnail { flex-basis: 56px; width: 56px; height: 56px; }
}
.branding-upload-status { margin: 5px 0; min-height: 0; font-size: 13px; }
.branding-upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.branding-upload-actions .outline { min-height: 42px; padding: 8px 12px; font-size: 14px; }
.store-branding-editor > .field-hint { font-size: 13px; margin: 12px 0; }
#branding-image-dialog { width: min(600px, 94vw); }
#branding-image-dialog h2 { padding-inline-end: 88px; }
#branding-image-canvas {
  display: block;
  max-width: 100%;
  max-height: min(38vh, 340px);
  margin: 18px auto;
  outline: 1px solid var(--border);
  border-radius: 8px;
  background: repeating-conic-gradient(var(--surface-soft) 0% 25%, var(--border) 0% 50%) 0 0 / 20px 20px;
  touch-action: none;
  cursor: grab;
}
#branding-image-canvas:active { cursor: grabbing; }
#branding-image-canvas:focus-visible { outline: 3px solid #ea7b33; outline-offset: 3px; }
#branding-image-controls { min-width: 0; padding: 0; margin: 0; border: 0; }
#branding-image-controls label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
#branding-image-zoom { width: 100%; min-height: 36px; margin: 0; accent-color: #c85d15; }
.branding-image-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.branding-image-tools button { min-height: 42px; padding: 8px 12px; font-size: 14px; }
#branding-image-status:empty { display: none; }
.branding-image-actions { flex-wrap: wrap; }
@media(max-width:650px) {
  #store-editor { padding: 24px 20px; }
  .branding-preview { gap: 10px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .branding-card-body, .branding-page-body { padding: 28px 10px 14px; }
  .branding-preview-label { font-size: 10px; letter-spacing: .5px; }
  .branding-preview strong { font-size: 14px; }
  .branding-preview p, .branding-preview small { font-size: 12px; }
  #branding-image-dialog { padding: 24px 18px; }
  .branding-image-actions button { flex: 1 1 auto; }
}
.delete-store-button { background: transparent; color: #b52f29; border: 1px solid #cc443c; border-radius: 9px; padding: 12px 16px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.delete-store-button:hover { background: #fff0ee; }
.dashboard-heading > .dashboard-actions { flex-wrap: wrap; justify-content: flex-end; }
#delete-store-confirmation { width: 100%; padding: 12px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 7px; color: var(--text); }
.options-editor { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 24px; }
.options-editor h3 { font-size: 18px; color: var(--heading); margin: 0 0 9px; }
.options-editor > p { font-size: 14px; margin: 0 0 16px; }
#option-groups-editor:empty::before { content: 'Nenhuma opção adicionada.'; color: var(--muted); font-size: 14px; display: block; margin: 18px 0; }
.option-editor-row { background: var(--surface-soft); border: 1px solid var(--border); padding: 15px; border-radius: 10px; margin-bottom: 13px; }
.option-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.option-row-heading label { margin: 0 0 9px; }
.remove-option { background: transparent; color: var(--muted); padding: 8px 0 8px 8px; font-size: 13px; margin-bottom: 9px; }
.option-editor-row .option-name, .option-editor-row .option-values { width: 100%; border: 1px solid var(--border); border-radius: 7px; padding: 11px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.option-editor-row > label { margin-bottom: 9px; }
.option-suggestions, .option-values-preview, .option-add-actions, .choice-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.option-add-actions .outline { font-size: 13px; padding: 10px 12px; }
.option-suggestion { border: 1px solid var(--border); color: var(--muted); background: var(--surface); border-radius: 6px; padding: 7px 10px; font-size: 13px; }
.option-suggestion.selected { border-color: #d9793b; color: #a94a10; background: #fff2e8; }
.option-values-preview span { font-size: 13px; color: var(--heading); background: var(--surface); padding: 5px 8px; border: 1px solid var(--border); border-radius: 5px; }
.product-options-summary { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.product-options-summary p { margin: 3px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-options-summary strong { font-weight: 700; }
.inventory-product .product-options-summary { max-width: 270px; font-size: 12px; margin-top: 5px; }
.detail-options { margin: 24px 0; border-top: 1px solid var(--border); padding-top: 17px; }
.detail-option-group { padding: 0; border: 0; margin: 0 0 18px; min-width: 0; }
.detail-option-group legend { color: var(--heading); font-size: 15px; font-weight: 700; }
.option-choice { min-width: 42px; min-height: 40px; padding: 10px 14px; background: var(--surface); color: var(--heading); border: 1px solid var(--border); border-radius: 7px; font-size: 15px; }
.option-choice.selected { border-color: #d9793b; box-shadow: inset 0 0 0 1px #d9793b; background: #fff2e8; color: #a94a10; }
.option-choice:disabled { cursor: default; }
#selected-options { font-size: 14px; }
[data-theme="dark"] .delete-store-button { color: #ffb1a8; border-color: #e46d62; }
[data-theme="dark"] .delete-store-button:hover { background: #3c272a; }
[data-theme="dark"] .option-suggestion.selected, [data-theme="dark"] .option-choice.selected { background: #493226; color: #ffc69d; }
@media(max-width:650px) {
  .dashboard-heading > .dashboard-actions { justify-content: flex-start; gap: 8px; }
  .dashboard-actions .delete-store-button { font-size: 13px; padding: 12px; }
  #delete-store-dialog .dialog-actions { flex-wrap: wrap; }
  .option-editor-row { padding: 12px; }
}
.price-block { display: flex; flex-direction: column; gap: 4px; }
.original-price { color: var(--muted); font-size: 14px; font-weight: 400; }
.price.sale-price { color: #127444; }
.discount-saving { color: #127444; font-size: 12px; font-weight: 600; }
.inventory-stock { display: inline-block; margin-top: 8px; padding: 4px 7px; border-radius: 5px; background: #eaf6ee; color: #17633b; font-size: 12px; font-weight: 600; }
.inventory-stock.is-sold-out { background: #fcece9; color: #a53225; }
.stock-badge { position: absolute; right: 10px; top: 12px; padding: 6px 10px; border-radius: 5px; font-size: 13px; font-weight: 800; background: #a53225; color: white; }
.product-sold-out .product-image { opacity: .62; }
.row-actions { flex-wrap: wrap; min-width: 178px; }
.row-actions .discount-button { color: #127444; }
.row-actions .stock-button { color: #9a5116; }
.inventory-table .price { font-size: 17px; }
.inventory-table td:first-child { width: 40%; }
#discount-summary { font-size: 15px; color: var(--muted); }
[data-theme="dark"] .price.sale-price, [data-theme="dark"] .discount-saving, [data-theme="dark"] .row-actions .discount-button { color: #80ddb0; }
[data-theme="dark"] .inventory-stock { background: #1b3a30; color: #80ddb0; }
[data-theme="dark"] .inventory-stock.is-sold-out { background: #402727; color: #ffb2a8; }
[data-theme="dark"] .row-actions .stock-button { color: #f8bd8b; }
@media(max-width:650px){ .row-actions { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; } .inventory-table td:first-child { width: auto; } }
.header { gap: 20px; }
.header .location { margin-left: auto; color: var(--heading); }
.location-pin { display: block; width: 26px; height: 30px; flex-shrink: 0; }
.theme-toggle { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; color: var(--heading); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.theme-toggle svg { width: 21px; height: 21px; }
.full-width { width: 100%; justify-content: center; }
.price-unit { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 5px; white-space: nowrap; }
.product .price { overflow-wrap: anywhere; }
@media(max-width:650px){ .product .price.large-price { font-size: 16px; line-height: 1.5; } }
.specifications-summary { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 10px 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.specifications-summary span { overflow-wrap: anywhere; }
.product-specifications { margin: 22px 0; }
.product-specifications h3 { color: var(--heading); font-size: 17px; }
.product-specifications dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 0; }
.product-specifications dl > div { padding: 12px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.product-specifications dt { color: var(--muted); font-size: 12px; }
.product-specifications dd { color: var(--heading); font-size: 14px; margin: 5px 0 0; overflow-wrap: anywhere; line-height: 1.6; }
.specifications-editor { margin: 24px 0; border-top: 1px solid var(--border); padding-top: 18px; }
.specifications-editor h3 { font-size: 18px; color: var(--heading); margin-bottom: 10px; }
.specifications-editor > p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.specification-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) 32px; align-items: end; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.specification-row label { margin: 0; min-width: 0; }
.specification-row input { min-width: 0; }
.remove-specification { width: 32px; height: 44px; padding: 0; background: transparent; font-size: 22px; color: var(--muted); }
#add-specification { margin-top: 16px; }
#store-category { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-soft); color: var(--text); font: inherit; font-size: 15px; }
@media(max-width:650px){ .specification-row { grid-template-columns: minmax(0,1fr) 32px; } .specification-row label:first-child { grid-column: 1; } .specification-row label:nth-child(2) { grid-column: 1; } .remove-specification { grid-column: 2; grid-row: 1 / 3; align-self: center; } .product-specifications dl { grid-template-columns: 1fr; } }
#register-category { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-soft); color: var(--text); font: inherit; font-size: 15px; min-height: 44px; cursor: pointer; }
#register-category option { background: var(--surface); color: var(--text); }
.auth-tabs { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--border); padding: 5px; border-radius: 10px; margin: 23px 0; }
.auth-tabs button { flex: 1; padding: 12px; background: transparent; color: var(--muted); border-radius: 7px; font-size: 15px; font-weight: 700; }
.auth-tabs [aria-selected="true"] { background: var(--surface); color: var(--heading); box-shadow: 0 2px 8px #16324f0a; }
.auth-tabs[hidden] { display: none; }

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 16px 0;
}
form .password-field label { grid-area: 1 / 1; margin: 0; }
form .password-field input { min-block-size: 48px; padding-inline-end: 54px; }
.password-field input::-ms-reveal { display: none; }
.password-toggle {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  margin: 2px 3px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.password-toggle:hover, .password-toggle[aria-pressed="true"] {
  background: var(--surface-soft);
  color: var(--heading);
}
.password-toggle:focus-visible { outline-offset: -2px; }
.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.password-toggle[aria-pressed="false"] .password-eye-open,
.password-toggle[aria-pressed="true"] .password-eye-closed { display: none; }

#merchant:has(#register-form:not([hidden]) [data-register-panel="profile"]:not([hidden])) {
  width: min(1040px, 94vw);
}

#merchant:has(#register-form:not([hidden]) [data-register-panel="payment"]:not([hidden])) {
  width: min(820px, 94vw);
}

.register-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.register-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.register-progress li span {
  display: grid;
  flex: 0 0 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 11px;
}

.register-progress [aria-current="step"] {
  border-color: #c5682a;
  color: var(--heading);
}

.register-progress [aria-current="step"] span {
  border-color: transparent;
  background: var(--orange);
  color: #17212f;
}

.register-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.register-step h3 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: 21px;
}

.register-profile-grid, .register-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 16px;
}

.register-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.register-panel h4, #register-branding h3 {
  margin: 0;
  color: var(--heading);
  font-size: 17px;
}

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

#register-branding {
  margin: 0;
}

#register-branding .branding-preview {
  margin: 16px 0;
}

#register-branding .branding-upload-fields input[type="file"] {
  background: var(--surface);
}

#register-form .terms-check {
  margin: 16px 0 0;
}

.register-review {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.register-review dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.register-review dd {
  margin: 2px 0 0;
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.register-payment {
  background: var(--navy);
  color: white;
}

.register-payment h4 {
  color: #e6eef7;
}

.register-payment strong {
  display: block;
  margin-top: 9px;
  font-size: 26px;
}

.register-payment p {
  color: #c5d5e6;
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 14px;
}

.register-payment .register-billing-accept {
  color: #f3f7fc;
  background: #203d59;
  border-color: #527394;
}
.register-billing-accept span { color: inherit; }
#register-billing-status { margin-bottom: 0; color: #ffdfa3; }
#register-billing-status:empty { display: none; }
.payment-methods { display: grid; gap: 10px; padding: 0; margin: 20px 0; border: 0; min-width: 0; }
.payment-methods legend { padding: 0 0 10px; font-size: 14px; font-weight: 700; }
.payment-method { display: flex; flex-direction: row; align-items: flex-start; gap: 11px; margin: 0; padding: 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); color: var(--heading); cursor: pointer; }
.payment-method input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: var(--orange); }
.payment-method > span { display: grid; gap: 5px; min-width: 0; }
.payment-method strong, .register-payment .payment-method strong { margin: 0; font-size: 15px; line-height: 1.4; }
.payment-method small { font-size: 13px; line-height: 1.6; font-weight: 400; }
.register-payment .payment-method { background: #ffffff0a; border-color: #ffffff38; color: #fff; }
.register-payment .payment-method small { color: #d5e1ed; }
.payment-method:has(input:checked), .register-payment .payment-method:has(input:checked) { border-color: #ffb27e; box-shadow: inset 0 0 0 1px #ffb27e; }
.billing-method-label { display: grid; gap: 9px; width: 100%; max-width: 500px; margin: 16px 0 0; color: var(--heading); font-size: 14px; font-weight: 700; line-height: 1.6; }
.billing-panel .billing-method-label select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 46px 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--surface-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: var(--heading);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow: 0 2px 6px rgb(22 50 79 / 10%);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.billing-panel .billing-method-label select:hover:not(:disabled) { border-color: var(--orange); }
.billing-panel .billing-method-label select:focus-visible { border-color: var(--orange); outline: 2px solid var(--orange); outline-offset: 3px; box-shadow: 0 0 0 3px rgb(249 115 22 / 12%); }
.billing-panel .billing-method-label select:disabled { opacity: .55; cursor: wait; box-shadow: none; }
.billing-panel .billing-method-label option { background: var(--surface); color: var(--heading); }
@media (max-width: 650px) { .billing-panel .billing-method-label select { padding-left: 12px; padding-right: 38px; background-position: right 12px center; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .billing-panel .billing-method-label select { transition: none; } }
@media (forced-colors: active) { .billing-panel .billing-method-label select { appearance: auto; -webkit-appearance: auto; background-image: none; } }

.register-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.register-actions .primary {
  justify-content: center;
  gap: 10px;
}

.register-actions [hidden] { display: none; }
.email-verification-intro { font-size: 16px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.email-verification-intro strong { color: var(--heading); }
#register-email-code { max-width: 240px; font-size: 24px; letter-spacing: 6px; }

@media (max-width: 700px) {
  #merchant:has(#register-form:not([hidden])) { padding: 24px 18px; }
  .register-profile-grid, .register-payment-grid { grid-template-columns: 1fr; }
  .register-panel { padding: 16px; }
  .register-actions .primary { flex: 1; }
}

@media (max-width: 420px) {
  .register-progress { gap: 5px; }
  .register-progress li {
    flex-direction: column;
    gap: 5px;
    padding: 7px 2px;
    font-size: 11px;
  }
  .register-progress li span { width: 22px; }
  .register-actions .primary { padding-inline: 12px; }
}
@media (max-width: 360px) {
  .register-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .register-progress li { flex-direction: row; }
}
.auth-link { display: block; width: fit-content; margin: 18px auto 0; padding: 8px 0; background: transparent; color: var(--heading); font-size: 14px; font-weight: 700; text-align: center; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-link[hidden] { display: none; }
.recovery-status { font-size: 14px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.recovery-status.is-error { color: #b43324; }
.recovery-page { min-height: 100dvh; display: flex; flex-direction: column; }
.recovery-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px max(5%,calc((100vw - 1280px)/2)); }
.recovery-main { width: 100%; display: grid; place-items: center; flex: 1; padding: 24px 20px 48px; }
.recovery-card { width: min(100%,480px); padding: 36px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 40px #16324f08; }
.recovery-card h1 { font-size: clamp(27px,5vw,32px); letter-spacing: -1px; line-height: 1.25; margin: 18px 0 16px; color: var(--heading); }
.recovery-card > p { font-size: 15px; color: var(--muted); line-height: 1.8; }
.recovery-card label { display: block; font-size: 14px; font-weight: 700; margin: 20px 0; }
.recovery-card input { display: block; width: 100%; margin-top: 9px; padding: 13px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface-soft); font-size: 16px; }
.recovery-card .field-hint { font-size: 12px; margin: 0 0 22px; line-height: 1.7; color: var(--muted); }
.recovery-card .recovery-status.is-error { color: #b43324; }
.recovery-login { display: flex; justify-content: center; margin-top: 24px; }
.recovery-login[hidden] { display: none; }
.recovery-footer { padding: 20px; font-size: 12px; color: var(--muted); text-align: center; }
[data-theme="dark"] .recovery-status.is-error, [data-theme="dark"] .recovery-card .recovery-status.is-error { color: #ffb2a8; }
@media(max-width:520px){ .recovery-header { padding: 22px 20px; } .recovery-card { padding: 28px 22px; } }
.form-status { color: #b43324; font-size: 15px; min-height: 18px; }
.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 25px; }
#store-report-dialog { width: min(520px, 92vw); }
#store-report-title { padding-right: 25px; }
#store-report-dialog .store-report-name { margin-bottom: 8px; font-size: 15px; }
#store-report-dialog textarea { width: 100%; min-height: 140px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); color: var(--text); font: inherit; font-size: 15px; line-height: 1.6; resize: vertical; }
#store-report-dialog .field-hint { font-size: 13px; line-height: 1.6; color: var(--muted); }
#store-report-dialog .dialog-actions { flex-wrap: wrap; }
#store-report-help, #store-report-name, #store-report-status { overflow-wrap: anywhere; }
#store-report-status[data-success="true"] { color: #18703b; }
[data-theme="dark"] #store-report-status[data-success="true"] { color: #7bdba5; }
.danger { padding: 13px 17px; border-radius: 8px; background: #b93326; color: white; font-size: 15px; font-weight: 700; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 12px 0 30px; }
.dashboard-heading h1 { font-size: 37px; margin: 12px 0 8px; letter-spacing: -1px; }
.dashboard-heading h1:focus { outline: none; }
.dashboard-heading p { color: var(--muted); font-size: 16px; }
.dashboard-actions { display: flex; gap: 10px; align-items: center; }
.dashboard-actions a { display: inline-flex; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.dashboard-stats > div { padding: 23px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.dashboard-stats span { display: block; color: var(--muted); font-size: 14px; }
.dashboard-stats strong { display: block; color: var(--heading); font-size: 30px; margin-top: 9px; letter-spacing: -.8px; }
.billing-panel {
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.billing-panel .section-heading { align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.billing-panel h2 { margin: 0; font-size: 24px; }
.billing-method-change { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.billing-method-change .outline { margin-top: 12px; }
.billing-panel p { color: var(--muted); margin: 8px 0; font-size: 15px; line-height: 1.6; }
.billing-panel .billing-visibility { color: var(--heading); font-weight: 700; }
.billing-price { color: var(--heading); font-size: 16px; font-weight: 800; }
.billing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.billing-actions button { min-height: 44px; }
.billing-actions .text-button { padding: 8px; }
.billing-notice:empty { display: none; }
.billing-pix { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); align-items: start; gap: 24px; margin-top: 20px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.billing-pix h3 { margin: 0 0 10px; color: var(--heading); font-size: 19px; }
.billing-pix-code { display: grid; place-items: center; min-height: 150px; }
.billing-pix-code img { display: block; width: 100%; max-width: 220px; height: auto; padding: 10px; border-radius: 8px; background: #fff; image-rendering: pixelated; }
.billing-pix-symbol { font-size: 30px; font-weight: 800; color: var(--heading); }
.billing-pix-content { min-width: 0; }
.billing-pix-content label { display: block; margin: 14px 0 7px; font-size: 14px; font-weight: 700; color: var(--heading); }
.billing-pix-content textarea { display: block; width: 100%; min-height: 85px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; resize: vertical; }
.billing-pix-content button { margin-top: 10px; min-height: 44px; }
.billing-panel .billing-pix-expiry { font-size: 13px; }
.billing-panel .billing-test-notice { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--heading); background: var(--surface-soft); font-weight: 600; }
@media (max-width: 620px) {
  .billing-pix { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .billing-pix-code img { width: 200px; }
  .billing-pix-content button { width: 100%; }
}
.inventory-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.inventory-filters { display: flex; gap: 15px; margin-bottom: 22px; }
.inventory-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 9px; padding: 0 13px; flex: 1; background: var(--surface-soft); }
.inventory-search > span { color: var(--muted); font-size: 24px; }
.inventory-search input { border: 0; background: transparent; padding: 13px 0; min-width: 0; width: 100%; color: var(--text); font-size: 15px; }
.inventory-filters select { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 9px; padding: 10px 14px; font-size: 15px; max-width: 240px; }
.inventory-table-wrap { width: 100%; overflow-x: auto; }
.inventory-table { width: 100%; border-collapse: collapse; text-align: left; }
.inventory-table th { background: var(--surface-soft); color: var(--muted); font-size: 13px; font-weight: 700; padding: 14px 12px; white-space: nowrap; }
.inventory-table td { padding: 18px 12px; border-bottom: 1px solid var(--border); font-size: 15px; }
.inventory-table td:first-child { width: 48%; }
.inventory-product { display: flex; align-items: center; gap: 13px; min-width: 180px; }
.inventory-product > img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; background: var(--bg); }
.inventory-product strong { color: var(--heading); display: block; line-height: 1.6; }
.inventory-product small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 320px; color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 3px; }
.inventory-tag { background: var(--bg); color: var(--muted); padding: 6px 8px; border-radius: 5px; font-size: 13px; white-space: nowrap; }
.inventory-price { font-weight: 800; white-space: nowrap; }
.row-actions { display: flex; gap: 7px; }
.row-actions button { padding: 9px 11px; border-radius: 6px; background: var(--surface-soft); border: 1px solid var(--border); color: var(--heading); font-size: 13px; }
.row-actions .remove-button { color: #b43324; }
.inventory-note { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
#editor-image-preview { display: flex; align-items: center; gap: 13px; margin: 15px 0 22px; color: var(--muted); font-size: 14px; }
#editor-image-preview img { width: 65px; height: 65px; border-radius: 8px; object-fit: cover; }
.upload-preview { display: flex; align-items: center; gap: 13px; margin: 15px 0 22px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.upload-preview img { width: 80px; height: 80px; object-fit: contain; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0; }
.upload-preview small { display: block; margin-top: 6px; }
.camera-photo-button { display: none; }
@media (max-width: 650px), (hover: none) and (pointer: coarse) {
  .photo-picker { display: grid; gap: 8px; }
  .camera-photo-button {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--heading);
  }
}
#register-logo, #product-image { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-soft); color: var(--text); }
input::placeholder, textarea::placeholder { color: #7b8796; opacity: 1; }
input[type="file"] { font-size: 14px; }
input[type="file"]::file-selector-button { background: var(--bg); color: var(--heading); border: 1px solid var(--border); padding: 8px; border-radius: 5px; margin-right: 10px; cursor: pointer; }

:root[data-theme="dark"] { --bg: #0d1724; --surface: #152233; --surface-soft: #101d2c; --border: #2c3c50; --text: #e4eaf3; --heading: #e4edf8; --muted: #a5b4c7; color-scheme: dark; }
[data-theme="dark"] .header, [data-theme="dark"] .desktop-nav, [data-theme="dark"] footer,
[data-theme="dark"] .category, [data-theme="dark"] .product, [data-theme="dark"] .store-card,
[data-theme="dark"] .store-profile, [data-theme="dark"] dialog, [data-theme="dark"] .empty,
[data-theme="dark"] .outline, [data-theme="dark"] .type-chip, [data-theme="dark"] #sort { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .header, [data-theme="dark"] .desktop-nav { border-color: var(--border); }
[data-theme="dark"] .search { background: var(--surface-soft); border-color: var(--border); }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select { color: var(--text); }
[data-theme="dark"] form label input, [data-theme="dark"] form label textarea, [data-theme="dark"] form label select { background: var(--surface-soft); border-color: var(--border); }
[data-theme="dark"] .hero { background: #1b2938; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] .product-title,
[data-theme="dark"] .text-button, [data-theme="dark"] .view-store, [data-theme="dark"] .desktop-nav .active,
[data-theme="dark"] .location strong, [data-theme="dark"] .store-card-footer strong,
[data-theme="dark"] .store-breadcrumb a, [data-theme="dark"] .empty h3 { color: var(--heading); }
[data-theme="dark"] h1 em, [data-theme="dark"] .orange { color: #ffad72; }
[data-theme="dark"] .hero-copy p, [data-theme="dark"] .hero-note, [data-theme="dark"] .store-sells,
[data-theme="dark"] .store-description { color: var(--muted); }
[data-theme="dark"] .hero-note span, [data-theme="dark"] .store-address span { color: #ffad72; }
[data-theme="dark"] .favorite-count { background: #233447; }
[data-theme="dark"] .floating { background: #152233ee; color: var(--text); border-color: #536174; }
[data-theme="dark"] .store-logo { background: var(--surface); border-color: var(--surface); }
[data-theme="dark"] .store-category, [data-theme="dark"] .tag { background: #152233ee; color: var(--text); }
[data-theme="dark"] .favorite { color: var(--text); background: #152233f2; border-color: var(--border); }
[data-theme="dark"] .favorite.saved { color: #ffad72; }
[data-theme="dark"] .store-profile-meta > span { background: #343123; color: #edca8a; }
[data-theme="dark"] .store-card-footer, [data-theme="dark"] .product-bottom,
[data-theme="dark"] .store-profile-meta, [data-theme="dark"] .form-divider { border-color: var(--border); }
[data-theme="dark"] .type-chip.selected { background: #2c4e70; border-color: #527699; color: white; }
[data-theme="dark"] .type-chip > span { background: #273a4d; }
[data-theme="dark"] .close { background: transparent; color: var(--text); }
[data-theme="dark"] .mobile-nav { background: #152233f2; border-color: var(--border); }
[data-theme="dark"] .mobile-nav button { color: var(--text); }
[data-theme="dark"] .merchant-banner { background: #1d344b; }
[data-theme="dark"] .form-status, [data-theme="dark"] .row-actions .remove-button { color: #ff9f93; }
[data-theme="dark"] .image-button { background: #233447; }
[data-theme="dark"] .toast { background: #d9e8f7; color: #16324f; }

@media (max-width: 1000px) { .header { gap: 14px; } }
@media (max-width: 650px) {
  .header { display: grid; grid-template-columns: minmax(0,1fr) 36px auto; gap: 14px 10px; }
  .header .brand { font-size: 25px; gap: 7px; }
  .header .brand small { font-size: 9px; letter-spacing: 1.5px; }
  .theme-toggle { width: 36px; height: 36px; }
  .header > .outline { margin: 0; font-size: 12px; padding: 10px; }
  .header .search { grid-column: 1 / -1; order: 4; }
  .dashboard-heading { display: block; margin-top: 4px; }
  .dashboard-heading h1 { font-size: 31px; }
  .dashboard-actions { margin-top: 20px; }
  .dashboard-actions .outline { font-size: 13px; }
  .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .dashboard-stats > div { padding: 17px; }
  .dashboard-stats > div:last-child { grid-column: 1 / -1; }
  .dashboard-stats strong { font-size: 27px; }
  .billing-panel { padding: 16px; }
  .billing-panel h2 { font-size: 21px; }
  .billing-actions { align-items: stretch; }
  .inventory-panel { padding: 17px; }
  .inventory-panel .section-heading { flex-wrap: wrap; }
  .inventory-panel .primary { font-size: 14px; padding: 12px 14px; }
  .inventory-filters { flex-direction: column; gap: 10px; }
  .inventory-filters select { max-width: none; }
  .inventory-table { min-width: 0; display: block; }
  .inventory-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .inventory-table tbody { display: block; }
  .inventory-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 13px; padding: 6px; }
  .inventory-table td { border: 0; padding: 11px 8px; }
  .inventory-table td:first-child { grid-column: 1 / -1; width: auto; }
  .inventory-table td:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .inventory-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-bottom: 8px; }
  .inventory-table td:not([data-label])::before { display: none; }
  .inventory-product { min-width: 0; }
  .inventory-product > div { min-width: 0; }
  .inventory-product strong { overflow-wrap: anywhere; }
  .inventory-tag { white-space: normal; display: inline-block; line-height: 1.5; }
  .row-actions button { padding: 11px; font-size: 14px; flex: 1; }
  #product-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .row-actions { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
}

/* Light theme: consistent depth for surfaces and controls. */
:root:not([data-theme="dark"]) {
  --light-shadow-control: 0 2px 5px rgb(22 50 79 / 16%), 0 1px 2px rgb(22 50 79 / 9%);
  --light-shadow-surface: 0 4px 14px rgb(22 50 79 / 14%), 0 1px 4px rgb(22 50 79 / 8%);
  --light-shadow-hover: 0 8px 22px rgb(22 50 79 / 18%), 0 2px 6px rgb(22 50 79 / 10%);
  --light-shadow-overlay: 0 18px 50px rgb(22 50 79 / 25%), 0 3px 12px rgb(22 50 79 / 14%);
}

:root:not([data-theme="dark"]) :is(
  .hero, .merchant-banner, .store-card, .product, .store-profile, .empty,
  .dashboard-stats > div, .billing-panel, .inventory-panel,
  .register-panel, .branding-card, .branding-page, .option-editor-row,
  .legal-heading, .legal-summary, .legal-article, .legal-contact,
  .recovery-card, .detail-item, .terms-check
) { box-shadow: var(--light-shadow-surface); }

:root:not([data-theme="dark"]) :is(
  .primary, .outline, .danger, .delete-store-button, .theme-toggle,
  .favorite, .type-chip, .option-choice, .option-suggestion,
  .camera-photo-button, .row-actions button, .branding-image-tools button,
  .category-page .category, .category-controls button, .legal-nav a,
  .auth-tabs [aria-selected="true"], .register-progress li, .search > button,
  .store-logo, .category-icon, .store-category, .tag,
  .stock-badge, .store-search-photo, .floating
) { box-shadow: var(--light-shadow-control); }

:root:not([data-theme="dark"]) :is(.search, .category-search, .inventory-search) {
  box-shadow: var(--light-shadow-control);
}

:root:not([data-theme="dark"]) :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
  select, textarea
) { box-shadow: var(--light-shadow-control); }

:root:not([data-theme="dark"]) :is(.search, .category-search, .inventory-search) input {
  box-shadow: none;
}

:root:not([data-theme="dark"]) .option-choice.selected {
  box-shadow: inset 0 0 0 1px #d9793b, var(--light-shadow-control);
}

:root:not([data-theme="dark"]) :is(.store-card, .product):hover {
  box-shadow: var(--light-shadow-hover);
}

:root:not([data-theme="dark"]) :is(dialog, .store-search-suggestions, .toast) {
  box-shadow: var(--light-shadow-overlay);
}

:root:not([data-theme="dark"]) :is(.header, .desktop-nav, .recovery-header) {
  box-shadow: 0 3px 9px rgb(22 50 79 / 12%);
}

:root:not([data-theme="dark"]) :is(.site-footer, .mobile-nav) {
  box-shadow: 0 -3px 14px rgb(22 50 79 / 13%);
}

@media (max-width: 650px) {
  :root:not([data-theme="dark"]) .inventory-table tr {
    box-shadow: var(--light-shadow-control);
  }
}

/* Daqui de Patos: transparent location and shopping mark with a readable wordmark. */
.brand { gap: 10px; letter-spacing: 0; }
.brand .brand-emblem { display: block; flex: 0 0 auto; width: 40px; height: 45px; object-fit: contain; }
.brand .brand-wordmark { display: grid; gap: 5px; min-width: 0; }
.brand .brand-name { display: flex; align-items: baseline; gap: 6px; color: var(--heading); font-size: 27px; font-weight: 800; letter-spacing: -1.1px; line-height: 1.15; }
.brand .brand-de { font-size: 14px; font-weight: 600; letter-spacing: -.3px; color: var(--muted); }
.brand .brand-wordmark small { display: block; margin: 0; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1.25px; line-height: 1.5; }
.site-footer .brand { display: inline-flex; gap: 8px; }
.site-footer .brand .brand-emblem { width: 32px; height: 36px; }
.site-footer .brand .brand-name { font-size: 24px; }
.site-footer .brand .brand-de { font-size: 13px; }
.site-footer .brand:hover { text-decoration: none; }
@media (max-width: 1000px) { .header .brand .brand-name { font-size: 24px; } }
@media (max-width: 650px) {
  .header .brand { gap: 7px; }
  .header .brand .brand-emblem { width: 31px; height: 36px; }
  .header .brand .brand-name { font-size: 21px; gap: 4px; letter-spacing: -.8px; }
  .header .brand .brand-de { font-size: 11px; }
  .header .brand .brand-wordmark { gap: 4px; }
  .header .brand .brand-wordmark small { font-size: 7px; letter-spacing: .65px; }
  .recovery-header .brand .brand-name { font-size: 23px; }
  .recovery-header .brand .brand-emblem { width: 32px; height: 38px; }
}
@media (max-width: 380px) {
  .header .brand .brand-emblem { width: 24px; height: 30px; }
  .header .brand .brand-name { font-size: 16px; gap: 3px; letter-spacing: -.6px; }
  .header .brand .brand-de { font-size: 10px; }
  .header .brand .brand-wordmark small { font-size: 6px; letter-spacing: .4px; }
  .recovery-header .brand .brand-name { font-size: 20px; }
}
