/* CSS Centralizado — Tony Da Silva Photography V2 */
:root {
    --bg-page: #f5f5f3;
    --bg-white: #ffffff;
    --bg-topbar: #322f2b;
    --bg-subnav: #1d1c1a;
    --gold: #b19463;
    --gold-hover: #9d7f4e;
    --gold-soft: #f3ece0;
    --text-dark: #1f1f1f;
    --text-muted: #6b6b6b;
    --border-light: #e2dfd9;
    --danger: #b94a45;
    --success: #2e8b57;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.5;
}

.tds-topbar {
    background: var(--bg-topbar);
    color: #fff;
    padding: 12px 20px;
}

.tds-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tds-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.tds-brand-badge {
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #e5d4b7;
}

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

.tds-brand-text strong { font-size: 16px; }
.tds-brand-text small { font-size: 11px; color: #c9c3b8; }

.tds-langs {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.tds-flag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 26px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 16px;
    transition: .2s;
}

.tds-flag-btn.active, .tds-flag-btn:hover {
    border-color: var(--gold);
    background: rgba(177, 148, 99, 0.35);
}

.tds-btn-voltar-site {
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
}

.tds-btn-voltar-site:hover { background: var(--gold-hover); }

.tds-subnav {
    background: var(--bg-subnav);
    padding: 12px 20px;
}

.tds-subnav-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tds-nav-pill {
    background: #2b2926;
    color: #e8e5df;
    border: 1px solid #3c3934;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .2s;
}

.tds-nav-pill:hover, .tds-nav-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.tds-badge {
    background: #fff;
    color: #1f1f1f;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}

.tds-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 28px 20px 60px;
    min-height: 75vh;
}

.tds-hero {
    text-align: center;
    margin-bottom: 30px;
}

.tds-hero h1 { margin: 0 0 6px; font-size: 28px; color: var(--text-dark); }
.tds-hero p { margin: 0; color: var(--text-muted); }

.tds-status-banner {
    background: var(--gold-soft);
    border: 1px solid #e4d7c1;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 14px;
}

.tds-gallery-header { margin-bottom: 20px; }

.tds-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.tds-gallery-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
    color: var(--text-dark);
}

.tds-subtitle { margin: 0 0 6px; color: var(--text-muted); font-size: 14px; }
.tds-count-line { margin: 0; font-size: 14px; color: var(--text-dark); }

.tds-toolbar-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tds-galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tds-gallery-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.tds-tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.tds-tag-public { background: #e6f4ec; color: #1e6b43; }
.tds-tag-private { background: var(--gold-soft); color: #7a5f34; }

.tds-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 980px) {
    .tds-photos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
    .tds-photos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .tds-photos-grid { grid-template-columns: 1fr; }
}

.tds-photo-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: border-color .2s, transform .2s;
}

.tds-photo-card.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(177, 148, 99, 0.25);
}

.tds-photo-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eceae4;
    overflow: hidden;
    cursor: zoom-in;
}

.tds-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.tds-photo-thumb:hover img { transform: scale(1.03); }

.tds-photo-zoom-hint {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(29, 28, 26, 0.78);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .2s;
}

.tds-photo-thumb:hover .tds-photo-zoom-hint { opacity: 1; }

.tds-photo-meta {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.tds-photo-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tds-photo-num { font-size: 13px; color: var(--text-dark); }

.tds-photo-name {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tds-photo-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.tds-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tds-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.tds-page-link.active, .tds-page-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.tds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
}

.tds-btn-dark {
    background: #141414;
    border-color: #141414;
    color: #fff;
}

.tds-btn-dark:hover { background: #2d2d2d; }

.tds-btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.tds-btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

.tds-btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.tds-btn-sm { padding: 6px 12px; font-size: 12px; }
.tds-btn-full { width: 100%; padding: 12px; font-size: 15px; }

.tds-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tds-modal.open { display: flex; }

.tds-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.tds-modal-dialog {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--gold);
    border-radius: 10px;
    max-width: 960px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 20px;
    z-index: 1;
}

.tds-cart-dialog { max-width: 580px; }

.tds-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #1d1c1a;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.tds-zoom-img-wrap {
    text-align: center;
    background: #111;
    border-radius: 6px;
    padding: 8px;
}

.tds-zoom-img-wrap img {
    max-width: 100%;
    max-height: 74vh;
    object-fit: contain;
    user-select: none;
}

.tds-zoom-bar {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tds-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 24px;
}

.tds-form-row {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tds-form-row input, .tds-form-row select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc8be;
    background: #fff;
    color: var(--text-dark);
    font-size: 14px;
}

.tds-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 680px) { .tds-grid-2 { grid-template-columns: 1fr; } }

.tds-table-wrap { overflow-x: auto; }

.tds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tds-table th, .tds-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.tds-table th {
    background: #efede8;
    color: var(--text-dark);
}

.tds-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    border: 1px solid var(--gold);
    background: var(--gold-soft);
}

.tds-alert-error { border-color: var(--danger); background: #fdecea; color: #7b241c; }
.tds-alert-success { border-color: var(--success); background: #e8f5ee; color: #195e37; }

.tds-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 10px;
}

.tds-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--gold);
    margin-top: 10px;
}

.tds-footer {
    text-align: center;
    padding: 22px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 13px;
.tds-alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--text-dark); font-size: 14px; }
.tds-alert-error { border-color: var(--danger); background: #fbeaea; color: #7a1f1c; }
.tds-alert-success { border-color: var(--success); background: #e8f5ee; color: #1b5e3a; }
.tds-link-gold { color: var(--gold-hover); font-weight: 600; text-decoration: none; }
.tds-link-gold:hover { text-decoration: underline; }
.tds-cart-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.tds-cart-total { display: flex; justify-content: space-between; font-size: 18px; padding: 14px 0; border-top: 1px solid var(--gold); margin-top: 10px; font-weight: 700; }
.tds-footer { text-align: center; padding: 20px; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: 13px; margin-top: 40px; }

/* Compatibilidade de variáveis e spinner para o painel Admin */
:root {
    --bg-dark: var(--bg-page);
    --bg-panel: var(--bg-white);
    --bg-card: var(--bg-white);
    --text-main: var(--text-dark);
    --border: var(--border-light);
    --gold-light: var(--gold-hover);
}
.sp { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tds-spin .6s linear infinite; margin-right: 6px; vertical-align: middle; }
@keyframes tds-spin { to { transform: rotate(360deg); } }

/* Compatibilidade de Cabeçalho para o painel Admin */
.tds-header { background: var(--bg-topbar); color: #fff; border-bottom: 3px solid var(--gold); }
.tds-header-inner { max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.tds-header-inner .tds-brand { font-size: 18px; font-weight: 700; color: #fff; }
.tds-header-inner .tds-brand span { color: var(--gold); margin-left: 4px; }
.tds-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tds-nav a { background: #2b2926; color: #e8e5df; border: 1px solid #3c3934; padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: .2s; }
.tds-nav a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.tds-nav a.tds-btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.tds-nav a.tds-btn-gold:hover { background: var(--gold-hover); }
.tds-nav a.tds-btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* Cabeçalho exato estilo Studio */
.tds-topbar { background: #8c8582 !important; padding: 16px 24px !important; border-bottom: none !important; }
.tds-topbar-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.tds-brand { display: inline-flex; align-items: center; gap: 22px; text-decoration: none; color: #fff; }
.tds-logo-svg { flex-shrink: 0; display: block; }
.tds-brand-text h1 { margin: 0; font-size: 32px; font-weight: 400; color: #ffffff; letter-spacing: -0.3px; line-height: 1.15; }
.tds-brand-text h1 strong { font-weight: 700; }
.tds-brand-text p { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: #ffffff; opacity: 0.96; }
.tds-topbar-right { display: flex; align-items: center; gap: 14px; }
.tds-subnav { background: #222222 !important; border-top: 3px solid #b19463 !important; min-height: 54px; display: flex; align-items: center; }
.tds-subnav-inner { max-width: 1240px; width: 100%; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tds-nav-danger { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
@media (max-width: 640px) {
    .tds-logo-svg { width: 96px; height: 52px; }
    .tds-brand-text h1 { font-size: 24px; }
    .tds-brand-text p { font-size: 13px; }
}

/* Cabeçalho exato estilo Studio */
.tds-topbar { background: #8c8582 !important; padding: 16px 24px !important; border-bottom: none !important; }
.tds-topbar-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.tds-brand { display: inline-flex; align-items: center; gap: 22px; text-decoration: none; color: #fff; }
.tds-logo-svg { flex-shrink: 0; display: block; }
.tds-brand-text h1 { margin: 0; font-size: 32px; font-weight: 400; color: #ffffff; letter-spacing: -0.3px; line-height: 1.15; }
.tds-brand-text h1 strong { font-weight: 700; }
.tds-brand-text p { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: #ffffff; opacity: 0.96; }
.tds-topbar-right { display: flex; align-items: center; gap: 14px; }
.tds-subnav { background: #222222 !important; border-top: 3px solid #b19463 !important; min-height: 54px; display: flex; align-items: center; }
.tds-subnav-inner { max-width: 1240px; width: 100%; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tds-nav-danger { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
@media (max-width: 640px) {
    .tds-logo-svg { width: 96px; height: 52px; }
    .tds-brand-text h1 { font-size: 24px; }
    .tds-brand-text p { font-size: 13px; }
}
