/* Floating Mini Cart - Olajfa Patika stílus */

/* ===== KONTAINER ===== */
.fmc-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Arial', sans-serif;
    pointer-events: none;
}

.fmc-container * {
    pointer-events: auto;
}

/* ===== KOSÁR GOMB ===== */
.fmc-button {
    background: linear-gradient(135deg, #1aad59 0%, #148f49 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(44, 95, 45, 0.4);
    transition: all 0.3s ease;
    position: relative;
    min-height: 54px;
    letter-spacing: 0.5px;
}

.fmc-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 30px rgba(44, 95, 45, 0.5);
    background: linear-gradient(135deg, #3a7a3b 0%, #1aad59 100%);
}

.fmc-button:active {
    transform: translateY(0px) scale(0.98);
}

/* Kosár ikon */
.fmc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.fmc-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* Darabszám badge */
.fmc-count {
    background: #ffffff;
    color: #3d8fca;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.fmc-button:hover .fmc-count {
    transform: scale(1.1);
    background: #ffffff;
}

/* Összeg */

button#fmc-toggle {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.fmc-total {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

/* ===== MINI KOSÁR ===== */
.fmc-mini-cart {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) scale(0.9) translateY(20px);
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(44, 95, 45, 0.1);
}

.fmc-mini-cart.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1.05) translateY(20px);
    position: absolute;
    bottom: 80px;
}


/* ===== MINI KOSÁR FEJLÉC ===== */
.fmc-header {
    padding: 20px 24px;
    background: #f8f6f2;
    border-bottom: 2px solid #e8e0d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.fmc-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1aad59;
    letter-spacing: 0.5px;
    font-family: 'Arial', sans-serif;
}

.fmc-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.fmc-close:hover {
    background: rgba(44, 95, 45, 0.1);
    color: #1aad59;
    transform: rotate(90deg);
}

.fmc-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

/* ===== MINI KOSÁR TARTALOM ===== */
.fmc-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #ffffff;
}

.fmc-body::-webkit-scrollbar {
    width: 6px;
}

.fmc-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.fmc-body::-webkit-scrollbar-thumb {
    background: #1aad59;
    border-radius: 10px;
}

.fmc-body::-webkit-scrollbar-thumb:hover {
    background: #399039;
}

/* Üres kosár */
.fmc-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.fmc-empty p {
    margin: 0;
}

.fmc-empty::before {
    content: '🛒';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* ===== KOSÁR ITEMEK ===== */
.fmc-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fmc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #f8f6f2;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.fmc-item:hover {
    background: #f0ece4;
    transform: translateX(4px);
}

.fmc-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #e8e0d4;
}

.fmc-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fmc-item-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e0d4;
}

.fmc-item-details {
    flex: 1;
    min-width: 0;
}

.fmc-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #399039;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fmc-item-quantity {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.fmc-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #1aad59;
}

.fmc-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 28px;
    height: 28px;
}

.fmc-item-remove:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: rotate(90deg);
}

.fmc-item-remove svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

/* ===== MINI KOSÁR LÁBLÉC ===== */
.fmc-footer {
    padding: 16px 20px 20px;
    background: #f8f6f2;
    border-top: 2px solid #e8e0d4;
    flex-shrink: 0;
}

.fmc-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.fmc-subtotal-label {
    font-weight: 600;
    color: #399039;
}

.fmc-subtotal-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1aad59;
}

.fmc-actions {
    display: flex;
    gap: 10px;
}

.fmc-btn {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.fmc-btn-cart {
    background: #e8e0d4;
    color: #399039;
}

.fmc-btn-cart:hover {
    background: #ddd5c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fmc-btn-checkout {
    background: linear-gradient(135deg, #1aad59 0%, #399039 100%);
    color: #ffffff;
}

.fmc-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(44, 95, 45, 0.3);
    background: linear-gradient(135deg, #3a7a3b 0%, #1aad59 100%);
}

.fmc-btn-checkout:active {
    transform: translateY(0px);
}

/* ===== OVERLAY ===== */
.fmc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fmc-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== MOBIL RESPONZIVITÁS ===== */
@media (max-width: 768px) {
    .fmc-container {
        bottom: 66px;
        left: unset;
        transform: unset;
        right: 0px;
        width: 100%;
        padding: 0px 10px;
    }
    
    .fmc-button {
        padding: 10px 18px;
        font-size: 14px;
        min-height: 48px;
        gap: 8px;
        border-radius: 40px;
    }
    
    .fmc-icon {
        width: 20px;
        height: 20px;
    }
    
    .fmc-count {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .fmc-total {
        font-size: 15px;
    }
    
    .fmc-mini-cart {
        width: 95vw;
        max-height: 85vh;
        bottom: 65px;
    }
    
    .fmc-header {
        padding: 16px 18px;
    }
    
    .fmc-header h3 {
        font-size: 18px;
    }
    
    .fmc-body {
        padding: 12px 14px;
    }
    
    .fmc-item {
        padding: 10px;
        gap: 10px;
    }
    
    .fmc-item-image {
        width: 50px;
        height: 50px;
    }
    
    .fmc-item-name {
        font-size: 13px;
    }
    
    .fmc-footer {
        padding: 12px 14px 16px;
    }
    
    .fmc-subtotal {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .fmc-subtotal-amount {
        font-size: 18px;
    }
    
    .fmc-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .fmc-button {
        padding: 8px 14px;
        font-size: 12px;
        min-height: 40px;
        gap: 6px;
        border-radius: 30px;
    }
    
    .fmc-icon {
        width: 16px;
        height: 16px;
    }
    
    .fmc-count {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .fmc-total {
        font-size: 13px;
    }
    
    .fmc-mini-cart {
        width: 98vw;
        max-height: 80vh;
        bottom: 55px;
        border-radius: 12px;
    }
    
    .fmc-item {
        flex-wrap: wrap;
    }
    
    .fmc-item-details {
        flex: 1 1 60%;
    }
    
    .fmc-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* Animációk */
@keyframes fmcBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fmc-button.updated {
    animation: fmcBounce 0.3s ease;
}

/* Beágyazott WooCommerce stílusok tiszteletben tartása */
.fmc-mini-cart .woocommerce-Price-amount {
    font-weight: inherit;
}

.fmc-mini-cart .woocommerce-Price-currencySymbol {
    font-weight: inherit;
}