/**
 * Bevásárló Lista – Stílusok
 */

/* ============================================
   "+" GOMB INJEKTÁLVA A TERMÉK ÁRAK MELLÉ
   ============================================ */

/* A meglévő .termek-arak már flex – arányok beállítása */
.termek-arak .termek-arak-inner {
    flex: 1;
    min-width: 0;
}

.termek-add-btn-wrap {
    display: flex;
    align-items: baseline;
    margin-left: 10px;
}

.termek-add-btn {
    background-color: #ce2424;
    background-image: url('https://prima.anyhub.hu/wp-content/uploads/2026/05/add-to-cart.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px 26px;
    color: transparent;
    border: none;
    border-radius: 6px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.15s ease;
    padding: 0;
    position: relative;
}

.termek-add-btn:hover {
    background-color: #a01c1c;
}

.termek-add-btn:active {
    transform: scale(0.92);
}

.termek-add-btn.added {
    background-color: #4caf50;
    background-image: none;
}

.termek-add-btn.added::after {
    content: '✓';
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

/* Outlet módban sárga gomb */
.termek-grid-outlet .termek-add-btn {
    background-color: #fff201;
}

.termek-grid-outlet .termek-add-btn:hover {
    background-color: #e0d600;
}

.termek-grid-outlet .termek-add-btn.added {
    background-color: #4caf50;
}

@media (max-width: 768px) {
    .termek-add-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        background-size: 22px 22px;
    }
    .termek-add-btn.added::after {
        font-size: 20px;
    }
    .termek-add-btn-wrap {
        margin-left: 8px;
    }
}

/* ============================================
   LEBEGŐ KOSÁR BUBORÉK
   ============================================ */

.bl-bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ce2424;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: transform 0.2s ease, background 0.2s ease;
    animation: bl-bubble-in 0.3s ease;
}

.bl-bubble[hidden] {
    display: none !important;
}

.bl-bubble:hover {
    background: #a01c1c;
    transform: scale(1.05);
}

.bl-bubble.bl-bump {
    animation: bl-bubble-bump 0.4s ease;
}

@keyframes bl-bubble-in {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bl-bubble-bump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.bl-bubble-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #1D2327;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-family: "proxima-nova", Sans-serif;
}

@media (max-width: 768px) {
    .bl-bubble {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
}

/* ============================================
   OVERLAY + OFF-CANVAS PANEL
   ============================================ */

.bl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bl-overlay[hidden] {
    display: none !important;
}

.bl-overlay.bl-visible {
    opacity: 1;
}

.bl-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    font-family: "proxima-nova", Sans-serif;
}

.bl-panel.bl-open {
    transform: translateX(0);
}

@media (max-width: 480px) {
    .bl-panel {
        width: 100vw;
    }
}

/* Panel fejléc */
.bl-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #dbd8d5;
    background: #ce2424;
    color: #fff;
}

.bl-panel-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.bl-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.bl-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Panel törzs */
.bl-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.bl-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.bl-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.bl-empty-text {
    font-size: 16px;
}

/* Tétel */
.bl-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.bl-item:last-child {
    border-bottom: none;
}

.bl-item-image {
    width: 70px;
    height: 70px;
    background: #fbfbfb;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bl-item-info {
    min-width: 0;
}

.bl-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #1D2327;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.bl-item-mennyiseg {
    font-size: 12px;
    color: #888;
    margin: 0 0 6px 0;
}

.bl-item-ar {
    font-size: 14px;
    font-weight: 700;
    color: #ce2424;
}

.bl-item-ar-eredeti {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 4px;
    font-weight: 400;
}

.bl-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* Mennyiség választó */
.bl-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #dbd8d5;
    border-radius: 6px;
    overflow: hidden;
}

.bl-qty-btn {
    background: #f7f7f7;
    border: none;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    padding: 0;
}

.bl-qty-btn:hover {
    background: #e8e8e8;
}

.bl-qty-value {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1D2327;
}

.bl-item-remove {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.bl-item-remove:hover {
    color: #ce2424;
}

/* Panel lábléc */
.bl-panel-footer {
    border-top: 1px solid #dbd8d5;
    padding: 16px 24px 20px 24px;
    background: #fafafa;
}

.bl-panel-footer[hidden] {
    display: none !important;
}

.bl-summary {
    margin-bottom: 16px;
}

.bl-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 16px;
}

.bl-summary-total {
    font-size: 18px;
    color: #1D2327;
}

.bl-summary-total strong {
    color: #ce2424;
    font-size: 22px;
    font-weight: 800;
}

.bl-summary-saved {
    color: #4caf50;
    font-size: 14px;
}

.bl-summary-saved strong {
    color: #4caf50;
    font-weight: 700;
}

/* Megosztás gombok */
.bl-share {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.bl-share-btn {
    background: #fff;
    border: 1px solid #dbd8d5;
    color: #1D2327;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bl-share-btn:hover {
    background: #ce2424;
    color: #fff;
    border-color: #ce2424;
}

.bl-share-btn[hidden] {
    display: none !important;
}

.bl-share-native {
    grid-column: 1 / -1;
    background: #ce2424;
    color: #fff;
    border-color: #ce2424;
}

.bl-share-native:hover {
    background: #a01c1c;
    border-color: #a01c1c;
}

.bl-icon {
    font-size: 16px;
}

/* Lista törlése */
.bl-clear {
    width: 100%;
    background: transparent;
    border: 1px solid #dbd8d5;
    color: #888;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bl-clear:hover {
    background: #fff;
    color: #ce2424;
    border-color: #ce2424;
}

/* Toast üzenet */
.bl-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1D2327;
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: bl-toast-in 0.3s ease;
    font-family: "proxima-nova", Sans-serif;
}

.bl-toast[hidden] {
    display: none !important;
}

@keyframes bl-toast-in {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
