/* Price Compare Frontend Stílusok - Piros téma */

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Alapértelmezett stílusok */
.pc-products-grid,
.pc-product-details,
.pc-products-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== TERMÉK GRID (shortcode_price_compare) ===== */

/* Termékek wrapper konténer */
.pc-products-wrapper {
    margin: 0;
}

/* Termékek számláló div */
.pc-products-count {
    margin-bottom: 24px;
    text-align: center;
    padding: 16px 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.pc-count-text {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
}

.pc-count-text strong {
    color: #D9042B;
    font-weight: 600;
}

/* Grid layout */
.pc-products-grid {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

/* Grid oszlopok */
.pc-products-grid[data-columns="1"] { grid-template-columns: 1fr; }
.pc-products-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.pc-products-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.pc-products-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.pc-products-grid[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }

/* Linkelt termék kártya */
.pc-product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pc-product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Termék kártya */
.pc-product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #D9042B;
}

/* Loading állapot */
.pc-load-more-btn.pc-loading {
    opacity: 0.7;
    cursor: wait;
}

.pc-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pc-load-more-wrapper {
    text-align: center;
    margin-top: 32px;
}

.pc-load-more-btn {
    background: #D9042B;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pc-load-more-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.pc-load-count {
    margin-left: 8px;
    opacity: 0.8;
    font-size: 12px;
}

/* Termék kép konténer */
.pc-product-image-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    overflow: hidden;
}

.pc-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.pc-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
}

/* Termék kártya tartalom */
.pc-product-card > div:last-child {
    padding: 20px;
}

.pc-product-card h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Termék meta információk */
.pc-product-meta {
    margin-top: 12px;
}

.pc-shop-count {
    display: inline-block;
    background: #fef2f2;
    color: #D9042B;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #fecaca;
}

/* Megnézem gomb */
.pc-view-button {
    display: inline-block;
    background: #D9042B;
    color: #ffffff;
  padding: 9px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.pc-view-button:hover {
    background: #b91c1c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ===== TERMÉK RÉSZLETEK (shortcode_product_details) ===== */



.pc-product-details h3 {
    margin: 0 0 24px 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 12px;
}

/* Webshopok listája */
.pc-shops-list {
    display: grid;
    gap: 16px;
}

/* Webshop sor - GRID layout (logó | árak | gomb) */
.pc-shop-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 egyenlő oszlop */
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.pc-shop-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* ===== LOGÓ OSZLOP ===== */
.pc-shop-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pc-shop-logo-img {
    max-width: 140px !important;
    max-height: 60px !important;
    object-fit: contain;
}

/* ===== ÁRAK OSZLOP ===== */
.pc-shop-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Akciós ár (nagy, piros) */
.pc-price-sale-wrapper {
    margin-bottom: 6px;
}

.pc-price-sale {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
}

/* Áthúzott eredeti ár */
.pc-price-regular-wrapper {
    margin-bottom: 6px;
}

.pc-price-regular {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.pc-price-regular-crossed {
    font-size: 18px;
    font-weight: 400;
    color: #6b7280;
    text-decoration: line-through;
}

/* Kedvezmény badge */
.pc-price-discount-wrapper {
    margin-top: 8px;
}

.pc-price-discount {
    display: inline-block;
    background: #dc2626;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

/* ===== VÁSÁRLÁS GOMB OSZLOP ===== */
.pc-shop-action {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.pc-buy-button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    min-width: 140px;
    text-align: center;
    line-height: 1;
}

.pc-buy-available {
    background: #D9042B;
    color: #ffffff;
}

.pc-buy-available:hover {
    background: #b91c1c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(217, 4, 43, 0.3);
}

.pc-buy-unavailable {
    background: #6b7280;
    color: #ffffff;
    cursor: not-allowed;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .pc-products-grid[data-columns="5"] { 
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (max-width: 992px) {
    .pc-products-grid[data-columns="3"] { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .pc-products-grid[data-columns="4"],
    .pc-products-grid[data-columns="5"] { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 768px) {
    .pc-products-grid[data-columns="2"],
    .pc-products-grid[data-columns="3"],
    .pc-products-grid[data-columns="4"],
    .pc-products-grid[data-columns="5"] { 
        grid-template-columns: 1fr; 
    }
    
    .pc-product-card > div:last-child {
        padding: 16px;
    }
    
    .pc-product-details {
        padding: 24px;
    }
    
    /* Webshop sor mobil layoutra */
    .pc-shop-item {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    
    .pc-shop-logo {
        order: 1;
        justify-content: center;
    }
    
    .pc-shop-prices {
        order: 2;
        align-items: center;
    }
    
    .pc-shop-action {
        order: 3;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pc-products-grid {
        gap: 16px;
        margin: 24px 0;
    }
    
    .pc-product-details {
        padding: 20px;
        margin: 24px 0;
    }
    
    .pc-product-details h3 {
        font-size: 20px;
    }
    
    .pc-price-sale,
    .pc-price-regular {
        font-size: 24px;
    }
}