/* =====================================================
   HOPE PHOTOS - PUBLIC STYLES v2.3.2
   Modern, Clean Design
   ===================================================== */

/* Variables */
:root {
    --dps-primary: #3b82f6;
    --dps-primary-hover: #2563eb;
    --dps-primary-light: #eff6ff;
    --dps-success: #10b981;
    --dps-success-hover: #059669;
    --dps-success-light: #ecfdf5;
    --dps-danger: #ef4444;
    --dps-warning: #f59e0b;
    --dps-gray-50: #f9fafb;
    --dps-gray-100: #f3f4f6;
    --dps-gray-200: #e5e7eb;
    --dps-gray-300: #d1d5db;
    --dps-gray-400: #9ca3af;
    --dps-gray-500: #6b7280;
    --dps-gray-600: #4b5563;
    --dps-gray-700: #374151;
    --dps-gray-800: #1f2937;
    --dps-gray-900: #111827;
    --dps-radius: 16px;
    --dps-radius-md: 12px;
    --dps-radius-sm: 8px;
    --dps-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --dps-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --dps-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --dps-shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --dps-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --dps-transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   CAMPAIGNS GRID
   ===================================================== */

.dps-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, var(--dps-campaign-card-width, 360px)));
    column-gap: var(--dps-campaign-gap-x, 28px);
    row-gap: var(--dps-campaign-gap-y, 28px);
    justify-content: center;
    margin: 24px 0;
}

@media (max-width: 1024px) {
    .dps-campaigns-grid {
        grid-template-columns: repeat(2, minmax(0, var(--dps-campaign-card-width, 360px)));
        column-gap: var(--dps-campaign-gap-x, 20px);
        row-gap: var(--dps-campaign-gap-y, 20px);
    }
}

@media (max-width: 640px) {
    .dps-campaigns-grid {
        grid-template-columns: minmax(0, min(100%, var(--dps-campaign-card-width, 360px)));
        column-gap: var(--dps-campaign-gap-x, 16px);
        row-gap: var(--dps-campaign-gap-y, 16px);
    }
}

.dps-campaign-card {
    width: 100%;
    justify-self: center;
    background: #fff;
    border-radius: var(--dps-radius);
    overflow: hidden;
    box-shadow: var(--dps-shadow);
    transition: all var(--dps-transition-slow);
    border: 1px solid var(--dps-gray-100);
}

.dps-campaign-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dps-shadow-xl);
    border-color: var(--dps-primary);
}

.dps-campaign-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dps-campaign-cover {
    height: var(--dps-campaign-cover-height, 220px);
    background-size: cover;
    background-position: center;
    background-color: var(--dps-gray-100);
    position: relative;
}

.dps-campaign-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1) 100%);
}

.dps-campaign-info {
    padding: 20px 24px 24px;
}

.dps-campaign-info h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dps-gray-900);
    line-height: 1.3;
}

.dps-campaign-info p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--dps-gray-500);
    line-height: 1.6;
}

.dps-campaign-media-counts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dps-photo-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--dps-gray-100);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dps-gray-700);
}

.dps-photo-count svg {
    flex: 0 0 auto;
}

.dps-media-count-video {
    background: var(--dps-primary-light);
    color: var(--dps-primary);
}

.dps-no-campaigns {
    text-align: center;
    padding: 80px 20px;
    color: var(--dps-gray-500);
    font-size: 16px;
}

/* =====================================================
   GALLERY WRAPPER
   ===================================================== */

.dps-gallery-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 0;
    position: relative;
}

.dps-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    min-height: 48px;
}

.dps-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    color: var(--dps-gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--dps-gray-200);
    border-radius: var(--dps-radius-sm);
    transition: all var(--dps-transition);
}

.dps-back-btn:hover {
    background: var(--dps-gray-50);
    border-color: var(--dps-gray-300);
    color: var(--dps-gray-900);
}

.dps-back-btn svg {
    transition: transform var(--dps-transition);
}

.dps-back-btn:hover svg {
    transform: translateX(-4px);
}

.dps-gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.dps-price-badge,
.dps-total-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
}

.dps-price-badge {
    background: var(--dps-success-light);
    color: var(--dps-success);
}

.dps-total-badge {
    background: var(--dps-primary-light);
    color: var(--dps-primary);
}

.dps-gallery-meta {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.dps-gallery-price-line,
.dps-gallery-count-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.dps-gallery-price-line .dps-price-badge {
    white-space: nowrap;
}

.dps-gallery-count-line .dps-total-badge {
    white-space: nowrap;
}

/* A área central da meta ocupa toda a largura no desktop.
   Ela não deve bloquear o botão Voltar nas extremidades. */
.dps-gallery-meta {
    pointer-events: none;
}

.dps-gallery-meta > * {
    pointer-events: auto;
}

/* =====================================================
   SELEÇÃO / RESUMO DO CARRINHO
   ===================================================== */

.dps-selection-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px;
    padding: 14px 16px;
    background: var(--dps-gray-50);
    border: 1px solid var(--dps-gray-200);
    border-radius: var(--dps-radius-md);
    box-shadow: var(--dps-shadow-sm);
    transition: all var(--dps-transition);
}

.dps-selection-summary.has-selection {
    background: var(--dps-selection-bg);
    border-color: var(--dps-selection-border);
}

.dps-selection-summary-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--dps-gray-500);
    border-radius: 10px;
}

.dps-selection-summary.has-selection .dps-selection-summary-icon {
    color: var(--dps-selection-icon);
}

.dps-selection-summary-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
    color: var(--dps-selection-text);
}

.dps-selection-summary-text > strong {
    font-size: 15px;
    line-height: 1.25;
}

.dps-selected-total-label {
    font-size: 13px;
    color: var(--dps-selection-muted);
}

.dps-selected-total {
    color: var(--dps-selection-text);
    font-size: 14px;
}

.dps-selection-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px 20px;
    background: var(--dps-selection-cart-bg);
    color: var(--dps-selection-cart-text) !important;
    border-radius: var(--dps-radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1px;
    box-shadow: 0 3px 8px rgba(59, 130, 246, .22);
    transition: all var(--dps-transition);
}

.dps-selection-cart-button:hover {
    background: var(--dps-selection-cart-hover);
    color: var(--dps-selection-cart-text) !important;
    transform: translateY(-1px);
}

.dps-selection-summary:not(.has-selection) .dps-selection-cart-button {
    opacity: .55;
    pointer-events: none;
    cursor: default;
}

/* Estado das fotos que já estão no carrinho */
.dps-btn-cart.dps-btn-in-cart {
    background: var(--dps-success);
    color: var(--dps-button-text) !important;
}

.dps-btn-cart.dps-btn-in-cart:hover {
    background: var(--dps-success-hover);
    color: var(--dps-button-text) !important;
}

.dps-btn-cart.dps-btn-remove {
    background: var(--dps-success);
    color: var(--dps-button-text) !important;
}

.dps-btn-cart.dps-btn-remove:hover {
    background: var(--dps-success-hover);
    color: var(--dps-button-text) !important;
}

/* =====================================================
   BOTÃO CONTINUAR COMPRANDO NO CARRINHO
   ===================================================== */

.dps-cart-continue-shopping-wrap {
    width: 100%;
    margin: 0 auto 18px;
    max-width: 1400px;
}

.dps-cart-continue-shopping {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    background: #fff;
    color: var(--dps-primary);
    border: 2px solid var(--dps-primary);
    border-radius: var(--dps-radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all var(--dps-transition);
}

.dps-cart-continue-shopping:hover {
    background: var(--dps-primary);
    color: #fff;
}

.dps-cart-continue-shopping svg {
    transition: transform var(--dps-transition);
}

.dps-cart-continue-shopping:hover svg {
    transform: translateX(-3px);
}

/* =====================================================
   SEARCH SECTION
   ===================================================== */

.dps-search-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.dps-search-bar {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.dps-search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.dps-search-icon {
    position: absolute;
    left: 16px;
    color: var(--dps-gray-400);
    pointer-events: none;
}

#dps-search-input {
    width: 100%;
    padding: 14px 44px;
    border: 2px solid var(--dps-gray-200);
    border-radius: var(--dps-radius-md);
    font-size: 15px;
    transition: all var(--dps-transition);
    background: #fff;
}

#dps-search-input:focus {
    outline: none;
    border-color: var(--dps-primary);
    box-shadow: 0 0 0 4px var(--dps-primary-light);
}

#dps-search-input::placeholder {
    color: var(--dps-gray-400);
}

.dps-search-clear {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--dps-gray-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dps-gray-600);
    transition: all var(--dps-transition);
    padding: 0;
    line-height: 1;
}

.dps-search-clear svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.dps-search-clear:hover {
    background: var(--dps-gray-300);
    color: var(--dps-gray-800);
}

.dps-search-button {
    padding: 14px 28px;
    background: var(--dps-primary);
    color: #fff;
    border: none;
    border-radius: var(--dps-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dps-transition);
    white-space: nowrap;
}

.dps-search-button:hover {
    background: var(--dps-primary-hover);
    transform: translateY(-1px);
}

.dps-search-button:active {
    transform: translateY(0);
}

/* Loading Overlay */
.dps-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.9);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--dps-radius);
}

.dps-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--dps-gray-200);
    border-top-color: var(--dps-primary);
    border-radius: 50%;
    animation: dps-spin 0.8s linear infinite;
}

@keyframes dps-spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   GALLERY GRID - MODERN DESIGN
   ===================================================== */

.dps-gallery-grid {
    display: grid;
    column-gap: var(--dps-gallery-gap-x, 20px);
    row-gap: var(--dps-gallery-gap-y, 20px);
}

.dps-gallery-grid.dps-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dps-gallery-grid.dps-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.dps-gallery-grid.dps-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) {
    .dps-gallery-grid.dps-columns-4,
    .dps-gallery-grid.dps-columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .dps-gallery-grid.dps-columns-3,
    .dps-gallery-grid.dps-columns-4,
    .dps-gallery-grid.dps-columns-5 {
        grid-template-columns: repeat(2, 1fr);
        column-gap: var(--dps-gallery-gap-x, 16px);
        row-gap: var(--dps-gallery-gap-y, 16px);
    }
}

@media (max-width: 540px) {
    .dps-gallery-grid.dps-columns-3,
    .dps-gallery-grid.dps-columns-4,
    .dps-gallery-grid.dps-columns-5 {
        grid-template-columns: repeat(2, 1fr);
        column-gap: var(--dps-gallery-gap-x, 8px);
        row-gap: var(--dps-gallery-gap-y, 8px);
    }
}

.dps-photo-item {
    background: #fff;
    border-radius: var(--dps-radius);
    overflow: hidden;
    box-shadow: var(--dps-shadow-sm);
    transition: all var(--dps-transition-slow);
    border: 1px solid var(--dps-gray-200);
    position: relative;
}

.dps-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--dps-shadow-lg);
    border-color: var(--dps-gray-300);
}

.dps-photo-item.dps-purchased {
    border-color: var(--dps-success);
}

.dps-photo-item.dps-purchased:hover {
    border-color: var(--dps-success);
}

.dps-purchased-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--dps-success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--dps-shadow);
}

.dps-photo-thumb {
    position: relative;
    aspect-ratio: var(--dps-thumbnail-ratio, 4/3);
    overflow: hidden;
    cursor: pointer;
    background: var(--dps-gray-100);
}

.dps-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dps-transition-slow);
}

.dps-photo-item:hover .dps-photo-thumb img {
    transform: scale(1.08);
}

.dps-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--dps-transition);
}

.dps-photo-thumb:hover .dps-photo-overlay {
    opacity: 1;
}

.dps-zoom-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dps-gray-800);
    transform: scale(0.8);
    transition: transform var(--dps-transition);
}

.dps-photo-thumb:hover .dps-zoom-icon {
    transform: scale(1);
}

.dps-photo-info {
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: var(--dps-gray-50);
    border-bottom: 1px solid var(--dps-gray-100);
}

.dps-photo-id {
    font-size: 12px;
    color: var(--dps-gray-500);
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    background: var(--dps-gray-200);
    padding: 4px 10px;
    border-radius: 6px;
}

.dps-photo-name {
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--dps-gray-800, #1f2937);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dps-bib-number {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 4px 10px;
    background: var(--dps-primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}

.dps-bib-number svg {
    opacity: 0.8;
}

.dps-campaign-name {
    font-size: 12px;
    color: var(--dps-gray-600);
    background: var(--dps-gray-200);
    padding: 4px 10px;
    border-radius: 6px;
}

.dps-photo-actions {
    padding: 14px 16px;
}

.dps-photo-actions-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.dps-photo-actions-row .dps-btn-main-action {
    flex: 1 1 auto;
    min-width: 0;
}

.dps-photo-cart-link {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dps-primary);
    color: var(--dps-button-text) !important;
    border-radius: var(--dps-radius-sm);
    text-decoration: none !important;
    transition: all var(--dps-transition);
}

.dps-photo-cart-link:hover {
    background: var(--dps-primary-hover);
    color: var(--dps-button-text) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dps-photo-cart-link:active {
    transform: translateY(0);
}


/* Informações técnicas continuam no HTML para busca e lógica do plugin,
   mas ficam ocultas na apresentação da galeria. */
.dps-photo-id,
.dps-bib-number {
    display: none !important;
}

/* Buttons */
.dps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: var(--dps-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--dps-transition);
}

.dps-btn-cart {
    background: var(--dps-primary);
    color: var(--dps-button-text) !important;
}

.dps-btn-cart:hover {
    background: var(--dps-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    color: var(--dps-button-text) !important;
}

.dps-btn-cart:active {
    transform: translateY(0);
}

.dps-btn-cart:disabled {
    background: var(--dps-gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dps-btn-cart.added {
    background: var(--dps-success);
}

.dps-btn-download {
    background: var(--dps-success);
    color: var(--dps-download-text) !important;
}

.dps-btn-download:hover {
    background: var(--dps-success-hover);
    color: var(--dps-download-text) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

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

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

.dps-no-photos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--dps-gray-500);
    font-size: 16px;
    background: var(--dps-gray-50);
    border-radius: var(--dps-radius);
}

/* =====================================================
   PAGINATION
   ===================================================== */

.dps-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--dps-gray-200);
}

.dps-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    color: var(--dps-gray-700);
    text-decoration: none;
    border: 2px solid var(--dps-gray-200);
    border-radius: var(--dps-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dps-transition);
}

.dps-page-btn:hover {
    background: var(--dps-primary);
    border-color: var(--dps-primary);
    color: var(--dps-pagination-hover-text) !important;
}

.dps-page-btn:hover svg {
    color: var(--dps-pagination-hover-text) !important;
}

.dps-page-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
}

.dps-page-num {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--dps-gray-200);
    border-radius: var(--dps-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--dps-gray-700);
    cursor: pointer;
    transition: all var(--dps-transition);
}

.dps-page-num:hover {
    border-color: var(--dps-primary);
    color: var(--dps-pagination-number-hover-text) !important;
}

.dps-page-num.active {
    background: var(--dps-primary);
    border-color: var(--dps-primary);
    color: #fff;
}

.dps-page-dots {
    color: var(--dps-gray-400);
    padding: 0 4px;
}

.dps-page-info {
    color: var(--dps-gray-500);
    font-size: 14px;
    font-weight: 500;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */

.dps-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dps-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
}

.dps-lightbox-content {
    position: relative;
    width: auto;
    max-width: min(var(--dps-lightbox-size, 90vw), 95vw);
    max-height: 85vh;
    margin: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dps-lightbox-content img {
    display: block;
    width: auto;
    max-width: min(var(--dps-lightbox-size, 90vw), 95vw);
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--dps-radius-md);
    box-shadow: var(--dps-shadow-xl);
}

.dps-lightbox-close {
    position: absolute;
    top: -56px;
    right: 0;
    width: 48px;
    height: 48px;
    background: #fff;
    color: var(--dps-gray-800);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--dps-transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 0;
    line-height: 1;
}

.dps-lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.dps-lightbox-close:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.dps-lightbox-info {
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* =====================================================
   MY PHOTOS
   ===================================================== */

.dps-my-photos-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 0;
}

.dps-my-photos-header {
    margin-bottom: 32px;
}

.dps-my-photos-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 800;
    color: var(--dps-gray-900);
    letter-spacing: -0.5px;
}

.dps-my-photos-header h2 svg {
    color: var(--dps-primary);
}

.dps-total-photos {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 18px;
    background: var(--dps-success-light);
    border-radius: 100px;
    color: var(--dps-success);
    font-size: 14px;
    font-weight: 600;
}

.dps-login-required {
    text-align: center;
    padding: 80px 40px;
    background: var(--dps-gray-50);
    border-radius: var(--dps-radius);
    border: 2px dashed var(--dps-gray-300);
}

.dps-login-required svg {
    color: var(--dps-gray-400);
    margin-bottom: 20px;
}

.dps-login-required p {
    font-size: 16px;
    color: var(--dps-gray-600);
    margin: 0;
}

.dps-login-required a {
    color: var(--dps-primary);
    font-weight: 600;
    text-decoration: none;
}

.dps-login-required a:hover {
    text-decoration: underline;
}

/* Empty State */
.dps-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--dps-gray-50);
    border-radius: var(--dps-radius);
    border: 2px dashed var(--dps-gray-300);
}

.dps-empty-state svg {
    color: var(--dps-gray-300);
    margin-bottom: 24px;
}

.dps-empty-state p {
    font-size: 16px;
    color: var(--dps-gray-500);
    margin: 0 0 24px;
}

.dps-empty-state .dps-btn {
    display: inline-flex;
    width: auto;
    padding: 14px 28px;
}

/* =====================================================
   ERROR & MESSAGES
   ===================================================== */

.dps-error {
    padding: 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--dps-radius-md);
    color: var(--dps-danger);
    text-align: center;
    font-weight: 500;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

@media (max-width: 640px) {
    .dps-gallery-wrapper {
        padding: 16px 0;
    }
    
    .dps-gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        min-height: 0;
    }
    
    .dps-search-section {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 16px;
    }
    
    .dps-search-bar {
        max-width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .dps-search-button {
        width: 100%;
    }
    
    .dps-gallery-meta {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        white-space: normal;
    }
    
    .dps-price-badge,
    .dps-total-badge {
        padding: 8px 12px;
        font-size: 12px;
    }

    .dps-selection-summary {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .dps-selection-summary-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .dps-selection-summary-text {
        flex: 1 1 calc(100% - 52px);
    }

    .dps-selection-cart-button {
        width: 100%;
        flex-basis: 100%;
    }

    .dps-cart-continue-shopping-wrap {
        padding: 0 12px;
        box-sizing: border-box;
    }

    .dps-cart-continue-shopping {
        width: 100%;
    }
    
    .dps-photo-info {
        padding: 8px 10px;
        flex-direction: column;
        gap: 4px;
    }
    
    .dps-photo-id {
        font-size: 11px;
    }
    
    .dps-bib-number {
        font-size: 11px;
    }
    
    .dps-photo-actions {
        padding: 8px 10px;
    }
    
    .dps-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .dps-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .dps-pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 20px;
    }
    
    .dps-page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .dps-page-num {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .dps-page-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .dps-lightbox-content {
        max-width: 95vw;
    }
    
    .dps-lightbox-close {
        top: -52px;
        width: 44px;
        height: 44px;
    }
    
    .dps-lightbox-close svg {
        width: 20px;
        height: 20px;
    }
    
    .dps-my-photos-header h2 {
        font-size: 24px;
    }
    
    .dps-back-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .dps-search-clear {
        width: 24px;
        height: 24px;
        right: 10px;
    }
    
    .dps-search-clear svg {
        width: 12px;
        height: 12px;
    }
}

/* Extra small screens - 2 columns still maintained */
@media (max-width: 400px) {
    .dps-gallery-grid.dps-columns-3,
    .dps-gallery-grid.dps-columns-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .dps-photo-item {
        border-radius: var(--dps-radius-sm);
    }
    
    .dps-photo-info {
        padding: 6px 8px;
    }
    
    .dps-photo-id {
        font-size: 10px;
    }
    
    .dps-bib-number {
        font-size: 10px;
    }
    
    .dps-photo-actions {
        padding: 6px 8px;
    }
    
    .dps-btn {
        padding: 8px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .dps-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .dps-price-badge,
    .dps-total-badge {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .dps-price-badge svg,
    .dps-total-badge svg {
        width: 12px;
        height: 12px;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

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

.dps-lightbox {
    animation: fadeIn 0.25s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.dps-photo-item {
    animation: slideUp 0.4s ease-out;
    animation-fill-mode: both;
}

.dps-photo-item:nth-child(1) { animation-delay: 0.02s; }
.dps-photo-item:nth-child(2) { animation-delay: 0.04s; }
.dps-photo-item:nth-child(3) { animation-delay: 0.06s; }
.dps-photo-item:nth-child(4) { animation-delay: 0.08s; }
.dps-photo-item:nth-child(5) { animation-delay: 0.10s; }
.dps-photo-item:nth-child(6) { animation-delay: 0.12s; }
.dps-photo-item:nth-child(7) { animation-delay: 0.14s; }
.dps-photo-item:nth-child(8) { animation-delay: 0.16s; }
.dps-photo-item:nth-child(n+9) { animation-delay: 0.18s; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.dps-btn-cart:disabled {
    animation: pulse 1.2s ease-in-out infinite;
}

/* Touch Device Optimizations */
@media (hover: none) {
    .dps-photo-overlay {
        display: none;
    }
    
    .dps-photo-item:hover {
        transform: none;
    }
    
    .dps-photo-item:active {
        transform: scale(0.98);
    }
    
    .dps-btn:active {
        transform: scale(0.98);
    }
}

/* =====================================================
   PÁGINA DE CONFIRMAÇÃO - FOTOS COMPRADAS
   ===================================================== */

.dps-thankyou-downloads {
    margin: 32px 0 36px;
    padding: 26px;
    border: 1px solid #d9e2ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.dps-thankyou-downloads-header {
    margin-bottom: 22px;
}

.dps-thankyou-downloads-header h2 {
    margin: 0 0 7px;
    font-size: 28px;
    line-height: 1.2;
}

.dps-thankyou-downloads-header p {
    margin: 0;
    color: #5e6b78;
    font-size: 15px;
}

.dps-thankyou-downloads-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dps-thankyou-download-card {
    overflow: hidden;
    border: 1px solid #e0e5ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dps-thankyou-download-image {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #f2f4f6;
}

.dps-thankyou-download-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dps-thankyou-download-content {
    padding: 14px;
}

.dps-thankyou-download-content h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

.dps-thankyou-download-id {
    display: block;
    margin-bottom: 12px;
    color: #7b8794;
    font-size: 12px;
}

.dps-thankyou-download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 7px;
    background: #3980f4;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}

.dps-thankyou-download-button:hover,
.dps-thankyou-download-button:focus {
    background: #2872e8;
    color: #fff !important;
    opacity: .96;
    transform: translateY(-1px);
}

@media (max-width: 1000px) {
    .dps-thankyou-downloads-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dps-thankyou-downloads {
        margin: 24px 0 28px;
        padding: 18px;
    }

    .dps-thankyou-downloads-header h2 {
        font-size: 23px;
    }

    .dps-thankyou-downloads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 430px) {
    .dps-thankyou-downloads-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   FOTOS / VÍDEOS
   ===================================================== */
.dps-media-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 22px;
    padding: 6px;
    background: var(--dps-gray-100);
    border-radius: var(--dps-radius-md);
}

.dps-media-tab {
    flex: 1;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--dps-radius-sm);
    background: transparent;
    color: var(--dps-gray-600);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--dps-transition);
}

.dps-media-tab:hover {
    color: var(--dps-media-tab-hover-text) !important;
}

.dps-media-tab:hover svg {
    color: var(--dps-media-tab-hover-text) !important;
}

.dps-media-tab.active {
    background: #fff;
    color: var(--dps-primary);
    box-shadow: var(--dps-shadow-sm);
}

.dps-video-thumb {
    cursor: pointer;
}

.dps-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 24px;
    padding-left: 3px;
    box-shadow: 0 6px 20px rgba(0,0,0,.28);
    z-index: 2;
    pointer-events: none;
}

.dps-video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(0,0,0,.78);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
}

.dps-admin-media-preview {
    position: relative;
}

.dps-watermark-image-preview {
    margin: 8px 0 12px;
    min-height: 50px;
    max-width: 320px;
    padding: 10px;
    border: 1px solid #dcdcde;
    background: repeating-conic-gradient(#f3f3f3 0% 25%, #fff 0% 50%) 50% / 16px 16px;
    border-radius: 6px;
}

.dps-watermark-image-preview img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
}

.dps-thankyou-download-image {
    position: relative;
}

.dps-thankyou-video-badge {
    top: 10px;
    left: 10px;
}

@media (max-width: 540px) {
    .dps-media-tabs {
        margin-bottom: 16px;
    }
    .dps-media-tab {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 13px;
    }
}

/* =====================================================
   PRÉ-VISUALIZAÇÃO DE VÍDEOS + MARCA D'ÁGUA
   ===================================================== */
.dps-video-watermark {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(70px, 1fr);
    align-items: center;
    justify-items: center;
}

.dps-video-watermark span {
    display: block;
    white-space: nowrap;
    color: rgba(255,255,255,.88);
    text-shadow: 2px 2px 2px rgba(0,0,0,.72);
    transform: rotate(-45deg);
    user-select: none;
}

.dps-video-watermark.is-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dps-video-watermark.is-image img {
    display: block;
    width: 25%;
    height: auto;
    max-width: 80%;
    object-fit: contain;
    transform: none !important;
}

.dps-video-card-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    object-fit: cover;
    background: #111827;
    pointer-events: none;
}

.dps-video-thumb > img {
    position: relative;
    z-index: 0;
}

.dps-video-thumb .dps-video-play,
.dps-video-thumb .dps-video-watermark,
.dps-video-thumb .dps-photo-overlay {
    position: absolute;
    z-index: 3;
}

.dps-lightbox-video {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    min-width: min(70vw, 900px);
    background: #000;
    border-radius: var(--dps-radius-md);
    overflow: hidden;
    box-shadow: var(--dps-shadow-xl);
}

.dps-lightbox-video-element {
    display: block;
    width: 100%;
    max-width: 90vw;
    max-height: 85vh;
    background: #000;
    object-fit: contain;
}

.dps-video-watermark-lightbox {
    z-index: 5;
    grid-auto-rows: minmax(100px, 1fr);
}

@media (max-width: 700px) {
    .dps-lightbox-video {
        min-width: 0;
        width: 94vw;
    }
    .dps-video-watermark span {
        font-size: 22px !important;
    }
}


/* V2.2.1 - frame real persistido do vídeo na thumbnail */
.dps-video-thumb {
    overflow: hidden;
}
.dps-video-card-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111827;
    pointer-events: none;
    user-select: none;
}
.dps-video-thumb .dps-video-poster-fallback {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}
.dps-video-thumb .dps-photo-overlay,
.dps-video-thumb .dps-zoom-icon {
    display: none !important;
}
.dps-video-thumb .dps-video-play,
.dps-video-thumb .dps-video-watermark {
    z-index: 4;
}
.dps-lightbox video,
.dps-lightbox img {
    -webkit-user-drag: none;
    user-select: none;
}


/* V2.2.0 - Conta do cliente / política de senha */
.dps-account .woocommerce-MyAccount-navigation {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}
.dps-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.dps-account .woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 0;
    border: 0;
}
.dps-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 11px 14px;
    border-radius: 9px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
}
.dps-account .woocommerce-MyAccount-navigation li.is-active a,
.dps-account .woocommerce-MyAccount-navigation a:hover {
    background: #f3f4f6;
    color: #111827;
}
.dps-account .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
}
.dps-account .dps-library {
    margin-top: 28px;
}
.dps-account .dps-library h3 {
    margin-bottom: 16px;
}
.dps-password-guidance {
    margin: 8px 0 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}
@media (max-width: 768px) {
    .dps-account .woocommerce-MyAccount-content {
        padding: 18px;
    }
}


/* V2.2.3 - poster de vídeo também na confirmação da compra */
.dps-thankyou-video-image {
    position: relative;
    background: #101827;
}
.dps-thankyou-video-image .dps-video-poster-fallback {
    display: block;
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}
.dps-thankyou-video-image .dps-video-play {
    z-index: 4;
    pointer-events: none;
}
.dps-thankyou-video-image .dps-video-watermark {
    z-index: 3;
    pointer-events: none;
}

/* v2.2.6 - ajustes configuráveis de layout */
@media (max-width: 1024px) {
    .dps-campaign-card {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .dps-gallery-price-line .dps-price-badge {
        white-space: normal;
        text-align: center;
    }
}

/* v2.3.6 — navegação da galeria pública */
.dps-lightbox-prev,.dps-lightbox-next{position:fixed;top:50%;transform:translateY(-50%);z-index:1000001;width:54px;height:54px;border:0;border-radius:50%;background:rgba(255,255,255,.95);color:#173b61;display:flex;align-items:center;justify-content:center;font-size:44px;line-height:1;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.3);padding:0}.dps-lightbox-prev{left:24px}.dps-lightbox-next{right:24px}.dps-lightbox-prev:hover,.dps-lightbox-next:hover{transform:translateY(-50%) scale(1.05)}
@media(max-width:650px){.dps-lightbox-prev,.dps-lightbox-next{width:44px;height:44px;font-size:34px}.dps-lightbox-prev{left:10px}.dps-lightbox-next{right:10px}}
