/* RESET ELEMENTÓW GALERII */
.pom-gallery-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* GŁÓWNY KONTENER PRODUKTU */
.pom-single-product {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* NAGŁÓWEK PRODUKTU */
.pom-product-main-title {
    font: 600 32px/1.2 'Arial', sans-serif;
    color: #2a2a2a;
    text-align: center;
    margin-bottom: 40px !important;
}

/* GALERIA PRODUKTU */
.pom-gallery-section {
    margin: 60px 0;
}

.pom-gallery-title {
    font: 500 24px/1.3 'Arial', sans-serif;
    color: #333;
    text-align: center;
    margin-bottom: 40px !important;
}

.pom-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.pom-gallery-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    aspect-ratio: 1/1;
}

.pom-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    display: block;
    background: #fff;
}

/* ANIMACJE */
.pom-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
    .pom-gallery-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .pom-product-main-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .pom-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pom-gallery-section {
        margin: 40px 0;
    }
}

@media (max-width: 480px) {
    .pom-gallery-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .pom-product-main-title {
        font-size: 24px;
    }
    
    .pom-gallery-title {
        font-size: 20px;
        margin-bottom: 30px !important;
    }
}




/* PRODUCT CARD */
/* POPRAWIONY CSS DLA KART PRODUKTÓW */
.pom-product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    padding: 30px 20px !important;
}

.pom-product-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
}

.pom-image-container {
    position: relative !important;
    width: 100% !important;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: #fff;
    overflow: hidden !important;
}

.pom-product-image {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transition: all 0.3s ease !important;
}

.pom-text-container {
    padding: 20px 15px !important;
    text-align: center !important;
    min-height: 80px !important;
}

.pom-product-title {
    font: 700 20px/1.3 'Arial', sans-serif !important;
    color: #333 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .pom-image-container {
        padding-top: 85%; /* 3:2 aspect ratio */
    }
    
    .pom-product-image {
        max-width: 95% !important;
        max-height: 95% !important;
    }
}

@media (max-width: 480px) {
    .pom-image-container {
        padding-top: 100%; /* Kwadrat */
    }
}