/* ========================================
   PRODUCTS PAGE STYLES (from Vue component)
   ======================================== */

/* --- Image Container --- */
.card-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    cursor: zoom-in;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-img-container:hover .card-img {
    transform: scale(1.05);
}

/* --- Product Name (2 lines clamp) --- */
.name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* --- Description (3 lines clamp) --- */
.description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Expanded state */
.name:hover,
.description.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
    white-space: normal;
}

.cursor-pointer {
    cursor: pointer;
}

/* --- Image Modal (Fullscreen Zoom) --- */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Loading State --- */
.products-loading {
    opacity: 0.6;
    pointer-events: none;
}
