/* ==========================================================
   BS Loop Cart – Frontend Styles v1.2
   ========================================================== */

.bslc-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

/* -------------------------------------------------------
   Custom select wrapper – custom nyíl, dark-ready
   ------------------------------------------------------- */

.bslc-select-custom-wrap {
    position: relative;
    display: block;
}

/* Custom nyíl pseudo-elem */
.bslc-select-custom-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 0;
    height: 0;
    border-left:  5px solid transparent;
    border-right: 5px solid transparent;
    border-top:   6px solid #999;
    pointer-events: none;
    transition: transform .2s;
}

/* Select alap – appearance: none, dark default */
.bslc-wrap select {
    display: block;
    width: 100%;
    padding: 9px 34px 9px 11px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: #fff;
    font-size: 0.875em;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .2s;

    /* Natív nyíl elrejtve */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.bslc-wrap select:focus {
    outline: none;
    border-color: #888;
}

/* Placeholder (üres) állapot */
.bslc-extra-select.bslc-is-placeholder {
    color: #888;
}

/* Shake animáció (required + üres) */
@keyframes bslc-shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    60%      { transform: translateX(5px); }
    80%      { transform: translateX(-3px); }
}
.bslc-shake {
    animation: bslc-shake .4s ease;
    border-color: #e53e3e !important;
}

/* -------------------------------------------------------
   Variáció sor – egységes stílus
   ------------------------------------------------------- */

.bslc-single-variation {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 4px 0;
}

/* Mindkét elem ugyanolyan alap – szín/méret Elementorból */
.bslc-var-name,
.bslc-single-variation .bslc-displayed-price,
.bslc-single-variation .bslc-displayed-price .woocommerce-Price-amount,
.bslc-simple-price,
.bslc-simple-price .woocommerce-Price-amount {
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* Ár kicsit vastagabb alapon */
.bslc-single-variation .bslc-displayed-price,
.bslc-simple-price {
    font-weight: 600;
}

/* -------------------------------------------------------
   Extra opciók + qty egy sorban
   ------------------------------------------------------- */

.bslc-extra-actions-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.bslc-extras-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.bslc-extra-actions-row .bslc-qty-wrap {
    flex: 0 0 auto;
    width: fit-content;
    align-self: flex-end;
}

/* -------------------------------------------------------
   Extra opció – nincs külső label, csak a select
   ------------------------------------------------------- */

.bslc-extra-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Általános témából öröklött margin-left nullázása */
.bslc-wrap select {
    margin-left: 0 !important;
}

/* -------------------------------------------------------
   Ár-módosító összesítő
   ------------------------------------------------------- */

.bslc-price-mod-summary {
    font-size: .84em;
    color: #ccc;
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 4px 0;
}
.bslc-pm-label { color: #888; }
.bslc-pm-value { font-weight: 600; color: #4ade80; }

/* -------------------------------------------------------
   Actions row – qty léptető + kosárba gomb egy sorban
   ------------------------------------------------------- */

.bslc-actions-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.bslc-actions-row .bslc-qty-wrap {
    flex-shrink: 0;
}

.bslc-actions-row .bslc-btn {
    flex: 1 !important;
    width: auto !important;
    min-width: 0;
}

/* -------------------------------------------------------
   Mennyiség léptető
   ------------------------------------------------------- */

.bslc-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #555;
    border-radius: 4px;
    overflow: hidden;
    background: #1e1e1e;
}

.bslc-qty-dec,
.bslc-qty-inc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 100%;
    min-height: 36px;
    border: none;
    background: #2a2a2a;
    cursor: pointer;
    font-size: 1.1em;
    color: #ccc;
    transition: background .15s;
    padding: 0;
    line-height: 1;
}
.bslc-qty-dec:hover,
.bslc-qty-inc:hover { background: #3a3a3a; }

.bslc-qty {
    width: 40px;
    height: 100%;
    min-height: 36px;
    text-align: center;
    border: none;
    border-left:  1px solid #555;
    border-right: 1px solid #555;
    background: #1e1e1e;
    color: #fff;
    font-size: .9em;
    padding: 0;
    margin: 0;
    border-radius: 0;
    -moz-appearance: textfield;
}
.bslc-qty::-webkit-inner-spin-button,
.bslc-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bslc-qty:focus { outline: none; }

/* -------------------------------------------------------
   Kosárba gomb (alapállapot)
   ------------------------------------------------------- */

.bslc-btn {
    display: block !important;
    text-align: center !important;
    transition: background-color .2s, opacity .2s !important;
    white-space: nowrap;
}

.bslc-btn.bslc-loading { opacity: .65; cursor: wait; }

.bslc-btn.bslc-added {
    background-color: #22c55e !important;
    border-color:     #16a34a !important;
    color:            #fff    !important;
}

/* -------------------------------------------------------
   Feedback
   ------------------------------------------------------- */

.bslc-feedback {
    display: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: .84em;
    line-height: 1.4;
}
.bslc-feedback.bslc-success { background:#052e16; color:#4ade80; border:1px solid #166534; }
.bslc-feedback.bslc-error   { background:#450a0a; color:#fca5a5; border:1px solid #7f1d1d; }

.bslc-unavailable { color:#6b7280; font-size:.88em; margin:0; }

/* -------------------------------------------------------
   Elementor editor placeholder
   ------------------------------------------------------- */

.bslc-elementor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f8f9fa;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    text-align: center;
    color: #9ca3af;
    gap: 8px;
    font-size: .85em;
}
