/* =====================================================
   Rosa Eterna — Konfigurator CSS
   Styl: luksusowy, czerń + złoto
   Wklejasz do: /wp-content/plugins/rosa-konfigurator/
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Jost:wght@300;400;500&display=swap');

/* ---- Wrapper konfiguratora ---- */
.rosa-konfigurator {
    margin: 24px 0 20px;
    font-family: 'Jost', sans-serif;
}

/* ---- Sekcja (pudełko / kwiaty) ---- */
.rosa-section {
    margin-bottom: 20px;
}

.rosa-section-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nazwa aktualnie wybranej opcji */
.rosa-selected-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: none;
    color: #c9a96e;
}

/* ---- Siatka próbek ---- */
.rosa-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---- Pojedyncza próbka ---- */
.rosa-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

.rosa-swatch:hover {
    transform: scale(1.1);
}

/* Stan: zaznaczony */
.rosa-swatch.is-selected {
    border-color: #c9a96e;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.25);
    transform: scale(1.05);
}

/* Tick wewnątrz zaznaczonej próbki */
.rosa-swatch.is-selected::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c9a96e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='2,5 4,7 8,3' fill='none' stroke='%230f0f0f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ---- Komunikat walidacyjny ---- */
.rosa-validation-msg {
    font-size: 12px;
    color: #c0392b;
    letter-spacing: 0.05em;
    margin-top: 8px;
    padding: 8px 12px;
    border-left: 2px solid #c0392b;
    background: rgba(192, 57, 43, 0.06);
}

/* ---- Integracja z przyciskiem WooCommerce ----
   Salient/WPBakery mogą nadpisywać style przycisku.
   Jeśli "Dodaj do koszyka" wygląda niespójnie,
   odkomentuj i dostosuj poniższe: */
/*
.single_add_to_cart_button.button {
    background: #c9a96e !important;
    color: #0f0f0f !important;
    border: none !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    padding: 14px 32px !important;
    transition: background 0.2s ease !important;
}

.single_add_to_cart_button.button:hover {
    background: #b8935a !important;
}
*/

/* ---- Responsywność ---- */
@media (max-width: 600px) {
    .rosa-swatch {
        width: 36px;
        height: 36px;
    }
    .rosa-swatches {
        gap: 8px;
    }
}
