/* --- Wrapper dropdownu --- */
.chkvs-fake-select {
    position: relative;
    width: 100%;
    max-width: 40rem;
    font-size: 1rem;
}

/* --- Pasek wyświetlający aktualny wariant --- */
.chkvs-fake-select-selected {
    padding: 2px 2px 2px 12px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    min-height: 3rem;
}

/* Strzałka po prawej (CSS only) */
.chkvs-fake-select-selected::after {
    content: "▾";
    font-size: 1rem;
    margin-left: auto;
    opacity: 0.6;
}

/* --- Lista ukryta domyślnie --- */
.chkvs-fake-select-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100%;
    top: calc(100% + 5px);
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    display: none;
    z-index: 9999;
    max-height: 380px;
    overflow-y: auto;
}

/* --- Pokazanie dropdownu na klik --- */
.chkvs-fake-select.open .chkvs-fake-select-list {
    display: block;
}

/* Każda opcja dropdownu = wiersz z obrazkiem + tekstem */
.chkvs-fake-select-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
}

/* Hover na opcji */
.chkvs-fake-select-item:hover {
    background: #f2f4f7;
}

/* Obrazek w dropdownie – max 50px, proporcje zachowane, bez cropa */
.chkvs-fake-select-item img {
    max-width: 50px;
    max-height: 20px;
    margin-right: 10px;
    border-radius: 2px;
    object-fit: contain; 
    flex-shrink: 0;
}

/* Jeśli w elemencie głównym (selected) też masz img – traktuj tak samo */
.chkvs-fake-select-selected img {
    max-width: 20px;
    max-height: 20px;
    width: 100%;
    height: auto;
    margin-right: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.c-fake-select-img-box {
    max-width: 2rem;
}

/* Ukrycie radio inputów */
.chkvs-fake-select-item input[type="radio"] {
    display: none;
}

.chkvs-fake-select-label {
    cursor: pointer;
}

.c-fake-select-txt-box, .chkvs-selected-text {
    font-size: 1.2rem;
}

.product-type-variable {
    padding: 0px;
}

.chk-products-panel {
    padding: 0px !important;
}

.chk-custom-product-description p {
    line-height: 1.2rem;
    text-align: justify;
}

/* --- loader na produkcie --- */
.js-variant {
    position: relative; /* potrzebne dla overlaya */
}

/* Overlay w trakcie ładowania wariantu */
.js-variant.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    z-index: 50;
}

/* Delikatna animacja "skeleton" na overlayu */
.js-variant.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: chk-skeleton 1.2s infinite;
    z-index: 51;
}

/* Nie pozwalaj klikać, gdy ładuje */
.js-variant.is-loading {
    pointer-events: none;
}

/* Opcjonalnie: delikatny blur / przygaszenie środka */
.js-variant.is-loading > *:not(.chk-variant-loader) {
    filter: blur(1px);
    opacity: 0.6;
}

.chk-preload {
    position: relative;
    overflow: hidden;
}

.chk-preload::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    z-index: 50;
    transition: opacity .25s ease;
    pointer-events: none;
}

@keyframes chk-skeleton {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.product-name-main {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 2.2rem;
    padding-bottom: 0.8rem;
}

@media (max-width: 1024px) {
        .product-name-main {
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 2.0rem;
        padding-bottom: 0.8rem;
    }
}

/* Wyłącz pomniejszanie linku w tytule produktu */
.product-name-main a,
.product-name-main a:hover,
.product-name-main a:focus {
    font-size: inherit !important;
    line-height: inherit !important;
    transform: none !important;
    display: inline-block; /* stabilizuje layout */
}


/* =========================
   CHK – kolorowe kropki przy etykietach
   Działa dla Elementor Heading, bo masz .chk-dot-label na wrapperze
   ========================= */

/* kolory */
.chk-dot-blue    { color: #006C93 !important; } /* Moc chłodnicza */
.chk-dot-orange  { color: #FF3100 !important; } /* Moc grzewcza */
.chk-dot-green   { color: #027430 !important; } /* Klasa energetyczna chłodzenie/grzanie */
.chk-dot-gray    { color: #9aa0a6 !important; } /* Wymiary */

/* =========================
   kategoria produktu - logo producenta na loop item
   ========================= */

.chk-cat-logo {
    max-height: 1.5rem;      /* desktop */
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .chk-cat-logo {
        max-height: 2rem;
    }
}

/* =========================
   CHK – ukryj domyślny dropdown WooCommerce
   (tylko na single product)
   ========================= */

.single-product form.variations_form .variations {
    display: none !important;
}

/* =========================
   CHK – loader/skeleton dla sekcji ikonek (SINGLE)
   ========================= */

.js-chkvs-icons {
  position: relative;
}

/* overlay */
.js-chkvs-icons.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  z-index: 50;
}

/* shimmer */
.js-chkvs-icons.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: chk-skeleton 1.2s infinite;
  z-index: 51;
}

/* blokuj kliki podczas ładowania */
.js-chkvs-icons.is-loading {
  pointer-events: none;
}

.single_variation_wrap {
    display: none !important;
}