/* Collections Page Specific Styles */

/* Collections Hero Section */
.collections-hero {
    margin-top: 80px;
    min-height: 380px;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #1e293b, #020617);
}

.collections-hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: 2.5rem 1.5rem;
    max-width: 720px;
    animation: fadeInUp 1s ease-out;
}

.collections-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #f9fafb;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.collections-subtitle {
    font-size: 1.1rem;
    color: #e5e7eb;
    font-weight: 400;
    max-width: 620px;
    margin: 0 auto 1.75rem;
}

.collections-hero-bg { display: none; }

.collections-hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    background: #000;
}

.collections-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}

.collections-hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
}

.collections-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero-tag {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    animation: heroTagFloat 5s ease-in-out infinite;
}

.collections-hero-tags .hero-tag:nth-child(2) {
    animation-delay: 0.15s;
}

.collections-hero-tags .hero-tag:nth-child(3) {
    animation-delay: 0.3s;
}

.collections-hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 120deg, rgba(251, 191, 36, 0.18), rgba(59, 130, 246, 0.22), rgba(236, 72, 153, 0.16), rgba(251, 191, 36, 0.18));
    opacity: 0.9;
    filter: blur(40px);
    animation: heroGradient 18s linear infinite;
    z-index: 0;
}

@keyframes heroGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes heroTagFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

.collection-highlights {
    padding: 3rem 0 4rem;
    background: var(--surface-dark);
}

.highlight-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-video-card {
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.highlight-video-frame {
    width: 100%;
    max-width: 460px;
    /* aspect-ratio: 1 / 1; REMOVIDO PARA EVITAR BARRAS PRETAS */
    height: 460px; /* Altura fixa igual à largura máxima */
    border-radius: 24px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.9), rgba(59, 130, 246, 0.9));
    box-shadow: 0 18px 40px var(--shadow-medium);
    overflow: hidden;
    position: relative; /* Para garantir o posicionamento correto do vídeo */
}

.highlight-video-frame video,
.highlight-video-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que preencha todo o espaço sem deformar */
    object-position: center; /* Centraliza o conteúdo */
    border-radius: 20px;
    display: block;
    position: absolute; /* Força o preenchimento total */
    top: 0;
    left: 0;
}

.video-caption {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 460px;
    font-weight: 500;
}

.highlight-features {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.75rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.feature-icon span {
    font-size: 1.4rem;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.feature-icon-finish {
    background: radial-gradient(circle at top, #fef9c3, #facc15);
}

.feature-icon-durability {
    background: radial-gradient(circle at top, #dcfce7, #22c55e);
}

.feature-icon-price {
    background: radial-gradient(circle at top, #e0f2fe, #0ea5e9);
}

.feature-icon-delivery {
    background: radial-gradient(circle at top, #fee2e2, #f97373);
}

.collections-title { animation: none; }

/* Products Section */
.products-section {
    padding: 6rem 0;
    background: var(--surface-dark);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--surface-dark), transparent);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}


/* Product Card */
.product-card {
    background: var(--surface-mid);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(30, 58, 138, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    transform: scale(1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.product-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.product-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-pastel));
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.3), transparent);
    transition: left 0.6s ease;
}

.product-button:hover::before {
    left: 100%;
}

.product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--accent-shadow-soft);
}

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

.product-button span {
    position: relative;
    z-index: 1;
}

/* View Details Button */
.view-details-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-light);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-details-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-pastel);
    color: var(--accent-pastel);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes heroVideoZoom {}
@keyframes heroTitleGlow {}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--accent-shadow-strong);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.product-button {
    animation: pulse 2s infinite;
}

.product-button:hover {
    animation: none;
}

/* Enhanced Hover Effects */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(30, 58, 138, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.product-card:hover::after {
    transform: translateX(100%);
}

/* Staggered Animation for Grid Items */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .collections-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .highlight-video-frame {
        height: min(70vw, 360px);
    }
    .collections-hero {
        height: auto;
        min-height: 300px;
    }
    
    .collections-title {
        font-size: 2.5rem;
    }
    
    .collections-subtitle {
        font-size: 1.1rem;
    }
    
    .products-section {
        padding: 4rem 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 1.25rem;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .highlight-video-frame {
        height: min(80vw, 300px);
    }
    .collections-hero {
        height: auto;
        min-height: 250px;
    }
    
    .collections-title {
        font-size: 2rem;
    }
    
    .collections-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation for Images */
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1f2937 25%, #111827 50%, #1f2937 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

.product-image img {
    position: relative;
    z-index: 2;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced Accessibility */
.product-button:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

.product-card:focus-within {
    outline: 2px solid var(--accent-light);
    outline-offset: 4px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .product-card {
        background: #2c3e50;
    }
    
    .product-name {
        color: #f8f9fa;
    }
    
    .product-description {
        color: #e9ecef;
    }
}
