/* pc_product_variants - Premium Accordion Style Front-End CSS */

.pc-variants-container {
    margin: 15px 0;
    max-width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    position: relative;
    z-index: 100;
}

.pc-variant-accordion-item {
    background: #ffffff;
    border: 1px solid #ebedef;
    border-radius: 10px;
    margin-bottom: 8px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.pc-variant-accordion-item:hover {
    border-color: #d1d5db;
}

.pc-accordion-header {
    padding: 20px 15px; /* Zvětšená výška dle přání */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border-radius: 10px; /* Fix: Rožky se teď správně vykreslí i při hoveru */
    transition: background 0.2s ease;
}

.pc-accordion-header:hover {
    background: #fcfcfd;
}

.pc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-group-icon {
    color: #6b7280;
    font-size: 20px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 6px;
}

.pc-header-text {
    display: flex;
    flex-direction: row; /* Úspora místa: vedle sebe */
    gap: 8px;
    align-items: center;
}

.pc-group-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.pc-group-label::after {
    content: ":";
}

.pc-current-value {
    font-size: 14px;
    color: #111827;
    font-weight: 700;
}

.pc-chevron {
    color: #9ca3af;
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pc-variant-accordion-item.is-open .pc-chevron {
    transform: rotate(180deg);
}

/* OVERLAY LÓGIKA */
.pc-accordion-content-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: none; /* Skryto defaultně */
}

.pc-variant-accordion-item.is-open .pc-accordion-content-wrapper {
    display: block;
}

.pc-accordion-content {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 4px;
    overflow: hidden;
}

.pc-variant-list {
    padding: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.pc-variant-row {
    display: block;
    padding: 10px 15px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none !important;
    color: #374151;
    transition: all 0.2s ease;
}

.pc-variant-row:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.pc-variant-row.is-active {
    border-color: #0055ff;
    background: #f4f8ff;
    pointer-events: none;
}

.pc-row-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pc-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-variant-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.placeholder-thumb {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.pc-row-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.pc-variant-row.is-active .pc-row-value {
    color: #0055ff;
}

.pc-row-price-diff {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.pc-row-footer {
    font-size: 12px;
}

.text-success { color: #10b981; }
.text-current { color: #0055ff; font-weight: 600; }
.text-muted { color: #9ca3af; }

.pc-variant-row.is-out-of-stock {
    opacity: 0.6;
}

/* Responzivita */
@media (max-width: 480px) {
    .pc-header-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
}
