/* --- savema/static/css/products.css --- */

.product-header-bg {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-bottom: 1px solid #e9ecef;
}

.nav-tabs .nav-link {
    color: #555;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: #852248;
    background-color: #fff5f8;
}

.nav-tabs .nav-link.active {
    color: #852248;
    border-bottom: 3px solid #852248;
    background: transparent;
}

.tech-table tr:nth-child(even) { background-color: #f8f9fa; }
.tech-table th { width: 30%; color: #852248; }

.tech-drawing-img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}
.tech-drawing-img:hover { transform: scale(1.05); }

.media-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
    background: white;
    height: 100%;
}
.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-wrapper img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
    opacity: 0.9;
}
.media-card:hover .video-wrapper img { transform: scale(1.08); opacity: 1; }

.video-wrapper .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 1;
    transition: 0.3s;
}
.media-card:hover .video-wrapper .overlay { background: rgba(0, 0, 0, 0.2); }

.play-btn {
    width: 60px; height: 60px; background: #852248; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; animation: pulse 2s infinite;
    padding-left: 4px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(133, 34, 72, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(133, 34, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(133, 34, 72, 0); }
}

.ratio-1x1 {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}


.hover-opacity-100 {
    transition: opacity 0.3s ease;
}

.glightbox:hover .hover-opacity-100 {
    opacity: 1 !important;
}

.hover-scale { transition: transform 0.2s; }
.hover-scale:hover { transform: translateY(-3px); }

.btn-bordo {
    background-color: #852248 !important;
    border-color: #852248 !important;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-bordo:hover {
    background-color: #6a1b3a !important;
    border-color: #6a1b3a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(133, 34, 72, 0.4);
}