/* static/css/zamel-products.css */

/* Karta produktu */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-image-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #dee2e6;
    font-size: 3rem;
}

.badge-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: #28a745;
    color: white;
}

.badge-sale {
    background: #ffc107;
    color: #212529;
}

/* Widok listy */
.list-view .product-card {
    flex-direction: row;
    max-width: 100%;
}

.list-view .product-image,
.list-view .product-image-placeholder {
    width: 200px;
    flex-shrink: 0;
}

.list-view .card-body {
    flex: 1;
}

/* Galeria produktu */
.product-gallery .main-image {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    background: white;
}

.thumbnails .thumbnail {
    border: 2px solid transparent;
    border-radius: 0.25rem;
    padding: 0.25rem;
    background: white;
}

/* Responsywność */
@media (max-width: 768px) {
    .list-view .product-card {
        flex-direction: column;
    }

    .list-view .product-image,
    .list-view .product-image-placeholder {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .product-actions,
    .navbar,
    .breadcrumb,
    footer {
        display: none !important;
    }

    .product-gallery .thumbnails {
        display: none;
    }
}
