/* --- PRODUCT PAGE REFINEMENT --- */

/* 1. Page Hero - Deep Navy with subtle overlap */
.page-hero { 
    min-height: 50vh;
    height: 50vh;

    /* Background Image Setup */
    background-image: linear-gradient(rgba(19, 42, 62, 0.8), rgba(19, 42, 62, 0.8)), url('assets/back2.avif');
    background-size: cover;      /* Ensures the image fills the area without stretching */
    background-position: center; /* Keeps the focus of the photo in the middle */
    background-repeat: no-repeat; 
    color: white; 
    padding: 100px 20px 120px; 
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 0;
}

.page-hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 10px;
}

/* 2. Filter Bar - Floating Glassmorphism Look */
.filter-wrapper { 
    max-width: 900px;
    margin: -40px auto 60px; 
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.filter-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
    flex-wrap: wrap;
    background: white;
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.filter-btn { 
    padding: 10px 22px; 
    border: 1px solid transparent;
    background: #f8f9fa; 
    color: var(--navy); 
    cursor: pointer; 
    font-weight: 600; 
    border-radius: 30px; 
    font-size: 0.9rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    background: #eee;
}

.filter-btn.active { 
    background: var(--olive); 
    color: white; 
    box-shadow: 0 4px 12px rgba(107, 117, 65, 0.3);
}

/* 3. Catalog Grid */
.catalog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 40px; 
    padding: 20px 0 100px;
}

/* 4. The "Sea-Pro" Product Card */
.catalog-card { 
    background: white; 
    border-radius: 12px; 
    border: 1px solid #eef0f2; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.4s ease;
}

.catalog-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); 
}

.card-img-box {
    height: 220px; /* Keep height consistent for all cards */
    width: 100%;
    overflow: hidden; /* Clips any image overflow */
    background: #f8f9fa; /* Light grey background if image fails */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* This is key: it fits the whole image without cropping */
    padding: 15px 15px; /* Adds breathing room around the equipment */
    transition: transform 0.5s ease;
}

.catalog-card:hover .card-img-box img {
    transform: scale(1.1); /* Subtle zoom effect on hover */
}

/* Placeholder text style */

.card-content { 
    padding: 30px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag { 
    color: var(--olive); 
    font-size: 0.7rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 12px;
}

.card-content h3 { 
    margin-bottom: 15px; 
    color: var(--navy); 
    font-size: 1.4rem;
    line-height: 1.2;
}

.card-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 5. Modern WhatsApp Link */
.btn-whatsapp { 
    margin-top: auto;
    text-align: center; 
    background: var(--olive); 
    color: white; 
    padding: 14px; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background: #128C7E;
    filter: brightness(1.1);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .page-hero { 
        clip-path: none; 
        padding: 60px 20px; 
    }
    
    .filter-wrapper {
        margin-top: -30px;
    }
    
    .filter-buttons {
        border-radius: 15px;
        padding: 10px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        padding: 20px 10px 80px;
    }
}