/* Estilos principais do conteúdo do álbum */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Cabeçalho do álbum */
.album-header {
    margin-bottom: 40px;
    text-align: center;
}

.album-info h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.album-description {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.album-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.photo-count {
    background: #4299e1;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.protected-badge {
    background: #ed8936;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Grid de Fotos Quadradas */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.photo-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1/1; /* FORÇA FORMATO QUADRADO */
}

.photo-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CORTA A IMAGEM PARA CABER NO QUADRADO */
    transition: transform 0.6s ease;
}

.photo-item:hover .photo-thumbnail {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.image-container:hover .photo-overlay {
    opacity: 1;
}

.view-fullscreen {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-info {
    padding: 20px;
}

.photo-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #2d3748;
    line-height: 1.4;
}

.photo-commerce {
    margin: 15px 0;
}

.price-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-select {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Raleway', sans-serif;
    background: white;
    transition: border-color 0.3s ease;
}

.price-select:focus {
    outline: none;
    border-color: #4299e1;
}

.btn-cart {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.btn-cart:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.not-available {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e0;
}

/* Estado vazio */
.empty-album {
    text-align: center;
    padding: 100px 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.empty-icon {
    font-size: 6rem;
    margin-bottom: 30px;
    opacity: 0.6;
}

.empty-album h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

.empty-album p {
    color: #718096;
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Navegação */
.navigation-buttons {
    text-align: center;
    margin: 50px 0 20px 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.3);
}

/* Notificação do carrinho */
.cart-notification {
    position: fixed;
    top: 120px;
    right: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 10000;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 380px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.cart-notification.success {
    border-left-color: #48bb78;
}

.cart-notification.error {
    border-left-color: #e53e3e;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.notification-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-details h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 700;
}

.notification-details p {
    margin: 0 0 10px 0;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
}

.notification-details .price {
    color: #48bb78;
    font-weight: 700;
    font-size: 0.95rem;
}

.notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f7fafc;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #718096;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: #edf2f7;
    color: #2d3748;
    transform: scale(1.1);
}

.cart-notification.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

/* Botão Flutuante do Carrinho */
.cart-floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.4);
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid white;
}

.cart-link:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(72, 187, 120, 0.6);
}

.cart-icon {
    font-size: 1.8rem;
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.cart-count.added {
    animation: cartBounce 0.6s ease;
}

/* Confetti animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #48bb78;
    opacity: 0;
    animation: confettiFall 1s ease-out forwards;
}

/* Responsividade do Álbum */
@media (max-width: 1200px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .main-content {
        padding: 30px 15px;
    }
    
    .album-info h1 {
        font-size: 2.2rem;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .album-info h1 {
        font-size: 2rem;
    }
    
    .album-description {
        font-size: 1.1rem;
    }
    
    .album-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-notification {
        top: 100px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
    
    .notification-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-floating-button {
        bottom: 20px;
        right: 20px;
    }
    
    .cart-link {
        width: 60px;
        height: 60px;
    }
    
    .cart-icon {
        font-size: 1.5rem;
    }
    
    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: 1fr;
    }
    
    .album-info h1 {
        font-size: 1.8rem;
    }
    
    .photo-info {
        padding: 15px;
    }
    
    .price-form {
        gap: 10px;
    }
    
    .back-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .empty-album {
        padding: 60px 20px;
    }
    
    .empty-icon {
        font-size: 4rem;
    }
    
    .empty-album h3 {
        font-size: 1.6rem;
    }
}

/* Animações de delay para os itens da grid */
.photo-item:nth-child(1) { animation-delay: 0.1s; }
.photo-item:nth-child(2) { animation-delay: 0.2s; }
.photo-item:nth-child(3) { animation-delay: 0.3s; }
.photo-item:nth-child(4) { animation-delay: 0.4s; }
.photo-item:nth-child(5) { animation-delay: 0.5s; }
.photo-item:nth-child(6) { animation-delay: 0.6s; }