/* ===================================
   ALL PRODUCTS PAGE STYLES
   =================================== */

.all-products-section {
    padding: 100px 0 80px;
    background: var(--white);
}

.products-header {
    text-align: center;
    margin-bottom: 60px;
}

.products-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.products-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Flip Cards Grid */
.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Flip Card */
.flip-card {
    perspective: 1000px;
    height: 280px;
    text-decoration: none;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Front Side */
.flip-card-front {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
}

.flip-card-front h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    padding: 30px;
    transition: color 0.3s ease;
}

.flip-card:hover .flip-card-front h3 {
    color: var(--primary-blue);
}

/* Back Side */
.flip-card-back {
    background: var(--primary-blue);
    transform: rotateY(180deg);
}

.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    .all-products-section {
        padding: 80px 0 60px;
    }

    .products-header h1 {
        font-size: 36px;
    }

    .products-header p {
        font-size: 16px;
    }

    .flip-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .flip-card {
        height: 250px;
    }

    .flip-card-front h3 {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .all-products-section {
        padding: 60px 0 40px;
    }

    .products-header {
        margin-bottom: 40px;
    }

    .products-header h1 {
        font-size: 28px;
    }

    .products-header p {
        font-size: 14px;
    }

    .flip-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .flip-card {
        height: 180px;
    }

    .flip-card-front h3 {
        font-size: 16px;
        padding: 20px;
    }
}
